Re: [Axis2] AxisFault: java.lang.ExceptionInInitializerError / NoClassDefFoundError

2006-11-29 Thread Shaoguang Cong
  Thanks, Robert!  The problem is resolved. 
   
  To adapt to my file structure, I only used the wsdl2java ant task from the 
Apache site. When I did re-build in my IDE, it wiped out the XML Bean resources 
generated.  I re-generated the XML Beans resources before zipped the code in 
the aar file.  Since the package name seems randomly generated each time, the 
older package name must have been used in the compiled classes. That's why the 
engine was looking for a different package name and definitely it cannot be 
found.
   
  Shaoguang
   
  robert lazarski <[EMAIL PROTECTED]> wrote:
   
  Classic error: 

http://ws.apache.org/axis2/tools/1_1/CodegenToolReference.html

  "An important detail is that an XMLBean class file is also generated by 
WSDL2Java, TypeSystemHolder.class. That file is placed into build/classes by 
the above ant task and will be needed to compile the generated sources. A 
frequent problem is users get an error such as:
  ClassNotFoundException : Cannot load SchemaTypeSystem. Unable to load class 
with name 
schemaorg_apache_xmlbeans.system.s68C41DB812F52C975439BA10FE4FEE54.TypeSystemHolder.
 Make sure the generated binary files are on the classpath.
  The TypeSystemHolder.class generated by WSDL2Java must be placed in your 
classpath in order to avoid this error."
  So one way to solve the issue is to follow the ant task in the tutorial. 

HTH,
Robert 


-
Everyone is raving about the all-new Yahoo! Mail beta.

Re: [Axis2] AxisFault: java.lang.ExceptionInInitializerError / NoClassDefFoundError

2006-11-28 Thread robert lazarski

Classic error:

http://ws.apache.org/axis2/tools/1_1/CodegenToolReference.html

"An important detail is that an XMLBean class file is also generated by
WSDL2Java, TypeSystemHolder.class. That file is placed into build/classes by
the above ant task and will be needed to compile the generated sources. A
frequent problem is users get an error such as:

*ClassNotFoundException : Cannot load SchemaTypeSystem. Unable to load class
with name
schemaorg_apache_xmlbeans.system.s68C41DB812F52C975439BA10FE4FEE54.TypeSystemHolder.
Make sure the generated binary files are on the classpath.*

The TypeSystemHolder.class generated by WSDL2Java must be placed in your
classpath in order to avoid this error."
So one way to solve the issue is to follow the ant task in the tutorial.

HTH,
Robert

On 11/28/06, Shaoguang Cong <[EMAIL PROTECTED]> wrote:


I've trouble with the mail server to reply to the message with Robert's
response. Try again by removed original message.

The default tomcat server log doesn't give much info about this
exception. It only logs the exception name, without stack trace.
With help from debug, my problem is narrowed down to the generated XMLBean
resources class TypeSystemHolder cannot be found. The class is deployed in
the aar file under the package sC22C...".  But the AxisEngine on the
tomcat is looking for the
TypeSystemHolder class in a package "s5808A".  Why it does that?
The generated and deployed XMLBean resources package isn't used.  Do you
know how the AxisEngine figure out the package name?  Could this be a bug in
axis2? I'm using tomcat 5.0.5.

The real exception captured from debug:
  detailMessage: java.lang.String = "Cannot load SchemaTypeSystem.
Unable to load class with name
schemaorg_apache_xmlbeans.system.s5808ATypeSystemHolder. Make sure the
generated binary
files are on the classpath."

Thanks.
Shaoguang


*robert lazarski <[EMAIL PROTECTED]>* wrote:

Um, could you paste the entire log(s)? Its not clear from your post which
class is missing from your classpath.

Robert

--
Check out the all-new Yahoo! Mail 
beta-
 Fire up a more powerful email and get things done faster.




Re: [Axis2] AxisFault: java.lang.ExceptionInInitializerError / NoClassDefFoundError

2006-11-28 Thread Shaoguang Cong
I've trouble with the mail server to reply to the message with Robert's 
response. Try again by removed original message.
   
  The default tomcat server log doesn't give much info about this 
exception. It only logs the exception name, without stack trace.

  With help from debug, my problem is narrowed down to the generated XMLBean 
