geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "grimba e" <mrgri...@gmail.com>
Subject Re: question cgi geronimo
Date Fri, 01 Sep 2006 15:11:50 GMT
no, it is for being able to pay with card of cretidos   VISA, MASTERCARD,
the supplier of the services give a cgi to get to occupy the service.  that
is to say, the Banks

2006/9/1, Carlos Urbina <urbina.carlos@gmail.com>:
>
> I'm try that too, execute a CGI on geronimo-tomcat 1.0
>
> attempt to follow the steps that the documentation of tomcat in http://tomcat.apache.org/tomcat-5.5-doc/cgi-howto.html
> indicates.
>
> - First, Assume that I use the default configuration of geronimo-tomcat
> (installed on /opt/geronimo1.0 --> GERONIMO_HOME), run on:
> - SUSE LINUX 10
> - JAVA 1.4.2_11
> - appEAR (myappEJB + myappWEB)
> - the CGI runs on the web application (WEB-INF/cgi/cgitest.cgi)
>
> - Second, add "servlets-cgi.jar" in commons libraries (in the group
> tomcat  GERONIMO_HOME/repository/tomcat/jars/servlets-cgi.jar).
>
> - Second, add configuration of CGI in web.xml(GERONIMO_HOME/var/catalina/conf/web.xml,
attach this file)
>
>     *<servlet>*
>         *<servlet-name>*cgi*</servlet-name>*
>         *<servlet-class>*org.apache.catalina.servlets.CGIServlet*</servlet-class>*
>
> *<init-param>*
>           *<param-name>*clientInputTimeout*</param-name>*
>           *<param-value>*100*</param-value>*
>         *</init-param>*
>
> *<init-param>*
>           *<param-name>*debug*</param-name>*
>           *<param-value>*6*</param-value>*
>         *</init-param>*
>         *<init-param>
> *
>           *<param-name>*cgiPathPrefix*</param-name>*
>           *<param-value>*WEB-INF/cgi*</param-value>*
>         *</init-param>*
>          *<load-on-startup>
> *5*</load-on-startup>*
>     *</servlet>*
>
>     *<servlet-mapping>*
>         *<servlet-name>*cgi*</servlet-name>*
>         *<url-pattern>*/cgi-bin/**</url-pattern>*
>     *</servlet-mapping>*
>
>
>
> - Third, restart Geronimo but launch this exception (attach log file):
>
> 04:17:06,394 ERROR [Digester] End event threw exception
> java.lang.reflect.InvocationTargetException
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:324)
> 	at org.apache.tomcat.util.IntrospectionUtils.callMethod1
> (IntrospectionUtils.java:890)
> 	at org.apache.tomcat.util.digester.SetNextRule.end(SetNextRule.java:192)
> 	at org.apache.tomcat.util.digester.Rule.end(Rule.java:228)
> 	at org.apache.tomcat.util.digester.Digester.endElement
> (Digester.java:1057)
> 	at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
> 	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
> 	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch
> (Unknown Source)
> 	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
> 	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> 	at org.apache.xerces.parsers.XML11Configuration.parse
> (Unknown Source)
> 	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> 	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> 	at org.apache.tomcat.util.digester.Digester.parse(Digester.java
> :1561)
> 	at org.apache.catalina.startup.ContextConfig.processDefaultWebConfig(ContextConfig.java:673)
> 	at org.apache.catalina.startup.ContextConfig.defaultWebConfig(ContextConfig.java:610)
> 	at org.apache.catalina.startup.ContextConfig.start
> (ContextConfig.java:1030)
> 	at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:255)
> 	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> 	at org.apache.catalina.core.StandardContext.start
> (StandardContext.java:4053)
> 	at org.apache.geronimo.tomcat.GeronimoStandardContext.start(GeronimoStandardContext.java:197)
> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
> 	at org.apache.catalina.core.StandardHost.start
> (StandardHost.java:718)
> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
> 	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
> 	at org.apache.catalina.startup.Embedded.start
> (Embedded.java:789)
> 	at org.apache.geronimo.tomcat.TomcatContainer.doStart(TomcatContainer.java:187)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:936)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart
> (GBeanInstanceState.java:325)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:110)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:520)
> 	at org.apache.geronimo.gbean.runtime.GBeanSingleReference.attemptFullStart
> (GBeanSingleReference.java:154)
> 	at org.apache.geronimo.gbean.runtime.GBeanSingleReference.targetAdded(GBeanSingleReference.java:127)
> 	at org.apache.geronimo.gbean.runtime.AbstractGBeanReference.addTarget(AbstractGBeanReference.java
> :242)
> 	at org.apache.geronimo.gbean.runtime.GBeanSingleReference$1.running(GBeanSingleReference.java:163)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:155)
>
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:38)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java
> :231)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:350)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:110)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstance.start
> (GBeanInstance.java:520)
> 	at org.apache.geronimo.gbean.runtime.GBeanSingleReference.attemptFullStart(GBeanSingleReference.java:154)
> 	at org.apache.geronimo.gbean.runtime.GBeanSingleReference.targetAdded(GBeanSingleReference.java
> :127)
> 	at org.apache.geronimo.gbean.runtime.AbstractGBeanReference.addTarget(AbstractGBeanReference.java:242)
> 	at org.apache.geronimo.gbean.runtime.GBeanSingleReference$1.running(GBeanSingleReference.java:163)
> 	at
> org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:155)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:38)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent
> (BasicLifecycleMonitor.java:231)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:350)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java
> :110)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:132)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:537)
> 	at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean
> (BasicKernel.java:208)
> 	at org.apache.geronimo.kernel.config.Configuration.startRecursiveGBeans(Configuration.java:315)
> 	at org.apache.geronimo.kernel.config.Configuration$$FastClassByCGLIB$$7f4b4a9b.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:118)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:835)
> 	at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:178)
> 	at org.apache.geronimo.kernel.basic.BasicKernel.invoke
> (BasicKernel.java:173)
> 	at org.apache.geronimo.kernel.config.ConfigurationManagerImpl.start(ConfigurationManagerImpl.java:142)
> 	at org.apache.geronimo.kernel.config.ConfigurationManagerImpl$$FastClassByCGLIB$$fbed85d2.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:118)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:800)
> 	at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
> 	at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke
> (RawOperationInvoker.java:36)
> 	at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
> 	at org.apache.geronimo.kernel.config.ConfigurationManager$$EnhancerByCGLIB$$2300beae.start
> (<generated>)
> 	at org.apache.geronimo.system.main.Daemon.doStartup(Daemon.java:323)
> 	at org.apache.geronimo.system.main.Daemon.<init>(Daemon.java:82)
> 	at org.apache.geronimo.system.main.Daemon.main(Daemon.java
> :404)
> Caused by: java.lang.RuntimeException: org.apache.catalina.servlets.CGIServlet
> 	at org.apache.geronimo.tomcat.GeronimoStandardContext.addChild(GeronimoStandardContext.java:255)
> 	... 77 more
> Caused by: java.lang.ClassNotFoundException
> : org.apache.catalina.servlets.CGIServlet
> 	at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at java.net.URLClassLoader.findClass(URLClassLoader.java
> :187)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
> 	at org.apache.geronimo.tomcat.TomcatClassLoader.loadClass(TomcatClassLoader.java:62)
> 	at
> org.apache.geronimo.tomcat.GeronimoStandardContext.addChild(GeronimoStandardContext.java:224)
> 	... 77 more
> 04:17:06,410 ERROR [ContextConfig] Parse error in default web.xml
> java.lang.RuntimeException: org.apache.catalina.servlets.CGIServlet
>
> 	at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2719)
> 	at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2745)
> 	at org.apache.tomcat.util.digester.Digester.endElement
> (Digester.java:1060)
> 	at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
> 	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
> 	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch
> (Unknown Source)
> 	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
> 	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> 	at org.apache.xerces.parsers.XML11Configuration.parse
> (Unknown Source)
> 	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> 	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> 	at org.apache.tomcat.util.digester.Digester.parse(Digester.java
> :1561)
> 	at org.apache.catalina.startup.ContextConfig.processDefaultWebConfig(ContextConfig.java:673)
> 	at org.apache.catalina.startup.ContextConfig.defaultWebConfig(ContextConfig.java:610)
> 	at org.apache.catalina.startup.ContextConfig.start
> (ContextConfig.java:1030)
> 	at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:255)
> 	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> 	at org.apache.catalina.core.StandardContext.start
> (StandardContext.java:4053)
> 	at org.apache.geronimo.tomcat.GeronimoStandardContext.start(GeronimoStandardContext.java:197)
> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
> 	at org.apache.catalina.core.StandardHost.start
> (StandardHost.java:718)
> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
> 	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
> 	at org.apache.catalina.startup.Embedded.start
> (Embedded.java:789)
> 	at org.apache.geronimo.tomcat.TomcatContainer.doStart(TomcatContainer.java:187)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:936)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart
> (GBeanInstanceState.java:325)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:110)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:520)
> 	at org.apache.geronimo.gbean.runtime.GBeanSingleReference.attemptFullStart
> (GBeanSingleReference.java:154)
> 	at org.apache.geronimo.gbean.runtime.GBeanSingleReference.targetAdded(GBeanSingleReference.java:127)
> 	at org.apache.geronimo.gbean.runtime.AbstractGBeanReference.addTarget(AbstractGBeanReference.java
> :242)
> 	at org.apache.geronimo.gbean.runtime.GBeanSingleReference$1.running(GBeanSingleReference.java:163)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:155)
>
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:38)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java
> :231)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:350)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:110)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstance.start
> (GBeanInstance.java:520)
> 	at org.apache.geronimo.gbean.runtime.GBeanSingleReference.attemptFullStart(GBeanSingleReference.java:154)
> 	at org.apache.geronimo.gbean.runtime.GBeanSingleReference.targetAdded(GBeanSingleReference.java
> :127)
> 	at org.apache.geronimo.gbean.runtime.AbstractGBeanReference.addTarget(AbstractGBeanReference.java:242)
> 	at org.apache.geronimo.gbean.runtime.GBeanSingleReference$1.running(GBeanSingleReference.java:163)
> 	at
> org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:155)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:38)
> 	at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent
> (BasicLifecycleMonitor.java:231)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:350)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java
> :110)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:132)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:537)
> 	at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean
> (BasicKernel.java:208)
> 	at org.apache.geronimo.kernel.config.Configuration.startRecursiveGBeans(Configuration.java:315)
> 	at org.apache.geronimo.kernel.config.Configuration$$FastClassByCGLIB$$7f4b4a9b.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:118)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:835)
> 	at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:178)
> 	at org.apache.geronimo.kernel.basic.BasicKernel.invoke
> (BasicKernel.java:173)
> 	at org.apache.geronimo.kernel.config.ConfigurationManagerImpl.start(ConfigurationManagerImpl.java:142)
> 	at org.apache.geronimo.kernel.config.ConfigurationManagerImpl$$FastClassByCGLIB$$fbed85d2.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:118)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:800)
> 	at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
> 	at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke
> (RawOperationInvoker.java:36)
> 	at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
> 	at org.apache.geronimo.kernel.config.ConfigurationManager$$EnhancerByCGLIB$$2300beae.start
> (<generated>)
> 	at org.apache.geronimo.system.main.Daemon.doStartup(Daemon.java:323)
> 	at org.apache.geronimo.system.main.Daemon.<init>(Daemon.java:82)
> 	at org.apache.geronimo.system.main.Daemon.main(Daemon.java
> :404)
> 04:17:06,414 ERROR [ContextConfig] Occurred at line 300 column 15
> 04:17:06,555 ERROR [ContextConfig] Marking this application unavailable due to previous
error(s)
> 04:17:06,556 ERROR [StandardContext] Error getConfigured
>
> 04:17:06,557 ERROR [StandardContext] Context [] startup failed due to previous errors
> 04:17:10,278 INFO  [Http11Protocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
> 04:17:10,480 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on
> http-0.0.0.0-8080
> 04:17:12,384 INFO  [Http11Protocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8443
> 04:17:12,479 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8443
>
>
> Thanks,
>
> Regards
> Carlos Urbina
>
>
> 2006/9/1, Kanchana Welagedara <kanchanas@gmail.com >:
>
> > Hi
> >
> > Are you trying to Invoke a EAR by running a cgi binary script? In
> > geronimo? is it what you mean?Can you picture what do you want to do?
> >
> > Regards
> > Kanchana
> >
> >
> > On 9/1/06, grimba e < mrgrimba@gmail.com> wrote:
> >
> > > Hi.
> > >  from chilean..
> > > it excuses but I do not speak English
> > > the question is
> > > since I can make run a cgi that is binary.  from one to apply EAR
> > > some direction
> > > thank you very much
> > >
> > >
> >
>
>
>

Mime
View raw message