One quick note. I did get this all to work by cramming a bunch of CXF and application jars in /opt/IBM/WebSphere/AppServer/java/jre/lib/endorsed.
Since that isn't really an option, I'm looking for a better way to package all this. -----Original Message----- From: Ostermueller, Erik [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 08, 2008 3:09 PM To: [email protected] Subject: WebSphere and CXF deployment questions Hello all, I'm having problems deploying CXF 2.1.1 on WebSphere ND 6.1.0.17 on SuSE z/os. I've got this working just fine on Tomcat. Is there a WebSphere/CXF user that could help me out with these questions? 1) What did you do the make sure cxf-manifest.jar was loaded first? 2) Did you put CXF libraries in the ear, war, or a 'shared library?' 3) Did you put application libraries in the ear, war, or a 'shared library?' 4) PARENT_FIRST or PARENT_LAST? I got the following when I switched to PARENT_LAST: [10/8/08 14:14:05:281 CDT] 0000002d WebExtensionP W Servlet cxf is currently unavailable: SRVE0201E: Servlet [org.apache.cxf.transport.servlet.CXFServlet]: not a servlet class Prior to that (with PARENT_FIRST), I was getting the following "NoSuchMethodError" b/c of (presumably) a classloader issue. The following is from WrapperClassGenerator#createWrapperClass() String pname = getPackageName(method) + ".jaxws_asm.package-info"; Class<?> def = findClass(pname, method.getDeclaringClass()); if (def == null) { generatePackageInfo(pname, wrapperElement.getNamespaceURI(), method.getDeclaringClass()); } The above generatePackageInfo() call that leads to the error (per the stack trace below) is only made b/c the preceding call to findClass doesn't work -- presumably b/c of a class loader issue. Why does generatePackageInfo throw an error? B/c my older hibernate requires older ASM (something pre the 2.2.3 that comes with CXF) and it is complaining b/c it can't find the 2.2.3 ASM. Like I mentioned, this all works with Tomcat -- and the generatePackageInfo() is never called b/c findClass() resolves everything just fine. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'idCreditLineForceApproval': Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org/objectweb/asm/ClassWriter.visit(IILjava/lang/String;Ljava/lang/Strin g;Ljava/lang/String;[Ljava/lang/String;)V Caused by: java.lang.NoSuchMethodError: org/objectweb/asm/ClassWriter.visit(IILjava/lang/String;Ljava/lang/Strin g;Ljava/lang/String;[Ljava/lang/String;)V at org.apache.cxf.jaxws.WrapperClassGenerator.generatePackageInfo(WrapperCl assGenerator.java:229) at org.apache.cxf.jaxws.WrapperClassGenerator.createWrapperClass(WrapperCla ssGenerator.java:173) at org.apache.cxf.jaxws.WrapperClassGenerator.generate(WrapperClassGenerato r.java:134) Any help would be much appreciated. Thanks, --Erik Ostermueller _____________ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you. _____________ _____________ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you. _____________
