Classcast Exception in Web  Logic 5.1

          Hi , I am trying to Deploy a application in WebLogic 5.1 as Web app . I have directory structure like WEB-INF/classes and Web.xml files. I can fire application also. The Application first goes from html to Servlet and control goes to JSP page. In JSp page when i refferring the varibales of servlet. It is giving problem of java.lang.classcastException. I have set the classpath in Startweblogic file also. Still it is giving problem
          The Error message
          Fri Nov 17 17:36:06 GMT+05:30 2000:<E> <ServletContext-hll> exception raised on '/KeepWaiting.jsp' java.lang.ClassCastException: com.sil.rs.RsDailySalesCompute at jsp_servlet._keepwaiting._jspService(_keepwaiting.java:104) at weblogic.servlet.jsp.JspBase.service(JspBase.java:27) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:105) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:123) at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:143) at com.sil.common.GetStatus.doPost(GetStatus.java:44) at javax.servlet.http.HttpServlet.service(HttpServlet.java:772) at javax.servlet.http.HttpServlet.service(HttpServlet.java:865) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:105) at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:143) at com.sil.rs.RsDailySalesForm.doPost(RsDailySalesForm.java:77) at javax.servlet.http.HttpServlet.service(HttpServlet.java:772) at javax.servlet.http.HttpServlet.service(HttpServlet.java:865) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:105) at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:742) at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:686) at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:247) at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361) at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
          Fri Nov 17 17:36:06 GMT+05:30 2000:<E> <ServletContext-hll> Cannot find resource '/WWWErrorPage.jsp' in do Fri Nov 17 17:36:06 GMT+05:30 2000:<E> <ServletContext-hll> Servlet failed with Exception java.io.FileNotFoundException: no resource '/WWWErrorPage.jsp' in servlet context root 'D:\weblogic\myserv at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:235) at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:174) at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:164) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:99) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:123) at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:143) at weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:93) at jsp_servlet._keepwaiting._jspService(_keepwaiting.java:125) at weblogic.servlet.jsp.JspBase.service(JspBase.java:27) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:105) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:123) at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:143) at com.sil.common.GetStatus.doPost(GetStatus.java:44) at javax.servlet.http.HttpServlet.service(HttpServlet.java:772) at javax.servlet.http.HttpServlet.service(HttpServlet.java:865) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:105) at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:143) at com.sil.rs.RsDailySalesForm.doPost(RsDailySalesForm.java:77) at javax.servlet.http.HttpServlet.service(HttpServlet.java:772) at javax.servlet.http.HttpServlet.service(HttpServlet.java:865) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:105) at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:742) at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:686) at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:247) at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361) at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
          

          Hi , I am trying to Deploy a application in WebLogic 5.1 as Web app . I have directory structure like WEB-INF/classes and Web.xml files. I can fire application also. The Application first goes from html to Servlet and control goes to JSP page. In JSp page when i refferring the varibales of servlet. It is giving problem of java.lang.classcastException. I have set the classpath in Startweblogic file also. Still it is giving problem
          The Error message
          Fri Nov 17 17:36:06 GMT+05:30 2000:<E> <ServletContext-hll> exception raised on '/KeepWaiting.jsp' java.lang.ClassCastException: com.sil.rs.RsDailySalesCompute at jsp_servlet._keepwaiting._jspService(_keepwaiting.java:104) at weblogic.servlet.jsp.JspBase.service(JspBase.java:27) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:105) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:123) at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:143) at com.sil.common.GetStatus.doPost(GetStatus.java:44) at javax.servlet.http.HttpServlet.service(HttpServlet.java:772) at javax.servlet.http.HttpServlet.service(HttpServlet.java:865) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:105) at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:143) at com.sil.rs.RsDailySalesForm.doPost(RsDailySalesForm.java:77) at javax.servlet.http.HttpServlet.service(HttpServlet.java:772) at javax.servlet.http.HttpServlet.service(HttpServlet.java:865) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:105) at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:742) at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:686) at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:247) at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361) at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
          Fri Nov 17 17:36:06 GMT+05:30 2000:<E> <ServletContext-hll> Cannot find resource '/WWWErrorPage.jsp' in do Fri Nov 17 17:36:06 GMT+05:30 2000:<E> <ServletContext-hll> Servlet failed with Exception java.io.FileNotFoundException: no resource '/WWWErrorPage.jsp' in servlet context root 'D:\weblogic\myserv at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:235) at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:174) at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:164) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:99) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:123) at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:143) at weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:93) at jsp_servlet._keepwaiting._jspService(_keepwaiting.java:125) at weblogic.servlet.jsp.JspBase.service(JspBase.java:27) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:105) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:123) at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:143) at com.sil.common.GetStatus.doPost(GetStatus.java:44) at javax.servlet.http.HttpServlet.service(HttpServlet.java:772) at javax.servlet.http.HttpServlet.service(HttpServlet.java:865) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:105) at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:143) at com.sil.rs.RsDailySalesForm.doPost(RsDailySalesForm.java:77) at javax.servlet.http.HttpServlet.service(HttpServlet.java:772) at javax.servlet.http.HttpServlet.service(HttpServlet.java:865) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:105) at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:742) at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:686) at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:247) at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361) at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
          

