Axis and NoClassDefFoundError

We have software that was developed using Axis to connect to a webservice. It
works fine. However, when we add the software to another system that is run under
weblogic 5.1 we get the following error when the axis classes are trying to be
invoked:
java.lang.reflect.InvocationTargetException: java.lang.NoClassDefFoundError: java/lang/reflect/InvocationHandler
Any ideas as to why this would happen?
Thanks,
Tim

Hi Tim,
I don't really follow what you are saying. Are you saying that you are receiving
these exceptions in an instance of WLS 5.1, when you deploy the Apache Axis stuff
in it? If so, here's the JAVACLASSPATH and WEBLOGICCLASSPATH I use:
JAVACLASSPATH=d:\bea\WLS\5.1\lib\weblogic510sp9boot.jar;c:\beasys\licenses\WLS;d
:\bea\WLS\5.1\classes\boot;d:\bea\jdk130\lib\rt.jar
WEBLOGICCLASSPATH=c:\apache\xalan\2.2.0\bin\xerces.jar;c:\apache\xalan\2.2.0\bin
\xalan.jar;d:\bea\WLS\5.1\lib\weblogic510sp9.jar;d:\bea\WLS\5.1\lib\persistence\
WebLogic_RDBMS.jar;d:\bea\WLS\5.1\lib\weblogic-tags-510.jar;d:\bea\WLS\5.1\class
es;d:\bea\WLS\5.1\lib\weblogicaux.jar;.\webservices;.\webapps\axis\WEB-INF\lib\c
ommons-logging.jar;.\webapps\axis\WEB-INF\lib\log4j-1.2.4.jar;.\webapps\axis\WEB
-INF\lib\axis.jar;.\webapps\axis\WEB-INF\lib\jaxrpc.jar;.\webapps\axis\WEB-INF\l
ib\saaj.jar;.\webapps\axis\WEB-INF\lib\tt-bytecode.jar;.\webapps\axis\WEB-INF\li
b\wsdl4j.jar;.\webapps\axis\WEB-INF\lib\xmlsec.jar
I copied the Apache Axis stuff to a directory under my WLS 5.1 install, so I can
modify things without affecting the original files. My startWebLogic.cmd is in:
d:\bea\WLS\5.1\apache
The weblogic.properties file for my server is in:
d:\bea\WLS\5.1\apache\webapps
Here's all I have in there:
######## START OF weblogic.properties #########
weblogic.httpd.webApp.axis=webapps/axis
weblogic.security.ssl.enable=true
weblogic.httpd.logFileName=../logs/axis/access.log
weblogic.httpd.logRotationType=size
weblogic.httpd.maxHttpHeaderSize=4096
weblogic.system.logFile=../logs/axis/weblogic.log
weblogic.jdbc.logFileName=../logs/axis/jdbc.log
weblogic.password.axisadmin=password
######## END OF weblogic.properties #########
The Axis web application is in exploded into:
d:\bea\WLS\5.1\apache\webapps\axis
That directory contains:
WEB-INF
index.htm
happyaxis.jsp
StockQuoteService.jws
I am able to run all the samples, and server-config.wsdd is in the WEB-INF directory.
I think I had to change code in the happyaxis.jsp, to get things to work. I have
attached it.
The d:\bea\WLS\5.1\apache\webapps\axis\WEB-INF\lib directory contains:
axis.jar
commons-logging.jar
jaxrpc.jar
log4j-1.2.4.jar
saaj.jar
tt-bytecode.jar
wsdl4j.jar
xmlsec.jar
Regards,
Mike Wooten
"Tim " <[email protected]> wrote:
>
We have software that was developed using Axis to connect to a webservice.
It
works fine. However, when we add the software to another system that
is run under
weblogic 5.1 we get the following error when the axis classes are trying
to be
invoked:
java.lang.reflect.InvocationTargetException: java.lang.NoClassDefFoundError:
java/lang/reflect/InvocationHandler
Any ideas as to why this would happen?
Thanks,
Tim[happyaxis.jsp]

