facebook

JNDI Datasource setup for SunOne 8.1

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #258879 Reply

    Gary Howard
    Member

    I am trying to get a JNDI datasource set up for a prod deployment. I had a JDBC datasource working for the entire dev cycle. I started configuring the JNDI datasource and now they both do not work. I have tried everything. I can get it to work for a sec then, it stops again. I keep getting this error:

    [#|2006-09-20T10:36:57.343-0400|SEVERE|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=16;|ApplicationDispatcher[/drtv] Servlet.service() for servlet jsp threw exception
    javax.servlet.jsp.JspException: ServletException in ‘jsp/dance_collection.jsp’: Could not find datasource
    at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:923)
    at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:462)
    at org.apache.jsp._005fsideNavLayout_jsp._jspx_meth_tiles_get_2(_005fsideNavLayout_jsp.java:228)
    at org.apache.jsp._005fsideNavLayout_jsp._jspService(_005fsideNavLayout_jsp.java:132)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:251)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
    at sun.reflect.GeneratedMethodAccessor191.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
    at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
    at java.security.AccessController.doPrivileged(Native Method)

    Here is my config file:

    <?xml version=’1.0′ encoding=’UTF-8′?>
    <!DOCTYPE hibernate-configuration PUBLIC
    “-//Hibernate/Hibernate Configuration DTD 3.0//EN”
    http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd”&gt;

    <!– Generated by MyEclipse Hibernate Tools. –>
    <hibernate-configuration>

    <session-factory>
    <property name=”show_sql”>true</property>
    <property name=”transaction.manager_lookup_class”>
    org.hibernate.transaction.SunONETransactionManagerLookup
    </property>
    <property name=”connection.datasource”>jdbc/drtv</property>
    <property name=”jndi.url”></property>
    <property name=”jndi.class”></property>
    <property name=”connection.username”></property>
    <property name=”connection.password”></property>
    <property name=”dialect”>org.hibernate.dialect.SQLServerDialect</property>

    </session-factory>

    </hibernate-configuration>

    #258911 Reply

    Gary Howard
    Member

    I guess I have stumped the forum. I have found very little documentation on SunOne 8.x or higher for this. Books say to use FSContext. This does not seem to be a good idea for large scale apps. I am currently using Sun One 9. Please reply if you have gotten this to work. I am in despirate need of assistance!

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: JNDI Datasource setup for SunOne 8.1

You must be logged in to post in the forum log in