hello steve, Thank you again. I have done the following
1) restarted the server 2) accessed the http://localhost:8080/mms_test again however once I tried to access the log at /usr/local/tomcat/logs , I realized that there is no log file for today, the last one is dated for "localhost.2008-10-17.log". But the only thing that I have found for today's date( which doesn't show the correct time) is: -rw-r--r-- 1 root root 127530 2008-12-22 15:40 catalina.out I have looked inside , there are bunch of errors for different dates, but again wasn't able to find any error for today's date(let me know if you want, I can copy paste the contents in the file). This is very strange, it seems like the tomcat is unable to register the errors!!!! Any ideas what's going on??? I have however using the default tomcat in the ubuntu, do i need to change something else, or reinstall another version?? Thank you kindly for all your help. Daniel On Mon, Dec 22, 2008 at 9:49 PM, Steve Ochani <ocha...@ncc.edu> wrote: > On 22 Dec 2008 at 18:28, zia mohades wrote: > > Send reply to: Tomcat Users List <users@tomcat.apache.org> > Date sent: Mon, 22 Dec 2008 18:28:12 -0500 > From: zia mohades <zia.si...@gmail.com> > To: Tomcat Users List <users@tomcat.apache.org> > Subject: Re: Tomcat 5.5 error > > > Hello steve, > > > > thank you for your message! when I try to place mms_test in > > /usr/local/tomcat/webapps, I get the same error: > > > > HTTP Status 404 - /mms_test > > > > Any Idea why? > > > > Try restarting tomcat, then try to access the webapp again and look at the > logs. > > > > > > > thank you for your time! > > > > > > On Mon, Dec 22, 2008 at 4:03 PM, Steve Ochani <ocha...@ncc.edu> > > wrote: > > > > > On 22 Dec 2008 at 15:43, zia mohades wrote: > > > > > > Send reply to: Tomcat Users List <users@tomcat.apache.org> > > > Date sent: Mon, 22 Dec 2008 15:43:41 -0500 > > > From: zia mohades <zia.si...@gmail.com> > > > To: Tomcat Users List <users@tomcat.apache.org> > > > Subject: Tomcat 5.5 error > > > > > > > hello all! > > > > > > > > I am currently using tomcat 5.5 on my labtop which is running > > on > > > > ubuntu. > > > > When I access http://localhost:8080/ , i get the default page, > > which > > > > is a > > > > good news( meaning tomcat is running) However when I try to > > place my > > > > own > > > > html folder(called mms_test) in /usr/local/tomcat/webapps/ROOT > > and > > > > then try > > > > to reload the page using http://localhost:8080/mms_test , i > > get > > > > this error: > > > > HTTP Status 404 - /mms_test > > > > > > You can't put one webapp into another webapp. > > > > > > Put mms_test in /usr/local/tomcat/webapps > > > > > > > > > -Steve O. > > > > > > > > > > > > > > > > ------------------------------ > > > > > > > > *type* Status report > > > > > > > > *message* */mms_test* > > > > > > > > *description* *The requested resource (/mms_test) is not > > > > available.* > > > > > > > > any idea why? > > > > > > > > > > > > your help is very much appreciated! > > > > > > > > best regards > > > > > > > > On Mon, Dec 22, 2008 at 11:08 AM, Filip Hanik - Dev Lists < > > > > devli...@hanik.com> wrote: > > > > > > > > > here is the name you specify > > > > > > > > > > <res-ref-name>jdbc/my_jdbc_name</res-ref-name> > > > > > > > > > > and here is your error > > > > > Could not find datasource:jdbc/workout_logger > > > > > > > > > > as you can see, somewhere you have configured the string > > > > workout_logger, > > > > > and that one doesn't exist > > > > > > > > > > Filip > > > > > > > > > > > > > > > arturoguedez wrote: > > > > > > > > > >> Hi! > > > > >> > > > > >> I have been reading how to setup datasources for Tomcat > > 6.0.18 > > > > in > > > > >> > > > > >> > > > > > > http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-how > > > > to.html > > > > >> and nothing I have done has allowed my web application to > > view > > > > the > > > > >> datasource i have created. > > > > >> > > > > >> Here are some snippets of my web.xml, and my server.xml > > > > >> In the web.xml > > > > >> > > > > >> <resource-ref> > > > > >> <description>DB Connection</description> > > > > >> <res-ref-name>jdbc/my_jdbc_name</res-ref-name> > > > > >> <res-type>javax.sql.DataSource</res-type> > > > > >> <res-auth>Container</res-auth> > > > > >> </resource-ref> > > > > >> > > > > >> In server.xml > > > > >> I have tried to place the following snip it anywhere I saw in > > the > > > > docs it > > > > >> could belong to (ei, in the GlobalNamingResources, inside > > the > > > > Host tag, or > > > > >> inside the Context tag in all possible locations (under > > > > >> META-INF/context.xml, under > > > > >> $CATALINA_BASE/conf/[engine]/[host]/[path].xml) > > > > >> and I haven't been successful. > > > > >> > > > > >> <Resource name="jdbc/my_jdbc_name" auth="Container" > > > > >> type="javax.sql.DataSource" > > > > >> maxActive="100" maxIdle="30" maxWait="10000" > > > > >> username="user" password="password" > > > > >> driverClassName="com.mysql.jdbc.Driver" > > > > >> > > > > >> > > > > > > url="jdbc:mysql://localhost:3306/database_name?autoReconnect=true"/> > > > > >> > > > > >> > > > > >> I am using Entity Managers to get my connections opened, here > > is > > > > the snip > > > > >> it > > > > >> of my persistence.xml > > > > >> > > > > >> <persistence-unit name="my_pu_name" > > > > >> transaction-type="RESOURCE_LOCAL"> > > > > >> > > > > >> > > <non-jta-data-source>jdbc/my_jdbc_name</non-jta-data-source> > > > > >> </persistence-unit> > > > > >> > > > > >> Here is what I get in my tomcat logs: > > > > >> > > > > >> 08/12/21 17:32:17 ERROR ceConnectionProvider: Could not > > find > > > > datasource: > > > > >> jdbc/workout_logger > > > > >> javax.naming.NameNotFoundException: Name jdbc is not bound > > in > > > > this Context > > > > >> at > > > > org.apache.naming.NamingContext.lookup(NamingContext.java:770) > > > > >> at > > > > org.apache.naming.NamingContext.lookup(NamingContext.java:153) > > > > >> at > > > > >> > > > > > > org.apache.naming.SelectorContext.lookup(SelectorContext.java:137) > > > > >> at > > > > javax.naming.InitialContext.lookup(InitialContext.java:392) > > > > >> at > > > > >> > > > > >> > > > > > > org.hibernate.connection.DatasourceConnectionProvider.configure(Data > > > > sourceConnectionProvider.java:75) > > > > >> at > > > > >> > > > > >> > > > > > > org.hibernate.connection.ConnectionProviderFactory.newConnectionProv > > > > ider(ConnectionProviderFactory.java:137) > > > > >> at > > > > >> > > > > >> > > > > > > org.hibernate.ejb.InjectionSettingsFactory.createConnectionProvider( > > > > InjectionSettingsFactory.java:29) > > > > >> at > > > > >> > > > > > > org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java > > > > :89) > > > > >> at > > > > >> > > > > > > org.hibernate.cfg.Configuration.buildSettings(Configuration.java:210 > > > > 1) > > > > >> at > > > > >> > > > > >> > > > > > > org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.ja > > > > va:1325) > > > > >> at > > > > >> > > > > >> > > > > > > org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(Annota > > > > tionConfiguration.java:867) > > > > >> at > > > > >> > > > > >> > > > > > > org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Co > > > > nfiguration.java:669) > > > > >> at > > > > >> > > > > >> > > > > > > org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(Hi > > > > bernatePersistence.java:126) > > > > >> at > > > > >> > > > > >> > > > > > > javax.persistence.Persistence.createEntityManagerFactory(Persistence > > > > .java:52) > > > > >> .... > > > > >> > > > > >> > > > > >> > > > > >> Does anybody know what I am doing wrong? Is there any way > > to > > > > check which > > > > >> resources Tomcat makes avaiable? I am having a really hard > > time > > > > >> understanding what I am doing wrong. > > > > >> > > > > >> > > > > > > > > > > > > > > > > > > > > > -------------------------------------------------------------------- > > > > - > > > > > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > > > > > For additional commands, e-mail: > > users-h...@tomcat.apache.org > > > > > > > > > > > > > > > > > > > > > > > > > > > > -------------------------------------------------------------------- > > - > > > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > > > For additional commands, e-mail: users-h...@tomcat.apache.org > > > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >