1 Reply Latest reply on Nov 5, 2004 2:58 PM by Hannu Kaartinen

    (500) Internal Server Error, when running WebServices Client

    Hannu Kaartinen Newbie

      I have JBoss 3.2.6 installed with 'Duke's Bank' sample application deployed. Everything is working fine except, when I try to run WebServices Client (ant -f jboss-build.xml run-ws-client). I will get the following errors:

      C:\jboss-3.2.6\j2eetutorial\bank>ant -f jboss-build.xml run-ws-client
      Buildfile: jboss-build.xml

      run-ws-client:
      [echo] C:\jboss-3.2.6\j2eetutorial\apache-ant-1.6.2\bin\..\lib\ant-launcher
      .jar;C:\jboss-3.2.6\j2eetutorial\bank;C:\jboss-3.2.6\server\all\deplo
      y\jbossweb-tomcat50.sar\servlet-api.jar;C:\jboss-3.2.6\server\all\deploy\jbosswe
      b-tomcat50.sar\jsp-api.jar;C:\jboss-3.2.6\j2eetutorial\apache-ant-1.6.2\lib\ant-
      antlr.jar;C:\jboss-3.2.6\j2eetutorial\apache-ant-1.6.2\lib\ant-apache-bcel.jar;C
      :\jboss-3.2.6\j2eetutorial\apache-ant-1.6.2\lib\ant-apache-bsf.jar;C:\jboss-3.2.
      6\j2eetutorial\apache-ant-1.6.2\lib\ant-apache-log4j.jar;C:\jboss-3.2.6\j2eetuto
      rial\apache-ant-1.6.2\lib\ant-apache-oro.jar;C:\jboss-3.2.6\j2eetutorial\apache-
      ant-1.6.2\lib\ant-apache-regexp.jar;C:\jboss-3.2.6\j2eetutorial\apache-ant-1.6.2
      \lib\ant-apache-resolver.jar;C:\jboss-3.2.6\j2eetutorial\apache-ant-1.6.2\lib\an
      t-commons-logging.jar;C:\jboss-3.2.6\j2eetutorial\apache-ant-1.6.2\lib\ant-commo
      ns-net.jar;C:\jboss-3.2.6\j2eetutorial\apache-ant-1.6.2\lib\ant-icontract.jar;C:
      \jboss-3.2.6\j2eetutorial\apache-ant-1.6.2\lib\ant-jai.jar;C:\jboss-3.2.6\j2eetu
      torial\apache-ant-1.6.2\lib\ant-javamail.jar;C:\jboss-3.2.6\j2eetutorial\apache-
      ant-1.6.2\lib\ant-jdepend.jar;C:\jboss-3.2.6\j2eetutorial\apache-ant-1.6.2\lib\a
      nt-jmf.jar;C:\jboss-3.2.6\j2eetutorial\apache-ant-1.6.2\lib\ant-jsch.jar;C:\jbos
      s-3.2.6\j2eetutorial\apache-ant-1.6.2\lib\ant-junit.jar;C:\jboss-3.2.6\j2eetutor
      ial\apache-ant-1.6.2\lib\ant-launcher.jar;C:\jboss-3.2.6\j2eetutorial\apache-ant
      -1.6.2\lib\ant-netrexx.jar;C:\jboss-3.2.6\j2eetutorial\apache-ant-1.6.2\lib\ant-
      nodeps.jar;C:\jboss-3.2.6\j2eetutorial\apache-ant-1.6.2\lib\ant-starteam.jar;C:\
      jboss-3.2.6\j2eetutorial\apache-ant-1.6.2\lib\ant-stylebook.jar;C:\jboss-3.2.6\j
      2eetutorial\apache-ant-1.6.2\lib\ant-swing.jar;C:\jboss-3.2.6\j2eetutorial\apach
      e-ant-1.6.2\lib\ant-trax.jar;C:\jboss-3.2.6\j2eetutorial\apache-ant-1.6.2\lib\an
      t-vaj.jar;C:\jboss-3.2.6\j2eetutorial\apache-ant-1.6.2\lib\ant-weblogic.jar;C:\j
      boss-3.2.6\j2eetutorial\apache-ant-1.6.2\lib\ant-xalan1.jar;C:\jboss-3.2.6\j2eet
      utorial\apache-ant-1.6.2\lib\ant-xslp.jar;C:\jboss-3.2.6\j2eetutorial\apache-ant
      -1.6.2\lib\ant.jar;C:\jboss-3.2.6\j2eetutorial\apache-ant-1.6.2\lib\xercesImpl.j
      ar;C:\jboss-3.2.6\j2eetutorial\apache-ant-1.6.2\lib\xml-apis.jar;C:\j2sdk1.4.2_0
      4\lib\tools.jar
      [java] (500)Internal Server Error
      [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava
      .java:172)
      [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:705)
      [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:177)

      [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:83)
      [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
      va:275)
      [java] at org.apache.tools.ant.Task.perform(Task.java:364)
      [java] at org.apache.tools.ant.Target.execute(Target.java:341)
      [java] at org.apache.tools.ant.Target.performTasks(Target.java:369)
      [java] at org.apache.tools.ant.Project.executeTarget(Project.java:1214)

      [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1062
      )
      [java] at org.apache.tools.ant.Main.runBuild(Main.java:673)
      [java] at org.apache.tools.ant.Main.startAnt(Main.java:188)
      [java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
      [java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
      [java] Caused by: (500)Internal Server Error
      [java] at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTP
      Sender.java:723)
      [java] at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.j
      ava:132)
      [java] at org.apache.axis.strategies.InvocationStrategy.visit(Invocatio
      nStrategy.java:73)
      [java] at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:162)
      [java] at org.apache.axis.SimpleChain.invoke(SimpleChain.java:125)
      [java] at org.apache.axis.client.AxisClient.invoke(AxisClient.java:192)

      [java] at org.apache.axis.client.Call.invokeEngine(Call.java:3029)
      [java] at org.apache.axis.client.Call.invoke(Call.java:3014)
      [java] at org.apache.axis.client.Call.invoke(Call.java:2609)
      [java] at org.apache.axis.client.Call.invoke(Call.java:2524)
      [java] at org.apache.axis.client.Call.invokeInternal(Call.java:1976)
      [java] at org.apache.axis.client.Call.invoke(Call.java:1917)
      [java] at WSClient.main(Unknown Source)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
      sorImpl.java:39)
      [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
      hodAccessorImpl.java:25)
      [java] at java.lang.reflect.Method.invoke(Method.java:324)
      [java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.jav
      a:193)
      [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava
      .java:130)
      [java] ... 13 more
      [java] --- Nested Exception ---
      [java] AxisFault
      [java] faultCode: {http://xml.apache.org/axis/}HTTP
      [java] faultSubcode:
      [java] faultString: (500)Internal Server Error
      [java] faultActor:
      [java] faultNode:
      [java] faultDetail:
      [java] {}string: return code: 500
      [java] Apache Tomcat/5.0.28 - Error re
      port<!--H1 {font-family:Tahoma,Arial,sans-serif;co
      lor:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial
      ,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-famil
      y:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
      BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B
      {font-family: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&
      gt; <h1>HTTP Status 500 - </h1>type Ex
      ception reportmessage &
      lt;/p>description The server encountered
      an internal error () that prevented it from fulfilling this request.&
      lt;/p>exception java.lang.NullPointerE
      xception
      [java] org.jboss.net.axis.Deployment.oldGetService(Deployment.java:255)

      [java] org.jboss.net.axis.Deployment.getService(Deployment.java:275)
      [java] org.apache.axis.configuration.FileProvider.getService(FileProvid
      er.java:290)
      [java] org.apache.axis.AxisEngine.getService(AxisEngine.java:302)
      [java] org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.ja
      va:900)
      [java] javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      [java] org.apache.axis.transport.http.AxisServletBase.service(AxisServl
      etBase.java:372)
      [java] javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      [java] org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHea
      derFilter.java:75)
      [java] note The
      full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs
      .&l
      t;h3>Apache Tomcat/5.0.28</h3>
      [java]
      [java] (500)Internal Server Error
      [java] at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTP
      Sender.java:723)
      [java] at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.j
      ava:132)
      [java] at org.apache.axis.strategies.InvocationStrategy.visit(Invocatio
      nStrategy.java:73)
      [java] at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:162)
      [java] at org.apache.axis.SimpleChain.invoke(SimpleChain.java:125)
      [java] at org.apache.axis.client.AxisClient.invoke(AxisClient.java:192)

      [java] at org.apache.axis.client.Call.invokeEngine(Call.java:3029)
      [java] at org.apache.axis.client.Call.invoke(Call.java:3014)
      [java] at org.apache.axis.client.Call.invoke(Call.java:2609)
      [java] at org.apache.axis.client.Call.invoke(Call.java:2524)
      [java] at org.apache.axis.client.Call.invokeInternal(Call.java:1976)
      [java] at org.apache.axis.client.Call.invoke(Call.java:1917)
      [java] at WSClient.main(Unknown Source)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
      sorImpl.java:39)
      [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
      hodAccessorImpl.java:25)
      [java] at java.lang.reflect.Method.invoke(Method.java:324)
      [java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.jav
      a:193)
      [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava
      .java:130)
      [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:705)
      [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:177)

      [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:83)
      [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
      va:275)
      [java] at org.apache.tools.ant.Task.perform(Task.java:364)
      [java] at org.apache.tools.ant.Target.execute(Target.java:341)
      [java] at org.apache.tools.ant.Target.performTasks(Target.java:369)
      [java] at org.apache.tools.ant.Project.executeTarget(Project.java:1214)

      [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1062
      )
      [java] at org.apache.tools.ant.Main.runBuild(Main.java:673)
      [java] at org.apache.tools.ant.Main.startAnt(Main.java:188)
      [java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
      [java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)

      Also AccountController service seems to be deployed, if I check Axis (http://localhost:8080/jboss-net/servlet/AxisServlet) services.

      My environment is:

      Windows 2000 Server
      JBoss 3.2.6
      Java 1.4.2_04
      Ant 1.6.2