resources class TypeSystemHolder cannot be found. The class is deployed in the 
aar file under the package sC22C...".  But the AxisEngine on the tomcat is 
looking for the 
TypeSystemHolder class in a package "s5808A".  Why it does that?  The 
generated and deployed XMLBean resources package isn't used.  Do you know how 
the AxisEngine figure out the package name?  Could this be a bug in axis2? I'm 
using tomcat 5.0.5.
   
  The real exception captured from debug: 
  detailMessage: java.lang.String = "Cannot load SchemaTypeSystem. 
Unable to load class with name 
schemaorg_apache_xmlbeans.system.s5808ATypeSystemHolder. Make sure the 
generated binary 
files are on the classpath."
   
Thanks.  
  Shaoguang


robert lazarski <[EMAIL PROTECTED]> wrote: 
  Um, could you paste the entire log(s)? Its not clear from your post which 
class is missing from your classpath. 

Robert 
 
-
Check out the all-new Yahoo! Mail beta - Fire up a more powerful email and get 
things done faster.

Re: [Axis2] AxisFault: java.lang.ExceptionInInitializerError / NoClassDefFoundError

2006-11-28 Thread robert lazarski

Um, could you paste the entire log(s)? Its not clear from your post which
class is missing from your classpath.

Robert

On 11/28/06, Shaoguang Cong <[EMAIL PROTECTED]> wrote:


Hi,
I try to convert my axis1.3 projcet into axis2.1.1. After deployed
the services on tomcat 5.0.5, I cannot get it to run due to some kind of
initialization problem. Please help if you know what could
cause the problem.

My client calls the services at Service EPR:
http://localhost:8080/axis2/services/ClaimService

In the tomcat log, the exception from the first call:
org.apache.axis2.transport.http.AxisServlet doPost
SEVERE:  java.lang.ExceptionInInitializerError

For subsequent calls, it generates a different exception:
 org.apache.axis2.transport.http.AxisServlet doPost
SEVERE:  java.lang.NoClassDefFoundError

Client log:

First run,
org.apache.axis2.AxisFault: java.lang.ExceptionInInitializerError
 at org.apache.axis2.description.OutInAxisOperationClient.execute(
OutInAxisOperation.java:308)
 at com.xyz.wstubs.ClaimServiceStub.getClaimListByClaimNumber(
ClaimServiceStub.java:585)

Subsequent runs,
org.apache.axis2.AxisFault: java.lang.NoClassDefFoundError
 at org.apache.axis2.description.OutInAxisOperationClient.execute(
OutInAxisOperation.java:308)
 at com.xyz.claim.wstubs.ClaimServiceStub.getClaimListByClaimNumber(
ClaimServiceStub.java:585)

Thanks.
Shaoguang

--
Check out the all-new Yahoo! Mail 
beta-
 Fire up a more powerful email and get things done faster.




[Axis2] AxisFault: java.lang.ExceptionInInitializerError / NoClassDefFoundError

2006-11-28 Thread Shaoguang Cong
Hi, 
  I try to convert my axis1.3 projcet into axis2.1.1. After deployed the 
services on tomcat 5.0.5, I cannot get it to run due to some kind of 
initialization problem. Please help if you know what could cause the problem.  
   
  My client calls the services at Service EPR: 
http://localhost:8080/axis2/services/ClaimService
   
  In the tomcat log, the exception from the first call:
  org.apache.axis2.transport.http.AxisServlet doPost 
  SEVERE:  java.lang.ExceptionInInitializerError
   
  For subsequent calls, it generates a different exception:
org.apache.axis2.transport.http.AxisServlet doPost 
  SEVERE:  java.lang.NoClassDefFoundError

   
  Client log:
   
  First run,
  org.apache.axis2.AxisFault: java.lang.ExceptionInInitializerError
   at 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:308)
   at 
com.xyz.wstubs.ClaimServiceStub.getClaimListByClaimNumber(ClaimServiceStub.java:585)

   
  Subsequent runs,
  org.apache.axis2.AxisFault: java.lang.NoClassDefFoundError
   at 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:308)
   at 
com.xyz.claim.wstubs.ClaimServiceStub.getClaimListByClaimNumber(ClaimServiceStub.java:585)

   
  Thanks.
  Shaoguang

 
-
Check out the all-new Yahoo! Mail beta - Fire up a more powerful email and get 
things done faster.