Ok, as no response from mailing list, considering this a bug :) Summited to http://issues.apache.org/jira/browse/CACTUS-228 Le Jeudi 25 Août 2005 09:28, David Delbecq a écrit : > The problem is still there and is not realted to the .war > It is related to the way maven plugin load tomcat i think. > The error > javax.naming.NamingException: Cannot create resource instance > at > org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:132) > at > javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301) > at org.apache.naming.NamingContext.lookup(NamingContext.java:792) > at org.apache.naming.NamingContext.lookup(NamingContext.java:152) > at > org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:222) > > seems to mean there is no way to start jndi provider, something may be wrong > with the tomcat classpath. > However, if I try to run tomcat stand-alone and i deploy the cactus war, it > works very well and the cactus > plugin is, strangely, able to use it to run it's unit test if i let it > running > (but this is not acceptable as very far from an automated solution :) ) > > I attached a test-case showing the bug. If someone has any idea, welcomed. > Otherwise, i think i'll bug report :) > version of tools: > > maven v. 1.0.1 > tomcat 5.5.7 + tomcat-admin + tomcat-compat > java version "1.4.2_05" (build 1.4.2_05-b04, mixed mode) > cactus-maven version 1.7.1 > cactus 1.7.1 in dependencies > > full content of tomcat5x.out: > > Created MBeanServer with ID: 1d05c81:105ec82b910:-8000:CAL-12:1 > 25-août-2005 9:20:55 org.apache.coyote.http11.Http11Protocol init > INFO: Initialisation de Coyote HTTP/1.1 sur http-9090 > 25-août-2005 9:20:55 org.apache.catalina.startup.Catalina load > INFO: Initialization processed in 1117 ms > 25-août-2005 9:20:55 org.apache.catalina.core.StandardService start > INFO: Démarrage du service Catalina > 25-août-2005 9:20:55 org.apache.catalina.core.StandardEngine start > INFO: Starting Servlet Engine: Apache Tomcat/5.5.7 > 25-août-2005 9:20:55 org.apache.catalina.realm.UserDatabaseRealm start > GRAVE: Exception lors de la recherche dans la base de données utilisateurs > avec la clef UserDatabase > javax.naming.NamingException: Cannot create resource instance > at > org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:132) > at > javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301) > at org.apache.naming.NamingContext.lookup(NamingContext.java:792) > at org.apache.naming.NamingContext.lookup(NamingContext.java:152) > at > org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:222) > at > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1003) > at > org.apache.catalina.core.StandardEngine.start(StandardEngine.java:440) > at > org.apache.catalina.core.StandardService.start(StandardService.java:450) > at > org.apache.catalina.core.StandardServer.start(StandardServer.java:683) > at org.apache.catalina.startup.Catalina.start(Catalina.java:537) > 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.start(Bootstrap.java:271) > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409) > 25-août-2005 9:20:55 org.apache.catalina.startup.Catalina start > GRAVE: Catalina.start: > LifecycleException: Aucun composant base de données utilisateurs trouvé pour > la clef UserDatabase > at > org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:228) > at > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1003) > at > org.apache.catalina.core.StandardEngine.start(StandardEngine.java:440) > at > org.apache.catalina.core.StandardService.start(StandardService.java:450) > at > org.apache.catalina.core.StandardServer.start(StandardServer.java:683) > at org.apache.catalina.startup.Catalina.start(Catalina.java:537) > 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.start(Bootstrap.java:271) > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409) > 25-août-2005 9:20:55 org.apache.catalina.startup.Catalina start > INFO: Server startup in 52 ms > > Le Jeudi 25 Août 2005 05:07, Felipe Leme a écrit : > > Nicolas Chalumeau wrote: > > > Ok, I think you have to create an empty webapp with an empty web.xml > > > > In Cactus 1.7.1 you don't have to anymore: > > > > http://issues.apache.org/jira/browse/CACTUS-90 > > > > > > -- Felipe > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > >
-- David Delbecq Royal Meteorological Institute of Belgium - Is there life after /sbin/halt -p? --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
