Hi,
Aaron
i switched to M4 and iteried to deploy my ear file
i am getting the asame error which is as follows
JDBC_DSNOracleDS18:48:54,882 ERROR
javax.naming.AuthenticationException: Cannot open
object input stream to server: ; nested exception is:
java.io.EOFException
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:615)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:427)
at
org.apache.geronimo.jetty.JettyServletHolder.handle(JettyServletHolder.java:92)
at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:832)
at
org.mortbay.jetty.servlet.JSR154Filter.doFilter(JSR154Filter.java:171)
at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:823)
at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
at
org.mortbay.http.HttpContext.handle(HttpContext.java:1565)
at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:635)
at
org.mortbay.http.HttpContext.handle(HttpContext.java:1517)
at
org.mortbay.http.HttpServer.service(HttpServer.java:954)
at
org.mortbay.http.HttpConnection.service(HttpConnection.java:814)
at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:981)
at
org.mortbay.http.HttpConnection.handle(HttpConnection.java:831)
at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
at
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
at
org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
the database plan is as below
<?xml version="1.0"?>
<connector
xmlns="http://geronimo.apache.org/xml/ns/j2ee/connector"
version="1.5"
configId="OracleDS"
parentId="org/apache/geronimo/Server">
<dependency>
<uri>repository/oracle/jars/oracle.jar</uri>
</dependency>
<resourceadapter>
<outbound-resourceadapter>
<connection-definition>
<connectionfactory-interface>
javax.sql.DataSource
</connectionfactory-interface>
<connectiondefinition-instance>
<name>OracleDS</name>
<config-property-setting name="UserName">
YARD
</config-property-setting>
<config-property-setting name="Password">
YARD
</config-property-setting>
<config-property-setting name="Driver">
oracle.jdbc.driver.OracleDriver
</config-property-setting>
<config-property-setting name="ConnectionURL">
<!--jdbc:mysql://localhost/geronimo-->
jdbc:oracle:thin:@10.237.9.4:1521:VYARDMS
</config-property-setting>
<config-property-setting
name="CommitBeforeAutocommit">
false
</config-property-setting>
<config-property-setting
name="ExceptionSorterClass">
org.tranql.connector.NoExceptionsAreFatalSorter
</config-property-setting>
<connectionmanager>
<local-transaction/>
<single-pool>
<max-size>10</max-size>
<min-size>0</min-size>
<blocking-timeout-milliseconds>
5000
</blocking-timeout-milliseconds>
<idle-timeout-minutes>
30
</idle-timeout-minutes>
<match-one/>
</single-pool>
</connectionmanager>
<global-jndi-name>
/OracleDS
</global-jndi-name>
</connectiondefinition-instance>
</connection-definition>
</outbound-resourceadapter>
</resourceadapter>
</connector>
in openejb-jar.xml
we have a message bean
the mapping is as follows
<message-driven>
<ejb-name>MessageBean</ejb-name>
<resource-adapter>
<resource-link>ActiveMQ RA</resource-link>
</resource-adapter>
</message-driven>
in geronimo-web.xml we have the resoure-ref mapping
which is given below
<naming:resource-ref>
<naming:ref-name>jdbc/DataSource</naming:ref-name>
<naming:resource-link>OracleDS</naming:resource-link>
</naming:resource-ref>
</web-app>
in web.xml we have the mapping
<resource-ref>
<res-ref-name>jdbc/DataSource</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
Thanks,
Deepesh
____________________________________________________
Send a rakhi to your brother, buy gifts and win attractive prizes. Log on to
http://in.promos.yahoo.com/rakhi/index.html