Servlet calls Connector

2002-11-11 Thread h . buerger
Hi,

i have a Servlet that needs to use object instances initially loaded
by a connector.
I first tried to use a resource but the environment is not set up
when the connector starts. Any ideas how a Servlet can communicate
with the connector instance?


Haug


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




java:/comp/env with Tomcat 4.0 inside a Connector

2002-10-28 Thread h . buerger
Hi,

i tried to register my Connector as a resource "java:/comp/env/MyConnector"
but
it seems that "java:/comp/env" is not initialized when the connector
starts. The same
code has no problems run as servlet.

Is my assumption right? Is there any event i can use to register my
connector
as a resource?

Thanks
 Haug


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Re: Using a tomcat 4.0 connector with tomcat 4.1

2002-09-24 Thread h . buerger


Sounds helpful, thanks Amy, but introduces some issues.

In the last few weeks we developed three connectors and it will
be more in future.

1. My main question is, why isn't mbeans-descriptors.xml part of
   the configuration directory?

2. For me it looks like i have to rebuild tomcat to get my
   connector known.

Do i miss something?

Haug


>You can either add a mbean description for your connector similar to
>other Connectors in o.a.c.mbeans.mbeans-descriptors.xml or disable the
>two JMX supporting Listeners (ServerLifecycleListener and
>GlobalResourcesLifecycleListener)in server.xml if you don't want the JMX
>support.  I'd recommend adding something like this in
>mbeans-descriptors.xml so tomcat starts smoothly without complaining
>mbean not found for your connector.
>
>className="org.apache.catalina.mbeans.ConnectorMBean"
>   description="MyXyConnector"
>domain="Catalina"
> group="Connector"
>  type="org.apache.coyote.tomcat4.MyXyConnector">
>
>   
>
>Amy


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Using a tomcat 4.0 connector with tomcat 4.1

2002-09-23 Thread h . buerger

Hi,

i have a connector working with tomcat 4.0 and want to use it with
tomcat 4.1. First problem was that the lifecycle interface had changed.
I could fix that in a way i can deploy on 4.0 and 4.1.

But i still crash with an exception:
java.lang.Exception: ManagedBean is not found with MyXyConnector
at
org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:225)
at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:359)
at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:716)
at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:690)
at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:329)
at
org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent(ServerLifecycleListener.java:206)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2184)
at org.apache.catalina.startup.Catalina.start(Catalina.java:510)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
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.catalina.startup.Bootstrap.main(Bootstrap.java:203)

I'm no JMX guru, what must i do to get rid of it?

Thanks
 Haug





--
To unsubscribe, e-mail:   
For additional commands, e-mail: