users@glassfish.java.net

Re: NameNotFound Exception: No object bound to name java:/comp/env

From: Mon Cab <futon33_at_yahoo.com>
Date: Mon, 31 Mar 2008 13:51:27 -0700 (PDT)

I changed this to java:comp/env

However now I am getting a
javax.naming.NameNotFoundException (with no additioanl explanation as
to what name is not being found).

Earlier in the glassfish logs I am getting the message

The /WEB-INF/web.xml was not found.
Unable to initialize Struts ActionServlet due to an unexpected
exception or error thrown, so marking the servlet as unavailable. Most
likely, this is due to an incorrect or missing library dependency.
javax.servlet.ServletException: The /WEB-INF/web.xml was not found.
        at
org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1140)
        at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:328)
        at javax.servlet.GenericServlet.init(GenericServlet.java:254)
        at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1178)
        at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1007)
        at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4808)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:5196)
        at com.sun.enterprise.web.WebModule.start(WebModule.java:326)
        at
com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:58)
        at
com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:304)
        at
com.sun.appserv.management.util.misc.RunnableBase.run(RunnableBase.java:341)
        at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
        at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
        at java.lang.Thread.run(Thread.java:619)
PWC1412: WebModule[/WebApplication1] ServletContext.log():PWC1409:
Marking servlet action as unavailable
WebModule[/WebApplication1]PWC1396: Servlet /WebApplication1 threw
load() exception
javax.servlet.UnavailableException: The /WEB-INF/web.xml was not found.




--- glassfish_at_javadesktop.org wrote:

> Hi Mon,
>
> The correct prefix is "java:comp/env". There's no "/" after the ":".
> [Message sent by forum member 'ksak' (ksak)]
>
> http://forums.java.net/jive/thread.jspa?messageID=266883
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>



      ____________________________________________________________________________________
No Cost - Get a month of Blockbuster Total Access now. Sweet deal for Yahoo! users and friends.
http://tc.deals.yahoo.com/tc/blockbuster/text1.com