Hi Sujoy

 

It looks like you may be using the 1.0.4 version to compile the jars but that you are still using the 2.0 version at the time you generate the stack trace below. It includes

 

        at org.apache.xmlbeans.impl.newstore2.Locale.<clinit>(Locale.java:130)

The Locale class does not exist in the 1.0.4 version. Make sure you use the 1.0.4 scomp and remove the 2.0 xbean.jar from your classpath and you should be fine.

 

Cheers,

 

Lawrence

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 01, 2005 8:50 PM
To: [email protected]
Subject: RE: Regarding incompatibility in weblogic created jar and scomp created jar

 


Hi all,
Thanks again for the help.  I have downloaded the xmlbean 1.0.4 from the mentioned site. It has been successgully installed. It creates the jar file which is of same size as that of the jar file created by the weblogic. However, I am getting the same error, I am putting the stack trace here, so that you can analyze what is going wrong over here.....

java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at com.ctb.monarch.misc.plugin.ConnectorPlugIn.init(ConnectorPlugIn.java:104)
        at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:839)
        at org.apache.struts.action.ActionServlet.init(ActionServlet.java:332)
        at javax.servlet.GenericServlet.init(GenericServlet.java:258)
        at weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(ServletStubImpl.java:1028)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
        at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:904)
        at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:883)
        at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:822)
        at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:3333)
        at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:3278)
        at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:3259)
        at weblogic.servlet.internal.WebAppServletContext.setStarted(WebAppServletContext.java:5949)
        at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:862)
        at weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationContainer.java:2127)
        at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2168)
        at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2115)
        at weblogic.management.deploy.slave.SlaveDeployer$Application.setActivation(SlaveDeployer.java:3082)
        at weblogic.management.deploy.slave.SlaveDeployer.setActivationStateForAllApplications(SlaveDeployer.java:1751)
        at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:359)
        at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(DeploymentManagerServerLifeCycleImpl.java:229)
        at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)
        at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:966)
        at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:361)
        at weblogic.Server.main(Server.java:32)

Caused by: java.lang.NoSuchMethodError: javax.xml.namespace.QName.<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
        at org.apache.xmlbeans.impl.newstore2.Locale.<clinit>(Locale.java:130)
        at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:334)
        at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:298)
        at com.monarch.fcSchema.ConstantxmlDocument$Factory.parse(Unknown Source)
        at com.ctb.monarch.misc.plugin.Initializer.getConstantConfigurationList(Initializer.java:286)
        at com.ctb.monarch.misc.plugin.Initializer.putInApplicationScopeMap(Initializer.java:77)
        ... 30 more

This error was not there when I use the XMLSchema.jar created by the weblogic.

Please help me in siorting out the problem.
Warm Regards,
Sujoy Banerjee


"Rajiv Balachandran" <[EMAIL PROTECTED]>

06/02/2005 03:52 AM

Please respond to
[email protected]

To

<[email protected]>

cc

 

Subject

RE: Regarding incompatibility in weblogic created jar and scomp         created jar

 

 

 




Hi Sujoy,
 
You can get the xmlbeans-1.0.4 binaries by following the download link on the apache xmlbeans site and choosing one of the mirror site and further navigating to the ‘binaries’ directories (ex. http://apache.mirrors.hoobly.com/xmlbeans/binaries/).
 
Hope this helps.
 
-Rajiv
 

 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent:
Wednesday, June 01, 2005 6:36 AM
To:
[email protected]
Subject:
Re: Regarding incompatibility in weblogic created jar and scomp created jar

 

Hi Krishna,

Thanks for your suggestio. However I couldn't find ur mentioned XMLBean version. Can u plz provide the URL where from we can d/l the xmlbean-1.0.4.


Pls get in touch with me, for any clarification.

Warm Regards,
Sujoy Banerjee

krishna Prasad Rao <[EMAIL PROTECTED]>

06/01/2005 11:20 AM

 

Please respond to
[email protected]

 

To

[email protected]

cc

 

Subject

Re: Regarding incompatibility in weblogic created jar and scomp         created jar


 

 

 

 





Hi Sujoy,

I too faced the same problem,and rectified it by using
xmlbeans-1.0.4.
So use the 1.0.4 version of XMLBeans and ur problem
will be solved.

Thanks & Regards,
Prasad

--- [EMAIL PROTECTED] wrote:

>
> Hi all,
> In our project, we use the weblogic sp4. We use the
> XML Schema compiler of
> Weblogic which comes with the Weblogic sp4. It
> creates one jar file  after
> compiling all the XSd files. We have 4 XSD files,
> which I am attaching
> with this mail. Weblogic creates XMLSchema.jar
> (131KB) after compiling
> thyese 4 files.
>
> Our client does not want to use the weblogic
> workshop, and the build will
> be through an ANT sctript in a Solaris m/c. So to
> make the XMLSchema
> independent of the weblogic, we are trying to use
> xmlbeans-2.0.0-beta1,
> provided by Apache XMLBean group. When we run the
> scomp with the same 4
> XSD files, it creates a jar file
> XMLSchema.jar(137KB) with the command
> scomp -out XMLSchmea.jar <4 xsd files>.
>
> These two jars are incompatible, as when we are
> trying to parse the same
> XMLs using the scomp generated jar, we get errors in
> XMLSchemaLoader....If
> reqd, I can send the Stacktrace....
>
> Is there any way to work around to this? Can the
> schemaCompiler used by
> Weblogic sp4, is available to run like scomp?
>
> Please get uin touch with me for any further
> query....
>
> Sujoy Banerjee
>
> Notice: The information contained in this e-mail
> message and/or attachments to it may contain
> confidential or privileged information.   If you are
> not the intended recipient, any dissemination, use,
> review, distribution, printing or copying of the
> information contained in this e-mail message and/or
> attachments to it are strictly prohibited.   If you
> have received this communication in error, please
> notify us by reply e-mail or telephone and
> immediately and permanently delete the message and
> any attachments.  Thank you>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
[EMAIL PROTECTED]



                               
__________________________________
Discover Yahoo!
Find restaurants, movies, travel and more fun for the weekend. Check it out!
http://discover.yahoo.com/weekend.html


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


ForwardSourceID:NT0000D0EA    

Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you


 
ForwardSourceID:NT0000D15E    

Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you

 

Reply via email to