[JBoss Web Services CXF] New message: ": mapped-name is required for cxf of deployment auto-update-ws.war"
by Mr User
User development,
A new message was posted in the thread ": mapped-name is required for cxf of deployment auto-update-ws.war":
http://community.jboss.org/message/521894#521894
Author : Mr User
Profile : http://community.jboss.org/people/dgh1
Message:
--------------------------------------------------------------
I am not sure where exactly sure where to start, here but I have a web service war file built using Apache CXF. This war file runs great in apache tomcat container, so I have some level of confidence.
However, when I try putting in deploy dir and restarting JBoss 5.1 with this war file I get the below exceptions. I am not sure what
“java.lang.RuntimeException: mapped-name is required for cxf of deployment auto-update-ws.war”
means or what I need to do to resolve. Below also is the jbossws-cxf.xml I am using for this based on “JBossWS - Stack CXF User Guide” and the web.xml
10:48:03,326 INFO [ServerImpl] JBoss (Microcontainer) [5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)] Started in 2m:56s:966ms
11:32:38,694 INFO [TomcatDeployment] deploy, ctxPath=/auto-update-ws
11:32:38,969 ERROR [StandardContext] Context [/auto-update-ws] startup failed due to previous errors
java.lang.RuntimeException: mapped-name is required for cxf of deployment auto-update-ws.war
at org.jboss.web.tomcat.service.injection.WebResourceHandler.loadXmlResourceEnvRefs(WebResourceHandler.java:287)
at org.jboss.web.tomcat.service.injection.WebResourceHandler.loadXml(WebResourceHandler.java:325)
at org.jboss.web.tomcat.service.TomcatInjectionContainer.processMetadata(TomcatInjectionContainer.java:550)
at org.jboss.web.tomcat.service.WebCtxLoader.start(WebCtxLoader.java:158)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4272)
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
DEPLOYMENTS IN ERROR:
Deployment "vfszip:/space/server/default/deploy/auto-update-ws.war/" is in error due to the following reason(s): org.jboss.deployers.spi.DeploymentException: URL file:/space/server/default/tmp/a69515-bvwhsb-g4sr37lt-1-g4sssbdl-1ep/auto-update-ws.war/ deployment failed
at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:993)
at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:939)
at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:873)
at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.checkComplete(MainDeployerAdapter.java:128)
at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:369)
at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
jbossws-cxf.xml
<beans
xmlns=+'http://www.springframework.org/schema/beans'+
xmlns:xsi=+'http://www.w3.org/2001/XMLSchema-instance'+
xmlns:beans=+'http://www.springframework.org/schema/beans'+
xmlns:jaxws=+'http://cxf.apache.org/jaxws'+
xsi:schemaLocation=+'http://www.springframework.org/schema/beans+
+ http://www.springframework.org/schema/beans/spring-beans.xsd+
+ http://cxf.apache.org/jaxws+
+ http://cxf.apache.org/schemas/jaxws.xsd'+>
<!-- one or more jaxws:endpoint POJO declarations -->
<jaxws:endpoint
id=+'p1'+
address=+'http://nemo:8080/auto-update-ws/p1'+
implementor=+'com.oti.main.webservice.UpdateServiceImpl'+>
<jaxws:invoker>
<bean class=+'org.jboss.wsf.stack.cxf.InvokerJSE'+/>
</jaxws:invoker>
</jaxws:endpoint>
</beans>
Web.xml
<?xml version=+"1.0"+ encoding=+"UTF-8"+?>
<web-app xmlns:xsi=+"http://www.w3.org/2001/XMLSchema-instance"+
xmlns=+"http://java.sun.com/xml/ns/javaee"+ xmlns:web=+"http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"+
xsi:schemaLocation=+"http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"+
id=+"WebApp_ID"+ version=+"2.5"+>
<display-name>SimpleService</display-name>
<servlet>
<servlet-name>s1</servlet-name>
<servlet-class>com.oti.main.webservice.SimpleServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>s1</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
</web-app>
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/521894#521894
16 years, 3 months
[jBPM] New message: "Re: Some questions and feedback from beginner"
by Ronald van Kuijk
User development,
A new message was posted in the thread "Some questions and feedback from beginner":
http://community.jboss.org/message/521893#521893
Author : Ronald van Kuijk
Profile : http://community.jboss.org/people/kukeltje
Message:
--------------------------------------------------------------
Now I think of it, the BPMN2 spec is not publicly available (yet)... So testing while using it is currently maybe what is max doable.
Regarding running on multiple systems, even with BPEL engines themselves processes were only limited portable due to custom extensions.
And it will not be better with BPMN2, just look at the jBPM docs for BPMN (in the dev guide) and you'll see that the 'java' service task and how task assign assignment is done is 'proprietary'. Not that we want it to be that way, it is just not in the spec... So I'd not get my hopes up to high
Ronald
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/521893#521893
16 years, 3 months
[jBPM] New message: "Re: Some questions and feedback from beginner"
by Maciej Swiderski
User development,
A new message was posted in the thread "Some questions and feedback from beginner":
http://community.jboss.org/message/521890#521890
Author : Maciej Swiderski
Profile : http://community.jboss.org/people/swiderski.maciej
Message:
--------------------------------------------------------------
Thanks for your anwers.
I would defenetely like to join to help in any way and at the moment help with tests sounds the best. Will try to convince some people at work that it is worth investing some time into it. Need to go thru BPMN 2.0 spec first.
If it comes to jPDL transformation to BPEL I was thinking about having a possibility to move the same process between different products (as mentioned I am doing evaluation of BPMS for my company). BUt as I said, I am new in the subject so please correct me when I am wrong.
BTW. Post placed on GWT Console forum.
Cheers
Maciej
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/521890#521890
16 years, 3 months
[JBoss Web Services Development] New message: "Problem with WS Security"
by Marcin Ostachowski
User development,
A new message was posted in the thread "Problem with WS Security":
http://community.jboss.org/message/521875#521875
Author : Marcin Ostachowski
Profile : http://community.jboss.org/people/CichyKloszard
Message:
--------------------------------------------------------------
Hi everyone,
I`m trying to implement WS server and client with WS Security for several last days.
My server looks like:
package test;
import javax.jws.WebMethod;
import javax.jws.WebService;
@WebService()
public class Calculator {
@WebMethod
public int add(int value1, int value2) {
return value1 + value2;
}
}
web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee" version="2.4">
<servlet>
<display-name>Calculator</display-name>
<servlet-name>Calculator</servlet-name>
<servlet-class>
test.Calculator
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Calculator</servlet-name>
<url-pattern>/calculator</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
</web-app>
jboss-wsse-server.xml:
<jboss-ws-security
xmlns="http://www.jboss.com/ws-security/config"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.jboss.com/ws-security/config
http://www.jboss.com/ws-security/schema/jboss-ws-security_1_0.xsd">
<key-store-file>WEB-INF/server.keystore</key-store-file>
<key-store-password>pass123</key-store-password>
<key-store-type>jks</key-store-type>
<trust-store-file>WEB-INF/server.truststore</trust-store-file>
<trust-store-password>pass123</trust-store-password>
<trust-store-type>jks</trust-store-type>
<key-passwords>
<key-password alias="server" password="pass123" />
</key-passwords>
<config>
<encrypt type="x509v3" alias="client" />
<requires>
<encryption />
</requires>
</config>
</jboss-ws-security>
I`ve put server.keystore and server.truststore into web-inf direcotry.
My Client:
package test;
public class Client {
public static void main(String[] args) {
CalculatorService svc = new CalculatorService();
Calculator calc = svc.getCalculatorPort();
System.out.println("2 + 2 = " + calc.add(2, 2));
}
}
I`ve put client.keystore, client.truststore, jboss-wsse-client.xml and standard-jaxws-client-config.xml to meta-inf directory.
When I deploy server, I can see wsdl file. But when I run the client i get :
Exception in thread "main" javax.xml.ws.WebServiceException: Failed to access the WSDL at: http://localhost:8080/calc/ca
lculator?wsdl. It failed with:
Connection refused: connect.
at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.tryWithMex(Unknown Source)
at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse(Unknown Source)
at com.sun.xml.internal.ws.client.WSServiceDelegate.parseWSDL(Unknown Source)
at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(Unknown Source)
at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(Unknown Source)
at com.sun.xml.internal.ws.spi.ProviderImpl.createServiceDelegate(Unknown Source)
at javax.xml.ws.Service.<init>(Unknown Source)
at test.CalculatorService.<init>(CalculatorService.java:40)
at test.Client.main(Client.java:12)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at java.net.URL.openStream(Unknown Source)
at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.createReader(Unknown Source)
at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.resolveWSDL(Unknown Source)
... 8 more
Can anyone help me?
Marcin Ostachowski
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/521875#521875
16 years, 3 months
[jBPM] New message: "Some questions and feedback from beginner"
by Maciej Swiderski
User development,
A new message was posted in the thread "Some questions and feedback from beginner":
http://community.jboss.org/message/521872#521872
Author : Maciej Swiderski
Profile : http://community.jboss.org/people/swiderski.maciej
Message:
--------------------------------------------------------------
Hi,
I have recently started to explore jBPM (as part of evaluation for possible candidate for my company) and so far I am very impressed. Thou I ran into some issues that are not covered in user or dev guide. So I decided to try to find some answers here. Hope this is the right place...
Currently I am trying jBPM on Tomcat, version of jBPM is 4.3.
Some questions:
1. Is it possible to start a process from jBPM console when process requires variables to be provided at startup? So far I was getting exception while starting but no message that would indicate what is the cause of it.
2. As far as I understand jBPM 4.3 supports BPMN 2.0, is that correct? I looked thru some documents about BPMN and there are bit more artefacts available that in jBPM GPD editor. Are there any plans to support all of them? I am mainly interested in events that can be modeled (start and intermediate) and data objects and annotations. I am sure that business users will demand that
3. Is it possible to (any tools available) for transforming jPDL to BPEL?
4. Is there any remote service available for accessing jBPM runtime (web service) for signaling or the API is the only way to do it?
5. Is it possible to browse thru already finished processes via jBPM console? I mean is it possible to see what nodes were executed for given process instances?
And now time for a small feedback (hope it can be useful to someone):
In general everything works as described in documentation delivered with the product, which was a positive surprise. The only problem I encountered was related to reports in jBPM console. Firstly, all reports crashed due to lack of jdbc driver for hsqldb, which I assumed was present in tomcat lib directory. But obviously that was not enough. After some investigation the problem was caused by BIRT that assumed jdbc driver to be present in completely different location (CATALINA_HOME/birt/ReportEngine/plugins/org.eclipse.birt.report.data.oda.jdbc_2.3.2.r232_v20090212/drivers). By placing hsqldb driver there two of the reports started to work properly. But another problem pop up with other reports. It tried to load MySQL driver instead of hsqldb. The issue was that some of the reports configuration in CATALINA_HOME/birt were pointing to MySQL driver. Changing that resulted with all reports being available.
Ok, that's it for now. I will keep exploring jBPM and hopefully it ill be less and less issues and more and more good features.
Thanks for your replies.
Maciej
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/521872#521872
16 years, 3 months
[jBPM] New message: "Re: [jBPM4.3] - Debug messages on the console"
by Santanu Saraswati
User development,
A new message was posted in the thread "[jBPM4.3] - Debug messages on the console":
http://community.jboss.org/message/521866#521866
Author : Santanu Saraswati
Profile : http://community.jboss.org/people/saraswati.santanu
Message:
--------------------------------------------------------------
Mike,
hibernate prints SQL only if show_sql property is set to true. If the SQL print statements are formatted like "Hibernate: <SQL>" then you can be assured that show_sql is true.
In jBPM 4.3 example show_sql is false (this is false by default, and in the example it is not set to true). Please check if that is updated. Otherwise if you are using something like spring then you may need to check the spring configuration for this value. If you are not sure, you can run a find comand for show_sql on the whole directory. You will get something.
Regards,
Santanu
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/521866#521866
16 years, 3 months