Exception creating response stream in weblogic

Hi,
i have a small piece of java code which connects AgilePLM system and creates the session. in Jdeveloper its working but when i convert is as webservice and try to invoke iam getting below exception
weblogic.rjvm.PeerGoneException: ; nested exception is: weblogic.utils.NestedException: java.lang.AssertionError: Exception creating response stream
here is my java function
public String connect() {
try{
IAgileSession session = null;
AgileSessionFactory factory;
factory = AgileSessionFactory.getInstance("host");
HashMap params = new HashMap();
params.put(AgileSessionFactory.USERNAME, "user");
params.put(AgileSessionFactory.PASSWORD, "password");
session =factory.createSession(params);
}catch(Exception e) { }
i tried all possible ways to resolve this...any help would be appreciated
Regards,
Sudhakar.M

i solved.
1) Copy "wlsauth.jar" and "crypto.jar" to add-on server from agile server.
from: [Agile_Home]\agileDomain\lib
to: e.g. C:\agile9312_lib
2) Set them as CLASSPATH env. via system property.
e.g. C:\agile_9312lib\wlsauth.jar;C:\agile9312_lib\crypto.jar
3) start WebLogic
i also tried below instead, but it was not working. why??
Copy jars to user domain's lib:
e.g. C:oracle:middleware\user_projects\domains\base_domain\lib