Similar Messages

  • OBIEE 11G: Can I set limit on number of ticks only on horizontal axis and zoom in if I want to?

    Hello
    Is there a way I can restrict the total number of ticks on horizontal axis only? Say I want to set it to show only 24 ticks on horizontal axis. I am putting date and hour on the horizontal axis, if I take 3 dates of data, I will have 3X24 = 72 ticks on the chart, but I want the chart to show only 24 ticks. So it's pretty much ticks for 3 hours on the horizontal chart in this case.
    Can this be done?
    Second, if the first can be done, then can I then zoom in to any ticks on the horizontal axis, and it would show be the break down of this ticks, which is made up with 3 hour's performance separately?
    Thanks

    The zooming feature was ok, but what if I want to zoom in on just a specific area between the ticks when only 1 click?
    Any thoughts?

  • Log scale of the axis and the best-fit line

    I try to plot a graph and set the scale of the x-axis to log scale and then i try to plot a linear trendline (best fit line). but the linear trendline does now show on the graph. but if i set the axis scale to linear, then the trendline does show.  i will need my graph in the log scale and also a linear best fit line. please help me out

    0
    100
    3.00E-09
    71.52
    1.00E-08
    57.3
    3.00E-08
    39.15
    1.00E-07
    24.13
    3.00E-07
    14.77
    1.00E-06
    7.22
    i meant you these data, and left column is x-axis and gonna use log scale for the axis. the right column is the y axis. and then i need a best fit line for this graph.. hope you can help me

  • Charts: Gap between Vertical Axis and the chart area

    Friends,
    I have a really wierd issue and I am sure I am doing
    something wrong.
    I am trying to align 2 charts that are placed vertically. I
    want to align the left vertical axis and the gridlines within them.
    Aligning the left vertical axis is easy and done but aligning the
    grids is becoming challenging and I have already spent a few hours
    on this problem.
    Here is a wrong chart image ...
    Wrong
    chart image
    The line of the LineChart (in the top chart) is touching the
    left and right edges where as the bottom chart bars do not touch
    the left/right edges. Due to this the gridlines are not aligned.
    I had managed to solve this problem but I am not sure what
    part of the code solved the problem. Here is the right chart image:
    Right
    chart image
    In this chart, the line of the linechart (in the top chart)
    is not touching the left and right boundary hence the gridlines are
    alignd with each other.
    I wonder what property of the chart controls the series
    touching the left/right vertical axis or boundary. Your help is
    appreciated.
    Thanks

    here is some more information ...
    I started changing some of the properties of the chart which
    I mentioned is a RIGHT CHART and this is what I learnt ...
    It was a CartesianChart hence it was creating the gap
    between the left/right vertical axis and the actual chart area
    (refer to the right chart image).
    I changed it to a LineChart and it started behaving like the
    chart in the WRONG CHART image.
    Is there a solution to this problem?

  • Is that possible to set up a multiple y-axis and single x-axis in one waveformchart (in LabVIEW 8.0)?

    Hello!
    Is that possible to set up a multiple y-axis and single x-axis in one waveform chart using LabVIEW 8.0?
    Because I need to display several channels in the same chart, if one channel has a very big data range and the others not, the channels with smaller data range will not be displayed very clear.
    Thanks!

    See similar thread at http://forums.ni.com/ni/board/message?board.id=170&message.id=154428&requireLogin=False

  • Chart, axis and customize grid and labels

    Hi!
    I created simple LineChart. Chart is dynamic. It changes when
    I choose something from ComboBox.
    I want to customize vertical axis (mx:verticalAxis) to show
    grid and label for: 0,1,2,3,4...etc.
    Now I have:
    <mx:verticalAxis>
    <mx:LinearAxis interval="1" minimum="0"/>
    </mx:verticalAxis>
    But It doesn't work. Sometimes I see grid/labels in: 0,3,6
    and sometimes 0,2,4,6 !! My maximum is changing but I think it
    doesn't matter. I want to show label/grid for each integer number.
    How to set it?
    Thanks for help! :)
    newman

    Hi,
    Yes you can do this....you need to increase Top value for xtitle in cordalayout.cxml at this location OracleBI\web\app\res\s_oracle10\chartsupport.
    Totaly we had five types in this LEFT LEGEND WITH TITLES ,RIGHT LEGEND WITH TITLES ,TOP LEGEND WITH TITLES,BOTTOM LEGEND WITH TITLES,NO LEGEND WITH TITLES.
    So based on the type of view you used in you chart,change x and y axis titles,title and legends top,left,width,height as per your need.
    I think you used BOTTOM LEGEND WITH TITLES,as per you requirement you need to increase xtitle-top value in order to increase size between x-axis and label.
    **Restart Presentation and BI Server*
    Thanks,
    Srikanth
    http://bintelligencegroup.wordpress.com/

  • Difference between ClassNotFoundException and NoClassDefFoundError?

    What is the difference between ClassNotFoundException and NoClassDefFoundError? When does each of them get throwns? To me they look very similar.

    proveindia wrote:
    http://www.javafundu.com/2009/12/noclassdeffounderror.html
    On behalf of the OP, Captain Morgan, his Hammond Organ, and everyone else from three years ago, thanks for that.

  • URGENT!!! How to plot x-axis and y-axis in a graphic?

    Good nigth!
    I have to do a work in what I've to plot a Spline given some values enter by the user.
    I just know how to plot the Spline, but now I have to plot it with the x-axis and y-axis, and the associated values.
    I'm in a big trouble! I'm in a hurry.
    I will be thankful if anyone can give me a code that works.
    I need this to finish a work that I have to deliver in a few weeks.
    Please, help me!!!
    Katia.

    /**you can start simple and enhance as you progress* /
    Point[] pnts=new Point[100];
    read(pnts.x);//find suitable input reader!
    read(pnts[i].y);
    and loop until all points are entered
    now you can use the array of points to draw lines from
    i=0 to i=1
    i=1 to i=2

  • Biginner question Axis and tomcat

    Hi,
    I get this error when I'm running me web service with tomcat 5.5 and axis 1.4:
    Exception: AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: java.net.ConnectException: Connection refused: connect
    faultActor:
    faultNode:
    faultDetail:
            {http://xml.apache.org/axis/}stackTrace:java.net.ConnectException: Connection refused: connect
            at java.net.PlainSocketImpl.socketConnect(Native Method)
            at java.net.PlainSocketImpl.doConnect(Unknown Source)
            at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
            at java.net.PlainSocketImpl.connect(Unknown Source)
            at java.net.SocksSocketImpl.connect(Unknown Source)
            at java.net.Socket.connect(Unknown Source)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
            at java.lang.reflect.Method.invoke(Unknown Source)
            at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:153)
            at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:120)
            at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)
            at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)
            at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
            at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
            at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
            at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
            at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
            at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
            at org.apache.axis.client.Call.invoke(Call.java:2748)
            at org.apache.axis.client.Call.invoke(Call.java:1784)
            at org.apache.axis.client.AdminClient.process(AdminClient.java:439)
            at org.apache.axis.client.AdminClient.process(AdminClient.java:404)
            at org.apache.axis.client.AdminClient.process(AdminClient.java:410)
            at org.apache.axis.client.AdminClient.process(AdminClient.java:320)
            at org.apache.axis.client.AdminClient.main(AdminClient.java:463)
            {http://xml.apache.org/axis/}hostname:yaelI created with eclipse web project with
    I set in: D:\Tomcat\webapps\axis
    D:\Tomcat\webapps\axis\WEB-INF\classes\Hello\HelloWorld.class
    D:\Tomcat\webapps\axis\deploy.wsdd
    D:\Tomcat\webapps\axis\undeploy.wsdd
    Thanks in advance
    Yael.

    Yael, you have found there a great tutorial and I do not see you I could give you a more detailed approach than the one found in this "Axis Hello World Example".
    The only step I think is useless is the first one in the Eclipse walk through, for the rest, just follow the steps and you will end up with a running web service and a running client.
    I notice you have not followed the tutorial already: your project is named "axis" and not "axis-ws-service" or "axis-ws-client".
    Maybe start over and follow the steps this time?

  • Incompatibility axis and oracle libraries

    Hi,
    I have built an application with JDeveloper 10.1.3.4. Include several Web Services Clients generated with JDeveloper. Besides, I have to include a several "jars" to realize an invocation to axis web service. These "jar" posses an embedded Web Service client axis.
    I have read that a single application (EAR) cannot contain one Web service that uses Axis, and another that uses Oracle. Specifically, an Axis Web service calling out to another Web service via a Web services client created using JAX-RPC implementation is not support.
    http://oracledoc.boyko.biz/web.1013/b14433/opensrc.htm
    The problematic classes are:
    Oracle Axis
    jaxrpc-api.jar jax-rpc.jar
    saaj-api.jar saaj.jar
    orawsdl.jar wsdl4j-1.5.1.jar
    In JDeveloper, I have not included the jar from axis (jax-rpc.jar, saaj.jar, wsdl4j-1.5.1.jar) and the application realize all invocations (Oracle an Axis) in a right way.
    When I deploy de application in OAS 10.1.2 or OAS 10.1.3.4, application fails in any invocation. I have tested several posibilities but at the end deployed application failed.
    a) Including only "jaxrpc-api.jar", "saaj-api.jar", "orawsdl.jar"
    b) Including only "jax-rpc.jar", "saaj.jar", "wsdl4j-1.5.1.jar"
    c) The six jars (axis and oracle)
    ¿Could you say me as the way to avoid this problem in an OAS? ¿Why runs perfectly in JDeveloper althoug I haven't set the jar required by axis?
    Thank you,

    yes we have a standalone version of 10g being converted to RAC mode..
    old version
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    converted to
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
    With the Partitioning, Real Application Clusters, OLAP and Data Mining options
    i understand the binaries would be different, but are the libraries different too?

  • Axis and Allies GUI trouble.

    I'm trying write Axis and Allies and I can't figure out how to code the GUI. I want each portion of the map (coutryies, water zones) to be objects with properties. I want to be able to highlight them, click them, set properties etc. So far I was thinking I could create custom components and add them to the screen, but I haven't had much luck.
    Any suggestions or direction would be greatly appreciated.

    I was trying to move the topic to the correct forum, but I wasn't sure how to delete the old one.

  • "Missing port information" and NoClassDefFoundError

    I'm developing a Web Service using JWSPD1.2, and I'm having some problem in executing a client which accesses to the service I'm publishing.
    On Client side the error is:
    java.rmi.ServerException: Missing port information
    at com.sun.xml.rpc.StreamingSender._send
    On Server side (file $(JWSPD_HOME)/logs/launcher.server.log) I found out that the thrown exception is a NoClassDefFoundError.
    The class that is not found, however, is included in a library that I'm linking on the command line, so I can't understand why this exception is thrown...
    Has anyone of you been involved in a similar problem?
    Perhaps I have to link the library somewhere else, but I don't know where...
    Thanks in advance for your help!

    Hi ! I am getting the same error at the client side :
    java.rmi.ServerException: Missing port information
    at com.sun.xml.rpc.client.StreamingSender._raiseFault(StreamingSender.java:370)
    at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:231)
    at com.sun.xml.rpc.client.dii.CallInvokerImpl.doInvoke(CallInvokerImpl.java:56)
    at com.sun.xml.rpc.client.dii.BasicCall.invoke(BasicCall.java:281)
    at DIIClient.main(DIIClient.java:111)
    can u just tell me how the problem was solved and what were the jar files u had set in the classpath. Pls help me i am new to webservices. Thanx in advance

  • Not able to access web service with axis and tomcat

    Dear all
    i am trying to access web service using axis in tomcat.
    i downloaded axis-bin-1_4.zip, unzipped it and installed it properly in tomcat.
    i had tested axis, its working fine.
    i had created a simple java class(a sample class from book) and deployed it in axis. i also created a client(a java consol class) for accessing that web service. but its giving error. i have no idea why this is comming.
    plz point me in right direction.
    thanks in advance
    The error is:
    Exception in thread "main" AxisFault
    faultCode: {http://xml.apache.org/axis/}HTTP
    faultSubcode:
    faultString: (404)/axis/ArithmeticProcessor.jws
    faultActor:
    faultNode:
    faultDetail:
            {}:return code:  404
    <html><head><title>Apache Tomcat/6.0.14 - Error report</tit
    le><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;ba
    ckground-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;
    color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Ari
    al,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-f
    amily:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-famil
    y:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:
    Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color :
    black;}A.name {color : black;}HR {color : #525D76;}--></style> </hea
    d><body><h1>HTTP Status 404 - /axis/ArithmeticProcessor.jws</h
    1><HR size="1" noshade="noshade"><p><b>
    type</b> Status report</p><p><b>message</b> <u&
    gt;/axis/ArithmeticProcessor.jws</u></p><p><b>descriptio
    n</b> <u>The requested resource (/axis/ArithmeticProcessor.jws) is n
    ot available.</u></p><HR size="1" noshade="noshade
    "><h3>Apache Tomcat/6.0.14</h3></body></html>
            {http://xml.apache.org/axis/}HttpErrorCode:404
    (404)/axis/ArithmeticProcessor.jws
            at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.j
    ava:744)
            at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
            at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg
    y.java:32)
            at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
            at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
            at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
            at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
            at org.apache.axis.client.Call.invoke(Call.java:2767)
            at org.apache.axis.client.Call.invoke(Call.java:2443)
            at org.apache.axis.client.Call.invoke(Call.java:2366)
            at org.apache.axis.client.Call.invoke(Call.java:1812)
            at ArithmeticClient.main(ArithmeticClient.java:50)

    Hi ,
    Please go through this link and check in this way only you created the webservice correctly or not. If not follow and do it definitely will get you the webservice access by iphone or any application.
    www.scribd.com/doc/19255987/Web-Services-in-Abap

  • How to auto change the name in X-Axis and Y-Axis in chart ?

    Hi, I want to plot data into a chart. I make a selection switch for each channel, there are for temperature measurement and voltage measurement.
    What I want is when I switch the selection to temperature measurement, the Y-axis´s name change into Temperature and when it is voltage change into Voltage.
    Can LabView do that ?
    Citras
    Solved!
    Go to Solution.
    Attachments:
    testtttttttttttttttttt.vi ‏59 KB

    There are a lot of things that you could do to make your life easier in your code but here is how I would start with the question that you asked.
    Tim
    Johnson Controls
    Holland Michigan
    Attachments:
    Example.vi ‏14 KB

  • Really odd y axis and scatter graph HEEEEELLLLPPP

    Ok so whenever I try to plot a graph of certain data, it always comes up with the same graph which is not the one I am trying to plot!!! There are also two 2s on the y axis this is reeeaaaallly anoying help would be much appretiated!
    I would post a screen shot if i could

    The multiple 2's are probably due to the format of the numbers on chart and the number of grid lines you have. The actual numbers are probably something like 1.5 and 2.25, which are both being rounded to 2 for display on the chart. If you format the axis so it displays more decimals, you'll see the difference between the two 2's.
    Are you sure you are following the correct steps in making a chart? While the multiple 2's makes sense, the problem about it always creating the same chart does not.

Maybe you are looking for

  • Trouble with windows XP

    I recently tried to reinstall window xp in bootcamp. I reformatted C: and tried to re-install my windows XP with service pack 2. Every time I try to install it automatically ejects and says it cant find the installation disk. Any thoughts?

  • Why are my pictures not showing up in Photo Stream?

    Ok, I have set up upgraded everything to the correct versions.  I have set up and enabled Photo Stream on my iMac and on my iPhone.  I have enabled Photo Stream on the iPhone.  I have set up my iCloud services.  I can drag pictures to the Photo Strea

  • API to udapte po_vendor_sites_all

    Please let us if there is any API to udpate po_vendor_sites_all. as i need to udpate large amount of data Thanks, Murugan

  • Hide variant button in menu toolbar

    Hi experts I would hide the variant button in the menu toolbar for the transaction vl10g Link:[http://img104.imageshack.us/img104/5439/vl10g.png] somebody can help me?? thanks Marco

  • Fit Gap Analysis

    Hi, can anyone give me some real time scenarios of gaps in SAP HR?