[EJB 3.0] - Re: ClassCastException in Stateful Session-Bean
by uday.madigatla
hi,
i faced the same problem like class cast exception earlier.
This is simple classpath error.
Make sure that your client program classpath contains the jbossall-client.jar .
And also open the META-INF of the jbossall-client.jar file and place the jar files which are there in META-INF file in your classpath.
Try this. i'm sure this will work.
Class-Path: commons-logging.jar concurrent.jar ejb3-persistence.jar hi
| bernate-annotations.jar jboss-aop-client.jar jboss-appclient.jar jbos
| s-aspect-jdk50-client.jar jboss-client.jar jboss-common-core.jar jbos
| s-deployers-client-spi.jar jboss-deployers-client.jar jboss-deployers
| -core-spi.jar jboss-deployers-core.jar jboss-deployment.jar jboss-ejb
| 3-common-client.jar jboss-ejb3-core-client.jar jboss-ejb3-ext-api.jar
| jboss-ejb3-proxy-client.jar jboss-ejb3-proxy-clustered-client.jar jb
| oss-ejb3-security-client.jar jboss-ha-client.jar jboss-ha-legacy-clie
| nt.jar jboss-iiop-client.jar jboss-integration.jar jboss-j2se.jar jbo
| ss-javaee.jar jboss-jsr77-client.jar jboss-logging-jdk.jar jboss-logg
| ing-log4j.jar jboss-logging-spi.jar jboss-main-client.jar jboss-mdr.j
| ar jboss-messaging-client.jar jboss-remoting.jar jboss-security-spi.j
| ar jboss-serialization.jar jboss-srp-client.jar jboss-system-client.j
| ar jboss-system-jmx-client.jar jbosscx-client.jar jbosssx-as-client.j
| ar jbosssx-client.jar jmx-client.jar jmx-invoker-adaptor-client.jar j
| np-client.jar slf4j-api.jar slf4j-jboss-logging.jar xmlsec.jar
when you open the META-INF file, the file contains the code as shown above. Place all the jar files in your classpath(client program classpath). You will get all these jar files in the JBOSS AS folder(lib folder).
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225567#4225567
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225567
17 years
[EJB 3.0] - Re: ClassCastException in Stateful Session-Bean
by uday.madigatla
hi,
i faced the same problem like class cast exception earlier.
This is simple classpath error.
Make sure that your client program classpath contains the jbossall-client.jar .
And also open the META-INF of the jbossall-client.jar file and place the jar files which are there in META-INF file in your classpath.
Try this. i'm sure this will work.
Class-Path: commons-logging.jar concurrent.jar ejb3-persistence.jar hi
| bernate-annotations.jar jboss-aop-client.jar jboss-appclient.jar jbos
| s-aspect-jdk50-client.jar jboss-client.jar jboss-common-core.jar jbos
| s-deployers-client-spi.jar jboss-deployers-client.jar jboss-deployers
| -core-spi.jar jboss-deployers-core.jar jboss-deployment.jar jboss-ejb
| 3-common-client.jar jboss-ejb3-core-client.jar jboss-ejb3-ext-api.jar
| jboss-ejb3-proxy-client.jar jboss-ejb3-proxy-clustered-client.jar jb
| oss-ejb3-security-client.jar jboss-ha-client.jar jboss-ha-legacy-clie
| nt.jar jboss-iiop-client.jar jboss-integration.jar jboss-j2se.jar jbo
| ss-javaee.jar jboss-jsr77-client.jar jboss-logging-jdk.jar jboss-logg
| ing-log4j.jar jboss-logging-spi.jar jboss-main-client.jar jboss-mdr.j
| ar jboss-messaging-client.jar jboss-remoting.jar jboss-security-spi.j
| ar jboss-serialization.jar jboss-srp-client.jar jboss-system-client.j
| ar jboss-system-jmx-client.jar jbosscx-client.jar jbosssx-as-client.j
| ar jbosssx-client.jar jmx-client.jar jmx-invoker-adaptor-client.jar j
| np-client.jar slf4j-api.jar slf4j-jboss-logging.jar xmlsec.jar
when you open the META-INF file, the file contains the code as shown above. Place all the jar files in your classpath(client program classpath). You will get all these jar files in the JBOSS AS folder(lib folder).
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225566#4225566
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225566
17 years
[Remoting] - remoting with .NET
by LockDog
Hi, i connect to .NET remoting services, my sourse code:
SOAPConnectionFactory cc = SOAPConnectionFactory.newInstance();
| SOAPConnection sp = cc.createConnection();
|
| MessageFactory mf = javax.xml.soap.MessageFactory.newInstance();
|
|
| InputStream inputStream = new ByteArrayInputStream(documentString.getBytes());
|
| MimeHeaders mimeHeaders = new MimeHeaders();
| mimeHeaders.addHeader("SOAPAction", UPLOAD_URL);
| javax.xml.soap.SOAPMessage sm = mf.createMessage(mimeHeaders, inputStream);
|
| javax.xml.soap.SOAPMessage resp = sp.call(sm, "http://plasma:8000/bap.rem");
| sp.close();
My headers:
anonymous wrote : POST /bap.rem HTTP/1.1
| SOAPAction: "http://schemas.microsoft.com/clr/nsassem/BureauAccessPoint.IHandleMessage..."
| Content-Type: text/xml; charset=UTF-8
| JBoss-Remoting-Version: 22
| User-Agent: JBossRemoting - 2.2.2.SP8
| Host: plasma:8000
| Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
| Connection: keep-alive
| Transfer-Encoding: chunked
Original (native client) headers:
anonymous wrote : POST /bap.rem HTTP/1.1
| User-Agent: Mozilla/4.0+(compatible; MSIE 6.0; Windows 5.1.2600.131072; MS .NET Remoting; MS .NET CLR 2.0.50727.3082 )
| Content-Type: text/xml; charset="utf-8"
| SOAPAction: "http://schemas.microsoft.com/clr/nsassem/BureauAccessPoint.IHandleMessage..."
| Host: xenon:8000
| Content-Length: 1447
| Expect: 100-continue
| Cookie: JSESSIONID=E5C58B0D604BB96665BED40B5198DBD8
My configuration:
JBOSS 4.2.3
JBOSSWS 3.1.0
JBOSS Remouting 2.2.2 SP 8
But .NET side cant't accept Transfer-Encoding: chunked.
How to remove this transfer encoding style from my requests?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225563#4225563
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225563
17 years