Similar Messages

  • Javax.servlet.jsp.JspException: Exception creating bean of class ProdFormFB

    Hi I am trying to deploy a struts based web application using "DynaActionForms"
    When I am trying to access the jsp page I am getting the following error.
    I am providing as much as details as it can help full to u.
    Thank u.
    FormBean class ProdFormFB.java
    ========================================================================
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import org.apache.struts.action.*;
    public class ProdFormFB extends DynaActionForm
    public void reset(ActionMapping mapping, HttpServletRequest request)
         System.out.println("reset() called. . . . ");
    set("prodId", new Integer(10));
         set("prodName", new String("XYZ"));
         set("price", new Float(22.25));
    public ActionErrors validate(ActionMapping mappings, HttpServletRequest request)
    System.out.println("=== validate() called ===");
    ActionErrors aes=new ActionErrors();
         System.out.println("aes.size() ===> "+aes.size());
         String prodName = (String)get("prodName");
         if( prodName==null || prodName.equals("") )
              System.out.println("Adding prodName.req error . . . . . . .");
              aes.add("prodName",new ActionError ("prodName.req.error"));
    return aes;
    ========================================================================
    Action Class ProdAction.java
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import org.apache.struts.action.*;
    public class ProdAction extends Action
       public ActionForward execute(ActionMapping mapping,ActionForm form, HttpServletRequest request,HttpServletResponse response)throws Exception
          ProdFormFB fb = (ProdFormFB)form;
          System.out.println("fb.get('prodId')==> "+fb.get("prodId"));
          System.out.println("fb.get('prodName')==> "+fb.get("prodName"));
          System.out.println("fb.get('price')==> "+fb.get("price"));
           return mapping.findForward("dres");
    }========================================================================
    jsp page : npform.jsp
    <%@ taglib uri = "/tags/struts-html" prefix="html"%>
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
    <html:html>
      <head>
         <title>Product Form</title>
      </head>
      <body>
              <html:form action="/pAction">
              <center>
                <br><br>
                <center> <font color="green" style="bold" size=5>Product Form using Struts</font></center><br><br>
                <table>
                <tr>
                   <td>
                          <b> Product ID : </b>  <html:text property="prodId"/> </td><td><font color="red" style="bold"><html:errors property="prodId"/> </font>
                 </td>
             </tr>
               <tr>
                   <td>
                          <b> Prod Name : </b> <html:text property="prodName"/>  </td><td> <font color="red" style="bold"> <html:errors property="prodName"/> </font>
                 </td>
              </tr>
    <!--           <tr>
                   <td>
                          <b> Price : </b> <html:text property="price"/>  </td><td> <font color="red" style="bold"> <html:errors property="price"/> </font>
                 </td>
              </tr> -->
               <tr  colspan="2" align="center">
                   <td>
                      <html:submit property="submit" value="Store"/>
                </td>
              </tr>
              </table>
                          </center>
           </html:form>
      </body>
    </html:html>========================================================================
    Configuration in struts-config.jsp
        <form-beans>
             <form-bean name="NewProdForm" type="ProdFormFB">
                  <form-property name="prodId" type="java.land.Integer"/>
                    <form-property name="prodName" type="java.land.String"/>
                  <form-property name="price" type="java.land.Float"/>
            </form-bean>
    </form-beans>
    <action-mappings>
           <action name="NewProdForm" path="/pAction" type="ProdAction" input="/npform.jsp" validate="true" scope="request">
                  <forward name="dres" path="/dres.jsp"/>
           </action>
    </action-mappings>========================================================================
    After deploying successfully I am I am entering the following URL
    http://localhost:7001/oursapp/npform.jsp
    The following Exception on Browser: and also on the server console ......
    javax.servlet.jsp.JspException: Exception creating bean of class ProdFormFB: {1}
         at org.apache.struts.taglib.html.FormTag.initFormBean(FormTag.java:463)
         at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:433)
         at jsp_servlet.__npform._jspService(__npform.java:178)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6718)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)     
    Plz... Help me out is solving the problem .......
    my email :   [email protected]

    I never used DynaActionForm, what I have noticed here is, don't you need to declare the form bean? I may be wrong.
    <form-beans>
    <form-bean name="newProdForm" type="com.package.form.NewProdForm"></form-bean>
    </form-beans>

  • Issue while creating connection pool in weblogic using SERVICE NAME

    Found two issues while creating connection pool in weblogic using SERVICE NAME
    1. While running apps from jdeveloper using xxx-jdbc.xml
    weblogic.common.ResourceException: Could not create pool connection. The DBMS driver exception was: Io exception: The Network Adapter could not establish the connection
         at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(ConnectionEnvFactory.java:253)
         at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1109)
         at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1033)
         at weblogic.common.resourcepool.ResourcePoolImpl.start(ResourcePoolImpl.java:214)
         at weblogic.jdbc.common.internal.ConnectionPool.doStart(ConnectionPool.java:1051)
    2. Configuriing the jndi in Weblogic server
    weblogic.common.ResourceException: Could not create pool connection. The DBMS driver exception was: Listener refused the connection with the following error:
    ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
    The Connection descriptor used by the client was:
    localhost:1521:SERVICENAME
         at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(ConnectionEnvFactory.java:253)
         at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1109)
         at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1033)
    Problem
    database url is generated based on SID
    eg: jdbc:oracle:thin:@localhost:1521:SID
    Solution
    (generate seperate url for SERVICE NAME)
    jdbc:oracle:thin:@localhost:1521/SERVICENAME
    ------------------------

    It is so clear: host not found error for network connection and the other SID servcie name not found means your oracle instance name is not up. check with srvctl status for given servcie name or node, else check CRS_Stat -t if you are using RAC.

  • Servlet with 2 Response Streams

    I want to create a Servlet with 2 response streams. I need to use 1 response Stream to send Continuous Updates received on the server
    and the other response Stream would be used to send Heartbeats to the Client. I tried to create the Servlet but the response I create to send the continuous data just stops sending data to the Client after many attempts. In this attached Servlet, The response for continuous data stopped after 150 refreshes.
    Please let me know how to fix the issue. I tried reset() too but does not seem to work. Will very much appreciate any help.
    package com.XX;
    import java.io.IOException;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class TestServlet extends HttpServlet{
         private static final long serialVersionUID = 1L;
         public static int count = 0;
         private TestSave testSave = null;
         private HttpServletResponse resp = null;
         public void init(){
              testSave = new TestSave();
         protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
              count ++;
              if(testSave == null){
                   System.out.println(" test save = null");
                   return;
              if(testSave.getRes()==null){
              System.out.println(" test save resp is null");          
              testSave.setRes(res);
              res.getWriter().println(" Initial Daily count Response ");
              }else{
              res.getWriter().println(" Daily response " + count);
              //res.getWriter().close();
         System.out.println(" test save resp is not null");
              resp = testSave.getRes();
              String data = "Count is "+count;
              System.out.println(" Writing response " + resp);
              System.out.println(" Writing Data " + data);
              System.out.println(" Response committed 1 - " + count + " : " + resp.isCommitted());
              resp.getWriter().println(data);
              System.out.println(" Response committed 2 - " + count + " : " + resp.isCommitted());
              System.out.println(" Daily Response committed ??? " + res.isCommitted());
         protected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
              doGet(req,res);          
    }

    The TestSave code.
    import javax.servlet.http.HttpServletResponse;
    public class TestSave {
         HttpServletResponse res;
         public HttpServletResponse getRes() {
              return res;
         public void setRes(HttpServletResponse res) {
              this.res = res;
    }

  • Exception creating new Poolable object

    Hi All
    I have installed jdeveloper 12.1.2 and when running the hello world page iam getting this error....pls advice
    *500 Internal Server Error*
    oracle.apps.fnd.common.AppsException: oracle.apps.fnd.common.PoolException: Exception creating new Poolable object.     at oracle.apps.fnd.profiles.Profiles.getProfileOption(Profiles.java:1509)     at oracle.apps.fnd.profiles.Profiles.getProfile(Profiles.java:362)     at oracle.apps.fnd.profiles.ExtendedProfileStore.getSpecificProfileFromDB(ExtendedProfileStore.java:211)     at oracle.apps.fnd.profiles.ExtendedProfileStore.getSpecificProfile(ExtendedProfileStore.java:171)     at oracle.apps.fnd.profiles.ExtendedProfileStore.getProfile(ExtendedProfileStore.java:148)     at oracle.apps.fnd.common.logging.DebugEventManager.configureUsingDatabaseValues(DebugEventManager.java:1294)     at oracle.apps.fnd.common.logging.DebugEventManager.configureLogging(DebugEventManager.java:1149)     at oracle.apps.fnd.common.logging.DebugEventManager.internalReinit(DebugEventManager.java:1118)     at oracle.apps.fnd.common.logging.DebugEventManager.reInitialize(DebugEventManager.java:1085)     at oracle.apps.fnd.common.logging.DebugEventManager.reInitialize(DebugEventManager.java:1072)     at oracle.apps.fnd.common.AppsLog.reInitialize(AppsLog.java:595)     at oracle.apps.fnd.common.AppsContext.initLog(AppsContext.java:593)     at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java:570)     at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java:524)     at oracle.apps.fnd.common.WebAppsContext.<init>(WebAppsContext.java:1140)     at oracle.apps.fnd.common.WebRequestUtil.validateContext(WebRequestUtil.java:225)     at OAErrorPage.jspService(_OAErrorPage.java:62)     [OAErrorPage.jsp]     at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.3.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)     at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.EvermindPageContext.handlePageThrowable(EvermindPageContext.java:847)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.EvermindPageContext.handlePageException(EvermindPageContext.java:813)     at runregion.jspService(_runregion.java:193)

    Hi kali....
    yes i have downloaded<<Patch 9172975>> 10G JDEVELOPER WITH OA EXTENSION ARU FOR R12.1 RUP2..and got the latest .dbc file now from dba...now iam getting.......
    Exception Details.
    oracle.apps.fnd.framework.OAException: Application: FND, Message Name: PASSWORD_INVALID.
         at oracle.apps.fnd.framework.server.OAExceptionUtils.processAOLJErrorStack(Unknown Source)
         at oracle.apps.fnd.framework.OACommonUtils.processAOLJErrorStack(Unknown Source)
         at oracle.apps.fnd.framework.CreateIcxSession.getEncryptedSessId(Unknown Source)
         at oracle.apps.fnd.framework.CreateIcxSession.createSession(Unknown Source)
         at runregion.jspService(_runregion.java:132)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
         at java.lang.Thread.run(Thread.java:595)
    althogh i have created new user......and assigned the responsibility.....
    select fnd_web_sec.validate_login('TEST_USER','TEST@123') from dual;
    vaue is 'Y'
    select fnd_web_sec.validate_login('GUEST','ORACLE') from dual;
    vaue is 'Y'
    PLS ADVISE....

  • What's this?--Exception creating DataSource: org.hsql.jdbcDriver

    How to register the MS-SQL Server2000 DataSource in Tomcat4.04?
    Hi friends,
         I only have the MS SQL Server 2000 Database,and prog with jsp and Tomcat.
    Since the MS issue their JDBC Driver for SQL Server,I always use "DriverManager"
    to get the database connection,
    eg:
         Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
         Connection conn = DriverManager.getConnection
    ("jdbc:microsoft:sqlserver://server1:1433","username","password");
    Now I want to use "DataSource" to get connection in my prog,and I know it is necessary to register the DataSouce with JNDI in Tomcat before I can use it.
    But how to register and use the SQL Server DataSource in Tomcat4.04? I had tried some times and all failed,tomcat throws a exception like this:"javax.servlet.ServletException: Exception creating DataSource: org.hsql.jdbcDriver"
    what is "org.hsql.jdbcDriver"? may be it is tomcat's build in,but how can make my sql server driver work?
         Any Commnet Will Be Appreicate!
    ----Below is my fail trail when try to config the Tomcat--------------------
    Fellow the Tomcat's document,I modify the
    "$CATALINA_HOME/conf/server.xml" like this.
    <Context path="/MySite" docBase ="MySite" debug = "0" privileged = "true">
    <Resource name="jdbc/pubsDb" auth="Container"
    type="javax.sql.DataSource"/>
    <ResourceParams name="jdbc/pubsDb">
    <parameter>
              <name>user</name>
              <value>LJS</value>
         </parameter>
         <parameter>
              <name>password</name>
              <value>121212</value>
         </parameter>
    <parameter>
              <name>driverClassName</name>
    <value>com.microsoft.jdbcx.sqlserver.SQLServerDriver</value>
    </parameter>
    <parameter>
    <name>driverName</name>
    <value>jdbc:microsoft:sqlserver://localhost:1433/pubs</value>
    </parameter>
    </ResourceParams>     
    </Context>
    PS: the MSSQL Sever2000 has installed and had a user named "LJS" which password is 121212
    and default database is "pubs".
    Then,I modified the $CATALINA_HOME/webapps/MySite/WEB-INF/web.xml like this
         <resource-ref>
              <description>
                   Resource reference to a factory for java.sql.Connection
                   instances that may be used for talking to a particular
                   database that is configured in the server.xml file.
              </description>
              <res-ref-name>
                   jdbc/pubsDB
              </res-ref-name>
              <res-type>
                   javax.sql.DataSource
              </res-type>
              <res-auth>
                   Container
              </res-auth>
         </resource-ref>     
    finally I code a DB.jsp like this
    <%@ page content="text/html"%>
    <%@ page import="java.sql.*,javax.sql.*,java.naming.*"%>
    <%
         Context ctx = new InitialContext();
         DataSource ds = (DataSource)(new InitialContext().lookup("java:comp/env/jdbc/pubsDB"));
    %>
         after all done, I launch the Tomcat 4.0 and type "http://localhost:8080/MySite/DS.jsp" in
    my browser.
         then Tomcat throw exception like this:
    javax.servlet.ServletException: Exception creating DataSource: org.hsql.jdbcDriver
         at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:471)
         at org.apache.jsp.DS$jsp._jspService(DS$jsp.java:83)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
         at java.lang.Thread.run(Thread.java:484)
    root cause
    javax.naming.NamingException: Exception creating DataSource: org.hsql.jdbcDriver
         at
    org.apache.naming.factory.TyrexDataSourceFactory.getObjectInstance(TyrexDataSourceFactory.java:233)
         at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:165)
         at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
         at org.apache.naming.NamingContext.lookup(NamingContext.java:835)
         at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
         at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
         at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
         at org.apache.jsp.DS$jsp._jspService(DS$jsp.java:70)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
         at java.lang.Thread.run(Thread.java:484)

    Hi,
    don't know if you've already found a solution to this problem. Anyway, I had the same problem and the cause turned out to be a non-valid server.xml file.
    Here is my (working) server.xml:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!-- Example Server Configuration File --><!-- Note that component elements are nested corresponding to their
    parent-child relationships with each other --><!-- A "Server" is a singleton element that represents the entire JVM,
    which may contain one or more "Service" instances. The Server
    listens for a shutdown command on the indicated port.
    Note: A "Server" is not itself a "Container", so you may not
    define subcomponents such as "Valves" or "Loggers" at this level.
    --><Server debug="0" name="TestServer" port="8005" shutdown="SHUTDOWN">
    <!-- A "Service" is a collection of one or more "Connectors" that share
    a single "Container" (and therefore the web applications visible
    within that Container). Normally, that Container is an "Engine",
    but this is not required.
    Note: A "Service" is not itself a "Container", so you may not
    define subcomponents such as "Valves" or "Loggers" at this level.
    -->
    <!-- Define the Tomcat Stand-Alone Service -->
    <Service name="Tomcat-Standalone">
    <!-- A "Connector" represents an endpoint by which requests are received
    and responses are returned. Each Connector passes requests on to the
    associated "Container" (normally an Engine) for processing.
    By default, a non-SSL HTTP/1.1 Connector is established on port 8080.
    You can also enable an SSL HTTP/1.1 Connector on port 8443 by
    following the instructions below and uncommenting the second Connector
    entry. SSL support requires the following steps:
    * Download and install JSSE 1.0.2 or later, and put the JAR files
    into "$JAVA_HOME/jre/lib/ext".
    * Edit "$JAVA_HOME/jre/lib/security/java.security" and add
    security.provider.2=com.sun.net.ssl.internal.ssl.Provider
    * Execute: keytool -genkey -alias tomcat -keyalg RSA
    with a password value of "changeit".
    By default, DNS lookups are enabled when a web application calls
    request.getRemoteHost(). This can have an adverse impact on
    performance, so you can disable it by setting the
    "enableLookups" attribute to "false". When DNS lookups are disabled,
    request.getRemoteHost() will return the String version of the
    IP address of the remote client.
    -->
    <!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
    <Connector acceptCount="10" className="org.apache.catalina.connector.http.HttpConnector" connectionTimeout="60000" debug="0" enableLookups="true" maxProcessors="75" minProcessors="5" port="8080" redirectPort="8443"/>
    <!-- Note : To disable connection timeouts, set connectionTimeout value
    to -1 -->
    <!-- Define an SSL HTTP/1.1 Connector on port 8443 -->
    <!--
    <Connector className="org.apache.catalina.connector.http.HttpConnector"
    port="8443" minProcessors="5" maxProcessors="75"
    enableLookups="true"
         acceptCount="10" debug="0" scheme="https" secure="true">
    <Factory className="org.apache.catalina.net.SSLServerSocketFactory"
    clientAuth="false" protocol="TLS"/>
    </Connector>
    -->
    <!-- Define a Proxied HTTP/1.1 Connector on port 8081 -->
    <!-- See proxy documentation for more information about using this. -->
    <!--
    <Connector className="org.apache.catalina.connector.http.HttpConnector"
    port="8081" minProcessors="5" maxProcessors="75"
    enableLookups="true"
    acceptCount="10" debug="0" connectionTimeout="60000"
    proxyPort="80"/>
    -->
    <!-- Define a non-SSL HTTP/1.0 Test Connector on port 8082 -->
    <!--
    <Connector className="org.apache.catalina.connector.http10.HttpConnector"
    port="8082" minProcessors="5" maxProcessors="75"
    enableLookups="true" redirectPort="8443"
    acceptCount="10" debug="0"/>
    -->
    <!-- An Engine represents the entry point (within Catalina) that processes
    every request. The Engine implementation for Tomcat stand alone
    analyzes the HTTP headers included with the request, and passes them
    on to the appropriate Host (virtual host). -->
    <!-- Define the top level container in our container hierarchy -->
    <Engine debug="0" defaultHost="localhost" name="Standalone">
    <!-- The request dumper valve dumps useful debugging information about
    the request headers and cookies that were received, and the response
    headers and cookies that were sent, for all requests received by
    this instance of Tomcat. If you care only about requests to a
    particular virtual host, or a particular application, nest this
    element inside the corresponding <Host> or <Context> entry instead.
    For a similar mechanism that is portable to all Servlet 2.3
    containers, check out the "RequestDumperFilter" Filter in the
    example application (the source for this filter may be found in
    "$CATALINA_HOME/webapps/examples/WEB-INF/classes/filters").
    Request dumping is disabled by default. Uncomment the following
    element to enable it. -->
    <!--
    <Valve className="org.apache.catalina.valves.RequestDumperValve"/>
    -->
    <!-- Global logger unless overridden at lower levels -->
    <Logger className="org.apache.catalina.logger.FileLogger" prefix="catalina_log." suffix=".txt" timestamp="true"/>
    <!-- Because this Realm is here, an instance will be shared globally -->
    <Realm className="org.apache.catalina.realm.MemoryRealm"/>
    <!-- Define the default virtual host -->
    <Host appBase="webapps" debug="0" name="localhost" unpackWARs="true">
    <!-- Normally, users must authenticate themselves to each web app
    individually. Uncomment the following entry if you would like
    a user to be authenticated the first time they encounter a
    resource protected by a security constraint, and then have that
    user identity maintained across all web applications contained
    in this virtual host. -->
    <!--
    <Valve className="org.apache.catalina.authenticator.SingleSignOn"
    debug="0"/>
    -->
    <!-- Access log processes all requests for this virtual host. By
    default, log files are created in the "logs" directory relative to
    $CATALINA_HOME. If you wish, you can specify a different
    directory with the "directory" attribute. Specify either a relative
    (to $CATALINA_HOME) or absolute path to the desired directory.
    -->
    <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" pattern="common" prefix="localhost_access_log." suffix=".txt"/>
    <!-- Logger shared by all Contexts related to this virtual host. By
    default (when using FileLogger), log files are created in the "logs"
    directory relative to $CATALINA_HOME. If you wish, you can specify
    a different directory with the "directory" attribute. Specify either a
    relative (to $CATALINA_HOME) or absolute path to the desired
    directory.-->
    <Logger className="org.apache.catalina.logger.FileLogger" directory="logs" prefix="localhost_log." suffix=".txt" timestamp="true"/>
    <!-- Define properties for each web application. This is only needed
    if you want to set non-default properties, or have web application
    document roots in places other than the virtual host's appBase
    directory. -->
    <!-- Tomcat Root Context -->
    <!--
    <Context path="" docBase="ROOT" debug="0"/>
    -->
    <Context docBase="D:\Program Files\IBM\WebSphere Studio\workspaces\Test\StudentWEB\Web Content"
                   path="/StudentWEB"
                   reloadable="true"
                   source="com.ibm.etools.webtools.server:StudentWEB">
                   <Logger className="org.apache.catalina.logger.FileLogger"
         prefix="localhost_DBTest_log." suffix=".txt"
         timestamp="true"/>
                   <Resource name="jdbc/TestDB"
              auth="Container"
    type="javax.sql.DataSource"/>
                   <ResourceParams name="jdbc/TestDB">
                   <parameter>
                        <name>factory</name>
                        <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
                   </parameter>
                   <!-- Maximum number of dB connections in pool. Make sure you
              configure your mysqld max_connections large enough to handle
              all of your db connections. Set to 0 for no limit.
              -->
                   <parameter>
                        <name>maxActive</name>
                        <value>100</value>
                   </parameter>
                   <!-- Maximum number of idle dB connections to retain in pool.
              Set to 0 for no limit.
              -->
                   <parameter>
                        <name>maxIdle</name>
                        <value>30</value>
                   </parameter>
                   <!-- Maximum time to wait for a dB connection to become available
              in ms, in this example 10 seconds. An Exception is thrown if
              this timeout is exceeded. Set to -1 to wait indefinitely.
              -->
                   <parameter>
                        <name>maxWait</name>
                        <value>10000</value>
                   </parameter>
                   <!-- MySQL dB username and password for dB connections -->
                   <parameter>
                        <name>username</name>
                        <value>admin</value>
                   </parameter>
                   <parameter>
                        <name>password</name>
                        <value>admin</value>
                   </parameter>
                   <!-- Class name for mm.mysql JDBC driver -->
                   <parameter>
                        <name>driverClassName</name>
                        <value>org.gjt.mm.mysql.Driver</value>
                   </parameter>
                   <!-- The JDBC connection url for connecting to your MySQL dB.
              The autoReconnect=true argument to the url makes sure that the
              mm.mysql JDBC Driver will automatically reconnect if mysqld closed the
              connection. mysqld by default closes idle connections after 8 hours.
              -->
                   <parameter>
                        <name>url</name>
                        <value>jdbc:mysql://localhost:3306/javatest?autoReconnect=true</value>
                   </parameter>
                   </ResourceParams>
         </Context>
    </Host>
    </Engine>
    </Service>
    <!-- The MOD_WEBAPP connector is used to connect Apache 1.3 with Tomcat 4.0
    as its servlet container. Please read the README.txt file coming with
    the WebApp Module distribution on how to build it.
    (Or check out the "jakarta-tomcat-connectors/webapp" CVS repository)
    To configure the Apache side, you must ensure that you have the
    "ServerName" and "Port" directives defined in "httpd.conf". Then,
    lines like these to the bottom of your "httpd.conf" file:
    LoadModule webapp_module libexec/mod_webapp.so
    WebAppConnection warpConnection warp localhost:8008
    WebAppDeploy examples warpConnection /examples/
    The next time you restart Apache (after restarting Tomcat, if needed)
    the connection will be established, and all applications you make
    visible via "WebAppDeploy" directives can be accessed through Apache.
    -->
    <!-- Define an Apache-Connector Service -->
    <Service name="Tomcat-Apache">
    <Connector acceptCount="10" className="org.apache.catalina.connector.warp.WarpConnector" debug="0" enableLookups="true" maxProcessors="75" minProcessors="5" port="8008"/>
    <!-- Replace "localhost" with what your Apache "ServerName" is set to -->
    <Engine appBase="webapps" className="org.apache.catalina.connector.warp.WarpEngine" debug="0" name="Apache">
    <!-- Global logger unless overridden at lower levels -->
    <Logger className="org.apache.catalina.logger.FileLogger" prefix="apache_log." suffix=".txt" timestamp="true"/>
    <!-- Because this Realm is here, an instance will be shared globally -->
    <Realm className="org.apache.catalina.realm.MemoryRealm"/>
    </Engine>
    </Service>
    </Server>
    My web.xml looks like this:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!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>
    <description>MySQL Test App</description>
    <servlet>
         <servlet-name>TestServlet</servlet-name>
         <display-name>TestServlet</display-name>
         <servlet-class>TestServlet</servlet-class>
    </servlet>
    <servlet-mapping>
         <servlet-name>TestServlet</servlet-name>
         <url-pattern>/TestServlet</url-pattern>
    </servlet-mapping>
    <resource-ref>
    <description>DB Connection</description>
    <res-ref-name>jdbc/TestDB</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    </web-app>
    You can of course leave out the comments if you want...
    Please let me know if this works on [email protected].
    Kind regards,
    Johan

  • Exception creating EntityManagerFactory using PersistenceProvider class

    Hi,
    im new to OC4J and using standalone version of it.
    I'd made a new spring based application with JDBC connection.
    When i'm trying to deploy this application i'm getting the exception :
    Exception creating EntityManagerFactory using PersistenceProvider class org.hibernate.ejb.HibernatePersistence for persistence unit ApplicationEntityManagerI'm not able to understand why i'm getting this error because i'm not using HibernatePersistance in the application.
    Kindly help.
    Here is the stack trace of "ascontrol.log"
    2009-01-15 21:02:40,691 [OC4J Launcher] WARN  jmx.SecureWalletManager _setPermission.161 - WARNING: Could not set file permissions administrators:F for wallet at C:\Program Files\Java\oc4j_extended_101340\j2ee\home\persistence\ascontrol\ascontrol\securestore\ewallet.p12
    2009-01-15 21:02:40,738 [OC4J Launcher] WARN  jmx.SecureWalletManager _setPermission.161 - WARNING: Could not set file permissions system:F for wallet at C:\Program Files\Java\oc4j_extended_101340\j2ee\home\persistence\ascontrol\ascontrol\securestore\ewallet.p12
    2009-01-15 21:03:53,882 [HTTPThreadGroup-4] WARN  ias.ContentEmIntegration init.51 - Initialize Content DB Integration class
    2009-01-15 21:04:04,007 [EMUI_21_04_00_/console/postLogon] WARN  jmx.SecureWalletManager _setPermission.161 - WARNING: Could not set file permissions administrators:F for wallet at C:\Program Files\Java\oc4j_extended_101340\j2ee\home\persistence\ascontrol\ascontrol\securestore\ewallet.p12
    2009-01-15 21:04:04,054 [EMUI_21_04_00_/console/postLogon] WARN  jmx.SecureWalletManager _setPermission.161 - WARNING: Could not set file permissions system:F for wallet at C:\Program Files\Java\oc4j_extended_101340\j2ee\home\persistence\ascontrol\ascontrol\securestore\ewallet.p12
    2009-01-15 21:04:04,319 [EMUI_21_04_00_/console/postLogon] WARN  jmx.SecureWalletManager _setPermission.161 - WARNING: Could not set file permissions administrators:F for wallet at C:\Program Files\Java\oc4j_extended_101340\j2ee\home\persistence\ascontrol\ascontrol\securestore\ewallet.p12
    2009-01-15 21:04:04,351 [EMUI_21_04_00_/console/postLogon] WARN  jmx.SecureWalletManager _setPermission.161 - WARNING: Could not set file permissions system:F for wallet at C:\Program Files\Java\oc4j_extended_101340\j2ee\home\persistence\ascontrol\ascontrol\securestore\ewallet.p12
    2009-01-15 21:04:04,616 [EMUI_21_04_00_/console/postLogon] WARN  jmx.SecureWalletManager _setPermission.161 - WARNING: Could not set file permissions administrators:F for wallet at C:\Program Files\Java\oc4j_extended_101340\j2ee\home\persistence\ascontrol\ascontrol\securestore\ewallet.p12
    2009-01-15 21:04:04,648 [EMUI_21_04_00_/console/postLogon] WARN  jmx.SecureWalletManager _setPermission.161 - WARNING: Could not set file permissions system:F for wallet at C:\Program Files\Java\oc4j_extended_101340\j2ee\home\persistence\ascontrol\ascontrol\securestore\ewallet.p12
    2009-01-15 21:04:05,132 [EMUI_21_04_04_/console/postLogon] WARN  jmx.SecureWalletManager _setPermission.161 - WARNING: Could not set file permissions administrators:F for wallet at C:\Program Files\Java\oc4j_extended_101340\j2ee\home\persistence\ascontrol\ascontrol\securestore\ewallet.p12
    2009-01-15 21:04:05,179 [EMUI_21_04_04_/console/postLogon] WARN  jmx.SecureWalletManager _setPermission.161 - WARNING: Could not set file permissions system:F for wallet at C:\Program Files\Java\oc4j_extended_101340\j2ee\home\persistence\ascontrol\ascontrol\securestore\ewallet.p12
    2009-01-15 21:04:05,413 [EMUI_21_04_04_/console/postLogon] WARN  jmx.SecureWalletManager _setPermission.161 - WARNING: Could not set file permissions administrators:F for wallet at C:\Program Files\Java\oc4j_extended_101340\j2ee\home\persistence\ascontrol\ascontrol\securestore\ewallet.p12
    2009-01-15 21:04:05,460 [EMUI_21_04_04_/console/postLogon] WARN  jmx.SecureWalletManager _setPermission.161 - WARNING: Could not set file permissions system:F for wallet at C:\Program Files\Java\oc4j_extended_101340\j2ee\home\persistence\ascontrol\ascontrol\securestore\ewallet.p12
    2009-01-15 21:04:05,695 [EMUI_21_04_04_/console/postLogon] WARN  jmx.SecureWalletManager _setPermission.161 - WARNING: Could not set file permissions administrators:F for wallet at C:\Program Files\Java\oc4j_extended_101340\j2ee\home\persistence\ascontrol\ascontrol\securestore\ewallet.p12
    2009-01-15 21:04:05,726 [EMUI_21_04_04_/console/postLogon] WARN  jmx.SecureWalletManager _setPermission.161 - WARNING: Could not set file permissions system:F for wallet at C:\Program Files\Java\oc4j_extended_101340\j2ee\home\persistence\ascontrol\ascontrol\securestore\ewallet.p12
    2009-01-15 21:05:16,963 [EMUI_21_05_16_/console/ias/j2ee/deploy/deploySavePlan] ERROR em.console doGet.303 - java.lang.IllegalStateException: Response has already been committed
    java.lang.IllegalStateException: Response has already been committed
         at com.evermind.server.http.EvermindHttpServletResponse.resetBuffer(EvermindHttpServletResponse.java:1892)
         at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:249)
         at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51)
         at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
         at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:284)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
         at oracle.sysman.emSDK.svlt.PageHandler.render(PageHandler.java:796)
         at oracle.sysman.emSDK.svlt.PageHandler.handleRequest(PageHandler.java:398)
         at oracle.sysman.emSDK.svlt.EMServlet.myDoGet(EMServlet.java:765)
         at oracle.sysman.emSDK.svlt.EMServlet.doGet(EMServlet.java:283)
         at oracle.sysman.ias.studio.app.StudioConsole.doGet(StudioConsole.java:385)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.sysman.ias.studio.app.BrowserVersionFilter.doFilter(BrowserVersionFilter.java:75)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.sysman.ias.studio.app.MultipleJVMFilter.doFilter(MultipleJVMFilter.java:85)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
         at oracle.sysman.ias.studio.app.PostLogonFilter.doFilter(PostLogonFilter.java:80)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
         at oracle.sysman.ias.studio.app.ShortHostnameRedirectFilter.doFilter(ShortHostnameRedirectFilter.java:68)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:619)

    Greetings,
    Did you develop your application using Spring\Hibernate on JBoss? Oracle uses Toplink so you can revisit your persistence settings in accordance with:
    How-To : Using EJB 3.0 and Java Persistence API with Spring in OC4J
    http://www.oracle.com/technology/tech/java/oc4j/1013/how_to/how-to-ejb30-jpa-spring/doc/how-to-ejb30-jpa-spring.htmlThe main page that this is referenced from is at:
    Oracle TopLink
    http://www.oracle.com/technology/products/ias/toplink/technical/tips/index.html-Michael

  • DEBUG SMTP: exception reading response

    Hello,
    I am coding a background process to send e-mails. It uses Threads so each Thread opens a connection with a local smtp server and send a configured amount of e-mails.
    It goes well when there aren't too many Threads, but in opposite to that i receive the following message :
    DEBUG SMTP: useEhlo true, useAuth false
    DEBUG SMTP: starting protocol to host "localhost", port 25
    DEBUG SMTP: exception reading response: java.net.SocketException: Connection reset
    MessagingException - Exception reading response; nested exception is: java.net.SocketException: Connection reset
    Considering that it is happening initially because the smtp server got overload because the amount of connections i did the following:
    Transport t = mailSession.getTransport("smtp");
    while(t.isConnected() != true) {
         try {
              t.connect();
         } catch (MessagingException me){
              try {
                   Thread.sleep(rand.nextInt(n));
              } catch (InterruptedException ie){
                   Log.info("Thread Name/ID: " + jobObj.getName() + " / " + jobObj.getId() + " - " + "Exception : InterruptedException - " + ie.getMessage());                         
              Log.info("Connect: Thread Name/ID: " + jobObj.getName() + " / " + jobObj.getId() + " - " + "Exception : MessagingException - " + me.getMessage());               
    Then i do send the respective e-mails for each Thread using :
    t.sendMessage();
    and i do close the connection after all the e-mails were sent with
    t.close();
    This is just a small snippet of the code, but represents the loop i am trying to create to solve my problem, which is smtp connections overload. So when the connection is not really established i put the Thread to sleep and then it tries again latter until the success of the connection. It seems to work for some Threads but others keep returning the same error and don't work well.
    Can anyone help me on this ?
    Thx in advance

    Hi,
    I face similar problem with same error message. Have you found the solution yet? Could you share with me?
    Thanks,
    Lngo

  • Exception created : flex.messaging.security.SecurityException

    Hi ,
    The message below keep appearing in the systemout.log file. Any idea?
    00002ca4 webcontainer  E com.ibm.ws.webcontainer.WebContainer handleRequest SRVE0255E: A WebGroup/Virtual Host to handle / has not been defined.
    00002ca4 servlet       E com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0068E: Uncaught exception created in one of the service methods of the servlet documents in application LiveCycleES2. Exception created : flex.messaging.security.SecurityException
        at com.adobe.workspace.users.Authentication.validateContext(Authentication.java:445)
        at com.adobe.workspace.tasks.DocumentServlet.doGet(DocumentServlet.java:166)
    00002ca4 webcontainer  E com.ibm.ws.webcontainer.WebContainer handleRequest SRVE0255E: A WebGroup/Virtual Host to handle / has not been defined.
    00002ca4 webapp        E com.ibm.ws.webcontainer.webapp.WebApp logServletError SRVE0293E: [Servlet Error]-[documents]: com.ibm.ws.webcontainer.webapp.WebAppErrorReport: Method PROPFIND is not defined in RFC 2068 and is not supported by the Servlet API
        at com.ibm.ws.webcontainer.webapp.WebAppDispatcherContext.sendError(WebAppDispatcherContext. java:637)
        at com.ibm.ws.webcontainer.srt.SRTServletResponse.sendError(SRTServletResponse.java:1187)
    -Dhiyane

    Hello Nitin,
    i didnt say that its working fine with ATG REST. i mentioned that its working fine with 10.0.2 version of ATG but not with ATG10.1.1 . Also i am using SOAP only in both the versions. i am getting the boolean exception in the line where will i pass username, password and ispasswordEncrpted. i am passing defalut username,
    password and false(ispasswordencrypted).
    so can you help me on this.
    i am pasting my clinet program here
    public class LoginClient {
      * @param args
      * @throws RemoteException
      * @throws ServletException
      * @throws SecurityException
      * @throws ServiceException
      public static void main(String[] args) throws SecurityException, ServletException, RemoteException, ServiceException {
      /*System.getProperties().put("socksProxyHost", "172.26.183.65");
      System.getProperties().put("socksProxyPort", "8180");*/
      LoginUserSEIService loginService = new LoginUserSEIServiceLocator();
      LoginUserSEI loginStub = loginService.getLoginUserSEIPort();
      org.apache.axis.client.Stub axisStub = (org.apache.axis.client.Stub) loginStub;
      CookieContainer cookieContainer = new CookieContainer();
      axisStub.setMaintainSession(true);
      // Don't allow XML elements to reference other XML elements
      axisStub._setProperty(AxisEngine.PROP_DOMULTIREFS, new Boolean(false));
      // Push cookies onto the Stub
      cookieContainer.pushCookies(axisStub);
      String userId = loginStub.loginUser("[email protected]", " password", false);
      // Get cookies out of the Stub, and pass them to subsequent calls as needed
      cookieContainer.extractCookies(axisStub);
      System.out.println("User ID : " + userId);

  • Different Options while creating a Datasource in Weblogic

    Hi
    I am using Weblogic 11 as Application Server .
    While in the process of creating a DataSource in Weblogic , i came across different options such as for Instance Connections , for Service Connections.
    Please tell me whats the difference in these two ??
    Whats the difference in Oracle Drivers (Thin) for Instance Connections versions 9 , 10 , 11
    Whats the difference in Oracle Drivers (Thin) for Service Connections 9 , 10 , 11
    Thanks in advance .

    Hi,
    Your query is replied by Joe Weistine (JDBC Expert) Please find the answer:
    http://forums.oracle.com/forums/message.jspa?messageID=4029371
    You can directly post your JDBC related querries to JDBC Forum directly to get to get Quick/appropriate/correct answers and attention from JDBC experts... WebLogic Server - JDBC (Forum ID)
    Thanks
    Jay SenSharma
    Edited by: Jay SenSharma on Jan 16, 2010 10:38 AM

  • Did you know that Captivate 8 takes virtually all of the work out of creating responsive online courses?

    I just saw the Adobe Blog article about Captivate 8 and the statement that Cp8 is an " authoring tool that takes virtually all of the work out of creating responsive courses online".
    http://blogs.adobe.com/captivate/2014/05/the-all-new-adobe-captivate-8-blends-authoring-ea se-with-game-changing-mobile-support.html
    Methinks this might be a tad overstating the matter. With responsive e-learning courses you effectively need to build the same course three times for the three different device screen sizes.
    Gotta love marketing people...

    Of course it is marketing hype, almost the only feature that everyone is shouting about, but I never did see a work flow, or real time experience described in all those blogs. I never write about some features I didn't explore, so I started with those that are also useful for the many companies that are not turning to mobile or BYOD yet, and have talked about those, including limitation and possible improvements.
    However, Rod, I don't agree totally with you. There is work taken out of your hand with the Responsive project work flow in Captivate. Responsive themes, smart positioning, resizing of objects, text, repositioning for phone break point, and testing with Edge Inspect are working pretty well, especially for this first implementation in Captivate (do not expect miracles). And from a usability standpoint, you have to reflect indeed on how the concept has to be, and that is different for each device. Such a mindframe takes a lot more than what a newbie playing for one day with Captivate can realize (as proclaim most blog posts), you don't have to persuade me about that. However I don't agree with your statement  'you effectively need to build the same course three times', but so-called 'single-source publishing' has always been a dream that will never be realized IMO, certainly not for eLearning.
    I am busy creating a real responsive tutorial (for Captivate) and will try to explain later on what I learned by doing. Only at that moment I will 'write', marketing is certainly not one of my skills
    Lieve

  • How to Override Payment Terms on "Create Response" screen

    All,
    On the Create Response screen, the payment terms are inherited from the Business Partner purchasing data.
    How do you override it?
    Regards,
    Greg

    Hi sam
    Payment term not transfered to R3
    check this thread
    now i dont have a system to check on ecs po
    but he has edited the payterm
    but it is a piece of data which comes from vendor master.
    br
    muthu

  • Java.lang.ExceptionInInitializerError,Exception creating new Poolableobject

    Hi,
    i am getting the below errors while running a page from JDEV, which is a simple page with few fields.
    Please help me in resolving this error.
    500 Internal Server Error
    java.lang.ExceptionInInitializerError
         at oracle.apps.fnd.sso.Utils.<clinit>(Utils.java:664)
         at oracle.apps.fnd.common.WebRequestUtil.validateContextPrivate(WebRequestUtil.java:431)
         at oracle.apps.fnd.common.WebRequestUtil.validateContext(WebRequestUtil.java:324)
         at oracle.apps.fnd.common.WebRequestUtil.validateContext(WebRequestUtil.java:227)
         at OAErrorPage.jspService(_OAErrorPage.java:62)
         [OAErrorPage.jsp]
         at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.3.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
         at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.EvermindPageContext.handlePageThrowable(EvermindPageContext.java:847)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.EvermindPageContext.handlePageException(EvermindPageContext.java:813)
         at OA.jspService(_OA.java:115)
         [OA.jsp]
         at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.3.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: oracle.apps.fnd.common.AppsException: oracle.apps.fnd.common.PoolException: Exception creating new Poolable object.
         at oracle.apps.fnd.profiles.Profiles.getProfileOption(Profiles.java:1509)
         at oracle.apps.fnd.profiles.Profiles.getProfile(Profiles.java:362)
         at oracle.apps.fnd.profiles.ExtendedProfileStore.getSpecificProfileFromDB(ExtendedProfileStore.java:211)
         at oracle.apps.fnd.profiles.ExtendedProfileStore.getSpecificProfile(ExtendedProfileStore.java:171)
         at oracle.apps.fnd.profiles.ExtendedProfileStore.getProfile(ExtendedProfileStore.java:148)
         at oracle.apps.fnd.common.logging.DebugEventManager.configureUsingDatabaseValues(DebugEventManager.java:1294)
         at oracle.apps.fnd.common.logging.DebugEventManager.configureLogging(DebugEventManager.java:1149)
         at oracle.apps.fnd.common.logging.DebugEventManager.internalReinit(DebugEventManager.java:1118)
         at oracle.apps.fnd.common.logging.DebugEventManager.reInitialize(DebugEventManager.java:1085)
         at oracle.apps.fnd.common.logging.DebugEventManager.reInitialize(DebugEventManager.java:1072)
         at oracle.apps.fnd.common.AppsLog.reInitialize(AppsLog.java:595)
         at oracle.apps.fnd.common.AppsContext.initLog(AppsContext.java:593)
         at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java:570)
         at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java:524)
         at oracle.apps.fnd.common.AppsContext.<init>(AppsContext.java:292)
         at oracle.apps.fnd.common.WebAppsContext.<init>(WebAppsContext.java:1095)
         at oracle.apps.fnd.sso.Utils.getAppsContext(Utils.java:539)
         at oracle.apps.fnd.sso.SessionMgr.loadInstalledLanguages(SessionMgr.java:3875)
         at oracle.apps.fnd.sso.SessionMgr.getInstalledLanguages(SessionMgr.java:3693)
         at oracle.apps.fnd.sso.Utils.getBaseInstalledLangCode(Utils.java:1476)
         at oracle.apps.fnd.sso.Authenticator.<clinit>(Authenticator.java:45)
         ... 38 more
    Caused by: oracle.apps.fnd.common.PoolException: Exception creating new Poolable object.
         at oracle.apps.fnd.common.Pool.createObject(Pool.java:1286)
         at oracle.apps.fnd.common.Pool.borrowObject(Pool.java:1027)
         at oracle.apps.fnd.security.DBConnObjPool.borrowObject(DBConnObjPool.java:583)
         at oracle.apps.fnd.security.AppsConnectionManager.borrowConnection(AppsConnectionManager.java:300)
         at oracle.apps.fnd.common.Context.borrowConnection(Context.java:1719)
         at oracle.apps.fnd.common.AppsContext.getPrivateConnectionFinal(AppsContext.java:2266)
         at oracle.apps.fnd.common.AppsContext.getPrivateConnection(AppsContext.java:2203)
         at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:2061)
         at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:1871)
         at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:1715)
         at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:1728)
         at oracle.apps.fnd.common.Context.getJDBCConnection(Context.java:1453)
         at oracle.apps.fnd.cache.GenericCacheLoader.load(GenericCacheLoader.java:170)
         at oracle.apps.fnd.profiles.Profiles.getProfileOption(Profiles.java:1500)
         ... 58 more
    Caused by: oracle.apps.fnd.common.AppsException: oracle.apps.fnd.common.AppsException: java.sql.SQLException: Io exception: Got minus one from a read call
         at oracle.apps.fnd.security.AppsConnectionManager.makeGwyuidConn(AppsConnectionManager.java:907)
         at oracle.apps.fnd.security.AppsConnectionManager.getGwyuidConn(AppsConnectionManager.java:966)
         at oracle.apps.fnd.security.AppsConnectionManager.makeGuestConnection(AppsConnectionManager.java:784)
         at oracle.apps.fnd.security.DBConnObj.<init>(DBConnObj.java:228)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at oracle.apps.fnd.common.Pool.createObject(Pool.java:1273)
         ... 71 more
    Caused by: oracle.apps.fnd.common.AppsException: java.sql.SQLException: Io exception: Got minus one from a read call
         at oracle.apps.fnd.security.ConnectionManager.dbConnect(ConnectionManager.java:1423)
         at oracle.apps.fnd.security.ConnectionManager.dbConnect(ConnectionManager.java:1326)
         at oracle.apps.fnd.security.AppsConnectionManager.makeGwyuidConn(AppsConnectionManager.java:888)
         ... 79 more
    Caused by: java.sql.SQLException: Io exception: Got minus one from a read call
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:138)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:175)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:287)
         at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:328)
         at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:430)
         at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:151)
         at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:608)
         at java.sql.DriverManager.getConnection(DriverManager.java:525)
         at java.sql.DriverManager.getConnection(DriverManager.java:140)
         at oracle.apps.fnd.security.ConnectionManager.dbConnect(ConnectionManager.java:1410)
         ... 81 more

    Issue solved, its due to my mistake i never defined the variable to capture the error message in procedure and also in the security rules i have changed the function to Desktop Integration - Create Document instead of Desktop Integration - Setup Options.

  • Creating txn datasource in weblogic 10.3

    Hi,
    Can anyone help me to create transactional datasources in weblogic 10.3. We are migrating our application from 8.1 to 10.3 and migrated existing datasources to 10.3. While executing ejb's it is giving the following error.
    java.sql.SQLException: Connection has already been created in this tx context for pool named <Pool 1> Illegal attempt to create connection from another pool: <Pool 2>
    In 8.1, we have only one connection pool associated with many txn datasources. In 10.3 created separate pool for each data source from same DB with following properties for txn.
    --Supports global transaction with one-phase commit.
    Used oracle.jdbc.OracleDriver driver class.
    Thanks in advance.

    You need to use an XA driver to span multiple resources such as oracle.jdbc.xa.client.OracleXADataSource
    See this article, which has some info on XA even if you aren't using RAC
    http://www.oracle.com/technology/products/weblogic/OracleWLS_RAC.pdf

  • Is there any facility to create responsive html page with tools

    I create many html page is there any tool to create responsive page easilily. Check this sample page of msbte result here i coded manually i not found any buttons or option for it

    Dreamweaver CS6 and CC have a feature called FluidGrid Layouts for creating responsive web pages.
    CS6 Fluid Grid layouts (17 min video)
    http://tv.adobe.com/watch/learn-dreamweaver-cs6/using-fluid-grid-layouts/
    Dreamweaver CS6 and CC also support jQuery Mobile for building mobile phone apps
    Create & package Mobile app with DW, jQuery Mobile & PhoneGap
    http://www.adobe.com/devnet/dreamweaver/articles/dw-phonegap-mobile-app.html
    Adobe has another product for creating Responsive Layouts in a more visual interface (preferred by designers):
    Adobe Edge Reflow (preview)
    http://tv.adobe.com/watch/adobe-edge-reflow/introduction-to-reflow/
    Or you can jump start your web projects with any of the Responsive Web Design Frameworks below:
    Foundation Zurb
    http://foundation.zurb.com/templates.php
    Skeleton Boilerplate
    http://www.getskeleton.com/
    Initializr (HTML5 Boilerplate, Responsive or Bootstrap)
    http://www.initializr.com/
    DMX Zone's Bootstrap FREE extension for DW
    http://www.dmxzone.com/go/21759/dmxzone-bootstrap/
    Project Seven's Page Packs (Commercial Responsive CSS Layouts)
    http://www.projectseven.com/products/templates/index.htm
    Use whichever works best for your particular project.
    Nancy O.

Maybe you are looking for

  • How to remove boot options while booting in mac with the options key

    I've just installed windows trough bootcamp, but somethings went little bit wrong, Everythings works fine, mac works and windows 7 works properly. But when i hold down the option key while booting i dont have the normal 3 options (Mac, Windows, Mac R

  • Incoterms in purchase order should appear only in header.

    Hi All, When the inter company purchase order is created with reference to purchase requistion, in some scenarios the header and item level incoterms are copied in the purchase order. 1. Incoterms in the header level of purchase order are copied from

  • HOW TO RE-REGISTER 8800

    Just purchased a 8800 from e-bay, was advertised as new never use! tried to register on blackberry and telling me to re-register as already registered. ANY HELP would be appreciated.

  • Searching for keyword "Ford" in Mail app, shuts down the app with no response

    Hi, I searched my mails with Keyword "FORD", and then the mail app just shuts down without any response. Please check the diagnostic code for more information. Provide me with solution asap. Vivek

  • Delete JAVA Stack in system with ABAP+JAVA

    Hello, A few days ago I installed a SAP ERP 6.0 SR3 with both stack: ABAP+JAVA. But now due some things, I want to know if it is possible to delete the JAVA stack! Yesterday I did a search how to do this, how it is possible to do this, and I found a