[JBossWS] - JBossWS1.0.4 doesn't work with JBossAS4.0.4GA
by zhi_hui
I tried to follow JBossWS1.0.4 installation intructions to install JBossWS1.0.4 on top of JBossAS4.0.4GA.
1. Copy lib/jbossws-client.jar to $JBOSS_HOME/client/
2. extracted jbossws.sar to jbossws.sar directory under $JBOSS_HOME/server/default/deploy/
3. download jboss-xml-binding.jar from http://repository.jboss.com/jboss/jbossxb/1.0.0.CR7/lib
4. replace the jboss-xml-binding.jar file in $JBOSS_HOME/client and $JBOSS_HOME/lib with the downloaded one.
After that, I tried to start JBoss, but I saw a lot of exceptions, and http://localhost:8080/jbossws could not be reached. Am I missing anything in the steps? any comments are appreciated.
Part of the exception messages are
-------------------------------------------------------------------------
2006-11-18 02:37:46,187 DEBUG [org.jboss.security.auth.login.XMLLoginConfigImpl] Try loading config as XML, url=file:/D:/work/test/jboss-4.0.4.GA/server/default/conf/login-config.xml
2006-11-18 02:37:46,203 DEBUG [org.jboss.security.auth.login.XMLLoginConfigImpl] Failed to load config as XML
org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new SAX parser
at org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:100)
at org.jboss.security.auth.login.XMLLoginConfigImpl.loadXMLConfig(XMLLoginConfigImpl.java:319)
at org.jboss.security.auth.login.XMLLoginConfigImpl.loadConfig(XMLLoginConfigImpl.java:287)
...
...
Caused by: org.jboss.xb.binding.JBossXBException: Failed to create a new SAX parser
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.(SaxJBossXBParser.java:96)
at org.jboss.xb.binding.UnmarshallerImpl.(UnmarshallerImpl.java:55)
at org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:96)
... 52 more
Caused by: javax.xml.parsers.ParserConfigurationException: Feature 'http://apache.org/xml/features/xinclude' is not recognized.
at org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(Unknown Source)
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.(SaxJBossXBParser.java:92)
... 54 more
2006-11-18 02:37:46,203 DEBUG [org.jboss.security.auth.login.XMLLoginConfigImpl] Try loading config as Sun format, url=file:/D:/work/test/jboss-4.0.4.GA/server/default/conf/login-config.xml
2006-11-18 02:37:46,218 WARN [org.jboss.security.auth.login.XMLLoginConfigImpl] End loadConfig, failed to load config: file:/D:/work/test/jboss-4.0.4.GA/server/default/conf/login-config.xml
org.jboss.security.auth.login.ParseException: Encountered "<?xml" at line 1, column 1.
Was expecting one of:
...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986966#3986966
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986966
18 years, 1 month
[JBossWS] - jbossws marshal vector object problem
by ke.ren
Hello, I met some problems when I try to use Vector in wsdl. I checked the log file and found JBoss set the objects correctly:
anonymous wrote : DEBUG [org.jboss.ws.binding.EndpointInvocation] setReturnValue: java.util.Vector
|
| 2006-11-17 17:39:39,234 DEBUG [org.jboss.ws.binding.soap.SOAPBindingProvider] bindResponseMessage: {http://ws.ebay.autoquake.com/jaws}getVehicleFeaturesInStore
|
| 2006-11-17 17:39:39,234 DEBUG [org.jboss.ws.binding.EndpointInvocation] getReturnValue
|
| 2006-11-17 17:39:39,234 DEBUG [org.jboss.ws.binding.EndpointInvocation] transformPayloadValue: java.util.Vector -> java.util.Vector
|
| 2006-11-17 17:39:39,234 DEBUG [org.jboss.ws.soap.SOAPContentElement] setObjectValue: [com.autoquake.ebay.core.pojo.ValueObjectPOJO@157a7ec, com.autoquake.ebay.core.pojo.ValueObjectPOJO@1d18707, com.autoquake.ebay.core.pojo.ValueObjectPOJO@f7f725, com.autoquake.ebay.core.pojo.ValueObjectPOJO@1829ea2, com.autoquake.ebay.core.pojo.ValueObjectPOJO@7ca9bd, com.autoquake.ebay.core.pojo.ValueObjectPOJO@6bb78a, com.autoquake.ebay.core.pojo.ValueObjectPOJO@1df02c9, com.autoquake.ebay.core.pojo.ValueObjectPOJO@300f65, com.autoquake.ebay.core.pojo.ValueObjectPOJO@142e23f, com.autoquake.ebay.core.pojo.ValueObjectPOJO@13b792, com.autoquake.ebay.core.pojo.ValueObjectPOJO@78d976, com.autoquake.ebay.core.pojo.ValueObjectPOJO@cead6, com.autoquake.ebay.core.pojo.ValueObjectPOJO@dafa2, com.autoquake.ebay.core.pojo.ValueObjectPOJO@85ce5a, com.autoquake.ebay.core.pojo.ValueObjectPOJO@ae8764, com.autoquake.ebay.core.pojo.ValueObjectPOJO@3acf34, com.autoquake.ebay.core.pojo.ValueObjectPOJO@f96845, com.autoquake.ebay.core.pojo.ValueObjectPOJO@2cb491, com.autoquake.ebay.core.pojo.ValueObjectPOJO@102d72d, com.autoquake.ebay.core.pojo.ValueObjectPOJO@17cdd50, com.autoquake.ebay.core.pojo.ValueObjectPOJO@a5b721, com.autoquake.ebay.core.pojo.ValueObjectPOJO@199ffdd, com.autoquake.ebay.core.pojo.ValueObjectPOJO@16d383a, com.autoquake.ebay.core.pojo.ValueObjectPOJO@1868b72, com.autoquake.ebay.core.pojo.ValueObjectPOJO@2cec33, com.autoquake.ebay.core.pojo.ValueObjectPOJO@1472b3c, com.autoquake.ebay.core.pojo.ValueObjectPOJO@167a209, com.autoquake.ebay.core.pojo.ValueObjectPOJO@bf00ab, com.autoquake.ebay.core.pojo.ValueObjectPOJO@1c4ed65, com.autoquake.ebay.core.pojo.ValueObjectPOJO@1bdbf51, com.autoquake.ebay.core.pojo.ValueObjectPOJO@5b7025, com.autoquake.ebay.core.pojo.ValueObjectPOJO@11fa5f0]
However, it failed to marshal this vector:
anonymous wrote : DEBUG [org.jboss.ws.soap.SOAPContentElement] Transitioning to dom-valid state, MTOM disabled
|
| 2006-11-17 17:39:39,234 DEBUG [org.jboss.ws.soap.SOAPContentElement] getXMLFragment from Object [xmlType={http://java.sun.com/jax-rpc-ri/internal}vector,javaType=class java.util.Vector]
|
| 2006-11-17 17:39:39,234 DEBUG [org.jboss.ws.jaxrpc.encoding.JAXBSerializer] serialize: [xmlName=result,xmlType={http://java.sun.com/jax-rpc-ri/internal}vector]
|
| 2006-11-17 17:39:39,250 DEBUG [org.jboss.ws.jaxrpc.encoding.JAXBSerializer] serialized: <result xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
| 2006-11-17 17:39:39,250 DEBUG [org.jboss.ws.soap.SOAPContentElement] xmlFragment: <result xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
| 2006-11-17 17:39:39,250 DEBUG [jbossws.SOAPMessage] Outgoing SOAPMessage
| <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
| <env:Header/>
| <env:Body>
| <ns1:getVehicleFeaturesInStoreResponse xmlns:ns1='http://ws.ebay.autoquake.com/jaws'>
| <result xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'/></ns1:getVehicleFeaturesInStoreResponse></env:Body></env:Envelope>
The serialized result was empty.
Is it a bug or I made any thing wrong? Thanks in advance.anonymous wrote :
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986935#3986935
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986935
18 years, 1 month