javax.xml.stream.FactoryConfigurationError???
I have defined a simple webapp (I am going through a web services tutorial) and when I install the app into Geronimo I get the below exception. Since my app isn't nowehere in the stack trace I have to assume, this is when loading or initializing my app or starting one of the prequisites. Could anybody give me a hint, what I might have to do or fix here? Booting Geronimo Kernel (in Java 1.6.0)... Starting Geronimo Application Server v1.1.1 [** ] 93% 45s Starting default/wsn-producer/1...13:21:05,124 ERROR [[/wsn-producer]] StandardWrapper.Throwable javax.xml.stream.FactoryConfigurationError: Provider javax.xml.stream.XMLInputFactory could not be instantiated: java.lang.InstantiationException at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:158) at org.apache.axiom.om.util.StAXUtils.getXMLInputFactory(StAXUtils.java:40) at org.apache.axiom.om.util.StAXUtils.createXMLStreamReader(StAXUtils.java:66) at org.apache.axis2.deployment.DescriptionBuilder.buildOM(DescriptionBuilder.java:86) at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:58) at org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:690) at org.apache.axis2.deployment.WarBasedAxisConfigurator.init(WarBasedAxisConfigurator.java:129) at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:373) at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:317) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3915) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4176) at org.apache.geronimo.tomcat.GeronimoStandardContext.access$201(GeronimoStandardContext.java:67) at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:337) at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:31) at org.apache.geronimo.tomcat.GeronimoStandardContext.start(GeronimoStandardContext.java:192) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) at org.apache.geronimo.tomcat.TomcatContainer.addContext(TomcatContainer.java:313) at org.apache.geronimo.tomcat.TomcatContainer$$FastClassByCGLIB$$9370b073.invoke(generated) at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38) at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:122) at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:817) at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57) at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35) at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96) at org.apache.geronimo.tomcat.TomcatContainer$$EnhancerByCGLIB$$9460619b.addContext(generated) at org.apache.geronimo.tomcat.TomcatWebAppContext.doStart(TomcatWebAppContext.java:438) at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:981) at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:267) at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102) at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:124) at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:540) at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:379) at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:374) at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:187) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:527) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:508) at org.apache.geronimo.kernel.config.SimpleConfigurationManager$$FastClassByCGLIB$$ce77a924.invoke(generated) at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) at
Re: javax.xml.stream.FactoryConfigurationError??? JRE 1.6!
Just figured this out myself! After appending I reconsidered, that maybe I should give this a try with a 1.5 or even 1.4 JRE and - voila! With a 1.5 (or 5.0) JRE things work fine. Thanks and sorry for the bandwidth... Michael
Where does Geronimo put the translated .jsp files?
I am getting an NPE in a .jsp. Where does Geronimo 1.1 put the .java files generated from translating .jsp's, so that I can have a peek into those to figure out, what original .jsp-line is causing this? Michael
Re: PLEASE: where does one specify additional libraries?
Frankly - I don't care. If possible I would of course like to use the version that comes with it (as is obviously started as module 4 of 21, at least that's what the log says), but if necessary, i.e. if I can't access that (for security or whatever reason) I wouldn't mind to pack another copy of it into my app. I have tried and added the built-in axis (geronimo/axis/1.1.1/car) as dependency but that didn't change anything and I still got these JSP compile errors. That's why I am asking: where does one specify these dependencies or imports and how? Michael Aaron Mulder [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Are you trying to use the version of Axis bundled with Geronimo, or a separate version that you supply yourself? Thanks, Aaron On 11/28/06, Michael Moser [EMAIL PROTECTED] wrote: I am trying since days to get an application running on Geronimo. This application - big deal one would think - is using the axis library. When I try to start it I always get the following error: - org.apache.jasper.JasperException: Unable to compile class for JSP Generated servlet error: The type org.apache.axis.AxisFault cannot be resolved. It is indirectly referenced from required .class files org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328) org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:409) org.apache.jasper.compiler.Compiler.compile(Compiler.java:297) org.apache.jasper.compiler.Compiler.compile(Compiler.java:276) org.apache.jasper.compiler.Compiler.compile(Compiler.java:264) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:688) - So - apparently - the axis.jar (the one that contains the class org.apache.axis.AxisFault) is not on the classpath when the JSPs are compiled. Where does one specify these libraries so that compilation succeeds? The geronimo docs are suspiciously silent on this? Is this such an obvious thing? Not for me, I have to admit... Michael
Re: PLEASE: where does one specify additional libraries?
For some very mysterious reason this now suddenly works. One has to put the .jars into an apps WEB-INF/lib directory, which is the very first location I had tried. Only when that didn't work I started to search like mad, what magic incantation Geronimo requires me to mumble to locate those darn libraries. Only when I gave up in despair and restarted from scratch this time everything magically worked as expected. The world would be a so much better place if computers would behave rational and understandably... Michael
PLEASE: where does one specify additional libraries?
I am trying since days to get an application running on Geronimo. This application - big deal one would think - is using the axis library. When I try to start it I always get the following error: - org.apache.jasper.JasperException: Unable to compile class for JSP Generated servlet error: The type org.apache.axis.AxisFault cannot be resolved. It is indirectly referenced from required .class files org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328) org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:409) org.apache.jasper.compiler.Compiler.compile(Compiler.java:297) org.apache.jasper.compiler.Compiler.compile(Compiler.java:276) org.apache.jasper.compiler.Compiler.compile(Compiler.java:264) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:688) - So - apparently - the axis.jar (the one that contains the class org.apache.axis.AxisFault) is not on the classpath when the JSPs are compiled. Where does one specify these libraries so that compilation succeeds? The geronimo docs are suspiciously silent on this? Is this such an obvious thing? Not for me, I have to admit... Michael
What is needed, so that deployed apps can find axis.jar?
Using eclipse WST I am trying to run a test-client for another web service on geronimo 1.1. As a first step I am using a very trivial WSDL file describing a single operation (which takes 2 strings and returns one string) and triggered the full create client process. Creation, assembling, deploying and installing work all fine, but when the test client is finally started on geronimo 1.1 I get the below error message. type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP Generated servlet error: The type org.apache.axis.AxisFault cannot be resolved. It is indirectly referenced from required .class files org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328) org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:409) org.apache.jasper.compiler.Compiler.compile(Compiler.java:297) org.apache.jasper.compiler.Compiler.compile(Compiler.java:276) org.apache.jasper.compiler.Compiler.compile(Compiler.java:264) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:688)note The full stack trace of the root cause is available in the ApacheTomcat/5.5.15 logs.Apache Tomcat/5.5.15Geronimo comes with axis 1.4 pre-installed (just found it in therepository) which also contains the missing class (I just checked).So, what do I have to do or specify, so that a newly installedapplication will find that .jar?Do I have to put a copy of that axis.jar into the lib or endorseddirectory?Michael
how to force axis2 library to send out all pending requests?
I just ran into some problem with fireAndForget(...)-requests. These obviously get buffered inside AxisEngine. Thus, if the application terminates immediately after posting the last request(s) these request get never sent. I stumbled over this, when experimenting with a command line code snippet that uses the axis2 library to generate and send out SOAP request. I first couldn't understand why these requests had no effect. After some digging I found out that these request were never received. After some further digging I realized they weren't even sent out, either. And after even more digging I finally realized, what was going wrong here... Is there some shutdown method or such in that library? I searched but found nothing so far... Michael
Re: AXIS2 newbie question: how to unload a deployed .aar file?
Copied my axis related questions over to the axis NG. Hadn't been aware, that there was a special axis NG. For some reason my quick search yesterday hadn't surfaced it, so I had posted here. Sorry for polluting this NG! Cheers, Michael
Re: JavaScript error on Geronimo's console when requesting Information
Yes - 1939 sounds very similar - at least the same error messages and location. The JIRAs offer no solution, though, but only guess at possible reasons and ask for a solution other than requiring the Adobe SVG plugin. I testet my SVG plugin as described in the first JIRA and it seems to work - at least according to the Adobe test page, so at least that does not seem to be the problem here... I didn't find any option in IE7 to fiddle with JS caching. I found another, though, that disables script debugging. After unchecking that one (i.e. enabling script debugging), I now - after clicking away the first alert - get a second one on that page that reads: -- 'navigator.userAgent' is null or not an object line: 416, column: 0 -- I did a quick search myself, but none of the java-scripts mentioned in my previous append, is that long. The only source that's long enough is the main info page itself, but it has some plain vanilla HTML code (some table) at that location, so no indication what could be wrong here, either. Maybe that error message rings some bell or provides a clue to someone else? Michael Paul McMahan [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Thanks for doing the extra detective work. This looks like a problem in IE7 javascript processing to me. The offending script you referenced is only present in the login page and is inlined directly in that JSP's html content. It is not (or at least I don't understand how it could possibly be) in any of the JS files that are included when you view the Information portlet. My suspicion is that if you view those same JS files using firefox then you won't see the same contents as in IE, which indicates to me that IE7 is not caching JS files correctly. Disabling caching in your browser may provide some further clues. I believe the root of this problem is related to the issue described in this JIRA: http://issues.apache.org/jira/browse/GERONIMO-1939 Which will probably be addressed by this JIRA: http://issues.apache.org/jira/browse/GERONIMO-2552 Best wishes, Paul On 11/10/06, Michael Moser [EMAIL PROTECTED] wrote: In the main document there is only plain vanilla HTML code at that line ... trtddiv class=Selectiontable width=100% border=0 cellpadding=1 cellspacing=0 ... so I guess, that's not the culprit. The page references four other .js files: One in the header: script language=Javascript src=/console/js/forms.js type=text/javascript/script That file is only 33 lines long, so no suspicious line 82, either. And three more in the body (starting at line 658): script type='text/javascript' src='/console/portal/../dwr/interface/Jsr77Stats.js'/script script type='text/javascript' src='/console/portal/../dwr/engine.js'/script script type='text/javascript' src='/console/portal/../dwr/util.js'/script In all three of these (generated from the same style-sheet or code?) line 82 reads ('' added by me to mark line 82): ... script if (document.cookie == ) { document.writeln('font color=redstrongNote: Logging onto the Geronimo Console requires cookies to be enabled in your web browser./strong/fontbr'); } /script ... Beats me why IE7 doesn't like that. I don't see anything fishy here - maybe you ? Michael Aaron Mulder [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Can you find out what's at line 82? Thanks, Aaron On 11/10/06, Michael Moser [EMAIL PROTECTED] wrote: Downloaded and installed geronimo 1.1.1 to WinXP box. Start login as system/manager and click on the Information link on left side tree-view. I always get a JavaScript error reading: Wrong number of parameters, 1 expected line 82, column: 0 Yes, I admit, this is using Internet Explorer (V7) - with Firefox there is no such error... Michael
Re: Deploying Axis2 1.0 in Geronimo 1.1.1 yields error
Thanks for your help! I was following a tutorial (https://www6.software.ibm.com/developerworks/education/ws-understand-web-services1/) and there I read to just put the axis.jar into geronimo's deploy folder. So there might be two issues: one, that geronimo already comes with axis (as Chris mentioned in his append). The tutorial actually refers to older versions of geronimo and axis, but when I came to install all prerequisites of course I downloaded the current versions of all items listed, so that may explain some differences. second, that .jars found in the deploy folder get deployed again on startup and so - if I understood correct - I should only have them in there once and remove them after they have been deployed or else geronimo will attempt to deploy them again. I will try to resolve and manage that via the console, instead - as suggested. Thanks again, Michael [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi Michael, Tested it in a Windows machine too. It works perfectly here (I was bit suspect of class loading issues, that is why wanted to check it in a Windows machine too). Found your bug too. Your Geronimo server tries to deploy the Axis 2 twise I think. That caused this problem. After the first deployment remove the Axis2.war from your deploy directory. It will give you expected results :). My personal feeling is using Geronimo cosole will reduce this kind of unexpected results from a starter. Also I heard Axis2 1.0 is not that stable version too ;). Thanks, Lasantha Ranaweera Hi Michael, I played with Axis2 for the Web Service sample application some time before. It works for me fine for the deployment of both hot deployment and console based one even though it gives a warning (Linux machine). I will definitely investigate this and let you know any updates. :) Thanks, Lasantha Ranaweera Hi all, (I'm a newby to Geronimo and Axis2 - if there is a better NG to ask this: please advise) I just downloaded Geronimo V1.1 (tomcat version) from the Apache website to my Windows XP box - it seems to work OK. I get the welcome screen and I can login to the console and inspect settings etc. etc. I then downloaded Axis2 V1.0 and moved the axis2.war file to the GERONIMO_HOMEdeploy directory. But if I now start geronimo with axis2.war in place I get the console output below. For some reason the axis2.war can't be (fully) deployed. Not fully means: I get the axis2 welcome page and even the validate works OK, but I can't e.g. login (http://localhost:8080/axis2/Login.jsp) or do anything else here. Any ideas? Michael Booting Geronimo Kernel (in Java 1.5.0_07)... Starting Geronimo Application Server v1.1.1 [* ] 93% 13s Starting default/axis2/116307663...14:23:45,603 INFO [DeploymentEngine] Deploying module : addre ssing-1.0 14:23:45,603 INFO [DeploymentEngine] Deploying module : soapmonitor-1.0 [***] 100% 14s Startup complete Listening on Ports: 1099 0.0.0.0 RMI Naming 1527 0.0.0.0 Derby Connector 4201 0.0.0.0 ActiveIO Connector EJB 4242 0.0.0.0 Remote Login Listener 8009 0.0.0.0 Tomcat Connector AJP 8080 0.0.0.0 Tomcat Connector HTTP 8443 0.0.0.0 Tomcat Connector HTTPS 0.0.0.0 JMX Remoting Connector 61616 0.0.0.0 ActiveMQ Message Broker Connector Started Application Modules: EAR: geronimo/webconsole-tomcat/1.1.1/car RAR: geronimo/activemq/1.1.1/car WAR: default/axis2/1163076636493/war WAR: geronimo/remote-deploy-tomcat/1.1.1/car WAR: geronimo/welcome-tomcat/1.1.1/car Web Applications: http://SEMENTINA:8080/ http://SEMENTINA:8080/axis2 http://SEMENTINA:8080/console http://SEMENTINA:8080/console-standard http://SEMENTINA:8080/remote-deploy Geronimo Application Server started 14:23:47,056 ERROR [DirectoryMonitor] Unable to scan file C:\geronimo-1.1.1\deploy\axis2.war during initialization java.lang.IllegalArgumentException: Invalid id: axis2 at org.apache.geronimo.kernel.repository.Artifact.create(Artifact.java:49) at org.apache.geronimo.deployment.hot.DirectoryHotDeployer.getDeploymentTime(DirectoryHotDeployer.java:215) at org.apache.geronimo.deployment.hot.DirectoryMonitor.initialize(DirectoryMonitor.java:233) at org.apache.geronimo.deployment.hot.DirectoryMonitor.run(DirectoryMonitor.java:206) at java.lang.Thread.run(Unknown Source) 14:23:51,056 INFO [Hot Deployer] Deploying axis2.war 14:23:51,728 WARN [TomcatModuleBuilder] Web application . does not contain a WEB-INF/geronimo-web.xml deployment plan. This may or may not be a problem, depending on whether you have things like resource references that need to be resolved. You can also give th e deployer a separate deployment plan file on the command line. 14:23:53,368 ERROR [GBeanInstance] Problem in doFail of default/axis2/1163078631197/war?J2EEApplication=null,j2eeType=WebModule,name =default/axis2/1163078631197/war
JavaScript error on Geronimo's console when requesting Information
Downloaded and installed geronimo 1.1.1 to WinXP box. Start login as system/manager and click on the Information link on left side tree-view. I always get a JavaScript error reading: Wrong number of parameters, 1 expected line 82, column: 0 Yes, I admit, this is using Internet Explorer (V7) - with Firefox there is no such error... Michael
Re: JavaScript error on Geronimo's console when requesting Information
In the main document there is only plain vanilla HTML code at that line ... trtddiv class=Selectiontable width=100% border=0 cellpadding=1 cellspacing=0 ... so I guess, that's not the culprit. The page references four other .js files: One in the header: script language=Javascript src=/console/js/forms.js type=text/javascript/script That file is only 33 lines long, so no suspicious line 82, either. And three more in the body (starting at line 658): script type='text/javascript' src='/console/portal/../dwr/interface/Jsr77Stats.js'/script script type='text/javascript' src='/console/portal/../dwr/engine.js'/script script type='text/javascript' src='/console/portal/../dwr/util.js'/script In all three of these (generated from the same style-sheet or code?) line 82 reads ('' added by me to mark line 82): ... script if (document.cookie == ) { document.writeln('font color=redstrongNote: Logging onto the Geronimo Console requires cookies to be enabled in your web browser./strong/fontbr'); } /script ... Beats me why IE7 doesn't like that. I don't see anything fishy here - maybe you ? Michael Aaron Mulder [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Can you find out what's at line 82? Thanks, Aaron On 11/10/06, Michael Moser [EMAIL PROTECTED] wrote: Downloaded and installed geronimo 1.1.1 to WinXP box. Start login as system/manager and click on the Information link on left side tree-view. I always get a JavaScript error reading: Wrong number of parameters, 1 expected line 82, column: 0 Yes, I admit, this is using Internet Explorer (V7) - with Firefox there is no such error... Michael