[JBossWS] - Results: jboss-4.0.4 AS and jbossws-2.0.1 Integration
by ptenn10
Hi All,
Well, thanks to help from Richard's posts, I was able to get jboss-4.0.4 AS working with jbossws-2.0.1.
I was still getting an error:
anonymous wrote :
| java.lang.NoSuchMethodError: javax.xml.bind.JAXBContext.newInstance([Ljava/lang/Class;)Ljavax/xml/bind/JAXBContext;
However, I tracked this down to the fact that jboss-4.0.4 AS ships with JAXB 1.x (not sure exact version, but I checked method signatures and know it is prior to JAXB 2), and jboss-ws 2.0.1 requires JAXB 2.
A JIRA entry by Thomas also confirms this:
http://jira.jboss.com/jira/browse/JBWS-947
If I do as Thomas suggested and drop in the jaxb-api.jar into the endorsed directory, it works. I did verify this, as a test.
However, this is not a viable solution for us, nor is modifying the contents of the jboss-j2ee.jar and jbossall-client.jar. So basically I've reached a dead-end in terms of jboss-4.0.4 and jbossws-2.0.1 integration.
Hopefully this information will be useful for someone who is trying to run jboss-4.0.4 AS with jbossws-2.0.1 and is able to make one of the two fixes described in http://jira.jboss.com/jira/browse/JBWS-947
As for me ... I'll have to look toward going to jboss-4.2.x AS and hopefully there won't be a JAXB conflict there, or look into another Web Services implementation.
Thanks,
Philip Tenn
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095749#4095749
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095749
18Â years, 9Â months
[JBoss Seam] - seam setup does not work
by pczurak
Trying to run seam setup for the first time for Jboss Seam 2.0.0.CR2
and getting the following errors: How do I fix this?
init:
[artifact:dependencies] Downloading: org/jboss/seam/jboss-seam-gen/2.0.0.CR2/jboss-seam-gen-2.0.0.CR2.pom
[artifact:dependencies] Downloading: org/jboss/seam/jboss-seam-gen/2.0.0.CR2/jboss-seam-gen-2.0.0.CR2.jar
[artifact:dependencies] An error has occurred while processing the Maven artifact tasks.
[artifact:dependencies] Diagnosis:
[artifact:dependencies]
[artifact:dependencies] Unable to resolve artifact: Missing:
[artifact:dependencies] ----------
[artifact:dependencies] 1) org.jboss.seam:jboss-seam-gen:jar:2.0.0.CR2
[artifact:dependencies]
[artifact:dependencies] Try downloading the file manually from the project website.
[artifact:dependencies]
[artifact:dependencies] Then, install it using the command:
[artifact:dependencies] mvn install:install-file -DgroupId=org.jboss.seam -DartifactId=jboss-seam-gen \
[artifact:dependencies] -Dversion=2.0.0.CR2 -Dpackaging=jar -Dfile=/path/to/file
[artifact:dependencies] Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.jboss.seam -DartifactId=jboss-seam-gen \
[artifact:dependencies] -Dversion=2.0.0.CR2 -Dpackaging=jar -Dfile=/path/to/file \
[artifact:dependencies] -Durl=[url] -DrepositoryId=[id]
[artifact:dependencies]
[artifact:dependencies] Path to dependency:
[artifact:dependencies] 1) unspecified:unspecified:jar:0.0
[artifact:dependencies] 2) org.jboss.seam:jboss-seam-gen:jar:2.0.0.CR2
[artifact:dependencies]
[artifact:dependencies] ----------
[artifact:dependencies] 1 required artifact is missing.
[artifact:dependencies]
[artifact:dependencies] for artifact:
[artifact:dependencies] unspecified:unspecified:jar:0.0
[artifact:dependencies]
[artifact:dependencies] from the specified remote repositories:
[artifact:dependencies] central (http://repo1.maven.org/maven2)
[artifact:dependencies]
BUILD FAILED
/Applications/jboss-seam-2.0.0.CR2/seam-gen/build.xml:14: Unable to resolve artifact: Missing:
----------
1) org.jboss.seam:jboss-seam-gen:jar:2.0.0.CR2
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.jboss.seam -DartifactId=jboss-seam-gen \
-Dversion=2.0.0.CR2 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.jboss.seam -DartifactId=jboss-seam-gen \
-Dversion=2.0.0.CR2 -Dpackaging=jar -Dfile=/path/to/file \
-Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) unspecified:unspecified:jar:0.0
2) org.jboss.seam:jboss-seam-gen:jar:2.0.0.CR2
----------
1 required artifact is missing.
for artifact:
unspecified:unspecified:jar:0.0
from the specified remote repositories:
central (http://repo1.maven.org/maven2)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095748#4095748
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095748
18Â years, 9Â months
[JBoss Seam] - Re: Integration Testing with TestNG and embeddedEjb
by b.reeve
My Seam application has Spring beans injected into some of the components. When i try to do an integration testing, I get this exception
| Error writing 'searchTerm' on type com.test.seam.ui.backing.SearchBean_$$_javassist_0
| at javax.el.BeanELResolver.setValue(BeanELResolver.java:112)
| at javax.el.CompositeELResolver.setValue(CompositeELResolver.java:68)
| at com.sun.el.parser.AstValue.setValue(AstValue.java:140)
| at com.sun.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:255)
| at org.jboss.seam.util.UnifiedELValueBinding.setValue(UnifiedELValueBinding.java:44)
| at org.jboss.seam.mock.SeamTest$Request.setValue(SeamTest.java:374)
| at test.testNG.UITestNG$1.updateModelValues(UITestNG.java:55)
| at org.jboss.seam.mock.SeamTest$Request.run(SeamTest.java:476)
| at test.testNG.UITestNG.testRegister(UITestNG.java:74)
| Caused by: org.jboss.seam.RequiredException: In attribute requires non-null value: searchBean.searchService
| at org.jboss.seam.Component.getValueToInject(Component.java:1919)
| at org.jboss.seam.Component.injectAttributes(Component.java:1368)
| at org.jboss.seam.Component.inject(Component.java:1195)
| at org.jboss.seam.interceptors.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
| at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
| at org.jboss.seam.interceptors.SynchronizationInterceptor.aroundInvoke(SynchronizationInterceptor.java:31)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
| at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
| at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:151)
| at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:87)
| atcom.test.seam.ui.backing.SearchBean_$$_javassist_0.setSearchTerm(SearchBean_$$_javassist_0.java)
| at javax.el.BeanELResolver.setValue(BeanELResolver.java:108)
| ... 30 more
|
I have added the SpringContextLoader in the components.xml file and my application context is getting loaded.
Correct me if I am wrong, I believe that I dont have to specify @In(required=false) because I want the service object to be injected when the seam component is installed. So, is there anything other than this that i need to do to get the Spring beans injected into my Seam component during Integration testing. Please help, I am totally struggling with this.
Thanks.....
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095742#4095742
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095742
18Â years, 9Â months