[JBossWS] - Jbossws client: java.lang.IncompatibleClassChangeError
by Christy
Hi!
Can somebody help me please?
I wrote a simple client using jbossws. I've generated necessary files using wsconsume.
Here is the code of my client:
public class ClientJaxWS {
public String getCall() {
String res = "";
WSJaxwsService service = new WSJaxwsService();
WSJaxws port = service.getWSJaxwsPort();
res = port.hello("it is me");
System.out.println("res = " + res);
return res;
}
}
But when I try to run my client I have next eror:
java.lang.IncompatibleClassChangeError
at client.ws.jaxws.ClientJaxWS.getCall(ClientJaxWS.java:13)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:63)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:387)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:595)
Does anybody know what is the problem and what is the reason?
Maybe someone has working examples?
Thank you in advance!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056864#4056864
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056864
18Â years, 10Â months
[JBoss jBPM] - Re: jbpm 3.2.GA and mysql
by sparklehorse
I was able to make it run
using this approach:
- execute in mysql the incomplete jbpm.jpdl.mysql.sql provided in the starter kit
- manually create the missing tables
create table JBPM_ID_GROUP (
| ID_ bigint not null auto_increment,
| CLASS_ char( 1) not null,
| NAME_ varchar(255),
| TYPE_ varchar(255),
| PARENT_ bigint,
| primary key (ID_));
| create table JBPM_ID_MEMBERSHIP (
| ID_ bigint not null auto_increment,
| CLASS_ char(1) not null,
| NAME_ varchar(255),
| ROLE_ varchar(255),
| USER_ bigint,
| GROUP_ bigint,
| primary key ( ID_));
| create table JBPM_ID_PERMISSIONS (
| ENTITY_ bigint not null,
| CLASS_ varchar(255),
| NAME_ varchar(255),
| ACTION_ varchar(255));
| create table JBPM_ID_USER (
| ID_ bigint not null auto_increment,
| CLASS_ char(1 ) not null,
| NAME_ varchar(255),
| EMAIL_ varchar(255),
| PASSWORD_ varchar(255),
| primary key (ID_));
| alter table JBPM_ID_GROUP add constraint FK_ID_GRP_PARENT foreign key (PARENT_) references JBPM_ID_GROUP;
| alter table JBPM_ID_MEMBERSHIP add constraint FK_ID_MEMSHIP_GRP foreign key (GROUP_) references JBPM_ID_GROUP;
| alter table JBPM_ID_MEMBERSHIP add constraint FK_ID_MEMSHIP_USR foreign key (USER_) references JBPM_ID_USER;
- manually insert the missing data
| INSERT INTO JBPM_ID_GROUP VALUES(1,'G','participant','security-role',NULL);
| INSERT INTO JBPM_ID_GROUP VALUES(2,'G','administrator','security-role',NULL);
| INSERT INTO JBPM_ID_GROUP VALUES(3,'G','hr','organisation',NULL);
| INSERT INTO JBPM_ID_GROUP VALUES(4,'G','sales','organisation',NULL);
| INSERT INTO JBPM_ID_GROUP VALUES(5,'G','manager','security-role',NULL);
| INSERT INTO JBPM_ID_MEMBERSHIP VALUES(1,'M',NULL,NULL,2,2);
| INSERT INTO JBPM_ID_MEMBERSHIP VALUES(2,'M',NULL,NULL,3,1);
| INSERT INTO JBPM_ID_MEMBERSHIP VALUES(3,'M',NULL,NULL,3,3);
| INSERT INTO JBPM_ID_MEMBERSHIP VALUES(4,'M',NULL,NULL,2,3);
| INSERT INTO JBPM_ID_MEMBERSHIP VALUES(5,'M',NULL,NULL,1,4);
| INSERT INTO JBPM_ID_MEMBERSHIP VALUES(6,'M',NULL,'boss',2,4);
| INSERT INTO JBPM_ID_MEMBERSHIP VALUES(7,'M',NULL,NULL,2,5);
| INSERT INTO JBPM_ID_MEMBERSHIP VALUES(8,'M',NULL,NULL,2,1);
| INSERT INTO JBPM_ID_MEMBERSHIP VALUES(9,'M',NULL,NULL,1,1);
| INSERT INTO JBPM_ID_USER VALUES(1,'U','cookie monster','[EMAIL PROTECTED]','cookie monster');
| INSERT INTO JBPM_ID_USER VALUES(2,'U','ernie','[EMAIL PROTECTED]','ernie');
| INSERT INTO JBPM_ID_USER VALUES(3,'U','bert','[EMAIL PROTECTED]','bert');
| INSERT INTO JBPM_ID_USER VALUES(4,'U','grover','[EMAIL PROTECTED]','grover');
- open the jbpm-enterprise.ear
open the jbpm-configs.tar in it and change the hibernate-cfg.xml
for customizing the dialect mysql
- change in jboss the login-config.xml module
to include the authentication versus the jbpm db
| <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>
|
security domain should be jbpm as verified in jboss-web.xml of the jbpm-console.war
....now its running...
hope this helps some other unlucky guy who is working with the
unsable documentation of jbpm!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056853#4056853
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056853
18Â years, 10Â months