Problems of run muse example simple on JBoss(new)

View: New views
3 Messages — Rating Filter:   Alert me  

Problems of run muse example simple on JBoss(new)

by SARA1232007 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Chris,

I have solved the problem of deploying Muse simple example on JBoss: The xml Parser packges provided by Muse are conflit with those provided by JBoss, to solve this , delete xalan-2.7.0.jar、xercesImpl-2.8.1.jar under muse-2.2.0-bin\lib\common, and then rebuild the example code。

But there are still some problems when running Muse simple exmple:
At server side, MiniServlet throws java.lang.NoClassDefFoundError exception. At client side, AbstractResourceClient throws SoapFault.

Can you tell me how to solve this?

Thanks.
Detailed information at server and client side are as following:

--------------------------------------------------------------------------
Server side:
14:51:01,171 ERROR [STDERR] java.lang.ExceptionInInitializerError
14:51:01,171 ERROR [STDERR]     at org.apache.muse.core.AbstractEnvironment.getD
ocument(AbstractEnvironment.java:332)
14:51:01,171 ERROR [STDERR]     at org.apache.muse.core.platform.AbstractIsolati
onLayer.initialize(AbstractIsolationLayer.java:151)
14:51:01,171 ERROR [STDERR]     at org.apache.muse.core.platform.mini.MiniServle
t.createIsolationLayer(MiniServlet.java:55)
14:51:01,171 ERROR [STDERR]     at org.apache.muse.core.platform.mini.MiniServle
t.doPost(MiniServlet.java:69)
14:51:01,171 ERROR [STDERR]     at javax.servlet.http.HttpServlet.service(HttpSe
rvlet.java:710)
14:51:01,171 ERROR [STDERR]     at javax.servlet.http.HttpServlet.service(HttpSe
rvlet.java:803)
14:51:01,171 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterCha
in.internalDoFilter(ApplicationFilterChain.java:290)
14:51:01,171 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterCha
in.doFilter(ApplicationFilterChain.java:206)
14:51:01,171 ERROR [STDERR]     at org.jboss.web.tomcat.filters.ReplyHeaderFilte
r.doFilter(ReplyHeaderFilter.java:96)
14:51:01,171 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterCha
in.internalDoFilter(ApplicationFilterChain.java:235)
14:51:01,171 ERROR [STDERR]     at org.apache.catalina.core.ApplicationFilterCha
in.doFilter(ApplicationFilterChain.java:206)
14:51:01,171 ERROR [STDERR]     at org.apache.catalina.core.StandardWrapperValve
.invoke(StandardWrapperValve.java:235)
14:51:01,171 ERROR [STDERR]     at org.apache.catalina.core.StandardContextValve
.invoke(StandardContextValve.java:191)
14:51:01,171 ERROR [STDERR]     at org.jboss.web.tomcat.security.SecurityAssocia
tionValve.invoke(SecurityAssociationValve.java:190)
14:51:01,171 ERROR [STDERR]     at org.jboss.web.tomcat.security.JaccContextValv
e.invoke(JaccContextValve.java:92)
14:51:01,171 ERROR [STDERR]     at org.jboss.web.tomcat.security.SecurityContext
EstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
14:51:01,171 ERROR [STDERR]     at org.jboss.web.tomcat.security.SecurityContext
EstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
14:51:01,171 ERROR [STDERR]     at org.apache.catalina.core.StandardHostValve.in
voke(StandardHostValve.java:127)
14:51:01,171 ERROR [STDERR]     at org.apache.catalina.valves.ErrorReportValve.i
nvoke(ErrorReportValve.java:102)
14:51:01,171 ERROR [STDERR]     at org.jboss.web.tomcat.service.jca.CachedConnec
tionValve.invoke(CachedConnectionValve.java:158)
14:51:01,171 ERROR [STDERR]     at org.apache.catalina.core.StandardEngineValve.
invoke(StandardEngineValve.java:109)
14:51:01,171 ERROR [STDERR]     at org.apache.catalina.connector.CoyoteAdapter.s
ervice(CoyoteAdapter.java:330)
14:51:01,171 ERROR [STDERR]     at org.apache.coyote.http11.Http11Processor.proc
ess(Http11Processor.java:828)
14:51:01,171 ERROR [STDERR]     at org.apache.coyote.http11.Http11Protocol$Http1
1ConnectionHandler.process(Http11Protocol.java:601)
14:51:01,171 ERROR [STDERR]     at org.apache.tomcat.util.net.JIoEndpoint$Worker
.run(JIoEndpoint.java:447)
14:51:01,171 ERROR [STDERR]     at java.lang.Thread.run(Thread.java:595)
14:51:01,171 ERROR [STDERR] Caused by: java.lang.ClassCastException: org.apache.
xerces.jaxp.DocumentBuilderFactoryImpl
14:51:01,171 ERROR [STDERR]     at javax.xml.parsers.DocumentBuilderFactory.newI
nstance(Unknown Source)
14:51:01,171 ERROR [STDERR]     at org.apache.muse.util.xml.XmlUtils.createBuild
er(XmlUtils.java:206)
14:51:01,171 ERROR [STDERR]     at org.apache.muse.util.xml.XmlUtils.createDocum
ent(XmlUtils.java:240)
14:51:01,171 ERROR [STDERR]     at org.apache.muse.util.xml.XmlUtils.<clinit>(Xm
lUtils.java:111)


