Sounds like you've got Sun RI libs in your classpath (jre/ext dir perhaps?).
The NPE is thrown by sun code and not Orion code (Orion code is
com.evermind.*) so find out where the com.sun classes are loaded from,
remove it from the path and retry.
Hope it helps. :)
/Magnus Stenman, the Orion team
----- Original Message -----
From: "Arthur Copeland (Saphari.com - www.saphari.com)" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Monday, May 15, 2000 11:33 PM
Subject: EAR Question?
> i am new to orion but not the j2ee. i am having a
> problem getting an env-entry attributes. it is
> happening in both servlets and ejbs. i am using 1.0rc1
> on linux redhat 6.2 jdk 1.3 (ibm). but also happened
> on jdk 1.2.2 (sun)
>
> i am currently using an ear archive. and a j2ee
> application.
>
> here is the error:
>
> ++++++++++++++++
> 500 Internal Server Error
>
> java.lang.NullPointerException
> at
>
> com.sun.enterprise.naming.java.javaURLContext.getCompone
> ntContext(javaURLContext.java
> :391)
> at
>
> com.sun.enterprise.naming.java.javaURLContext.lookup(jav
> aURLContext.java:52)
> at
>
> javax.naming.InitialContext.lookup(InitialContext.java:3
> 51)
> at
> com.saphari.webedit.WebEdit.init(WebEdit.java:54)
> at
> com.evermind.server.http.HttpApplication.sj(JAX)
> at
> com.evermind.server.http.HttpApplication.r5(JAX)
> at
> com.evermind.server.http.HttpApplication.qt(JAX)
> at com.evermind.server.http.dl.cd(JAX)
> at com.evermind.util.e.run(JAX)
> ++++++++++++++++
>
> code:
>
> +++++++++
> Context context1 = new InitialContext();
> System.out.println("Context1: " + context1);
>
> System.out.println("Pre Environ: ");
> Integer i =
> (Integer)context1.lookup("java:comp/env/testValue");
> System.out.println("Environ: " + i.toString());
> +++++++++
>
> web.xml
>
> +++++++
> <?xml version="1.0"?>
> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems,
> Inc.//DTD
> Web Application 2.2//EN"
> "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
>
> <web-app>
> <!-- BEGIN ** WebEdit -->
> <servlet>
> <servlet-name>webedit</servlet-name>
> <display-name>webedit</display-name>
>
>
> <servlet-class>com.saphari.webedit.WebEdit</servlet-clas
> s>
> </servlet>
> <env-entry>
> <env-entry-name>testValue</env-entry-name>
> <env-entry-value>1000</env-entry-value>
>
> <env-entry-type>java.lang.Integer</env-entry-type>
> </env-entry>
> <ejb-ref>
> <description>This is the Authentication
> System</description>
>
>
> <ejb-ref-name>ejb/WebEditAuthenticateSessionBean</ejb-re
> f-name>
> <ejb-ref-type>Session</ejb-ref-type>
>
>
> <home>com.saphari.security.AuthenticateSessionHome</home
> >
>
>
> <remote>com.saphari.security.AuthenticateSession</remote
> >
> <ejb-link>AuthenticateSessionBean</ejb-link>
> </ejb-ref>
> <!-- END ** WebEdit -->
> </web-app>
> +++++++
>
> please help.
>
> artie