[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Using JPA from web tier

2007-07-17 Thread mikaelstaldal
What is the correct way of accessing a Java Persistence unit from the web tier (no EJB session beans)? I use JBoss 4.2.0. I can't get the resource injection annotations @PersistenceUnit or @PersistenceContext to work, so I have done like this: public class MyServletContextListener implements

[jboss-user] [Installation, Configuration Deployment] - Problem with using RELAX NG validation in JBoss

2007-03-16 Thread mikaelstaldal
I want to use RELAX NG validation of XML documents in JBoss, and I want to use the javax.xml.validation API to lookup the validator. However, I cannot get my application to find the RELAX NG validation when running within JBoss. I use these two jar files:

[jboss-user] [Installation, Configuration Deployment] - Re: Problem with using RELAX NG validation in JBoss

2007-03-16 Thread mikaelstaldal
I forgot to include some information about my environment: | [Server] Release ID: JBoss [Zion] 4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339) | [ServerInfo] Java version: 1.5.0_08,Sun Microsystems Inc. | [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_08-b03,Sun

[jboss-user] [JBossWS] - Re: How to control port name in generated WSDL

2007-03-01 Thread mikaelstaldal
Upgrading to JBossWS 1.2.0 solved this problem. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4024163#4024163 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4024163 ___ jboss-user

[jboss-user] [JBossWS] - Using rpc/encoded

2007-03-01 Thread mikaelstaldal
I use JBossWS 1.2.0. The documentation for JBossWS 1.2.0 says JBossWS has basic support for rpc/encoded, but it doesn't say how to activate it. How can I deploy a Web Service supporting rpc/encoded? I know that rpc/encoded is not recommended, but I need to maintain interopability with some

[jboss-user] [JBossWS] - Re: Using rpc/encoded

2007-03-01 Thread mikaelstaldal
When I try to deploy a WebService annotated with @SOAPBinding(style=Style.RPC,use=Use.ENCODED) i get this error: | 16:25:25,676 ERROR [MainDeployer] Could not create deployment: file:/usr/local/share/java/jboss-4.0.5.GA/server/pf3/deploy/enecto/pf3-ws.war |

[jboss-user] [JBossWS] - How to control port name in generated WSDL

2007-02-27 Thread mikaelstaldal
How can I control the port name (wsdl:port name=xxx) in the WSDL generated by JBossWS? I always get name+Port, which is not what I want since I have to implement an already established interface. JBossWS doesn't seem to recognize the portName parameter to the JSR-181 @WebService annotation. Is