14:51:01,171 ERROR [STDERR]     ... 26 more
14:51:01,171 ERROR [[ApacheMuseServlet]] Servlet.service() for servlet ApacheMus
eServlet threw exception
java.lang.NoClassDefFoundError
        at org.apache.muse.core.platform.mini.MiniServlet.doPost(MiniServlet.jav
a:76)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
        at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
lter.java:96)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:235)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:191)
        at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
yAssociationValve.java:190)
        at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
e.java:92)
        at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.proce
ss(SecurityContextEstablishmentValve.java:126)
        at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invok
e(SecurityContextEstablishmentValve.java:70)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:102)
        at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedC
onnectionValve.java:158)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:330)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:828)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ss(Http11Protocol.java:601)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44
7)
        at java.lang.Thread.run(Thread.java:595)

_---------------------------------------------------------
Client side:

[CLIENT TRACE] SOAP envelope contents (outgoing):

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
    <soap:Header>
        <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://127.0.0.1:8086/simple/services/SimpleResource</wsa:To>
        <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://ws.apache.org/muse/test/simple/first/FirstOperation</wsa:Action>
        <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:eb58eb84-14be-ee0c-d14c-8dc22a27f625</wsa:MessageID>
        <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
            <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
        </wsa:From>
        <muse-wsa:ResourceId
            xmlns:muse-wsa="http://ws.apache.org/muse/addressing"
            xmlns:wsa="http://www.w3.org/2005/08/addressing" wsa:IsReferenceParameter="true">MuseResource-1</muse-wsa:ResourceId>
    </soap:Header>
    <soap:Body>
        <first:FirstOperation xmlns:first="http://ws.apache.org/muse/test/simple/first">Hello, World!</first:FirstOperation>
    </soap:Body>
</soap:Envelope>

[Fatal Error] :8:180: The element type "HR" must be terminated by the matching end-tag "</HR>".
org.apache.muse.ws.addressing.soap.SoapFault: The element type "HR" must be terminated by the matching end-tag "</HR>".
        at org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClient.java:298)
        at org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClient.java:254)
        at org.apache.muse.test.simple.SimpleResourceClient.firstOperation(SimpleResourceClient.java:65)
        at org.apache.muse.test.simple.SimpleTestClient.main(SimpleTestClient.java:103)



Re: Problems of run muse example simple on JBoss(new)

by SARA1232007 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Chris,

This problem is also caused by the muse xml parsers conflicting with those in JBoss. I replaced the xml parsers related package in JBoss with those provided in muse(They are three ones under muse's lib/common directory). It works.

Cheers,
Sara

Re: Problems of run muse example simple on JBoss(new)

by Chris Twiner :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Glad to hear it works Sara.  As I mentioned in the first email
responses the jboss classloader is responsible for the correct loading
of javax.* packages as per the j2ee spec.

IME this causes untold grief, every seperate jvm and platform comes
with javax issues.  Its a shame that the spec is written like that,
I'm very sure jboss is just following it.  Can't recommend OSGi enough
for solving these kinds of issues.

On Thu, Mar 5, 2009 at 1:57 PM, SARA1232007 <cyl_axis@...> wrote:

>
> Hi Chris,
>
> This problem is also caused by the muse xml parsers conflicting with those
> in JBoss. I replaced the xml parsers related package in JBoss with those
> provided in muse(They are three ones under muse's lib/common directory). It
> works.
>
> Cheers,
> Sara
>
> --
> View this message in context: http://www.na bble.com/Problems-of-run-muse-example-simple-on-JBoss%28new%29-tp22300722p22351106.html
> Sent from the Muse - Dev mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: muse-dev-unsubscribe@...
> For additional commands, e-mail: muse-dev-help@...
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@...
For additional commands, e-mail: muse-dev-help@...