I tried setting J2EEApplication (and J2EEServer) for WebModules. I set the values on o.a.c.StandardContext from GeronimoStandardContext.setContextProperties(). The servlets had the correct setting for J2EEApplication and J2EEServer. Everything seems to work fine, except that at shutdown I get the following message: Does any one know why?
Server shutdown begun
09:53:50,937 INFO [TransportConnector] Connector stomp://your-4dacd0ea75:61613 Stopped
09:53:50,937 INFO [TransportConnector] Connector vm://localhost Stopped
09:53:55,906 INFO [TransportConnector] Connector tcp://0.0.0.0:61616 Stopped
09:53:55,906 INFO [BrokerService] ActiveMQ Message Broker (possibly-unique-broker, ID:you
r-4dacd0ea75-1589-1161611118750-1:0) is shutting down
09:53:55,906 INFO [TransportConnector] Connector tcp://0.0.0.0:61616 Stopped
09:53:55,906 INFO [TransportConnector] Connector vm://localhost Stopped
09:53:55,906 INFO [TransportConnector] Connector stomp://your-4dacd0ea75:61613 Stopped
09:53:55,921 INFO [BrokerService] ActiveMQ JMS Message Broker (possibly-unique-broker, ID
:your-4dacd0ea75-1589-1161611118750-1:0) stopped
09:53:56,000 ERROR [ManagerBase] IOException while saving persisted sessions: java.io.File
NotFoundException: C:\anita\geronimo\geronimo-tomcat-j2ee-1.2-SNAPSHOT\var\catalina\work\_
\SESSIONS.ser (The system cannot find the path specified)
java.io.FileNotFoundException: C:\anita\geronimo\geronimo-tomcat-j2ee-1.2-SNAPSHOT\var\cat
alina\work\_\SESSIONS.ser (The system cannot find the path specified)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
at org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:488)
at org.apache.catalina.session.StandardManager.unload(StandardManager.java:462)
at org.apache.catalina.session.StandardManager.stop(StandardManager.java:666)
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4316)
at org.apache.geronimo.tomcat.GeronimoStandardContext.stop(GeronimoStandardContext
........................................
...........................................
................................................
at org.apache.geronimo.system.main.Daemon$1.run(Daemon.java:234)
09:53:56,062 INFO [StandardPipeline] Can't unregister valve org.apache.catalina.core.Stan
dardContextValve[]
javax.management.InstanceNotFoundException: MBeanServer cannot find MBean with ObjectName
Geronimo:type=Valve,name=StandardContextValve,path=/,host=0.0.0.0
at mx4j.server.MX4JMBeanServer.findMBeanMetaData(MX4JMBeanServer.java:491)
at mx4j.server.MX4JMBeanServer.unregisterMBean(MX4JMBeanServer.java:924)
at org.apache.catalina.core.StandardPipeline.unregisterValve(StandardPipeline.java
:321)
at org.apache.catalina.core.StandardPipeline.stop(StandardPipeline.java:274)
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4333)
at org.apache.geronimo.tomcat.GeronimoStandardContext.stop(GeronimoStandardContext
.java:198)
at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1065)
................................................
..........................................................
....................................................................................
anita kulshreshtha <[EMAIL PROTECTED]> wrote:
Hi All,
In response to the following issue raised by David Jencks, I am thinking of changing the the implementation of Servlet and ServletStats (required by jsr77) for tomcat. The older implementation (GERONIMO-1035) will have 2 of each servlets! I am thinking of a ServletsHolder, which will be a container for all servlets of a WebModule. It will be a statistics provider. I think it is possible to set J2EEAppilcation and J2EEServer for modules, hence the servlets will have names like :
Geronimo:j2eeType=Servlet,name=EJBServer,WebModule=//0.0.0.0/console-standard,J2EEApplication=....,J2EEServer=....
Are there any problems with this approach?
Thanks
Anita.........................<snip>...........................................................
2. We have 2 mbeans claiming to be the web module: one from our
gbean, which has no servlets, and one from tomcat, which actuallly
has the servlets. These have rather different naming policies. For
instance, the tomcat one has J2EEModule=//context-root whereas ours
has J2EEModule=jarname or configid/moduleId.
I'm tempted to make our gbean claim to be a WebModuleWrapper or
something like that so jsr-77 only finds one mbean/web module. I'd
like to get at least the J2EEApplication set correctly on the tomcat
mbeans and preferably get the WebModule to agree with our setting.
Comments? Other proposals?
thanks
david jencks
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2ยข/min or less.
Stay in the know. Pulse on the new Yahoo.com. Check it out.
