Sun One Webserver Connection Pooling - javax.naming.NamingException

I'm trying to configure a container managed datasource in Sun One Webserver. I've followed the steps given in the Sun One Webserver Administrator's Guide, however when I try to lookup the datasource I get a "javax.naming.NamingException: Cannot create resource instance" exception (full stack trace below). I have verified the database connection info (URL/user/password) is correct using Squirrel and I've appended the location of classes12.jar to the server's classpath in server.xml. Relevant snippets from the configuration files, my lookup code, and the stack trace are below. I've been beating my head on this for almost two days and I would appreciate any tips on how to debug this.
web.xml
    <resource-ref>
        <description>JNDI DataSource</description>
        <res-ref-name>jdbc/web920</res-ref-name>
        <res-type>javax.sql.DataSource</res-type>
        <res-auth>Container</res-auth>
        <res-sharing-scope>Sharable</res-sharing-scope>
    </resource-ref>
sun-web.xml
    <resource-ref>
        <res-ref-name>jdbc/web920</res-ref-name>
        <jndi-name>jdbc/web920</jndi-name>
    </resource-ref> 
server.xml
<RESOURCES>
    <JDBCCONNECTIONPOOL name="web920" datasourceclassname="oracle.jdbc.pool.OracleDataSource" steadypoolsize="8" maxpoolsize="32" poolresizequantity="2" idletimeout="300" maxwaittime="60000" connectionvalidationrequired="off"
        connectionvalidationmethod="auto-commit" validationtablename="" failallconnections="off" transactionisolationlevel="read-uncommitted" isolationlevelguaranteed="off">
        <PROPERTY name="URL" value="jdbc:oracle:thin:@d1web920.mydomain.com:1521:d1web920" />
        <PROPERTY name="User" value="<username>" />
        <PROPERTY name="Password" value="<password>" />
    </JDBCCONNECTIONPOOL>
    <JDBCRESOURCE jndiname="jdbc/web920" poolname="web920" enabled="on" />
</RESOURCES>
Lookup code
    private static DataSource getDataSource(){
        DataSource ds = null;
        try {
            Object o = new InitialContext().lookup("java:comp/env/jdbc/web920");
            ds = (DataSource) o;
        } catch (NamingException e) {
            System.out.println("Error retrieving DataSource.");
            e.printStackTrace();
        return ds;       
Stack Trace
warning: CORE3283: stderr: javax.naming.NamingException: Cannot create resource instance
warning: CORE3283: stderr:      at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:167)
warning: CORE3283: stderr:      at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
warning: CORE3283: stderr:      at org.apache.naming.NamingContext.lookup(NamingContext.java:834)
warning: CORE3283: stderr:      at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
warning: CORE3283: stderr:      at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
warning: CORE3283: stderr:      at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
warning: CORE3283: stderr:      at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
warning: CORE3283: stderr:      at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
warning: CORE3283: stderr:      at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
warning: CORE3283: stderr:      at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
warning: CORE3283: stderr:      at org.apache.naming.SelectorContext.lookup(SelectorContext.java:183)
warning: CORE3283: stderr:      at javax.naming.InitialContext.lookup(InitialContext.java:351)
warning: CORE3283: stderr:      at mil.army.usaac.portal.util.DatabaseConnectionManager.getDataSource(DatabaseConnectionManager.java:99)
warning: CORE3283: stderr:      at mil.army.usaac.portal.util.DatabaseConnectionManager.init(DatabaseConnectionManager.java:40)
warning: CORE3283: stderr:      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:921)
warning: CORE3283: stderr:      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813)
warning: CORE3283: stderr:      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3478)
warning: CORE3283: stderr:      at org.apache.catalina.core.StandardContext.start(StandardContext.java:3760)
warning: CORE3283: stderr:      at com.iplanet.ias.web.WebModule.start(WebModule.java:251)
warning: CORE3283: stderr:      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
warning: CORE3283: stderr:      at org.apache.catalina.core.StandardHost.start(StandardHost.java:652)
warning: CORE3283: stderr:      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
warning: CORE3283: stderr:      at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:355)
warning: CORE3283: stderr:      at org.apache.catalina.startup.Embedded.start(Embedded.java:995)
warning: CORE3283: stderr:      at com.iplanet.ias.web.WebContainer.start(WebContainer.java:431)
warning: CORE3283: stderr:      at com.iplanet.ias.web.WebContainer.startInstance(WebContainer.java:500)
warning: CORE3283: stderr:      at com.iplanet.ias.server.J2EERunner.confPostInit(J2EERunner.java:161)

we are trying to connect MS Access thru tomcat and it is giving the above exception
i have changed the server.xml
<Resource name="jdbc/Mess" auth="Container" scope="Shareable" type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/Mess">
<parameter>
<name>maxWait</name>
<value>5000</value>
</parameter>
<parameter>
<name>maxActive</name>
<value>4</value>
</parameter>
<parameter>
<name>password</name>
<value>admin</value>
</parameter>
<parameter>
<name>url</name>
<value>jdbc:odbc:Mess</value>
</parameter>
<parameter>
<name>driverClassName</name>
<value>sun.jdbc.odbc.JdbcOdbcDriver</value>
</parameter>
<parameter>
<name>maxIdle</name>
<value>2</value>
</parameter>
<parameter>
<name>username</name>
<value>admin</value>
</parameter>
</ResourceParams>
web.xml
<resource-ref>
<description>Access Datasource example</description>
<res-ref-name>jdbc/Mess</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
java class
Context initContext = new InitialContext();
DataSource ds = (DataSource)initContext.lookup("java:/comp/env/jdbc/Mess");
con = ds.getConnection();
Please help.......

