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?

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
>
>

Reply via email to