Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
JSP - A mailing list about Java Server Pages specification and reference
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
- Classloaders problem with jca

- Classloaders problem with jca

2007-07-13       - By xaleyba

 Back

Hi

I'm trying to test my application related to a jca resource adapter I did and a
webservices that use such ra.

In my web services I did:


 |
 |      
 |       InitialContext context = new InitialContext(CicsConfigHelper
.getJndiProperties());
 |      
 |       CdsConnectionFactoryImpl cxFactory = (CdsConnectionFactoryImpl) context
 |           .lookup("java:/CicsDS");
 |            
 |       CdsRecordFactoryImpl recordFactory = (CdsRecordFactoryImpl) cxFactory
.getRecordFactory();            
 |       CdsIndexedRecordImpl input = (CdsIndexedRecordImpl) recordFactory
.createIndexedRecord(CdsIndexedRecord.INPUT);      
 |       input.add(data.toString());      
 |
 |       CdsIndexedRecordImpl output = (CdsIndexedRecordImpl) recordFactory
.createIndexedRecord(CdsIndexedRecord.OUTPUT);
 |            
 |       CdsConnection connection = (CdsConnection) cxFactory.getConnection();      
     
 |      
 |       CdsInteractionSpecImpl ispec = new CdsInteractionSpecImpl();       ispec
.setFunctionName(CdsInteractionSpec.CICS_OPERATION_FUNCTION);
 |            
 |       CdsInteractionImpl interaction = (CdsInteractionImpl) connection
.createInteraction();                              
 |      
 |       if (interaction.execute((InteractionSpec) ispec, (Record)input, (Record
)output)) {
 |                    
 |         message = (String) output.get(CdsIndexedRecord.MESSAGE_FIELD);
 |            
 |       } else {
 |         logger.error("Execute was false");
 |       }
 |
 |


But when I call this web services I receive a throwable as follows:


 | 13:57:15,159 INFO  [STDOUT] java.lang.LinkageError Source code of java.lang.LinkageError: loader constraint
violation:
 | when resolving method "com.bs.cds.jca.CdsInteractionImpl.execute(Ljavax
/resourc
 | e/cci/InteractionSpec;Ljavax/resource/cci/Record;Ljavax/resource/cci/Record
;)Z"
 | the class loader (instance of org/jboss/web/tomcat/tc5/WebAppClassLoader)
of the
 |  current class, com/bs/cics/ws/CicsWSImpl, and the class loader (instance
of org
 | /jboss/mx/loading/UnifiedClassLoader3) for resolved class, com/bs/cds/jca
/CdsInt
 | eractionImpl, have different Class objects for the type javax/resource/cci
/Inter
 | actionSpec used in the signature
 |

My web service is inside an ear that comes with an axis1.3.war.

I've tested placing the jar file with my jca classes inside the rar file and
outside, in the server instance lib directory, always with same problem.

The problem occurs when execute method is invoked.

Could some body please tell me how could I solve the problem ?

Thanks in advance

J



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

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

©2008 junlu.com - Jax Systems, LLC, U.S.A.