Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Databases / April 2005

Tip: Looking for answers? Try searching our database.

Using apache/axis within Oracle

Thread view: 
Robert Marshall - 22 Apr 2005 15:11 GMT
I'm trying to call code to use a web service via Apache/axis
(axis-1_2RC3), the code runs perfectly as a jar file locally but when
it is loaded into Oracle and run using pl/sql it fails with
ExceptionInInitializerError.

I get a traceback of

Failure trying to get the Call object; nested exception
is:
    java.lang.ExceptionInInitializerError - status -  failed 2
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
faultSubcode:
faultString: Failure trying to get the Call object; nested exception is:
    java.lang.ExceptionInInitializerError
faultActor:
faultNode:
faultDetail:
    {http://xml.apache.org/axis/}hostname:localhost
Failure trying to get the Call object; nested exception is:
    java.lang.ExceptionInInitializerError
    at
uk.co.orange.m2mconnect.orange_soap.services.MessageService.
MessageServiceSoapBi ndingStub.createCall(MessageServiceSoapBindingStub.java:271)
    at
uk.co.orange.m2mconnect.orange_soap.services.MessageService.
MessageServiceSoapBindingStub.peekMessages(MessageServiceSoapBindingStub.java:474)
    at com.Ubiquitis.MessageCentre.M2M.peekMessages(M2M.java:466)
    at
com.Ubiquitis.MessageCentre.NSPMessageServer.getMessagesAPI(NSPMessageServer.jav
a:85)
       .. and more of my code calls

I've loaded the following into oracle

axis-ant.jar        commons-logging.jar
axis.jar        jaxrpc.jar         saaj.jar
commons-discovery.jar    log4j-1.2.8.jar      wsdl4j.jar

and the jar files generated from the wsdl definition.

Have I missed out anything obvious? Is there a more appropriate NG for this query?

TIA

Robert
Signature

Take me to the world
A world that smiles
With streets instead of aisles

D Rolfe - 24 Apr 2005 09:25 GMT
Robert,

> I'm trying to call code to use a web service via Apache/axis
> (axis-1_2RC3), the code runs perfectly as a jar file locally but when
> it is loaded into Oracle and run using pl/sql it fails with
> ExceptionInInitializerError.

You do know that the 'RC' stands for 'Release Candidate'? 1.2RC3 is not
usable - we have a product that generate Java source code that runs with
with Axis 1.1 and 1.2RC3 *totally* fails our regression testing....

Try you stuff with 1.1 - even if you get *different* error messages at
least you'll get a better idea of what's going on....

David Rolfe
Orinda Software
Dublin, Ireland
www.orindasoft.com - Makers of OrindaBuild, A source generator that
connects Oracle to Axis.
Robert Marshall - 25 Apr 2005 12:21 GMT
On Sun, 24 Apr 2005, D. Rolfe wrote:

> Robert,
>
[quoted text clipped - 7 lines]
> runs with with Axis 1.1 and 1.2RC3 *totally* fails our regression
> testing....

Thanks for this - maybe RC's that I've used on other projects have been more robust

> Try you stuff with 1.1 - even if you get *different* error messages
> at least you'll get a better idea of what's going on....

I certainly do, I had to load xmlparserv2.jar grant various
permissions (in oracle) and I now I get - when running locally after a
regenerate of the java from the xsdl and a rebuild of my code

Exception in thread "main" java.lang.NoClassDefFoundError:
         org/apache/axis/handlers/soap/MustUnderstandChecker
    at org.apache.axis.client.AxisClient.<init>(AxisClient.java:49)
    at org.apache.axis.client.Service.getAxisClient(Service.java:104)
    at org.apache.axis.client.Service.<init>(Service.java:123)
    at org.apache.axis.client.ServiceFactory.createService(ServiceFactory.java:248)
    at com.Ubiquitis.MessageCentre.M2M.<init>(M2M.java:240)
       ....

Can't see any sign of MustUnderstandChecker in the axis jar files.

Robert
Signature

Take me to the world
A world that smiles
With streets instead of aisles

Robert Marshall - 25 Apr 2005 15:39 GMT
>> Try you stuff with 1.1 - even if you get *different* error messages
>> at least you'll get a better idea of what's going on....
[quoted text clipped - 7 lines]
>     at
>     org.apache.axis.client.AxisClient.<init>(AxisClient.java:49)

Ignore this it was somehow managing to load the RC3 version of the
axis jar files, must clear out the old version of the axis code in
oracle too!

Robert


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.