Similar Messages

  • Oracle10g pool on Sun One Webserver 6.1

    I am able to connect to the database directly with
    Class.forName("oracle.jdbc.driver.OracleDriver");
                   conn = DriverManager.getConnection
                             ("jdbc:oracle:thin:@192.168.xx.xx:1522:xxxxxx",user,pwd);
    but when I try to set up a connection pool I am getting this in the error log :
    [24/Aug/2005:09:36:33] failure ( 4870):      for host 192.168.2.1 trying to POST /strutstest/HelloWorld.do, service-j2ee reports: RSR0032: Got Unexpected Exception in getConnection [{0}]
         com.sun.enterprise.repository.J2EEResourceException
         java.lang.NoSuchMethodException: setPassword      at com.sun.enterprise.repository.JdbcConnectionPool.createDataSource(JdbcConnectionPool.java:242)
    Now I know I have the setPassword method defined, because if I replace the code with the non pooled connection it works and does not throw an exception.
    This is what I have in my web.xml:
    <resource-ref>
         <description>Primary database</description>
         <res-ref-name>Oracle</res-ref-name>
         <res-type>javax.sql.DataSource</res-type>
         <res-auth>Container</res-auth>
    </resource-ref>
    This is what I have in my sun-web.xml:
    <resource-ref>
    <res-ref-name>Oracle</res-ref-name>
         <jndi-name>jdbc/Oracle</jndi-name>
    </resource-ref>
    My JVM class path on settings on the Sun One webserver Admin are:
    /opt/SUNWwbsvr/jdbc_driver/ojdbc14.jar
    Ingnore Env Classpath set to "ON"
    blank for "Native Lib Path Prefix"
    blank for "Native Lib Path Suffix"
    I have one JDBC Connection pool defined as "Oracle"
    and a JDBC Resource defined as "jdbc/Oracle"
    I am getting the "Unexpected Exception in getConnection"... any suggestions on how to resolve this?
    Thanks
    Doug

    Also my java code is this:
    InitialContext initContext = new InitialContext();          
    DataSource source = (DataSource) initContext.lookup("java:comp/env/Oracle");     
    Connection conn = source.getConnection(); // this is where the exception is thrown?

  • Javax.naming.NamingException: Cannot create resource instance (JOTM )

    Hi all,
    I wanted to create an application with transaction management, first i tired out tyrex but could get a thing out of it now i am trying out JOTM, but i am getting this error "javax.naming.NamingException: Cannot create resource instance ", below is my configuration..
    ===context.xml===
    <Context path="/FYPMS" docBase="FYPMS" debug="1" reloadable="true" crossContext="true" antiResourceLocking="true">
    <Logger className="org.apache.catalina.logger.FileLogger" prefix="localhost_crs_log." suffix=".txt"
              timestamp="true"/>
         <Resource name="jdbc/mysql" auth="Container" type="javax.sql.DataSource"
    maxActive="100" maxIdle="30" maxWait="10000"
    username="root" password="password" driverClassName="com.mysql.jdbc.Driver"
    url="jdbc:mysql://127.0.0.1:3306/fypms?autoReconnect=true"/>
    <Resource name="UserTransaction" auth="Container"
    type="javax.transaction.UserTransaction"/>
    <ResourceParams name="UserTransaction">
    <parameter>
    <name>factory</name>
    <value>org.objectweb.jotm.UserTransactionFactory</value>
    </parameter>
    <parameter>
    <name>jotm.timeout</name>
    <value>60</value>
    </parameter>
    </ResourceParams>
    </Context>
    ===web.xml===
    <resource-ref>
    <res-ref-name>jdbc/mysql</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    ===insert.java===
    try{
    System.out.println("pass0");
    Context ctx = new InitialContext();
    Context envCtx = (Context)ctx.lookup("java:comp/env");
    DataSource datasource = (javax.sql.DataSource)envCtx.lookup("jdbc/mysql");               
    UserTransaction ut = (UserTransaction)envCtx.lookup("UserTransaction");
    ut.begin();
    the dataSource can be retrieve successfully but when i tired to retrieve the UserTransaction i get a "Cannot create resource instance ". Please help mi out with this.. thx
    fatmond

    we are trying to connect MS Access thru tomcat and it is giving the above exception
    i have changed the server.xml
    <Resource name="jdbc/Mess" auth="Container" scope="Shareable" type="javax.sql.DataSource"/>
    <ResourceParams name="jdbc/Mess">
    <parameter>
    <name>maxWait</name>
    <value>5000</value>
    </parameter>
    <parameter>
    <name>maxActive</name>
    <value>4</value>
    </parameter>
    <parameter>
    <name>password</name>
    <value>admin</value>
    </parameter>
    <parameter>
    <name>url</name>
    <value>jdbc:odbc:Mess</value>
    </parameter>
    <parameter>
    <name>driverClassName</name>
    <value>sun.jdbc.odbc.JdbcOdbcDriver</value>
    </parameter>
    <parameter>
    <name>maxIdle</name>
    <value>2</value>
    </parameter>
    <parameter>
    <name>username</name>
    <value>admin</value>
    </parameter>
    </ResourceParams>
    web.xml
    <resource-ref>
    <description>Access Datasource example</description>
    <res-ref-name>jdbc/Mess</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    java class
    Context initContext = new InitialContext();
    DataSource ds = (DataSource)initContext.lookup("java:/comp/env/jdbc/Mess");
    con = ds.getConnection();
    Please help.......

  • Javax.naming.NamingException.  Root exception is java.lang.NoSuchMethodError

    I am using WLS5.1 inside visualage environment. I am trying to run
    a Simple EJB which connects to the database and executes two simple
    queries. The client code is as shown below:
    try{
    Context ic = getInitialContext();
    System.out.println("Initial Context created......"); java.lang.Object
    objref = ic.lookup("simpleBean.AtmHome"); System.out.println("objref
    created......");
    AtmHome home = (AtmHome) PortableRemoteObject.narrow(objref, AtmHome.class);
    System.out.println("home created......");
    Atm atm = home.create();
    System.out.println("atm created......");
    atm.transfer(8, 9, 100000);
    catch (NamingException ne)
    ne.printStackTrace(System.out);
    finally {
         try {
              ic.close();
              System.out.println("Closed the connection");
         catch (Exception e) {
              System.out.println("Exception while closing context....." );
    The above code executes fine for the first time but second time
    it throws an exception "javax.naming.NamingException.
    Root exception is java.lang.NoSuchMethodError"
    javax.naming.NamingException. Root exception is java.lang.NoSuchMethodError
         java.lang.Throwable()
         java.lang.Error()
         java.lang.LinkageError()
         java.lang.IncompatibleClassChangeError()
         java.lang.NoSuchMethodError()
         void javax.naming.NameImpl.recordNamingConvention(java.util.Properties)
         void javax.naming.NameImpl.recordNamingConvention(java.util.Properties)
         javax.naming.NameImpl(java.util.Properties)
         javax.naming.CompositeName()
         weblogic.jndi.toolkit.NormalName(java.lang.String, javax.naming.NameParser)
         weblogic.jndi.toolkit.NormalName weblogic.jndi.toolkit.BasicWLContext.normalizeName(java.lang.String)
         java.lang.Object weblogic.jndi.toolkit.BasicWLContext.lookup(java.lang.String)
         weblogic.rmi.extensions.OutgoingResponse weblogic.jndi.toolkit.BasicWLContext_WLSkel.invoke(weblogic.rmi.extensions.ServerObjectReference,
    int, weblogic.rmi.extensions.IncomingRequest, weblogic.rmi.extensions.OutgoingResponse)
         java.lang.Throwable weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(int,
    weblogic.rmi.extensions.IncomingRequest)
         void weblogic.rmi.extensions.BasicRequestHandler.handleRequest(weblogic.rmi.extensions.IncomingRequest)
         void weblogic.rmi.internal.BasicExecuteRequest.execute(weblogic.kernel.ExecuteThread)
         void weblogic.kernel.ExecuteThread.run()
    --------------- nested within: ------------------
    weblogic.rmi.ServerError: A RemoteException occurred in the server
    method
    - with nested exception:
    [java.lang.NoSuchMethodError:
    Start server side stack trace:
    java.lang.NoSuchMethodError
         java.lang.Throwable()
         java.lang.Error()
         java.lang.LinkageError()
         java.lang.IncompatibleClassChangeError()
         java.lang.NoSuchMethodError()
         void javax.naming.NameImpl.recordNamingConvention(java.util.Properties)
         void javax.naming.NameImpl.recordNamingConvention(java.util.Properties)
         javax.naming.NameImpl(java.util.Properties)
         javax.naming.CompositeName()
         weblogic.jndi.toolkit.NormalName(java.lang.String, javax.naming.NameParser)
         weblogic.jndi.toolkit.NormalName weblogic.jndi.toolkit.BasicWLContext.normalizeName(java.lang.String)
         java.lang.Object weblogic.jndi.toolkit.BasicWLContext.lookup(java.lang.String)
         weblogic.rmi.extensions.OutgoingResponse weblogic.jndi.toolkit.BasicWLContext_WLSkel.invoke(weblogic.rmi.extensions.ServerObjectReference,
    int, weblogic.rmi.extensions.IncomingRequest, weblogic.rmi.extensions.OutgoingResponse)
         java.lang.Throwable weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(int,
    weblogic.rmi.extensions.IncomingRequest)
         void weblogic.rmi.extensions.BasicRequestHandler.handleRequest(weblogic.rmi.extensions.IncomingRequest)
         void weblogic.rmi.internal.BasicExecuteRequest.execute(weblogic.kernel.ExecuteThread)
         void weblogic.kernel.ExecuteThread.run()
    End  server side stack trace
         weblogic.rmi.extensions.WRMIInputStream weblogic.rmi.extensions.AbstractRequest.sendReceive()
         java.lang.Object weblogic.jndi.toolkit.BasicWLContext_WLStub.lookup(java.lang.String)
         java.lang.Object weblogic.jndi.toolkit.WLContextStub.lookup(java.lang.String)
         java.lang.Object javax.naming.InitialContext.lookup(java.lang.String)
         void simpleBean.AtmClient.main(java.lang.String [])
    NamingException is caught....
    I found out that it hangs at lookup function in the above code.
    Please let me know if I am missing any environment settings.
    Thanks
    Shailaja

    This problem is solved after installing service pack 8 for weblogic
    5.1
    -shailaja
    "shailaja" <[email protected]> wrote:
    >
    I am using WLS5.1 inside visualage environment. I am trying
    to run
    a Simple EJB which connects to the database and executes
    two simple
    queries. The client code is as shown below:
    try{
    Context ic = getInitialContext();
    System.out.println("Initial Context created......"); java.lang.Object
    objref = ic.lookup("simpleBean.AtmHome"); System.out.println("objref
    created......");
    AtmHome home = (AtmHome) PortableRemoteObject.narrow(objref,
    AtmHome.class);
    System.out.println("home created......");
    Atm atm = home.create();
    System.out.println("atm created......");
    atm.transfer(8, 9, 100000);
    catch (NamingException ne)
    ne.printStackTrace(System.out);
    finally {
         try {
              ic.close();
              System.out.println("Closed the connection");
         catch (Exception e) {
              System.out.println("Exception while closing context....."
    The above code executes fine for the first time but second
    time
    it throws an exception "javax.naming.NamingException.
    Root exception is java.lang.NoSuchMethodError"
    javax.naming.NamingException. Root exception is java.lang.NoSuchMethodError
         java.lang.Throwable()
         java.lang.Error()
         java.lang.LinkageError()
         java.lang.IncompatibleClassChangeError()
         java.lang.NoSuchMethodError()
         void javax.naming.NameImpl.recordNamingConvention(java.util.Properties)
         void javax.naming.NameImpl.recordNamingConvention(java.util.Properties)
         javax.naming.NameImpl(java.util.Properties)
         javax.naming.CompositeName()
         weblogic.jndi.toolkit.NormalName(java.lang.String, javax.naming.NameParser)
         weblogic.jndi.toolkit.NormalName weblogic.jndi.toolkit.BasicWLContext.normalizeName(java.lang.String)
         java.lang.Object weblogic.jndi.toolkit.BasicWLContext.lookup(java.lang.String)
         weblogic.rmi.extensions.OutgoingResponse weblogic.jndi.toolkit.BasicWLContext_WLSkel.invoke(weblogic.rmi.extensions.ServerObjectReference,
    int, weblogic.rmi.extensions.IncomingRequest, weblogic.rmi.extensions.OutgoingResponse)
         java.lang.Throwable weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(int,
    weblogic.rmi.extensions.IncomingRequest)
         void weblogic.rmi.extensions.BasicRequestHandler.handleRequest(weblogic.rmi.extensions.IncomingRequest)
         void weblogic.rmi.internal.BasicExecuteRequest.execute(weblogic.kernel.ExecuteThread)
         void weblogic.kernel.ExecuteThread.run()
    --------------- nested within: ------------------
    weblogic.rmi.ServerError: A RemoteException occurred in
    the server
    method
    - with nested exception:
    [java.lang.NoSuchMethodError:
    Start server side stack trace:
    java.lang.NoSuchMethodError
         java.lang.Throwable()
         java.lang.Error()
         java.lang.LinkageError()
         java.lang.IncompatibleClassChangeError()
         java.lang.NoSuchMethodError()
         void javax.naming.NameImpl.recordNamingConvention(java.util.Properties)
         void javax.naming.NameImpl.recordNamingConvention(java.util.Properties)
         javax.naming.NameImpl(java.util.Properties)
         javax.naming.CompositeName()
         weblogic.jndi.toolkit.NormalName(java.lang.String, javax.naming.NameParser)
         weblogic.jndi.toolkit.NormalName weblogic.jndi.toolkit.BasicWLContext.normalizeName(java.lang.String)
         java.lang.Object weblogic.jndi.toolkit.BasicWLContext.lookup(java.lang.String)
         weblogic.rmi.extensions.OutgoingResponse weblogic.jndi.toolkit.BasicWLContext_WLSkel.invoke(weblogic.rmi.extensions.ServerObjectReference,
    int, weblogic.rmi.extensions.IncomingRequest, weblogic.rmi.extensions.OutgoingResponse)
         java.lang.Throwable weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(int,
    weblogic.rmi.extensions.IncomingRequest)
         void weblogic.rmi.extensions.BasicRequestHandler.handleRequest(weblogic.rmi.extensions.IncomingRequest)
         void weblogic.rmi.internal.BasicExecuteRequest.execute(weblogic.kernel.ExecuteThread)
         void weblogic.kernel.ExecuteThread.run()
    End  server side stack trace
         weblogic.rmi.extensions.WRMIInputStream weblogic.rmi.extensions.AbstractRequest.sendReceive()
         java.lang.Object weblogic.jndi.toolkit.BasicWLContext_WLStub.lookup(java.lang.String)
         java.lang.Object weblogic.jndi.toolkit.WLContextStub.lookup(java.lang.String)
         java.lang.Object javax.naming.InitialContext.lookup(java.lang.String)
         void simpleBean.AtmClient.main(java.lang.String [])
    NamingException is caught....
    I found out that it hangs at lookup function in the above
    code.
    Please let me know if I am missing any environment settings.
    Thanks
    Shailaja

  • Enabling Network Security with Sun One webserver

    Hi experts
    I have a sun server with solaris and sun one webserver loaded
    now when i am connecting the web server from any of the client browser it is not asking for any paassword
    how can i enable the network password for webserver
    Damu

    I can't believe it, the problem was because I have formated the object definition element in obj.conf with a tab before Service. It seems Service needs to start from column 1, was sun webserver made is cobol?
    <Object name="weblogic" ppath="*/weblogic/*">
    Service fn=wl_proxy WebLogicHost=laptop-vikas.nj.sena WebLogicPort=7001 PathTrim="/weblogic"
    </Object>

  • EJB Local Interfaces / javax.naming.NamingException

    Hi!
    I have tried to deploy a very simple (Hello World like)EJB-Application. It contains a simple stateless SessionBean (with local interfaces) and a JSP which is using the EJB.
    Opening the JSP i get the following error message:
    javax.naming.NamingException: Error instantiating web-app JNDI-context: No location specified and no suitable instance found for the ejb-local-ref 'ejb/TesterEJB', an EJB matching it's ejb-link 'ejb-jar-ic.jar#TesterEJB' was found, but it contained an Entity, not a Session
    Here's my ejb-jar.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN' 'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>
    <ejb-jar>
         <display-name>oc4jJAR</display-name>
         <enterprise-beans>
              <session>
                   <display-name>TesterEJB</display-name>
                   <ejb-name>TesterEJB</ejb-name>
                   <local-home>oc4jtest.TesterHome</local-home>
                   <local>oc4jtest.Tester</local>
                   <ejb-class>oc4jtest.TesterBean</ejb-class>
                   <session-type>Stateless</session-type>
                   <transaction-type>Container</transaction-type>
                   <security-identity>
                        <description/>
                        <use-caller-identity/>
                   </security-identity>
              </session>
         </enterprise-beans>
         <assembly-descriptor>
              <method-permission>
                   <unchecked/>
                   <method>
                        <ejb-name>TesterEJB</ejb-name>
                        <method-intf>Local</method-intf>
                        <method-name>getMessage</method-name>
                        <method-params/>
                   </method>
                   <method>
                        <ejb-name>TesterEJB</ejb-name>
                        <method-intf>Local</method-intf>
                        <method-name>getPrimaryKey</method-name>
                        <method-params/>
                   </method>
                   <method>
                        <ejb-name>TesterEJB</ejb-name>
                        <method-intf>Local</method-intf>
                        <method-name>getEJBLocalHome</method-name>
                        <method-params/>
                   </method>
                   <method>
                        <ejb-name>TesterEJB</ejb-name>
                        <method-intf>LocalHome</method-intf>
                        <method-name>remove</method-name>
                        <method-params>
                             <method-param>java.lang.Object</method-param>
                        </method-params>
                   </method>
                   <method>
                        <ejb-name>TesterEJB</ejb-name>
                        <method-intf>Local</method-intf>
                        <method-name>remove</method-name>
                        <method-params/>
                   </method>
                   <method>
                        <ejb-name>TesterEJB</ejb-name>
                        <method-intf>Local</method-intf>
                        <method-name>isIdentical</method-name>
                        <method-params>
                             <method-param>javax.ejb.EJBLocalObject</method-param>
                        </method-params>
                   </method>
                   <method>
                        <ejb-name>TesterEJB</ejb-name>
                        <method-intf>LocalHome</method-intf>
                        <method-name>create</method-name>
                        <method-params/>
                   </method>
              </method-permission>
              <container-transaction>
                   <method>
                        <ejb-name>TesterEJB</ejb-name>
                        <method-intf>Local</method-intf>
                        <method-name>getMessage</method-name>
                        <method-params/>
                   </method>
                   <trans-attribute>Required</trans-attribute>
              </container-transaction>
         </assembly-descriptor>
    </ejb-jar>
    And here's my web.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN' 'http://java.sun.com/dtd/web-app_2_3.dtd'>
    <web-app>
         <display-name>oc4jWAR</display-name>
         <filter>
              <filter-name>TestFilter</filter-name>
              <display-name>TestFilter</display-name>
              <description/>
              <filter-class>oc4jtest.TestFilter</filter-class>
         </filter>
         <filter-mapping>
              <filter-name>TestFilter</filter-name>
              <url-pattern>*.jsp</url-pattern>
         </filter-mapping>
         <servlet>
              <servlet-name>test</servlet-name>
              <display-name>test</display-name>
              <jsp-file>/test.jsp</jsp-file>
         </servlet>
         <session-config>
              <session-timeout>30</session-timeout>
         </session-config>
         <welcome-file-list>
              <welcome-file>/test.jsp</welcome-file>
         </welcome-file-list>
         <ejb-local-ref>
              <ejb-ref-name>ejb/TesterEJB</ejb-ref-name>
              <ejb-ref-type>Session</ejb-ref-type>
              <local-home>oc4jtest.TesterHome</local-home>
              <local>oc4jtest.Tester</local>
              <ejb-link>ejb-jar-ic.jar#TesterEJB</ejb-link>
         </ejb-local-ref>
    </web-app>
    What's wrong?
    Comments would be appreciated!
    Thanks!
    Peter
    PS: The application runs fine on Sun's Reference Implementation!

    Hi!
    I have tried to deploy a very simple (Hello World like)EJB-Application. It contains a simple stateless SessionBean (with local interfaces) and a JSP which is using the EJB.
    Opening the JSP i get the following error message:
    javax.naming.NamingException: Error instantiating web-app JNDI-context: No location specified and no suitable instance found for the ejb-local-ref 'ejb/TesterEJB', an EJB matching it's ejb-link 'ejb-jar-ic.jar#TesterEJB' was found, but it contained an Entity, not a Session
    Here's my ejb-jar.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN' 'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>
    <ejb-jar>
         <display-name>oc4jJAR</display-name>
         <enterprise-beans>
              <session>
                   <display-name>TesterEJB</display-name>
                   <ejb-name>TesterEJB</ejb-name>
                   <local-home>oc4jtest.TesterHome</local-home>
                   <local>oc4jtest.Tester</local>
                   <ejb-class>oc4jtest.TesterBean</ejb-class>
                   <session-type>Stateless</session-type>
                   <transaction-type>Container</transaction-type>
                   <security-identity>
                        <description/>
                        <use-caller-identity/>
                   </security-identity>
              </session>
         </enterprise-beans>
         <assembly-descriptor>
              <method-permission>
                   <unchecked/>
                   <method>
                        <ejb-name>TesterEJB</ejb-name>
                        <method-intf>Local</method-intf>
                        <method-name>getMessage</method-name>
                        <method-params/>
                   </method>
                   <method>
                        <ejb-name>TesterEJB</ejb-name>
                        <method-intf>Local</method-intf>
                        <method-name>getPrimaryKey</method-name>
                        <method-params/>
                   </method>
                   <method>
                        <ejb-name>TesterEJB</ejb-name>
                        <method-intf>Local</method-intf>
                        <method-name>getEJBLocalHome</method-name>
                        <method-params/>
                   </method>
                   <method>
                        <ejb-name>TesterEJB</ejb-name>
                        <method-intf>LocalHome</method-intf>
                        <method-name>remove</method-name>
                        <method-params>
                             <method-param>java.lang.Object</method-param>
                        </method-params>
                   </method>
                   <method>
                        <ejb-name>TesterEJB</ejb-name>
                        <method-intf>Local</method-intf>
                        <method-name>remove</method-name>
                        <method-params/>
                   </method>
                   <method>
                        <ejb-name>TesterEJB</ejb-name>
                        <method-intf>Local</method-intf>
                        <method-name>isIdentical</method-name>
                        <method-params>
                             <method-param>javax.ejb.EJBLocalObject</method-param>
                        </method-params>
                   </method>
                   <method>
                        <ejb-name>TesterEJB</ejb-name>
                        <method-intf>LocalHome</method-intf>
                        <method-name>create</method-name>
                        <method-params/>
                   </method>
              </method-permission>
              <container-transaction>
                   <method>
                        <ejb-name>TesterEJB</ejb-name>
                        <method-intf>Local</method-intf>
                        <method-name>getMessage</method-name>
                        <method-params/>
                   </method>
                   <trans-attribute>Required</trans-attribute>
              </container-transaction>
         </assembly-descriptor>
    </ejb-jar>
    And here's my web.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN' 'http://java.sun.com/dtd/web-app_2_3.dtd'>
    <web-app>
         <display-name>oc4jWAR</display-name>
         <filter>
              <filter-name>TestFilter</filter-name>
              <display-name>TestFilter</display-name>
              <description/>
              <filter-class>oc4jtest.TestFilter</filter-class>
         </filter>
         <filter-mapping>
              <filter-name>TestFilter</filter-name>
              <url-pattern>*.jsp</url-pattern>
         </filter-mapping>
         <servlet>
              <servlet-name>test</servlet-name>
              <display-name>test</display-name>
              <jsp-file>/test.jsp</jsp-file>
         </servlet>
         <session-config>
              <session-timeout>30</session-timeout>
         </session-config>
         <welcome-file-list>
              <welcome-file>/test.jsp</welcome-file>
         </welcome-file-list>
         <ejb-local-ref>
              <ejb-ref-name>ejb/TesterEJB</ejb-ref-name>
              <ejb-ref-type>Session</ejb-ref-type>
              <local-home>oc4jtest.TesterHome</local-home>
              <local>oc4jtest.Tester</local>
              <ejb-link>ejb-jar-ic.jar#TesterEJB</ejb-link>
         </ejb-local-ref>
    </web-app>
    What's wrong?
    Comments would be appreciated!
    Thanks!
    Peter
    PS: The application runs fine on Sun's Reference Implementation!

  • Javax.naming.NamingException

    When I run the following deployment. . .
    java -jar ../../admin.jar ormi://localhost admin 123456 -deploy -file csldc.ear
    I get this . . .
    Error: javax.naming.NamingException: Lookup error: java.net.ConnectException: Co
    nnection refused: connect; nested exception is: java.net.ConnectException: Connection refused: connect
    any ideas???????

    First, make sure oc4j is started. oc4j ships with default configuration which starts http listener at port 8888. Browse to http://localhost:8888 and you should see oc4j default website. If not, check default-web-site to see if the port is any different.
    Also, ormi runs at port 23791 by default. If you have changed the port 23791 in rmi.xml, you must use java -jar admin.jar ormo://localhost:<port> .... to deploy your file
    null

  • Sun ONE WebServer 6.1 SP6 -- Server Startup Error.

    Hi,
    I had deployed my website on Iplanet webserver 6.0 and It was working fine. Now i've installed an instance of Sun One Webserver 6.1 (iplanet server 6.1) and deployed the same source code. The issue is that when the server is started and hit, it gives the following error ----
    Sun ONE Web Server 6.1SP6 (64-Bit) B05/08/2006 15:27
    info: CORE5076: Using [Java HotSpot(TM) 64-Bit Server VM, Version 1.4.2_10] from [Sun Microsystems I
    nc.]
    info: WEB0100: Loading web module in virtual server [https-ggndglda5] at [search]
    info: HTTP3072: [LS ls1] http://ggndglda5:9292 ready to accept requests
    startup: server started successfully
    [GOLDDEV ~/iplanet/servers/https-ggndglda5/https-ggndglda5]tail -f logs/errors
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
    at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157)
    at com.iplanet.ias.web.WebContainer.service(WebContainer.java:579)
    [26/Apr/2007:11:13:51] info (17698): CORE5073: Web server shutdown in progress
    [26/Apr/2007:11:14:04] info (18518): CORE1116: Sun ONE Web Server 6.1SP6 (64-Bit) B05/08/2006 15:27
    [26/Apr/2007:11:14:04] info (18519): CORE5076: Using [Java HotSpot(TM) 64-Bit Server VM, Version 1.4
    .2_10] from [Sun Microsystems Inc.]
    [26/Apr/2007:11:14:04] info (18519): WEB0100: Loading web module in virtual server [https-ggndglda5]
    at [search]
    [26/Apr/2007:11:14:07] info (18519): HTTP3072: [LS ls1] http://ggndglda5:9292 ready to accept reques
    ts
    [26/Apr/2007:11:14:07] info (18519): CORE3274: successful server startup
    [26/Apr/2007:11:30:23] failure (18519): for host 10.237.93.195 trying to GET /home/g
    old/jsp/Dispatch.jsp, service-j2ee reports: StandardWrapperValve[jsp]: WEB2792: Servlet.service() fo
    r servlet jsp threw exception
    org.apache.jasper.JasperException: WEB4000: Unable to compile class for JSPWEB4125:
    An error occurred between lines: 702 and 706 in the JSP file: /home/gold/jsp/InboxList.jsp
    WEB4126: Generated servlet error:
    /iplanet/servers/https-ggndglda5/https-ggndglda5/ClassCache/https-ggndglda5/defa
    ult-webapp/_jsps/_home/_gold/_jsp/_Dispatch_jsp.java:14927: cannot resolve symbol
    symbol : method getClassLoader ()
    location: class org.apache.jasper.runtime.HttpJspBase
    return super.getClassLoader();
    ^
    Note: /iplanet/servers/https-ggndglda5/https-ggndglda5/ClassCache/https-ggndglda
    5/default-webapp/_jsps/_home/_gold/_jsp/_Dispatch_jsp.java uses or overrides a deprecated API.
    Note: Recompile with -deprecation for details.
    1 error
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:312)
    at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.loadJSP(JspServlet.java:778)
    at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.access$000(JspServlet.java:636)
    at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:413)
    at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:375)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
    at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.j
    ava:771)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:322)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
    at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157)
    at com.iplanet.ias.web.WebContainer.service(WebContainer.java:579).
    Can anyone help me out.

    You don't have to call[i] FacesContext.responseComplete().
    There are several reasons for that error occurring.
    !) Low VM size memory
    2) The server went out of memory.
    3) etc...
    Put a trace of the error in here.

  • Javax.naming.NamingException: Failed in WD JNDI lookup

    Hi,
               I have deployed wdj applications,some times its working fine ,but some other times its through the following errors.
    javax.naming.NamingException: Failed in WD JNDI lookup
    Any one please suggest me
    Thanks,
    Venu

    Hi Friend,
    I am not sure what Other Reason can be for this problem mean while check these links. Hope it will help.
    /message/6928201#6928201 [original link is broken]
    /message/6315352#6315352 [original link is broken]
    Regards
    Jeetendra

  • Javax.naming.NamingException: when deploying to OC4J using admin.jar

    Additional details to posting (Problem Deploying to OC4J from Jbuilder8)
    Jul 8 2003 @3:27
    enter:-
    java -jar "\ora9ias\j2ee\home\admin.jar" ormi://myhost:23791 admin password
    and you get the error message:-
    javax.naming.NamingException: Lookup error: java.net.ConnectException: Connection refused: connect; nested exception is:
    java.net.ConnectionException: Connection refused: connect
    My server.xml contains entry &lt;rmi-config path="./rmi.xml" /&gt;
    and my rmi.xml reads:-
    &lt;?xml version="1.0" standalone="yes" ?&gt;
    &lt;!DOCTYPE rmi-server (View Source for full doctype...)&gt;
    - &lt;rmi-server port="23791" host="[ALL]"&gt;
    - &lt;log&gt;
    &lt;file path="../log/rmi.log" /&gt;
    &lt;/log&gt;
    &lt;/rmi-server&gt;
    I have repeatedly checked my hostname port user name and password
    along with the statements in the server.xml and rmi.xml as above, but with no
    success.
    Regards
    Gary.

    I am facing the same problem from this morning. I was able to start oc4j jvm without any problem today in the morning and i could deploy the war file and was able to test the web pages. But due to some unavoidable reasons i had to restart my machine and ever since then i am running into the following error.
    My server.xml has a reference to rmi.xml.
    Any help is highly appreciated.
    Regards
    Kiran
    D:\Java\JDev9i\j2ee\home>java -jar oc4j.jar
    Node started with id=647722646
    Error initializing web-site at ./http-web-site.xml: default-web-app not specifie
    d for Oracle9iAS Containers for J2EE HTTP Web Site
    Oracle9iAS (9.0.3.0.0) Containers for J2EE initialized

  • META-INF & SUN ONE WebServer security

    Hi All,
    I am facing problem with SUN ONE WebServer 6.0. The SUN ONE WebServer is being used a Web-Proxy Server to parse all request for a particular URL to WebSphere application server.
    Unfortunately one of JAR files loaded in the WebSphere contaisn files in META-INF directory which needs to be accessed by the users. These files are mostly javascripts and image files.
    These files can be accessed if we connect directly to the WebSphere http port. But cannot be accessed when connecting through the SUN ONE WebServer.
    I get the following error,
    [13/Jun/2006:16:19:14] security (14832): for host 10.81.205.204 trying to GET /esott/faces/static/META-INF/common/script.js, deny-existence reports: denying existence of /opt/iplanet/iWS/docs/esott/faces/static/META-INF/common/script.js
    I am not sure why Iplanet is denying the existence of the files in the META-INF . Is there a way to turn off this behaviour?
    regards,
    Suresh

    Servlet spec. prohibits direct access to META-INF:
    9.5 Web Application Archive File
    Web applications can be packaged and signed, using the standard Java Archive tools, into a Web ARchive format (war) file. For example, an application for issue tracking could be distributed in an archive with the filename issuetrack.war.
    When packaged into such a form, a META-INF directory will be present which contains information useful to the Java Archive tools. If this directory is present, the servlet container must not allow it be served as content to a web client�s request.
    **************************************************************************************

  • How to find creation date of a website in sun one webserver

    Is there any way we can find the creation date of a website or virtual site hosted on Sun One Webserver 6.0 (any sp).
    Thanks

    No. First I access a site (in my intranet ) and then try to get the last modified date :
    telnet vault.red.iplanet.com 80
    Escape character is '^]'.
    GET / HTTP/1.0
    HTTP/1.1 200 OK
    Server: Sun-ONE-Web-Server/6.1
    Date: Mon, 18 Apr 2005 06:03:08 GMT
    Content-length: 687
    Content-type: text/html
    Last-modified: Mon, 22 Mar 2004 21:47:32 GMT
    Accept-ranges: bytes
    Connection: close
    <html>
    <head>
    <title>The Server Formerly Known As Netscape Enterprise</title>
    <script language='JavaScript'>
    var curTab = 0;
    var tabSet = 1;
    var typGroup = 0;
    </script>
    <link rel="shortcut icon" href="/favicon.ico">
    </head>
    <frameset rows='110,*' frameborder='no' border=0>
    <frame src='/tabs.html' name='tabs' frameborder='no' scrolling='no' noresize marginwidth=0 marginheight=0>
    <frameset cols='200,*' border=0 marginwidth=0 marginheight=0 frameborder='no'>
    <frame src='/odds_ends.html' name='options' frameborder='no' noresize>
    <frame src='/header_index.shtml' name='content' frameborder='no' noresize marginwidth=16 marginheight=16>
    </frameset>
    </frameset>
    </html>
    Connection closed by foreign host.
    $ telnet vault.red.iplanet.com 80
    Escape character is '^]'.
    HEAD / HTTP/1.0
    HTTP/1.1 200 OK
    Server: Sun-ONE-Web-Server/6.1
    Date: Mon, 18 Apr 2005 06:03:17 GMT
    Content-length: 687
    Content-type: text/html
    Last-modified: Mon, 22 Mar 2004 21:47:32 GMT
    Accept-ranges: bytes
    Connection: close
    Connection closed by foreign host.

  • Sun One Webserver and JSP 2.0

    I have a customer running Sun One Webserver v 6.1 (newest) and I have no experience using that server. We are writing some JSP pages, and I am hoping to use JSP 2.0. It appears from what I have read that only JSP 1.2 is supported. Is that correct, or is there any way to use JSP 2 with the Sun One server.
    Any help greatly appreciated, I'm a total newbie to this server.
    Cheers

    Well, I don't have any problem running jsp pages on this server, just wanted to know if the server supports jsp 2.0 or if there is a way to add that support.
    What problems are you having getting your jsp files to run. I just moved some over from a tomcat install and they work fine. Had to modify the classpath in server.xml, etc, to pick up some jars for jdbc, but basically no problem with jsp.
    I'm kind of surprised that if this is the newest version of the Sun Web Server that it does not support jsp 2.0 out of the box. It's not exactly a new spec.

  • Sun One Webserver

    We are currently working on Sun One Webserver 6.0 with Chilisoft 3.6.2
    Now with the new version 6.1 is there ...the question is can we simply upgrade to the new version or do we need to reinstall and reconfigure all the websites with the new version 6.1
    Also now that new version of webserver 6.1 has the ASP feature bundled with it ...do we still require Chilisoft?
    Please answer my queries ...by replying at the following email id : [email protected]
    thanks!

    You'll have to use S1ASP 4.0.1 (not 4.0) to work with S1WS 6.1.
    Downloads are available here at:
    ftp://ftp.chilisoft.com
    There's no licensing requirement with S1WS 6.1 for S1ASP.
    Make sure the previous version of S1ASP is uninstalled prior to installing the new version of S1ASP to S1WS 6.1

  • Sun ONE webserver crashes.....

    Hi
    I have installed Sun ONE webserver along with portal, directory and identity server. Suddenly the webserver crashes and gives me the following messages in the "Error" log.
    catastrophe (15171): CORE3260: Server crash detected (signal SIGSEGV)
    info (15171): CORE3262: Crash occurred in function res_freehostent from module /usr/lib/libresolv.so.2
    failure (15170): CORE3107: Child process closed admin channel
    Please let me know what shd be the reason for this.
    regards
    Mark

    Hi Mark,
    Do you have DNS turned on(check magnus.conf file for DNS settings)? If yes, test with DNS disabled. I suspect the crash is due to issues with DNS. Check to see if you have the latest libresolv OS patch?
    Thanks
    Manish

Maybe you are looking for

  • Logical Standby SQL Apply Using Incorrect Decode Statement

    We are seeing statements erroring out on our logical standby that have been rewritten (presumably by sql apply) with decode statements that don't appear to be correct. For example, here is one of the rewritten statements. update /*+ streams restrict_

  • Why are my five websites not showing up in my CC browser window - CC Account Panel?

    Why are my five websites not showing up in my CC browser window - CC Account Panel? I have a full account! g

  • Calculating Bandwidth... - easy question

    I need to calculate bandwitdh to figure out what kind of connection i need. I know if i take ONE single computer with wireshark loaded then run the programs then stop the capture.....How long do i need to capture it for? 1 minute, or 10 minutes, or ?

  • MULTIPLE SELECTION IN DIALOG PROGRAMMING

    Hello exports, I need to provide an interface to user where he can Put multiple selected invoice number at a time. (Like multiple selection in select option). It should be done in dialog programming. plz suggest me .

  • NEED HELP WITH USERNAME & PASS

    merry christmas yall.  i got a wrt54gs and i want to set up my username and pass but dont know how. my uncle set it up for me a couple years ago and then i moved.  now he is not around anymore and at this new place im at people are hijacking my inter