-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[EMAIL PROTECTED] escribió:
> Hello all,
> 
> I just checked my setup with my tomcat 5.5.16 and i have
> seen that i have the pluto-1.0.1.jar lib in the diectory
> shared lib of my tomcat.
> 
> After adding this jar in my tomcat 4.1.34, i have met some
> problems with the corss context (i am not sure) because i
> found following logs :
> 2007-02-02 10:56:43 ServiceManager: An unidentified error
> occurred
> javax.servlet.UnavailableException: Unable to access context
> for /wsrp4j-testportlet
>       at
> org.apache.pluto.portalImpl.services.portletdefinitionregistry.PortletDefinitionRegistryServiceContextImpl.loadApplicationDefinition(PortletDefinitionRegistryServiceContextImpl.java:147)
>       at
> org.apache.pluto.portalImpl.services.portletdefinitionregistry.PortletDefinitionRegistryServiceContextImpl.init(PortletDefinitionRegistryServiceContextImpl.java:93)
> 
> 
> And this exception appears in the tomcat console :
> 
> java.lang.Exception: ServiceManager: Services initialized
> (4/5 successful).
>         at
> org.apache.pluto.portalImpl.services.ServiceManager.init(ServiceManager.java:27
> 3)
>         at
> org.apache.pluto.portalImpl.services.ServiceManager.init(ServiceManager.java:98
> )
> 
> So what i did is to add the portlet in the wsrp4j-producer
> web application  and it works fine.
> 
> Does somedy has already seen this problem of multiple web
> application on tomcat 4.1.34 ? is it a known bug or do i
> have a wrong configuration on my side ?
> 
> Kind regards,
> 
> Adrien
> 
> --------------------- ALICE SECURITE ENFANTS ---------------------
> Protégez vos enfants des dangers d'Internet en installant Sécurité Enfants, 
> le contrôle parental d'Alice.
> http://www.aliceadsl.fr/securitepc/default_copa.asp
> 
> 

IIRC, in Tomcat 4.x the method we use to configure the cross context
functionality (adding a META-INF/context.xml file in wsrp4j-producer
which contains a crossContext="true" attribute) won't work. In Tomcat
5.x, when you deploy a .war file which contains that
META-INF/context.xml, it will get automatically copied to
$TOMCAT_HOME/conf/Catalina/localhost/<webApp>.xml and it will configure
the cross-context functionality.
   Unfortunately, in Tomcat 4.x you have to copy it manually (or using
your build process) to the conf directory. Check Tomcat4 documentation
here (http://tomcat.apache.org/tomcat-4.1-doc/config/context.html) for
more details.

Hope that helps.
Diego.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFwx87gyzZYflJelERArn5AJwPAHj6TFk+CWDvi8aqu8qLfOnKxwCgk8as
tEEqM6PbuPHKIBKiXnsHDJY=
=zn7o
-----END PGP SIGNATURE-----

Reply via email to