I believe it is because of my service.aar file
classloader issue.
Am I able to reference any classes defined in a jar
file packaged in my ear file ? If yes, how ?
I have 2 web applications packaged in a same ear file,
one is my web services jar file and they are sharing
some libraries.
For example, if I put XmlSchema.jar and stax-api.jar
in ear level but not under web-inf/lib, I have got
NoClassFound exception.
Any help is welcome.
Thanks
John
INFO [org.apache.axis2.deployment.DeploymentEngine]
Invalid service DialerService.aar due to
java.lang.NoClassDefFoundError:
javax/xml/namespace/QName
at
org.apache.ws.commons.schema.constants.Constants.<clinit>(Constants.java:40)
at
org.apache.ws.commons.schema.XmlSchemaCollection.init(XmlSchemaCollection.java:120)
at
org.apache.ws.commons.schema.XmlSchemaCollection.<init>(XmlSchemaCollection.java:267)
at
org.apache.axis2.description.WSDL2AxisServiceBuilder.getXMLSchema(WSDL2AxisServiceBuilder.java:944)
at
org.apache.axis2.description.WSDL2AxisServiceBuilder.copyExtensibleElements(WSDL2AxisServiceBuilder.java:1067)
at
org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService(WSDL2AxisServiceBuilder.java:221)
at
org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLFile(ArchiveReader.java:192)
at
org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLs(ArchiveReader.java:261)
at
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:604)
--- robert lazarski <[EMAIL PROTECTED]> wrote:
> Probably - your ejb / war classloader isolation you
> are doing with
> META-INF classpath is a seperate issue.
> jboss-app.xml just tells jboss
> that the classes of your jars inside your EAR take
> priority over their
> jars in a higher classloader .
>
> HTH,
> Robert
>
> On 9/8/06, Z Chen <[EMAIL PROTECTED]> wrote:
> > Thanks
> >
> > Do I still have to add the Class-Path in my web
> > manifest.mf file ?
> >
> >
> >
> > --- robert lazarski <[EMAIL PROTECTED]>
> wrote:
> >
> > > You need to create one and get it inside your
> > > META-INF of you ear -
> > > its optional. Google for the jboss wiki that
> > > explains what I'm talking
> > > about.
> > >
> > > HTH,
> > > Robert
> > >
> > > On 9/8/06, Z Chen <[EMAIL PROTECTED]> wrote:
> > > > All the axis2 jars are inside the ear file,
> and I
> > > > don't have jboss-app.xml in my ear file, only
> has
> > > > ear.deployer defined as
> > > >
> > > > <server>
> > > > <!-- EAR deployer, remove if you are not
> using
> > > ear
> > > > deployments -->
> > > > <mbean
> code="org.jboss.deployment.EARDeployer"
> > > > name="jboss.j2ee:service=EARDeployer">
> > > > <!-- A flag indicating if ear
> deployments
> > > should
> > > > have their own scoped
> > > > class loader to isolate their classes
> from
> > > other
> > > > deployments.
> > > > -->
> > > > <attribute
> name="Isolated">true</attribute>
> > > > <!-- A flag indicating if the ear
> components
> > > > should have in VM call
> > > > optimization disabled.
> > > > -->
> > > > <attribute
> > > name="CallByValue">false</attribute>
> > > > </mbean>
> > > > </server>
> > > >
> > > >
> > > > --- robert lazarski <[EMAIL PROTECTED]>
> > > wrote:
> > > >
> > > > > Are you placing the axis2 jars at the war
> level
> > > or
> > > > > the ear level ?
> > > > > jboss-web.xml in the war case, jboss-app.xml
> in
> > > the
> > > > > ear case.
> > > > >
> > > > > Hint in the ear case:
> > > > >
> > > > > <jboss-app>
> > > > > <loader-repository>
> > > > > jboss.loader:loader=myapp.ear
> > > > >
> > > > >
> > > >
> > >
> >
>
<loader-repository-config>java2ParentDelegation=true</loader-repository-config>
> > > > > </loader-repository>
> > > > > </jboss-app>
> > > > >
> > > > > HTH,
> > > > > Robert
> > > > >
> > > > > On 9/8/06, Z Chen <[EMAIL PROTECTED]> wrote:
> > > > > > Hi,
> > > > > >
> > > > > > I need an urgent help here. I am deploying
> a
> > > ear
> > > > > file
> > > > > > with Axis2 web services as a war file in
> it.
> > > In my
> > > > > > manifest file, I included all the jar
> files
> > > such
> > > > > as
> > > > > > stax-api.jar.
> > > > > >
> > > > > > But during the service invoking, Jboss
> server
> > > > > hangs at
> > > > > > QName.getLocalPart() in one of the
> generated
> > > > > Receiver
> > > > > > classes. And it blows up the JBoss server
> if I
> > > > > send
> > > > > > another service request.
> > > > > >
> > > > > > I realized stax-api.jar has QName class in
> it
> > > and
> > > > > > JBoss also has namespace.jar which has
> QName
> > > > > class.
> > > > > > Did anyone experience the similar problem
> > > before
> > > > > or
> > > > > > anyone know how to track down the problem
> ?
> > > > > >
> > > > > > Thanks !
> > > > > >
> > > > > > Looking forward to any type of advice.
> > > > > >
> > > > > > John
> > > > > >
> > > > > >
> > >
> __________________________________________________
> > > > > > Do You Yahoo!?
> > > > > > Tired of spam? Yahoo! Mail has the best
> spam
> > > > > protection around
> > > > > > http://mail.yahoo.com
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail:
> > > > > [EMAIL PROTECTED]
> > > > > > For additional commands, e-mail:
> > > > > [EMAIL PROTECTED]
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > >
> >
>
---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail:
> > > > > [EMAIL PROTECTED]
> > > > > For additional commands, e-mail:
> > > > > [EMAIL PROTECTED]
> > > > >
> > > > >
> > > >
> > > >
> > > >
> __________________________________________________
> > > > Do You Yahoo!?
> > > > Tired of spam? Yahoo! Mail has the best spam
> > > protection around
> > > > http://mail.yahoo.com
> > > >
> > > >
> > >
> >
>
---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
> >
>
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
>
=== message truncated ===
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]