[JBoss Seam] - Success! Re: Seam 2.0.0GA + Maven2 doesn`t work...
by jsolderitsch
The last post mentioned the inclusion of drools.
Turns out that was part of the answer -- I went to the Seam root.pom and lifted the drools clauses from there (minus the version info) and that got me past the identity problem.
Then, since the seam-gen project depends on RichFaces, I had to include dependencies for this -- again I went to the root Seam pom and copied and pasted, minus the version.
Then it turned out that I had some dependencies that I added to allow maven to compile my code or that were derived from other included dependencies that I had to exclude from the deployable war file. Otherwise I was seeing JBoss exceptions in the console.
Adding explicit dependencies in my pom.xml for these WITH <scope>provided</scope> elements did the trick there.
And lo and behold, the web app actually worked!
Two remaining glitches.
My app uses a MySQL datasource. This *-ds.xml file is included in the maven project in the resources folder. The war file that is produced then has this file in the classes folder within WEB-INF. JBoss does not seem to find it there -- I had to make a copy and put that in the server deploy folder manually. Can maven be taught to do that?
And I would love to have the war file actually deployed to my JBoss instance by maven itself. Is this possible? I may need to do some ant runner tricks I guess.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112574#4112574
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4112574
18 years, 4 months
[JBoss Seam] - Re: @DataModel s:link h:commandButton h:dataTable
by djfjboss
Damian
Many thanks for your reply - I could have RTFMd many times over and still not have spotted my error. I assumed that I could access the variable via the #{a.b} notation - it never occurred to me to try #{b} unless I'd already defined @Name("b") somewhere. This style of reference is not one that comes naturally to me.
With this small but very important change both s:link and h:commandButton work - the issue regarding submitting the form does not seem relevant, but maybe it is!
Unfortunately, this success leads to another newbie question!
I'm more than happy to contribute this to the pot and looked at the Wiki page to see how to do it. I created a new entry under Tips (DataModel/DataSelection easy when you know how) which takes me to an undefined page that I then provided some content for and saved it. But when I returned the content had all gone! Kindly indulge my ignorance a little further and I'll put the material on the Wiki.
Thanks again,
David
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112571#4112571
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4112571
18 years, 4 months
[JBossWS] - Exception while running JbossWS service client
by techie_techie
Hi,
I have a service up and running on Jboss 4.2.2 GA. I can browse the WSDL file and see the content.
Now using wsconsume I generated the client side stubs and wrote a test client. The testclient class path refers to jars in "lib" of Jboss Ws 2.0.2 "lib"
but i am getting the following exception.
Any pointers what could be missing or correct proedcure to create clients using wsconsume?
.....
| Exception in thread "main" javax.xml.ws.WebServiceException: Unable to load Provider: Failed to load javax.xml.ws.spi.Provider: com.sun.xml.ws.spi.ProviderImpl
| at javax.xml.ws.spi.Provider.provider(Provider.java:98)
| at javax.xml.ws.Service.<init>(Service.java:83)
| at com.danny.techtalk.ex1.echo.EchoImplService.<init>(EchoImplService.java:53)
| at com.danny.techtalk.ex1.echo.TestClient2.main(TestClient2.java:12)
| Caused by: java.lang.IllegalStateException: Failed to load javax.xml.ws.spi.Provider: com.sun.xml.ws.spi.ProviderImpl
| at javax.xml.ws.spi.ProviderLoader.loadProvider(ProviderLoader.java:96)
| at javax.xml.ws.spi.Provider.provider(Provider.java:90)
| ... 3 more
| Caused by: java.lang.ExceptionInInitializerError
| at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
| at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
| at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
| at java.lang.reflect.Constructor.newInstance(Unknown Source)
| at java.lang.Class.newInstance0(Unknown Source)
| at java.lang.Class.newInstance(Unknown Source)
| at javax.xml.ws.spi.ProviderLoader.loadProvider(ProviderLoader.java:91)
| ... 4 more
| Caused by: javax.xml.ws.WebServiceException: Error creating JAXBContext for W3CEndpointReference.
| at com.sun.xml.ws.spi.ProviderImpl.getEPRJaxbContext(ProviderImpl.java:188)
| at com.sun.xml.ws.spi.ProviderImpl.<clinit>(ProviderImpl.java:65)
| ... 11 more
| Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions
| Two classes have the same XML type name "address". Use @XmlType.name and @XmlType.namespace to assign different names to them.
| this problem is related to the following location:
| at com.sun.xml.ws.developer.MemberSubmissionEndpointReference$Address
| at public com.sun.xml.ws.developer.MemberSubmissionEndpointReference$Address com.sun.xml.ws.developer.MemberSubmissionEndpointReference.addr
| at com.sun.xml.ws.developer.MemberSubmissionEndpointReference
| this problem is related to the following location:
| at javax.xml.ws.wsaddressing.W3CEndpointReference$Address
| at private javax.xml.ws.wsaddressing.W3CEndpointReference$Address javax.xml.ws.wsaddressing.W3CEndpointReference.address
| at javax.xml.ws.wsaddressing.W3CEndpointReference
| Two classes have the same XML type name "elements". Use @XmlType.name and @XmlType.namespace to assign different names to them.
| this problem is related to the following location:
| at com.sun.xml.ws.developer.MemberSubmissionEndpointReference$Elements
| at public com.sun.xml.ws.developer.MemberSubmissionEndpointReference$Elements com.sun.xml.ws.developer.MemberSubmissionEndpointReference.referenceProperties
| at com.sun.xml.ws.developer.MemberSubmissionEndpointReference
| this problem is related to the following location:
| at javax.xml.ws.wsaddressing.W3CEndpointReference$Elements
| at private javax.xml.ws.wsaddressing.W3CEndpointReference$Elements javax.xml.ws.wsaddressing.W3CEndpointReference.referenceParameters
| at javax.xml.ws.wsaddressing.W3CEndpointReference
|
| at com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:66)
| at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:422)
| at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:270)
| at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:103)
| at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:81)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:210)
| at javax.xml.bind.ContextFinder.find(ContextFinder.java:366)
| at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
| at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522)
| at com.sun.xml.ws.spi.ProviderImpl.getEPRJaxbContext(ProviderImpl.java:186)
| ... 12 more
|
TIA...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112570#4112570
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4112570
18 years, 4 months
[JBossWS] - Exception while running JbossWS service client
by techie_techie
Hi,
I have a service up and running on Jboss 4.2.2 GA. I can browse the WSDL file and see the content.
Now using wsconsume I generated the client side stubs and wrote a test client. The testclient class path refers to jars in "lib" of Jboss Ws 2.0.2 "lib"
but i am getting the following exception.
Any pointers what could be missing or correct proedcure to create clients using wsconsume?
.....
| Exception in thread "main" javax.xml.ws.WebServiceException: Unable to load Provider: Failed to load javax.xml.ws.spi.Provider: com.sun.xml.ws.spi.ProviderImpl
| at javax.xml.ws.spi.Provider.provider(Provider.java:98)
| at javax.xml.ws.Service.<init>(Service.java:83)
| at com.danny.techtalk.ex1.echo.EchoImplService.<init>(EchoImplService.java:53)
| at com.danny.techtalk.ex1.echo.TestClient2.main(TestClient2.java:12)
| Caused by: java.lang.IllegalStateException: Failed to load javax.xml.ws.spi.Provider: com.sun.xml.ws.spi.ProviderImpl
| at javax.xml.ws.spi.ProviderLoader.loadProvider(ProviderLoader.java:96)
| at javax.xml.ws.spi.Provider.provider(Provider.java:90)
| ... 3 more
| Caused by: java.lang.ExceptionInInitializerError
| at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
| at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
| at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
| at java.lang.reflect.Constructor.newInstance(Unknown Source)
| at java.lang.Class.newInstance0(Unknown Source)
| at java.lang.Class.newInstance(Unknown Source)
| at javax.xml.ws.spi.ProviderLoader.loadProvider(ProviderLoader.java:91)
| ... 4 more
| Caused by: javax.xml.ws.WebServiceException: Error creating JAXBContext for W3CEndpointReference.
| at com.sun.xml.ws.spi.ProviderImpl.getEPRJaxbContext(ProviderImpl.java:188)
| at com.sun.xml.ws.spi.ProviderImpl.<clinit>(ProviderImpl.java:65)
| ... 11 more
| Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions
| Two classes have the same XML type name "address". Use @XmlType.name and @XmlType.namespace to assign different names to them.
| this problem is related to the following location:
| at com.sun.xml.ws.developer.MemberSubmissionEndpointReference$Address
| at public com.sun.xml.ws.developer.MemberSubmissionEndpointReference$Address com.sun.xml.ws.developer.MemberSubmissionEndpointReference.addr
| at com.sun.xml.ws.developer.MemberSubmissionEndpointReference
| this problem is related to the following location:
| at javax.xml.ws.wsaddressing.W3CEndpointReference$Address
| at private javax.xml.ws.wsaddressing.W3CEndpointReference$Address javax.xml.ws.wsaddressing.W3CEndpointReference.address
| at javax.xml.ws.wsaddressing.W3CEndpointReference
| Two classes have the same XML type name "elements". Use @XmlType.name and @XmlType.namespace to assign different names to them.
| this problem is related to the following location:
| at com.sun.xml.ws.developer.MemberSubmissionEndpointReference$Elements
| at public com.sun.xml.ws.developer.MemberSubmissionEndpointReference$Elements com.sun.xml.ws.developer.MemberSubmissionEndpointReference.referenceProperties
| at com.sun.xml.ws.developer.MemberSubmissionEndpointReference
| this problem is related to the following location:
| at javax.xml.ws.wsaddressing.W3CEndpointReference$Elements
| at private javax.xml.ws.wsaddressing.W3CEndpointReference$Elements javax.xml.ws.wsaddressing.W3CEndpointReference.referenceParameters
| at javax.xml.ws.wsaddressing.W3CEndpointReference
|
| at com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:66)
| at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:422)
| at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:270)
| at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:103)
| at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:81)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:210)
| at javax.xml.bind.ContextFinder.find(ContextFinder.java:366)
| at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
| at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522)
| at com.sun.xml.ws.spi.ProviderImpl.getEPRJaxbContext(ProviderImpl.java:186)
| ... 12 more
|
TIA...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112569#4112569
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4112569
18 years, 4 months