You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2002/08/11 22:10:33 UTC

DO NOT REPLY [Bug 11619] New: - Environment entries cause HTTP 500

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11619>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11619

Environment entries cause HTTP 500

           Summary: Environment entries cause HTTP 500
           Product: Tomcat 4
           Version: 4.1.8
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Servlet & JSP API
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: apachedev@jokey.tv


If I insert the following lines in the doGet() part:

    try
    {
      Context initCtx = new InitialContext( );
      String datenPfad = (String) initCtx.lookup("java:comp/env/datenPfad");
    }
    catch (NamingException e)
    {
    } 

I can read the String datenPfad once. But when I reload the page I get a 
nullPointerException when I do some if things with it.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>