[jboss-user] [Beginners Corner] - Running tasks at application deployment

2007-03-14 Thread draken
Hello everybody,

I need to perform a simple task (i.e. fetch data from my DB) during (or exactly 
afterwards) my application's deployment on JBoss. Is there any way to achieve 
this?

thanks in advance for your answers and sorry if this question was asked before,

Draken

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027995#4027995

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027995
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Two webservices deployed on one JBoss instance problem

2006-12-19 Thread draken
I tried to deploy two J2EE applications (each packed as a ear file) on one 
JBoss instance. Each of these webapps contains WS definition.

The problem I encountered is when I try to invoke one of the deployed WSs no 
java type mapping or SEI mapping is found, and the appropriate error messages 
appear in logs. But when I try to invoke the same WS after redeploying the 
other application without any WS metadata (I simply deleted webservices.xml and 
jaxrpc-mapping.xml from the other app's ear file), everything maps fine and the 
webservice is working. The two webservices have nothing in common - especially 
they do not share any namespaces or java objects.

Does anybody know the reason why is this happening?



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994956#3994956

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994956
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - LinkageError when connecting to webservice

2006-12-09 Thread draken
Hi,

I'm trying to connect (using Apache Cactus ServletTestRunner) to a WS deployed 
on JBoss4.0.5GA, and I'm getting the following exception:

  | 
  | loader constraints violated when linking 
org/jboss/util/xml/JBossEntityResolver class
  | 
  | java.lang.LinkageError: loader constraints violated when linking 
org/jboss/util/xml/JBossEntityResolver class
  | at 
org.jboss.ws.jaxb.SchemaBindingBuilder.buildSchemaBinding(SchemaBindingBuilder.java:90)
  | at 
org.jboss.ws.metadata.ServiceMetaData.getSchemaBinding(ServiceMetaData.java:332)
  | at 
org.jboss.ws.metadata.ServiceMetaData.eagerInitialize(ServiceMetaData.java:400)
  | at 
org.jboss.ws.metadata.UnifiedMetaData.eagerInitialize(UnifiedMetaData.java:147)
  | at 
org.jboss.ws.deployment.JSR109ClientMetaDataBuilder.buildMetaData(JSR109ClientMetaDataBuilder.java:129)
  | at 
org.jboss.ws.deployment.JSR109ClientMetaDataBuilder.buildMetaData(JSR109ClientMetaDataBuilder.java:82)
  | at org.jboss.ws.jaxrpc.ServiceImpl.(ServiceImpl.java:96)
  | at 
org.jboss.ws.jaxrpc.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:157)
  | at 
org.jboss.ws.jaxrpc.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:128)
  | at com.mycompany.MyCactusTest.testFunctionalityAsWebservice(Unknown Source)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at 
org.apache.cactus.internal.AbstractCactusTestCase.runBareServer(AbstractCactusTestCase.java:153)
  | at 
org.apache.cactus.internal.server.AbstractWebTestCaller.doTest(AbstractWebTestCaller.java:119)
  | at 
org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody0(AbstractWebTestController.java:93)
  | at 
org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody1$advice(AbstractWebTestController.java:224)
  | at 
org.apache.cactus.internal.server.AbstractWebTestController.handleRequest(AbstractWebTestController.java)
  | at 
org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody2(ServletTestRedirector.java:101)
  | at 
org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody3$advice(ServletTestRedirector.java:224)
  | at 
org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirector.java)
  | at 
org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody0(ServletTestRedirector.java:72)
  | at 
org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody1$advice(ServletTestRedirector.java:224)
  | at 
org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirector.java)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  | at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
  | at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  | at 
org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  | at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  | at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
  | at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
  | at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  | at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
  | at java.lang.Thread.run(Thread.java:534)
  | 
  | 

The code I'm invoking is:

  | 
  | try {  
  |   URL url = new URL(WSDL_URL);
  | 
  |   QName qname = new QName(WS_NAMESPACE, WS_NAME);
  | 
  |   ServiceFactory factory = ServiceFactory.newInstance();
  |   Service service = factory.createService(url, qname);
  | 
  |   ()
  | } catch(Exception e) {
  |   e.printStackTrace();
  | }
  |