Similar Messages

  • How to share dependant jars across rars & ears / avoid classcast exceptions

    <b>How can one share dependant jars between a ear application and a resource adapter and avoid getting a ClassCastException? </b>
    <P>
    In some appservers(such as Oracle) the resource adapter is the parent of your ear classloader, so a single instance multiple classloader problem doesn't occur. But in some appservers such as BEA Weblogic this isn't the case. Not sure why BEA decided to make resource adapter class loader seperate and not the parent of ear loader...
    <P>
    If I bundle the resource adapter specific classes in the corresponding module archive file, I will get a class cast exception, becos I will have a <i>single instance and multiple class loader situation</i> (assuming resource adapters uses its own classloader).
    <P>
    Second question related to the above: Web logic documentation recommends that we bundle the common files in APP-INF direcotory for embedded resource adapter apps. If I start bundling the resource adapter in an ear file, for every ear app we will have a rar bundled. What about the JNDI names? won't you have to rename the resource adapter differently for each ear so that there is no jndi name clash? Doesn't this defeat the purpose of having one common connector for all apps?
    <P>
    Here is a detailed description of what I want:
    Let say you have a ear file. Let's say there is a common.jar shared between your ear application (say the ejb module uses it), and your resource adapter.
    <P>
    In the case of Oracle's OC4J I can see there won't be any problem of having this common.jar part of the resource adapter(RA). When the RA class loader loads the rar, it makes sure the common.jar files are accessible in the chain of all class loaders it is a parent of. So, the ear loader, ejb loader etc...will have visibility -> hence no class cast exception.
    <p>
    But what do clients do when they want to have their ear deployable across multiple appservers not just oc4j. BEA recently changed their class loader structure...their resource loader is no longer parent of the ear, so the ejb app in the ear doesn't have visibility into common.jar packaged with rar. So, the only solution was to bundle the common.jar file with the ear. But this causes problems, because we can have a situation where certain object instances (that are not serialized or copied) can be shared across class loaders. This ends up in the single instance multiple class loader situation->hence classcastexception.
    <p>
    The only solution I found was to make the common.jar file a shared library. That way only one copy of the class files are there for both the rar and the ear and its visibility is there not only for rar but for ear since it is loaded by the system class loader or shared library class loader (if ther eis one such).
    <P>
    Please convey best practise recommendation.
    Sudhakar

    Pete <[email protected]> wrote:
    Is there a way to have a non-EJB jar at the EJB classloader level ? Sure, just add it to the Class-Path: manifest entry in your ejb.jar.
    Dimitri

  • Web Logic 10.3.6 (64bit) - Could not load the sitemesh filter and library

    Installed Web Logic 10.3.3 (32bit) and Java JDK 1.6.0_21 (32bit) in a customer's server (Windows Server 2008 R2 and 64-bit Operating System). The web page can be displayed with header and side menu.
    However installed Web Logic 10.3.6 (64bit) and Java JDK 1.6.0_31 (64bit) on that same server. The web page cannot be displayed with header and side menu, it is just displayed with a blank background. Refer to the below "ERROR LOG", found the application could not load the sitemesh filter and library properly. We are using sitemesh-2.3.jar.
    Have tried installed Web Logic 10.3.6 (64bit) and Java JDK 1.6.0_31 (64bit) in a test server (Windows Server 2008 R2 and 64-bit Operating System). The web page can be displayed with header and side menu.
    Please assist on this issue. Thanks.
    Below is the sitemesh that is declared and configured.
    WEB-INF/web.xml
    <filter>
    <filter-name>sitemesh</filter-name>
    <filter-class>com.opensymphony.module.sitemesh.filter.PageFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>sitemesh</filter-name>
    <url-pattern>/*</url-pattern>
    <dispatcher>REQUEST</dispatcher>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>INCLUDE</dispatcher>          
    </filter-mapping>
    WEB-INF/decorators.xml
    <decorators defaultdir="/template/decorators">
    <decorator name="plain" page="plain.jsp"/>
    <decorator name="printable" page="printable.jsp"/>
    <decorator name="standard" page="page_template_std.jsp">
    <pattern>/*.jsp</pattern>
    </decorator>
    <excludes>
    <pattern>/include/*</pattern>
    <pattern>/js/*</pattern>
    <pattern>/Login.jsp*</pattern>
    </excludes>
    </decorators>
    WEB-INF/sitemesh.xml
    <sitemesh>
    <property name="decorators-file" value="/WEB-INF/decorators.xml"/>
    <excludes file="${decorators-file}"/>
    <page-parsers>
    <parser content-type="text/html"
    class="com.opensymphony.module.sitemesh.parser.HTMLPageParser" />
    <parser content-type="text/html;charset=ISO-8859-1"
    class="com.opensymphony.module.sitemesh.parser.HTMLPageParser" />
    </page-parsers>
    <decorator-mappers>
         <mapper class="com.opensymphony.module.sitemesh.mapper.PageDecoratorMapper">
              <param name="property.1" value="meta.decorator" />
              <param name="property.2" value="decorator" />
         </mapper>
         <mapper class="com.opensymphony.module.sitemesh.mapper.FrameSetDecoratorMapper">
         </mapper>
         <mapper class="com.opensymphony.module.sitemesh.mapper.AgentDecoratorMapper">
              <param name="match.MSIE" value="ie" />
              <param name="match.Mozilla [" value="ns" />
              <param name="match.Opera" value="opera" />
              <param name="match.Lynx" value="lynx" />
         </mapper>
         <mapper class="com.opensymphony.module.sitemesh.mapper.PrintableDecoratorMapper">
              <param name="decorator" value="printable" />
              <param name="parameter.name" value="printable" />
              <param name="parameter.value" value="true" />
         </mapper>
         <mapper class="com.opensymphony.module.sitemesh.mapper.RobotDecoratorMapper">
              <param name="decorator" value="robot" />
         </mapper>
         <mapper class="com.opensymphony.module.sitemesh.mapper.ParameterDecoratorMapper">
              <param name="decorator.parameter" value="decorator" />
         </mapper>
         <mapper class="com.opensymphony.module.sitemesh.mapper.FileDecoratorMapper">
         </mapper>
         <mapper class="com.opensymphony.module.sitemesh.mapper.ConfigDecoratorMapper">
              <param name="config" value="/WEB-INF/decorators.xml" />
         </mapper>
    </decorator-mappers>
    </sitemesh>
    ERROR LOG
    ####<May 8, 2012 5:38:49 PM SGT> <Error> <HTTP> <BHQKPK10060> <cms_cimbmy> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1336469929804> <BEA-101165> <Could not load user defined filter in web.xml: com.opensymphony.module.sitemesh.filter.PageFilter.
    com.opensymphony.module.sitemesh.factory.FactoryException: Cannot construct Factory : com.opensymphony.module.sitemesh.factory.DefaultFactory: java.lang.reflect.InvocationTargetException
         at com.opensymphony.module.sitemesh.Factory.getInstance(Factory.java:50)
         at com.opensymphony.module.sitemesh.filter.PageFilter.init(PageFilter.java:87)
         at weblogic.servlet.internal.FilterManager$FilterInitAction.run(FilterManager.java:343)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.FilterManager.loadFilter(FilterManager.java:96)
         at weblogic.servlet.internal.FilterManager.preloadFilters(FilterManager.java:57)
         at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1872)
         at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3154)
         at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1518)
         at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:484)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
         at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
         at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
         at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
         at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:671)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
         at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:59)
         at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
         at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184)
         at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)
         at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:51)
         at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:200)
         at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30)
         at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240)
         at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)
         at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
         at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:180)
         at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:96)
         at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

    Do you see any further nested exceptions OR errors in the log file.
    Considering that the same WLS-JDK combination works on one machine and does not work on another machine, it indicates an environmental issue.
    "However installed Web Logic 10.3.6 (64bit) and Java JDK 1.6.0_31 (64bit) on that same server. The web page cannot be displayed....
    Have tried installed Web Logic 10.3.6 (64bit) and Java JDK 1.6.0_31 (64bit) in a test server (Windows Server 2008 R2 and 64-bit Operating System). The web page can be displayed with header and side menu."
    I am suspecting if it has to do anything with the native libraries being loaded JAVA_LIB_PATH.
    Please review the server log file again for identifying differences in LIB_PATH or PATH or any messages saying "Unable to load native.. performance pack.."
    Arun

  • EJB 3.0 JNDI lookup results in Classcast Exception

    Hello everybody,
    I�m experiencing a strange problem when I want to retrieve a stateless session bean from a POJO in my enterprise app. I am using EJB 3.0, running on Glassfish build 33 and JDK 1.5.
    I have successfully deployed my ear file which has the EJB.jar and the war file in it. I�m using JSF 1.2 in the web app and I am able to use all session beans using the injection annotation in my managed beans (this is how it is supposed to be according to the spec.). However, I now need to acces a stateless session bean from a POJO (non-managed or backing bean) which resides also in the war file. I�m using the following code to retrieve the session bean:
    (where IMySessionBean = remote interface and MySessionBean is the implementation)
    try {
    ic = new InitialContext();
    MySessionBean mybean = (MySessionBean )ic.lookup("env/IMySessionBean");
    When casting the object from the lookup into MySessionBean I get a classcast Exception. However, I can see the session bean using the JNDI browser that comes with Glassfish and it�s deployed and available. If mybean is of type Object, I see that the lookup method returns a wrapper of my session bean.
    Here�s what the stacktrace says:
    java.lang.ClassCastException: com.myproject.ejb.interfaces._IMySessionBean_Wrapper
         at ...
    Do I miss something here and there�s more required to obtain a reference to the session bean? I�m pretty much stuck here and any help is greastly appreciated!
    Thanks in advance!
    Cheers,
    Joerg

    Hi Joerg,
    In the session bean client view, the bean implementation class is never used. The client
    only interacts with the local or remote interface.
    Regarding the lookup, the more portable approach is to
    lookup the ejb reference through the component environment of the web application
    rather than doing a direct global lookup. If you have already defined any ejb reference
    injections somewhere in the web app, you can look up the same dependencies via
    java:comp/env. For example, if your managed bean has the following @EJB annotation :
    @EJB(name="mybeanref") IMySessionBean beanRef;
    You can look up the same underlying dependency in your utility class :
    IMySessionBean beanRef = (IMySessionBean) new InitialContext().lookup
    ("java:comp/env/mybeanref");
    Note that the portion of the lookup string after java:comp/env/ comes from the name() attribute
    of @EJB. @EJB name() has the same semantics as the ejb-ref-name in the deployment
    descriptor. You can find more info on these topics in our EJB FAQ :
    https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html

  • Problem with a Data Source in Web Logic

    Hi everybody,
    Currently i am deploying a 11g ADF application, i am testing my application in a Web Logic 10.3.2.0, and in the beginning all works OK, but when the user test the application like a half of hour the data source throws this exception:
    Messages
    Test of MOR_DS_ORA2 on server soa_server1 failed, reason:
    Connection test failed with the following exception: weblogic.common.resourcepool.ResourceUnavailableException: No resources currently available in pool MOR_DS_ORA2 to allocate to applications. Either specify a time period to wait for resources to become available, or increase the size of the pool and retry..
    This error only occur in the development server of the company, never in the embed WL of my JDeveloper 11 g
    Checking my code (appModuleImpl where is all the logic and integration with my DB) i don't see any wrong.
    I call SP like this:
    String stmt = "BEGIN XXMOR_FUNCIONAL_PKG.XXMOR_SOL_REPROCESAR_PR(?, ?); END;";
    CallableStatement st = null;
    try {
    st = getDBTransaction().createCallableStatement(stmt, 2);
    st.setInt(1, idSol);
    st.setString(2, rw.getTrackingIdConcom());
    st.execute();
    System.out.println("Exito.");
    catch (SQLException e) {
    throw new JboException(e);
    finally {
    if (st != null) {
    try {
    st.close();
    catch (SQLException e) {}
    Execute some querys like this:
    public ArrayList getElementsByArguments(String query){
    ArrayList al = new ArrayList();
    ResultSet rs = null;
    try {
    rs = getDBTransaction().createStatement(0).executeQuery(query);
    ResultSetMetaData rsMeta = rs.getMetaData();
    int numColumnas = rsMeta.getColumnCount();
    while(rs.next()) {
    for (int i = 1; i <= numColumnas; i++) {
    al.add(rs.getString(i));
    } catch (SQLException e) {
    getDBTransaction().commit();
    return al;
    And some insert and update like this:
    public String setNewFzaVta(Number idSegNeg, String idenFzaVta, String nomFzaVta, String region, String copysOrden,
    String copysFecha, String mutlifuerza, String rtcrdAut, String autCorreo, String mercadotecnia,
    String divCanal, String conCom, String activa, String notificacion, String createBy, Date currentDate,
    String matloc, Number tolerancia, String rate){
    XxmorFzasVtasTabViewImpl u = (XxmorFzasVtasTabViewImpl)getXxmorFzasVtasTabView1();
    XxmorFzasVtasTabViewRowImpl newRow = (XxmorFzasVtasTabViewRowImpl)u.createRow();
    SequenceImpl seq = new SequenceImpl("XXMOR_ID_FZAVTA_SQ", getDBTransaction());
    Number seqNextval = seq.getSequenceNumber();
    newRow.setIdSegNeg(idSegNeg);
    newRow.setIdFzaVentas(seqNextval);
    newRow.setIdentFzaVentas(idenFzaVta);
    newRow.setNombreFzaVentas(nomFzaVta);
    newRow.setRegion(region);
    newRow.setCopysXOrden(copysOrden);
    newRow.setCopysXFecha(copysFecha);
    newRow.setMultifuerza(mutlifuerza);
    newRow.setRtcrdAuthAut(rtcrdAut);
    newRow.setAutXCorreo(autCorreo);
    newRow.setMercadotecnia(mercadotecnia);
    newRow.setDivXCanal(divCanal);
    newRow.setCondicionesComerciales(conCom);
    newRow.setActiva(activa);
    newRow.setNotificacionExtInt(notificacion);
    newRow.setCreatedBy(createBy);
    newRow.setCreatedDate(currentDate);
    newRow.setMatloc(matloc);
    newRow.setAutTolerancia(tolerancia);
    newRow.setGetRate(rate);
    u.insertRow(newRow);
    getDBTransaction().commit();
    return seqNextval.toString();
    Can anybody help me ! ????

    Hi,
    from the original post it is not obvious from where the code is called and if the AM is released properly. So if you face the same issue, maybe you can explain more
    Frank

  • Error in running web logic/forms locally: wrong signature

    Hi,
    We are trying to configure oracle forms/reports 11g on each developer machine.
    In running form from either forms builder or IE I'm getting an error:
    Forms Session ID is formsapp.2
    The proxy host is null, and the proxy port is 0.
    Native HTTP implementation is being used for the connection.
    The connection mode is HTTP.
    FRM-92090: unexpected fatal error in client-side Java code during startup
    Java Exception:
    java.lang.RuntimeException: java.lang.SecurityException: class "oracle.forms.engine.Version"'s signer information does not match signer information of other classes in the same package
         at sun.plugin2.applet.Plugin2ClassLoader.checkPackageCerts(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.access$200(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at oracle.forms.engine.Runform.createInitialMessage(Unknown Source)
         at oracle.forms.engine.Runform.sendInitialMessage(Unknown Source)
         at oracle.forms.engine.Runform.startRunform(Unknown Source)
         at oracle.forms.engine.Main.createRunform(Unknown Source)
         at oracle.forms.engine.Main.start(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.SecurityException: class "oracle.forms.engine.Version"'s signer information does not match signer information of other classes in the same package
         ... 15 more
    I have signed all jar files in \forms\java and \Oramw11gdev\asdev1\jlib and confirmed that they are correctly referenced in registry and default.env. I also verified all jars. Still error is there.
    Haven't seen this problem with forms 10g.
    Any suggestions?
    Env: Win7/32bit, Oracle Forms 11g, Java 1.6, Forms Builder v.11.1.1.3.0; Java Plug-in 1.6.0_18
    Using JRE version 1.6.0_18-b07

    I got the same problem before with clients not on the same domain of the forms server so I found out that the ports 7001 & 7002 were the problem; that requesting the full machine name is not successful using these ports (machine.localdomain.com) so what I did is to join those clients to the domain and if you don't want to join those machines to domain change the web logic deployment port to 8888 .... it worked for me .... I hope this helps you

  • Starting Web Logic Server  - Unrecognized option: -jrockit

    Hi,
    Im getting the error "Unrecognized option: -jrockit" when I try to start the Web Logic Server as is showed below:
    D:\Oracle\Middleware\user_projects\domains\base_domain\bin>startWebLogic.cmd
    * To start WebLogic Server, use a username and *
    * password assigned to an admin-level user. For *
    * server administration, use the WebLogic Server *
    * console at http:\\hostname:port\console *
    starting weblogic with Java version:
    Unrecognized option: -jrockit
    Error: Could not create the Java Virtual Machine.
    Error: A fatal exception has occurred. Program will exit.
    Starting WLS with line:
    I already installed the JDK 7 64 (jdk-7u2-windows-x64) and use the generic file to install the Web Logic Server (wls1035_generic)
    I got the files from here:
    JDK >> http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u2-download-1377129.html
    Web Logic >> http://www.oracle.com/technetwork/middleware/weblogic/downloads/wls-main-097127.html
    Any help I will appreciate.
    Thank You,
    Raul.

    Note that you are using the HotSpot JDK. The option -jrockit is only valid if you are using JRockit.
    When you open setDomainEnv.cmd you see something like:
    if "%JAVA_VENDOR%"=="Oracle" (
         set JAVA_HOME=%BEA_JAVA_HOME%
    ) else (
         if "%JAVA_VENDOR%"=="Sun" (
              set JAVA_HOME=%SUN_JAVA_HOME%
         ) else (
              set JAVA_VENDOR=Oracle
              set JAVA_HOME=C:\bea\jrockit_160_29_D1.2.0-10
    )which selects a certain JDK based on the set JAVA_VENDOR property.
    You add the property JAVA_VENDOR above the first if statement, for example,
    set SUN_JAVA_HOME=
    set JAVA_VENDOR=Sun
    if "%JAVA_VENDOR%"=="Oracle" (...)Also see if the SUN_JAVA_HOME property is set to the correct directory.
    technical session - http://middlewaremagic.com/weblogic/?p=7831

  • Oracle Map Viewer Application on Oracle Web Logic

    We have developed an application using map viewer, Oracle 10g and deployed it in Oracle AS 10g. It was running fine and OK. Now we switched over the same application to Web logic10.3, using map viewer 10.1.3.3, Oracle db11g, JDeveloper 11g. We could deploy successfully on Web logic. The problem encountered is that During the map display (mapviewer.run()), an exception “Map viewer cannot process your map request. Check map viewer log for details.” is coming. We checked Map viewer log file and found no comments.

    If your web server is working and the forms server is running type:
    http://ip addr:port/dev60html/runform.htm
    You need to put the ip address or name of your server in and the port number apache is running on (leave blank if this is 80).
    This gives you the Oracle Forms start screen.
    cheers
    tony

  • Getting class cast exception in Web application.

    I have a web application deployed using standard specs for deployment. I
              have and web-inf directory with a web.xml file set up. All the servlet
              classes are in the classes sub-directory of web-inf.
              If I deploy this application using the Tomcat application server,
              everything works as expected. When I deploy this application using the
              Weblogic software, I can get to the initial page, put once I select a
              link that calls the main servlet, I get a classcast exception. Both the
              Tomcat and Weblogic software point to the same directory for the
              application.
              I double checked and made sure that no other instances of my servlet
              classes exist anywhere else in the class path.
              Any one have any thoughts or suggestions. I am perplexed that this web
              app runs fine under the Tomcat software and yet...
              Thanks.
              Paul Garduno
              

    Thanks for your reply. I am not using any EJBs. From what I have
              gathered since writing my message, this may be the "dreaded" class cast
              exception (although I don't know why since it runs under Tomcat).
              Basically, the initial page is displayed. When you select the SEARCH
              button (for example), the request goes to a servlet which puts a vector
              of custom classes into a session parameter. The request is then
              forwarded to the JSP page which uses the information in the classes to
              help build some information on the page. The first line in the JSP is
              processed (a simple output line to the system console) and then the
              classcast exception occurs.
              According to the info that I have seen, this shouldn't happen since I am
              not changing either the servlet or JSP files which would mean that
              nothing should be re-compiled.
              I have a call into tech support. I will post their answer and copy you
              on the message.
              Thanks.
              Paul
              Cameron Purdy wrote:
              >
              > Are you using EJBs hosted on the same instance of WebLogic? If so, delete
              > the home/remote interfaces from your web deployment. Otherwise, post the
              > exception listing ....
              >
              > Cameron Purdy, LiveWater
              >
              > "Paul Garduno" <[email protected]> wrote in message
              > news:[email protected]...
              > > I have a web application deployed using standard specs for deployment. I
              > > have and web-inf directory with a web.xml file set up. All the servlet
              > > classes are in the classes sub-directory of web-inf.
              > >
              > > If I deploy this application using the Tomcat application server,
              > > everything works as expected. When I deploy this application using the
              > > Weblogic software, I can get to the initial page, put once I select a
              > > link that calls the main servlet, I get a classcast exception. Both the
              > > Tomcat and Weblogic software point to the same directory for the
              > > application.
              > >
              > > I double checked and made sure that no other instances of my servlet
              > > classes exist anywhere else in the class path.
              > >
              > > Any one have any thoughts or suggestions. I am perplexed that this web
              > > app runs fine under the Tomcat software and yet...
              > >
              > > Thanks.
              > >
              > > Paul Garduno
              

  • What do these errors mean ? Web Logic 8.1 setting

    I am a newbie in this Web Logic and I'm facing problem in my web application.
    Appreciate that someone can guide me on this issue. I'm able to login to my web app and perform some interaction and but when I started to click on one of the contact button from front end I did receive this message "javax.naming.CommunicationException [Root exception is java.net.ConnectException:t3://localhost:7501,localhost:7551: Destination unreachable; nested exception is: java.net.ConnectException: Connection refused: connect; No available router to destination]".
    Not sure I have to perform any of the configuration from the WebLogic console.
    Below are the executed running cmd when I double click this file "*nodemanagerhelper.exe*" from my local C:bea\weblogic81\server\bin\nodemanagerhelper.exe
    C:\bea\weblogic81\server\bin>set CLASSPATH=.;C:\bea\JROCKI~1\lib\tools.jar;C:\be
    a\WEBLOG~1\server\lib\weblogic_sp.jar;C:\bea\WEBLOG~1\server\lib\weblogic.jar;
    C:\bea\weblogic81\server\bin>cd C:\bea\WEBLOG~1\common\NODEMA~1
    C:\bea\WEBLOG~1\common\NODEMA~1>if not "" == "" if not "" == "" goto runNMWithLi
    stenAddressAndPort
    C:\bea\WEBLOG~1\common\NODEMA~1>if not "" == "" goto runNMWithListenAddress
    C:\bea\WEBLOG~1\common\NODEMA~1>if not "" == "" goto runNMWithListenPort
    C:\bea\WEBLOG~1\common\NODEMA~1>"C:\bea\JROCKI~1\bin\java.exe" -jrockit -Xms32m
    -Xmx200m -Xverify:none "-Djava.security.policy=C:\bea\WEBLOG~1\server\lib\weblo
    gic.policy" "-Dweblogic.nodemanager.javaHome=C:\bea\JROCKI~1" weblogic.NodeManag
    er
    <Nov 23, 2010 4:00:06 PM EST> <Info> <NodeManager> <NodeManager: for information
    on command line options, try "java weblogic.NodeManager -h">
    <Nov 23, 2010 4:00:06 PM EST> <Info> <NodeManager> <Starting NodeManager >
    <Nov 23, 2010 4:00:06 PM EST> <Info> <NodeManager> <Setting java home to 'C:\bea
    \JROCKI~1'>
    <Nov 23, 2010 4:00:06 PM EST> <Info> <NodeManager> <Effective values of properti
    es :
    ListenAddress=*.*
    ListenPort=5555
    ListenerType=secureSocket
    SavedLogsDirectory=NodeManagerLogs
    NativeVersionEnabled=true
    TrustedHosts=nodemanager.hosts
    StartTemplate=../../server/lib/unix/nodemanager.sh
    ReverseDnsEnabled=false
    ScavangerDelaySeconds=180
    PIDFileReadRetryCount=0
    WeblogicHome=null
    bea.home=null
    JavaHome=C:\bea\JROCKI~1
    PropertiesVersion=8.1
    >
    <Nov 23, 2010 4:00:06 PM EST> <Info> <NodeManager> <Saving logs in'NodeManagerLo
    gs'>
    <Nov 23, 2010 4:00:11 PM EST> <Info> <NodeManager@*.*:5555> <Reading private key
    and certificate chain from the keystore C:/bea/weblogic81/server\lib\DemoIdenti
    ty.jks. KeyStore type = jks, Using keystore passphrase = true, Alias = DemoIdent
    ity>
    <Nov 23, 2010 4:00:11 PM EST> <Info> <NodeManager@*.*:5555> <Reading trusted CAs
    from the keystore C:/bea/weblogic81/server\lib\DemoTrust.jks. KeyStore type = j
    ks, Using keystore passphrase = true>
    <Nov 23, 2010 4:00:11 PM EST> <Info> <NodeManager@*.*:5555> <Reading trusted CAs
    from the keystore C:\bea\JROCKI~1\jre\lib\security\cacerts. KeyStore type = jks
    , Using keystore passphrase = false>
    <Nov 23, 2010 4:00:11 PM EST> <Info> <NodeManager@*.*:5555> <Node Manager listen
    ing on *.*:5555..>
    <Nov 23, 2010 4:00:11 PM EST> <Info> <NodeManager@*.*:5555> <NodeManager started
    , log messages being written into file C:\bea\WEBLOG~1\common\NODEMA~1\NodeManag
    erLogs\NodeManagerInternal\nm_KLIS045_11_23_2010-16_00_07.log>
    Edited by: 814719 on Nov 23, 2010 4:30 PM
    Edited by: 814719 on Nov 23, 2010 4:34 PM
    Edited by: 814719 on Nov 23, 2010 4:40 PM

    Thanks. I amended the Web Login console with listen port "7501" and corrected the local host link..it should be pointing to this link http://localhost:7501/Web/index.jsp instead of http://localhost:6501/Web/index.jsp
    Edited by: 814719 on Nov 24, 2010 8:20 AM

  • Web logic 8.1 and getString trouble

    When using the following function with the SQL: SELECT A, B, C FROM D WHERE A=E and i call the campoString("A") i received the expected value for the campoString("B") and so on.
    The problematic class is, there is no weblogic code on it, the project i am on is to migrate a iPlanet app to a web logic server:
    If you need the JSP using this class please let me know. The application uses not standards, taglibs or anything besides .java files and .jsp files.
    package externos;
    import java.io.PrintWriter;
    import java.sql.*;
    import java.util.Date;
    public class sicprosR{
    public String strSQL;
    public String er;
    Connection con;
    private ResultSet rsVentasTotales;
    String url;
    CallableStatement ps;
    Statement comando;
    protected String usuario;
    protected String password;
    public boolean estado;
    public sicprosR() {
    ps = null;
    url="jdbc:oracle:thin:@17.3.5.101:1521:dbx1";
    usuario="xxxxx";
    password="xxxx";
    estado = false;
    public Date CampoDate(String s) {
    Object obj = new Date();
    try {
    obj = rsVentasTotales.getDate(s);
    catch(SQLException _ex) { }
    return (Date)obj;
    public double CampoDouble(String s) {
    double d;
    try {
    d = rsVentasTotales.getDouble(s);
    catch(SQLException _ex) {
    d = 0.0D;
    return d;
    public int CampoInt(String s) {
    int i;
    try {
    i = rsVentasTotales.getInt(s);
    catch(SQLException _ex) {
    i = 0;
    return i;
    public String CampoString(String s) {
    int i = 0;
    String sr;
    try {
    System.out.println("Campo a buscar:"+s);
    sr = rsVentasTotales.getString(s);
    System.out.println("Valor:"+sr);
    catch(SQLException _ex) {
    sr = "vacio";
    if(sr == null)
    sr = "vacio";
    if((i = sr.indexOf('\n')) >= 0) {
    if(i > 0)
    return sr.substring(0, i - 1);
    else
    return "DATO ALTERADO";
    } else {
    return sr;
    public boolean Commit() {
    try {
    con.commit();
    catch(SQLException sqlexception) {
    er = sqlexception.getMessage();
    return false;
    return true;
    public int Conectar() {
    try {
    Class.forName("oracle.jdbc.driver.OracleDriver");
    catch(ClassNotFoundException _ex) {
    return 0;
    try {
    con = DriverManager.getConnection(url, usuario, password);
    comando = con.createStatement();
    catch(SQLException sqlexception) {
    er = sqlexception.getMessage();
    return -1;
    try {
    rsVentasTotales = comando.executeQuery(strSQL);
    catch(SQLException _ex) {
    return -2;
    estado = true;
    return 1;
    public int Conectar(int i) {
    try {
    Class.forName("oracle.jdbc.driver.OracleDriver");
    catch(ClassNotFoundException _ex) {
    return 0;
    try {
    con = DriverManager.getConnection(url, Estructura.usuario, Estructura.clave);
    comando = con.createStatement();
    catch(SQLException sqlexception) {
    er = sqlexception.getMessage();
    return -1;
    try {
    rsVentasTotales = comando.executeQuery(strSQL);
    catch(SQLException _ex) {
    return -2;
    estado = true;
    return 1;
    public boolean Ejecuta(int i) {
    if(i == 1)
    try {
    rsVentasTotales = comando.executeQuery(strSQL);
    catch(SQLException _ex) {
    return false;
    else
    try {
    comando.executeUpdate(strSQL);
    catch(SQLException sqlexception) {
    er = sqlexception.getMessage();
    return false;
    return true;
    public int Sig() {
    try {
    if(rsVentasTotales.next()) {
    estado = true;
    return 1;
    } else {
    estado = false;
    return 0;
    catch(Exception _ex) {
    estado = false;
    return -1;
    public boolean Siguiente() {
    try {
    if(rsVentasTotales.next()) {
    estado = true;
    return true;
    } else {
    estado = false;
    return false;
    catch(Exception _ex) {
    estado = false;
    return false;
    public String convierteCantidadLetras(double d, String s) {
    String s1 = Double.toString(d);
    s1 = truncaADosDecimales(s1);
    try {
    ps = con.prepareCall("{ call get_Palabra_De_Valor_Numerico(?,?,?) }");
    ps.setString(1, s1);
    ps.setString(2, s);
    ps.registerOutParameter(3, 12);
    ps.execute();
    return ps.getString(3);
    catch(SQLException _ex) {
    return "No se pudo realizar la conversion";
    public String convierteCantidadLetras(double d, String s, PrintWriter printwriter) {
    String s1 = Double.toString(d);
    s1 = truncaADosDecimales(s1);
    try {
    ps = con.prepareCall("{ call get_Palabra_De_Valor_Numerico(?,?,?) }");
    ps.setString(1, s1);
    ps.setString(2, s);
    ps.registerOutParameter(3, 12);
    ps.execute();
    return ps.getString(3);
    catch(SQLException _ex) {
    return "No se pudo realizar la conversion";
    public boolean inicio() {
    try {
    rsVentasTotales.first();
    return true;
    catch(SQLException _ex) {
    return false;
    public String truncaADosDecimales(String s) {
    int i = 0;
    String s1 = "";
    i = s.indexOf(".");
    if(s.length() <= i + 3) {
    s1 = s.substring(i + 1, s.length());
    } else {
    s1 = s.substring(i + 1, i + 3);
    s1 = s1.substring(0, 2);
    if(s.substring(i + 1, i + 2).equals("0"))
    s1 = "0" + s1;
    s1 = s.substring(0, i) + "." + s1;
    return s1;

    Well, after a hell of possibilities i encounter that the new drivers are incompatible with Oracle 7, that is... you don't have to use the .jar on the website but the classes102.zip for that db version. To do that put your .zip at the beginning of the classpath, for WebLogic modify the startWeblogic shell command or windows .cmd file.
    Greetings
    Carlos de Luna Saenz

  • Re : Works on 32 bit Tomcat . fails in 64 bit Web Logic

    Hello All,
    When I try to decrypt using 32 bit tomcat ... i can decrypt the hex string but when I use 64 bit Web Logic for the same , I get javax.crypto.badpaddingexception , Invalid pad value.... any thoughts in code what is causing this ? The sample code used is as follows.
    Help is appreciated.
    import java.security.SecureRandom;
    import javax.crypto.Cipher;
    import javax.crypto.KeyGenerator;
    import javax.crypto.SecretKey;
    import javax.crypto.spec.SecretKeySpec;
    public class Crypto{
         public static String decrypt(String seed, String encrypted) throws Exception {
              byte[] rawKey = getRawKey(seed.getBytes());
              byte[] enc = toByte(encrypted);
              byte[] result = decrypt(rawKey, enc);
              return new String(result);
         private static byte[] getRawKey(byte[] seed) throws Exception {
              KeyGenerator kgen = KeyGenerator.getInstance("AES");
              SecureRandom sr = SecureRandom.getInstance("SHA1PRNG");
              sr.setSeed(seed);
         kgen.init(128, sr); // 192 and 256 bits may not be available
         SecretKey skey = kgen.generateKey();
         byte[] raw = skey.getEncoded();
         return raw;
         private static byte[] decrypt(byte[] raw, byte[] encrypted) throws Exception {
         SecretKeySpec skeySpec = new SecretKeySpec(raw, "AES");
              Cipher cipher = Cipher.getInstance("AES");
         cipher.init(Cipher.DECRYPT_MODE, skeySpec);
         byte[] decrypted = cipher.doFinal(encrypted);
              return decrypted;
         public static String toHex(String txt) {
              return toHex(txt.getBytes());
         public static String fromHex(String hex) {
              return new String(toByte(hex));
         public static byte[] toByte(String hexString) {
              int len = hexString.length()/2;
              byte[] result = new byte[len];
              for (int i = 0; i < len; i++)
                   result[i] = Integer.valueOf(hexString.substring(2*i, 2*i+2), 16).byteValue();
              return result;
         public static String toHex(byte[] buf) {
              if (buf == null)
                   return "";
              StringBuffer result = new StringBuffer(2*buf.length);
              for (int i = 0; i < buf.length; i++) {
                   appendHex(result, buf);
              return result.toString();
         private final static String HEX = "0123456789ABCDEF";
         private static void appendHex(StringBuffer sb, byte b) {
              sb.append(HEX.charAt((b>>4)&0x0f)).append(HEX.charAt(b&0x0f));

    I could be wrong but I'm pretty sure that your problem is caused by these lines of code :-
    KeyGenerator kgen = KeyGenerator.getInstance("AES");
    SecureRandom sr = SecureRandom.getInstance("SHA1PRNG");
    sr.setSeed(seed);
    kgen.init(128, sr); // 192 and 256 bits may not be available
    SecretKey skey = kgen.generateKey();In it's basic form a SHA1PRNG based random number generator is a deterministic generator and not really suitable for cryptographic use. I'm betting that Web Logic is replacing the SHA1PRNG core with a non-deterministic version of SecureRandom; in their position I would.
    If you want to transform bytes into a deterministic key you should use one of the PBE algorithms.
    P.S. When you create a cipher using
    Cipher cipher = Cipher.getInstance("AES");you by default specify ECB block mode and PKCS5 padding. ECB block mode is considered insecure since it allows forgery by splicing ciphertext. When used properly, the PBE based algorithms avoid this forgery by using CBC block mode.

  • ERROR IN WEB LOGIC AND JBUILDER...

    hi,
    im just new to weblogic with JBuilder X, i made a very basic session bean and when i compiled it. it said...
    "WebLogicSesMod.jar": Spaces in the temporary directory path may cause WebLogic APPC utility to produce fatal compile errors.
    im using Weblogic 8.1platform server
    and when i RUN THE APPLICATION then it throws exception...
    The WebLogic Server did not start up properly.
    java.lang.NoClassDefFoundError: com/bea/wsrp/util/debug/Debug
         at com.bea.wsrp.security.WSRPIdentityAsserterProviderImpl.<clinit>(WSRPIdentityAsserterProviderImpl.java:45)
         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:274)
         at java.lang.Class.newInstance0(Class.java:308)
         at java.lang.Class.newInstance(Class.java:261)
         at weblogic.security.service.SecurityServiceManagerDelegateImpl.createSecurityProvider(SecurityServiceManagerDelegateImpl.java:232)
         at weblogic.security.service.SecurityServiceManager.createSecurityProvider(SecurityServiceManager.java:939)
         at weblogic.security.service.PrincipalAuthenticator.initialize(PrincipalAuthenticator.java:151)
         at weblogic.security.service.PrincipalAuthenticator.<init>(PrincipalAuthenticator.java:257)
         at weblogic.security.service.SecurityServiceManagerDelegateImpl.doATN(SecurityServiceManagerDelegateImpl.java:581)
         at weblogic.security.service.SecurityServiceManagerDelegateImpl.initializeRealm(SecurityServiceManagerDelegateImpl.java:420)
         at weblogic.security.service.SecurityServiceManagerDelegateImpl.loadRealm(SecurityServiceManagerDelegateImpl.java:698)
         at weblogic.security.service.SecurityServiceManagerDelegateImpl.initializeRealms(SecurityServiceManagerDelegateImpl.java:731)
         at weblogic.security.service.SecurityServiceManagerDelegateImpl.initialize(SecurityServiceManagerDelegateImpl.java:874)
         at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:717)
         at weblogic.t3.srvr.T3Srvr.initializeHere(T3Srvr.java:822)
         at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:670)
         at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:344)
         at weblogic.Server.main(Server.java:32)
    Reason: com/bea/wsrp/util/debug/Debug
    PLEASE HELP ME, IM IN BIG MESS....
    WAITING...

    hi,
    i reinstalled server and JBuilder, and again made a session bean. the server started successfully...
    but while compiling code the PREVIOUS error came with more enhancement...
    "EJBModule.jar": Spaces in the temporary directory path may cause WebLogic APPC utility to produce fatal compile errors.
    "EJBModule.jar": Spaces in the classpath may cause WebLogic APPC utility to produce fatal compile errors.
    "EJBModule.jar": C:\bea\jdk142_04\bin\javaw -classpath "C:\bea\weblogic81\server\lib\weblogic_sp.jar;C:\bea\weblogic81\server\lib\weblogic.jar;C:\bea\weblogic81\server\lib\webservices.jar;C:\Documents and Settings\Administrator\jbproject\ejbsess\EJBModule.jar;" weblogic.appc -keepgenerated -forceGeneration -compiler C:/bea/jdk142_04/bin/javac "C:/Documents and Settings/Administrator/jbproject/ejbsess/EJBModule.jar.jar" -output "C:/Documents and Settings/Administrator/jbproject/ejbsess/EJBModule.jar"
    "EJBModule.jar": <Nov 2, 2004 12:01:33 PM GMT+05:00> <Warning> <EJB> <BEA-010054> <EJB Deployment: WebLogicSes has a class ejbsess.WebLogicSesBean that is in the classpath. This class should only be located in the ejb-jar file.>
    "EJBModule.jar": <Nov 2, 2004 12:01:33 PM GMT+05:00> <Warning> <EJB> <BEA-010054> <EJB Deployment: WebLogicSes has a class ejbsess.WebLogicSesHome that is in the classpath. This class should only be located in the ejb-jar file.>
    "EJBModule.jar": <Nov 2, 2004 12:01:33 PM GMT+05:00> <Warning> <EJB> <BEA-010054> <EJB Deployment: WebLogicSes has a class ejbsess.WebLogicSes that is in the classpath. This class should only be located in the ejb-jar file.>
    "EJBModule.jar": [J2EE:160127]ERROR: Could not delete previous archive: C:\Documents and Settings\Administrator\jbproject\ejbsess\EJBModule.jar
    and the EXECUTION OF WEB LOGIC SERVER GOES FINE...
    C:\bea\jdk142_04\bin\javaw -classpath "C:\bea\weblogic81\server\lib\weblogic_sp.jar;C:\bea\weblogic81\server\lib\weblogic.jar;C:\bea\weblogic81\server\lib\webservices.jar" -ms64m -mx64m -Djava.library.path="C:/bea/weblogic81/server/bin" -Dbea.home="C:/bea" -Dweblogic.Name=myserver -Djava.security.policy=="C:/bea/weblogic81/server/lib/weblogic.policy" -Dweblogic.management.discover=false -Dweblogic.ProductionModeEnabled=false -Dweblogic.management.password=aqibjava -Dweblogic.management.username=weblogic weblogic.Server
    <Nov 2, 2004 11:56:33 AM GMT+05:00> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 1.4.2_04-b05 from Sun Microsystems Inc.>
    <Nov 2, 2004 11:56:34 AM GMT+05:00> <Info> <Configuration Management> <BEA-150016> <This server is being started as the administration server.>
    <Nov 2, 2004 11:56:34 AM GMT+05:00> <Info> <Management> <BEA-141107> <Version: WebLogic Server 8.1 SP3 Tue Jun 29 23:11:19 PDT 2004 404973
    WebLogic XMLX Module 8.1 SP3 Tue Jun 29 23:11:19 PDT 2004 404973 >
    <Nov 2, 2004 11:56:35 AM GMT+05:00> <Notice> <Management> <BEA-140005> <Loading domain configuration from configuration repository at C:\bea\user_projects\domains\enterprisedomain\.\config.xml.>
    <Nov 2, 2004 11:56:38 AM GMT+05:00> <Notice> <Log Management> <BEA-170019> <The server log file C:\bea\user_projects\domains\enterprisedomain\myserver\myserver.log is opened. All server side log events will be written to this file.>
    <Nov 2, 2004 11:56:40 AM GMT+05:00> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
    <Nov 2, 2004 11:56:40 AM GMT+05:00> <Notice> <WebLogicServer> <BEA-000327> <Starting WebLogic Admin Server "myserver" for domain "enterprisedomain">
    <Nov 2, 2004 11:56:45 AM GMT+05:00> <Warning> <HTTP> <BEA-101296> <Unable to load the default compiler class "com.sun.tools.javac.Main". Using the default javac compiler to compile JSPs.>
    <Nov 2, 2004 11:56:50 AM GMT+05:00> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "myserver" for domain "enterprisedomain" running in Development Mode>
    <Nov 2, 2004 11:56:50 AM GMT+05:00> <Notice> <WebLogicServer> <BEA-000355> <Thread "ListenThread.Default" listening on port 7001, ip address *.*>
    <Nov 2, 2004 11:56:50 AM GMT+05:00> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
    NOW WATS WRONG :(
    WAITING...

  • How to start coherence server using node manager of remote web-logic server

    We want to manage our coherence servers using web-logic. Our requirement is as such we want to keep single web-logic Admin Server and add all other node-manager to the same web-logic Admin Server.
    Now when we create machine on node 1 (on which Admin Server is running) and add node manager of other server it is not responding and shows status as inactive.
    Status: Inactive
    Problem description: weblogic.nodemanager.NMException Exception encountered while communicating with this node manager
    Version: (not available)
    Looking at the log files it gives below info
    <Sep 10, 2011 6:31:55 AM> <WARNING> <Configuration error while reading domain directory>
    weblogic.nodemanager.common.ConfigException: The domain 'BlazeVMA' at 'null' was not registered in the nodemanager.domains file and dynamic domain registration is not supported. Please register the domain in the nodemanager.domains file.
    at weblogic.nodemanager.server.NMServer.getDomainManager(NMServer.java:254)
    <Sep 10, 2011 7:53:58 AM> <WARNING> <I/O error while reading domain directory>
    java.io.FileNotFoundException: Domain directory '/data/oracle/Middleware/user_projects/domains/BlazeVMA' not found
    Even after I have added the domain name in above directory. It returns with the same error.
    Please let me know if anyone has faced the same issue while running coherence server on remote system using weblogic admin console on one machine and node manager on other machine.

    Thank You Rene.
    This issue is resolved, but now I am facing issue while starting the coherence server on the remote node using node manager.
    In the weblogic > coherence_server logs I am getting
    Oracle Coherence Version 3.6.0.4 Build 19111
    Grid Edition: Development mode
    Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
    2011-09-11 07:14:40.231/1.453 Oracle Coherence GE 3.6.0.4 <Error> (thread=Main Thread, member=n/a): Error while starting cluster: java.lang.IllegalArgumentException: The specified address "/hostname" is not a local address.
    at com.tangosol.net.InetAddressHelper.getLocalMTU(InetAddressHelper.java:139)
    Please let me know if anyone has faced the same issue and know resolution.

  • Distributed destination issue on Web Logic server 8.1

    Hi,
    I'm using distributed JMS destination (Cluster) of Web Logic server 8.1.
    I'm using Oracle B2B to talk to the cluster. Oracle B2B is only creating a consumer on one of the managed servers in this cluster. This is resulting in loss of messages when messages are placed by the WLI on the other managed server.
    Further the consumers are created randomly by Oracle B2B.
    My question here is whether Web Logic Server 8.1 supports multiple consumers for its clusters?
    Please Help!
    Thanks in advance.
    Warm Regards,
    Suhas.

    Are your consumers co-located with each managed server or remote?
    Let me preface this by this is the way I believe it works...
    The reason I ask is that distributed destinations route to one managed server at connect time. So for producers, when 1 message is placed on a distributed destination, it is really routed to only 1 managed server queue. From a remote consumer standpoint, when connecting to a distributed destination to read messages, you are only routed to one of the managed server queues to read from, not the logical superset of all queues in the distributed destination. So you would need to connect to each distributed destination member queue directly to ensure each had consumers. Whereas if your consumers are co-located on the cluster, then they can each connect to the local member queue for that distributed destination and ensure that each member of the distributed destination has consumers.
    I'd recommend you note the follow docs:
    QueueReceivers
    http://edocs.bea.com/wls/docs103/jms/dds.html
    When creating a queue receiver, if the supplied queue is a distributed queue, then a single physical queue member is chosen for the receiver at creation time. The created QueueReceiver is pinned to that queue member until the queue receiver loses its access to the queue member. At that point, the consumer will receive a JMSException, as follows:
    If the queue receiver is synchronous, then the exception is returned to the user directly.
    If the queue receiver is asynchronous, then the exception is delivered inside of a ConsumerClosedException that is delivered to the ExceptionListener defined for the consumer session, if any.
    Upon receiving such an exception, an application can close its queue receiver and recreate it. If any other queue members are available within the distributed queue, then the creation will succeed and the new queue receiver will be pinned to one of those queue members. If no other queue member is available, then the application won’t be able to recreate the queue receiver and will have to try again later.
    Note:      For information on the load-balancing heuristics for distributed queues with zero consumers, see “Configuring Distributed Destination Resources”.
    http://edocs.bea.com/wls/docs103/jms_admin/advance_config.html#jms_distributed_destination_config
    The producer makes such a decision each time it sends a message. However, there is no compromise of ordering guarantees between a consumer and producer, because consumers are load balanced once, and are then pinned to a single destination member.

Maybe you are looking for