Expand my Community achievements bar.

Flex Data Services and Websphere Community Edition (Geronimo)

Avatar

Former Community Member
I deployed the three Flex Data Services 2 WAR files to
Websphere Application Server Community Edition (via the web admin
console), but when I go to any of the sample applications, I get
the following error page:



----



Compilation Results



Errors, warnings or exceptions were found while compiling
/dataservice/notes/notes.mxml. Visit the online Flex documentation
or API reference for further information.



1 Exception found.



Exception java.lang.NoSuchMethodError

org/apache/xpath/XPath.<init>(Ljava/lang/String;Lorg/apache/xml/utils/PrefixResolver;Ljavax/xml/xpath/XPathFunctionResolver;Ljavax/xml/xpath/XPathVariableResolver;ZZ)V



----



The geronimo.out log file contains the following stack trace,
which for the life of me I can't figure out:



----



01/10 06:34:19 ERROR java.lang.NoSuchMethodError:

org/apache/xpath/XPath.<init>(Ljava/lang/String;Lorg/apache/xml/utils/PrefixResolver;Ljavax/xml/xpath/XPathFunctionResolver;Ljavax/xml/xpath/XPathVariableResolver;ZZ)V

at
org.apache.xpath.jaxp.XPathImpl.compile(XPathImpl.java:182)

at
org.apache.xpath.jaxp.XPathImpl.evaluate(XPathImpl.java:217)

at
flex.messaging.config.XPathClientConfigurationParser.selectSingleNode(XPathClientConfigurationParser.java:52)

at
flex.messaging.config.ClientConfigurationParser.parseTopLevelConfig(ClientConfigurationParser.java:41)

at
flex.messaging.config.AbstractConfigurationParser.parse(AbstractConfigurationParser.java:66)

at
flex.messaging.config.ServicesDependencies.getClientConfiguration(ServicesDependencies.java:123)

at
flex.messaging.config.ServicesDependencies.<init>(ServicesDependencies.java:39)

at
flex2.compiler.common.CompilerConfiguration.getServicesDependencies(CompilerConfiguration.java:422)

at
flex.services.config.Configurator.calculateServicesChecksum(Configurator.java:251)

at
flex.services.config.Configurator.generateConfiguration(Configurator.java:235)

at
flex2.server.j2ee.IncrementalCompileFilter.compileMxml(IncrementalCompileFilter.java:75)

at
flex2.server.j2ee.BaseCompileFilter.mxmlToSwf(BaseCompileFilter.java:318)

at
flex2.server.j2ee.BaseCompileFilter.invoke(BaseCompileFilter.java:60)

at
flex2.server.j2ee.RecompileFilter.invoke(RecompileFilter.java:37)

at
flex2.server.j2ee.PathExistsFilter.invoke(PathExistsFilter.java:42)

at flex2.server.j2ee.AboutFilter.invoke(AboutFilter.java:48)

at flex2.server.j2ee.MxmlServlet.doGet(MxmlServlet.java:158)

at
javax.servlet.http.HttpServlet.service(HttpServlet.java:595)

at
javax.servlet.http.HttpServlet.service(HttpServlet.java:688)

at
flex.bootstrap.BootstrapServlet.service(BootstrapServlet.java:85)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)

at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)

at
org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:56)

at
org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:342)

at
org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:31)

at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)

at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)

at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)

at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)

at
org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:419)

at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)

at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)

at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)

at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)

at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:869)

at java.lang.Thread.run(Thread.java:799)



----



Does anybody know what that means by any chance?



Cheers

Julian
2 Replies

Avatar

Level 1
Julian,



What JRE version are you using? I received NoSuchMethodErrors
when trying to compile flex apps when I first started. The JRE does
not recognize the XPath Method. Turned out that the JRE that I was
using was the problem. I think I finally settled on using 1.4.2_12
(I had problems with some of the newest runtimes, and other
problems if I go back too far) and haven't had problems since.
Might be something to try.



Andrew

Avatar

Former Community Member
Hi Andrew,



Thanks very much! I'll give that a go and let you know what I
find. I'm currently using the most recent IBM JDK for Linux:



$ java -version

java version "1.5.0"

Java(TM) 2 Runtime Environment, Standard Edition (build
pxi32dev-20061002a (SR3) )

IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Linux x86-32
j9vmxi3223-20061001 (JIT enabled)

J9VM - 20060915_08260_lHdSMR

JIT - 20060908_1811_r8

GC - 20060906_AA)

JCL - 20061002