[JBossWS] - Re: Jbossws Tutorial.
by jtestori
i'm using jboss-4.2.1.GA and the wsconsume in the bin-folder
| @echo off
|
| rem $Id: wsgen.bat 2158 2007-01-27 06:20:59Z jason.greene(a)jboss.com $
|
| @if not "%ECHO%" == "" echo %ECHO%
| @if "%OS%" == "Windows_NT" setlocal
|
| set DIRNAME=.\
| if "%OS%" == "Windows_NT" set DIRNAME=%~dp0%
| set PROGNAME=run.bat
| if "%OS%" == "Windows_NT" set PROGNAME=%~nx0%
|
| rem Read all command line arguments
|
| REM
| REM The %ARGS% env variable commented out in favor of using %* to include
| REM all args in java command line. See bug #840239. [jpl]
| REM
| REM set ARGS=
| REM :loop
| REM if [%1] == [] goto endloop
| REM set ARGS=%ARGS% %1
| REM shift
| REM goto loop
| REM :endloop
|
| set JAVA=%JAVA_HOME%\bin\java
| set JBOSS_HOME=%DIRNAME%\..
| rem Setup the java endorsed dirs
| set JBOSS_ENDORSED_DIRS=%JBOSS_HOME%\lib\endorsed
|
| rem Setup the wstools classpath
| set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JAVA_HOME%/lib/tools.jar
| set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/jboss-xml-binding.jar
| set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/wstx.jar
| set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/activation.jar
| set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/javassist.jar
| set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/getopt.jar
| set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/jaxb-api.jar
| set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/stax-api.jar
| set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/jaxb-impl.jar
| set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/jaxb-xjc.jar
| set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/jaxws-rt.jar
| set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/jaxws-tools.jar
| set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/jbossws-spi.jar
| set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/jbossall-client.jar
| set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/jboss-saaj.jar
| set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/jboss-jaxrpc.jar
| set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/jboss-jaxws.jar
| set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/jbossws-client.jar
| set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/log4j.jar
| set WSCONSUME_CLASSPATH=%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/mail.jar
|
| rem Execute the JVM
| "%JAVA%" %JAVA_OPTS% -Djava.endorsed.dirs="%JBOSS_ENDORSED_DIRS%" -Dlog4j.configuration=wstools-log4j.xml -classpath "%WSCONSUME_CLASSPATH%" org.jboss.wsf.spi.tools.cmd.WSConsume %*
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096886#4096886
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096886
18Â years, 9Â months
[Installation, Configuration & DEPLOYMENT] - Hang on in the isolated ClassLoader.
by jeff.yuchang
Hi,
I've deployed an EAR that contains a EJB jar and RAR.
The RAR is the CXF based RA, In the RA, I am establishing a web service to connect the EJB.
I am setting the jboss-app.xml, "java2ParentDelegation=false", then it will get hang on when I start the web service. I set the Log to the Fine, and the log is shown below:
My jboss-app.xml:
| <?xml version="1.0" encoding="UTF-8"?>
| <jboss-app>
| <loader-repository>
| apache.cxf:loader=cxf.ear
| <loader-repository-config>
| java2ParentDelegation=false
| </loader-repository-config>
| </loader-repository>
| <module>
| <service>cxf-ds.xml</service>
| </module>
| </jboss-app>
|
|
application.xml
|
| <?xml version="1.0" encoding="UTF-8"?>
| <application>
| <display-name>cxf-jca</display-name>
| <module>
| <ejb>greeterejb.jar</ejb>
| </module>
| <module>
| <connector>cxf.rar</connector>
| </module>
| </application>
|
|
cxf-ds.xml
|
| <?xml version="1.0" encoding="UTF-8"?>
| <connection-factories>
| <no-tx-connection-factory>
| <jndi-name>CXFConnector</jndi-name>
| <rar-name>cxf.ear#cxf.rar</rar-name>
| <connection-definition>org.apache.cxf.connector.CXFConnectionFactory</connection-definition>
| </no-tx-connection-factory>
| </connection-factories>
|
|
Can someone shed some light on this error, I am stucked with it right now,
since it doesn't throw any exceptions... got hang on here...
And if I set the "java2ParentDelegation=true", it works fine, but I need to use the "java2ParentDelegation=false", since CXF is using some jars which are conflict with some jars that JBoss shipped.
Any comments are greatly appreciated!
-------------------------------------------
FINE: Checking system property javax.xml.bind.JAXBContext
Oct 19, 2007 5:13:24 PM javax.xml.bind.ContextFinder find
FINE: not found
Oct 19, 2007 5:13:24 PM javax.xml.bind.ContextFinder find
FINE: Checking META-INF/services
Oct 19, 2007 5:13:24 PM javax.xml.bind.ContextFinder find
FINE: Reading jar:file:/C:/jboss-4.0.5.GA/server/default/tmp/deploy/tmp7396cxf.ear-contents/cxf.rar-
contents/jaxb-impl-2.1.4.jar!/META-INF/services/javax.xml.bind.JAXBContext
Oct 19, 2007 5:13:24 PM javax.xml.bind.ContextFinder newInstance
FINE: Trying to load com.sun.xml.bind.v2.ContextFactory
Oct 19, 2007 5:13:24 PM javax.xml.bind.ContextFinder newInstance
FINE: loaded com.sun.xml.bind.v2.ContextFactory from jar:file:/C:/jboss-4.0.5.GA/server/default/tmp/
deploy/tmp7396cxf.ear-contents/cxf.rar-contents/jaxb-impl-2.1.4.jar!/com/sun/xml/bind/v2/ContextFact
ory.class
Oct 19, 2007 5:13:24 PM com.sun.xml.bind.v2.ContextFactory createContext
FINE: Property com.sun.xml.bind.XmlAccessorFactoryis not active. Using JAXB's implementation
Oct 19, 2007 5:13:24 PM org.jboss.logging.JDK14LoggerPlugin debug
FINE: setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@183ee9a, cl=org.j
boss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@105e560{ url=null ,addedOrder=0}
Oct 19, 2007 5:13:24 PM org.jboss.logging.JDK14LoggerPlugin debug
FINE: setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@183ee9a, cl=org.j
boss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@e07e6b{ url=null ,addedOrder=0}
Oct 19, 2007 5:13:24 PM org.jboss.logging.JDK14LoggerPlugin debug
FINE: setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@183ee9a, cl=org.j
boss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@8bb9d1{ url=null ,addedOrder=0}
Oct 19, 2007 5:13:24 PM org.jboss.logging.JDK14LoggerPlugin debug
FINE: setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@183ee9a, cl=org.j
boss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@1d232d1{ url=null ,addedOrder=0}
Oct 19, 2007 5:13:24 PM org.jboss.logging.JDK14LoggerPlugin debug
FINE: setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@183ee9a, cl=org.j
boss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@1ffb2eb{ url=null ,addedOrder=0}
Thanks
Jeff
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096879#4096879
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096879
18Â years, 9Â months