[JBossWS] - Re: Problem using a SOAP interface on JBOSS server
by gbc
Hi Milan,
At this point you should have solve your problem, but how I find the same problem and the reason of it, I'm posting for others consult.
Apparently, WSConsume tool is generating wrong code when besides you specify an web URL to the wsdlLocation you specify a file URL.
The consequence is that the generated code point to an inexistent wsdl file, how you can see in the warning log "2008-05-11 16:13:35,514 WARN [org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl] Cannot access wsdlUR
L: file:/C:/Documents%20and%20Settings/cm304k/My%20Documents/R7/WFM%20IIA/GRANITEAsgnMgmt_QNI_AD_MER
GE/GRANITEAsgnMgmt.wsdl".
To solve the problem you must edit the generated code of the Service class.
Where you read:
static {
URL url = null;
try {
url = new URL("file:/C:/META-INF/wsdl/ConsultarCPF.wsdl");
} catch (MalformedURLException e) {
e.printStackTrace();
}
CONSULTARCPF_WSDL_LOCATION = url;
}
write:
static {
URL url = null;
url = ConsultarCPF.class.getResource("/META-INF/wsdl/ConsultarCPF.wsdl");
CONSULTARCPF_WSDL_LOCATION = url;
}
Regards,
Gustavo
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4162612#4162612
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4162612
17 years, 9 months
[JBoss jBPM] - Deploy the jBPM 3.2.3 JBoss 4.2 / 4.3
by ehsanmx
hi
If you want to deploy jbpm 3.2.x or higher under jboss 4.x you must follow these steps:
Step 1 :
Extract jbpm-console.war
| tar -xvf jbpm-console.war
| -->META-INF WEB-INF images index.jsp sa ua
Remove this jar file from WEB-INF/lib/ :
|
| - commons-fileupload.jar
| - jbpm-identity.jar
| - jbpm-jpdl.jar
|
Just you must have these jar file in WEB-INF/lib/ :
commons-io.jar gravel.jar jbpm4jsf.jar jsf-facelets.jar
Create war file :
zip -r jbpm-console.war *
step 2 :
add this XML block to the conf/login-config.xml file under the 4.2 / 4.3 installation:
| <application-policy name = "jbpm">
| <authentication>
| <login-module code="org.jboss.security.auth.spi.DatabaseServerLoginModule"
| flag="required">
| <module-option name="dsJndiName">java:/JbpmDS</module-option>
| <module-option name="principalsQuery">
| SELECT PASSWORD_ FROM JBPM_ID_USER WHERE NAME_=?
| </module-option>
| <module-option name="rolesQuery">
| SELECT g.NAME_ ,'Roles'
| FROM JBPM_ID_USER u,
| JBPM_ID_MEMBERSHIP m,
| JBPM_ID_GROUP g
| WHERE g.TYPE_='security-role'
| AND m.GROUP_ = g.ID_
| AND m.USER_ = u.ID_
| AND u.NAME_=?
| </module-option>
| </login-module>
| </authentication>
| </application-policy>
|
Database configuration
If you are using hypersonic as in the suite:
* copy over the jbpm-ds.xml file from the 3.2 JBPM installation to the 4.2 environment (found under the jbpm/deploy directory).
* Copy the jbpm/data/hypersonic/jbpm* from the 3.2 installation to the 4.2 default/data/hypersonic/ directory.
from wiki page :
http://wiki.jboss.org/wiki/DeployJbpm3.2WebAppUnderJBoss4.2.x
ok. when you complete these steps you must follow this step for JTA UserTransaction :
add this line to hibernate.cfg.xml :
<property name="jta.UserTransaction">UserTransaction</property>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4162609#4162609
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4162609
17 years, 9 months