XDK92040 + OC4J 9.0.3 problems

I have XDK92040 + OC4J9.0.3 on a Win2k OS, when I try URL="http://localhost:8888/xsql/index.html" on my IE6.0 browser, I obtain a html page with two frames with the same error:
XSQL-017: Unexpected Error Occurred
java.lang.NullPointerException
at oracle.xml.xsql.XSQLDocHandler.getXSQLActions(XSQLDocHandler.java:362)
at oracle.xml.xsql.XSQLDocHandler.getDocument(XSQLDocHandler.java:129)
at oracle.xml.xsql.XSQLPageProcessor.process(XSQLPageProcessor.java:140)
at oracle.xml.xsql.XSQLServlet.doGet(XSQLServlet.java:60)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:721)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:797)
at java.lang.Thread.run(Unknown Source)
Can anyone help me, please?
TIA,
Victor.

Normally, if you use a taglib in a web application, you would include the jar file for the taglib in the "WEB-INF/lib" directory of the WAR file. This is a more portable strategy. The strategy you're using is only useful if you use the taglib in more then one application deployed in the application server, and you've found significant benefit to deploying the tag library separately, but in a single place.

Similar Messages

  • OC4J 9.0.4: Problem receiving message from JMS queue

    I've created an application which puts XML files in a JMS queue and try to get it out again. The enqueing (sending) is no problem, but when I dequeue from the same queue I receive nothing and if I don't specify a wait time the programs hangs.
    If I create a QueueBrowser I can see there are messages in the queue.
    Can someone tell me what I do wrong?
    Here is the code of my dequeue action:
    public String dequeue(int qName) throws RbsSysException
            final String method = "dequeue(int qName)";
            _log.debug(method);
            QueueConnection queueConnection = null;
            try
                queueConnection = _queueConnectionFactory.createQueueConnection();
                QueueSession queueSession = queueConnection.createQueueSession(false,
                        Session.AUTO_ACKNOWLEDGE);
                QueueReceiver queueRcv = queueSession.createReceiver(getQueue(qName));
                _log.debug("queue = "+ queueRcv.getQueue().getQueueName());
                // Due to bug 3376983 in OC4J We cannot use TextMessage if it exceeds
                // 64 kb. Therefore use ObjectMessage.
                Message msg = queueRcv.receiveNoWait();
                _log.debug("msg = " + msg);
                ObjectMessage objMsg = (ObjectMessage)msg;
                //ObjectMessage objMsg = (ObjectMessage) queueRcv.receiveNoWait();
                _log.debug("objMsg = " + objMsg);
                if (objMsg != null)
                    return (String) objMsg.getObject();
                else
                    return null;
            catch (JMSException je)
                throw new RbsSysException(je);
            finally
                if (queueConnection != null)
                    try
                        queueConnection.close();
                    catch (Exception any)
                        _log.error("Error while closing QueueConnection: ", any);
        }

    Did you implement javax.jms.MessageListener and the method onMessage(Message)?
    If you use onMessage() as wel as receive (or receiveNoWait() or receive(long)), the onMessage() can be called, while the main thread is blocking on a synchronous receive, so make sure you use only one of the two methods: onMessage() or receive.
    Receive() blocks your thread until a message is published. So your program 'hangs' by design. Usually this is used when your program is waiting for a particular message. Otherwise use onMessage().
    ReceiveNoWait() checks if something is in the queue at that very moment, so if nothing is there (yet), the main thread continues.
    Hope this helps,
    Lonneke

  • In OC4J.What's the problem?

    500 Internal Server Error
    oracle.classloader.util.AnnotatedNoClassDefFoundError:
    ???: javax.servlet.jsp.jstl.core.Config
    ???: com.sun.faces.application.ViewHandlerImpl
    ???: test.web.test:0.0.0
    ???: /C:/oc4j/j2ee/home/applications/test/test/WEB-INF/lib/jsf-impl.jar
    ??: WEB-INF/lib/ directory in C:\oc4j\j2ee\home\applications\test\test\WEB-INF\lib
    1????: /C:/oc4j/j2ee/home/default-web-app/WEB-INF/lib/jstl.jar (from WEB-INF/lib/ directory in C:\oc4j\j2ee\home\default-web-app\WEB-INF\lib)
    ???????? default.web.defaultWebApp:0.0.0 ????
    at oracle.classloader.PolicyClassLoader.handleClassNotFound (PolicyClassLoader.java:2051) [C:/oc4j/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@8567361] at oracle.classloader.PolicyClassLoader.internalLoadClass (PolicyClassLoader.java:1665) [C:/oc4j/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@8567361] at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.java:1621) [C:/oc4j/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@8567361] at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.java:1606) [C:/oc4j/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@8567361] at java.lang.ClassLoader.loadClassInternal (ClassLoader.java:319) [jre bootstrap, by jre.bootstrap] at com.sun.faces.application.ViewHandlerImpl.renderView (ViewHandlerImpl.java:123) [C:/oc4j/j2ee/home/applications/test/test/WEB-INF/lib/jsf-impl.jar (from WEB-INF/lib/ directory in C:\oc4j\j2ee\home\applications\test\test\WEB-INF\lib), by test.web.test:0.0.0] at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView (ViewHandlerImpl.java:311) [C:/oc4j/j2ee/home/applications/test/test/WEB-INF/lib/appbase.jar (from WEB-INF/lib/ directory in C:\oc4j\j2ee\home\applications\test\test\WEB-INF\lib), by test.web.test:0.0.0] at com.sun.faces.lifecycle.RenderResponsePhase.execute (RenderResponsePhase.java:87) [C:/oc4j/j2ee/home/applications/test/test/WEB-INF/lib/jsf-impl.jar (from WEB-INF/lib/ directory in C:\oc4j\j2ee\home\applications\test\test\WEB-INF\lib), by test.web.test:0.0.0] at com.sun.faces.lifecycle.LifecycleImpl.phase (LifecycleImpl.java:221) [C:/oc4j/j2ee/home/applications/test/test/WEB-INF/lib/jsf-impl.jar (from WEB-INF/lib/ directory in C:\oc4j\j2ee\home\applications\test\test\WEB-INF\lib), by test.web.test:0.0.0] at com.sun.faces.lifecycle.LifecycleImpl.render (LifecycleImpl.java:117) [C:/oc4j/j2ee/home/applications/test/test/WEB-INF/lib/jsf-impl.jar (from WEB-INF/lib/ directory in C:\oc4j\j2ee\home\applications\test\test\WEB-INF\lib), by test.web.test:0.0.0] at javax.faces.webapp.FacesServlet.service (FacesServlet.java:198) [C:/oc4j/j2ee/home/applications/test/test/WEB-INF/lib/jsf-api.jar (from WEB-INF/lib/ directory in C:\oc4j\j2ee\home\applications\test\test\WEB-INF\lib), by test.web.test:0.0.0] at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ResourceFilterChain.doFilter (ResourceFilterChain.java:64) [C:/oc4j/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\oc4j\j2ee\home\oc4j.jar), by oc4j:10.1.3] at com.sun.rave.web.ui.util.UploadFilter.doFilter (UploadFilter.java:194) [C:/oc4j/j2ee/home/applications/test/test/WEB-INF/lib/webui.jar (from WEB-INF/lib/ directory in C:\oc4j\j2ee\home\applications\test\test\WEB-INF\lib), by test.web.test:0.0.0] at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.invoke (ServletRequestDispatcher.java:629) [C:/oc4j/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\oc4j\j2ee\home\oc4j.jar), by oc4j:10.1.3] at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forwardInternal (ServletRequestDispatcher.java:376) [C:/oc4j/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\oc4j\j2ee\home\oc4j.jar), by oc4j:10.1.3] at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.doProcessRequest (HttpRequestHandler.java:870) [C:/oc4j/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\oc4j\j2ee\home\oc4j.jar), by oc4j:10.1.3] at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.processRequest (HttpRequestHandler.java:451) [C:/oc4j/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\oc4j\j2ee\home\oc4j.jar), by oc4j:10.1.3] at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.serveOneRequest (HttpRequestHandler.java:218) [C:/oc4j/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\oc4j\j2ee\home\oc4j.jar), by oc4j:10.1.3] at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run (HttpRequestHandler.java:119) [C:/oc4j/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\oc4j\j2ee\home\oc4j.jar), by oc4j:10.1.3] at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run (HttpRequestHandler.java:112) [C:/oc4j/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\oc4j\j2ee\home\oc4j.jar), by oc4j:10.1.3] at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run (ServerSocketReadHandler.java:260) [C:/oc4j/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\oc4j\j2ee\home\oc4j.jar), by oc4j:10.1.3] at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run (ReleasableResourcePooledExecutor.java:303) [C:/oc4j/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in C:\oc4j\j2ee\home\oc4j.jar), by oc4j:10.1.3] at java.lang.Thread.run (Thread.java:595) [jre bootstrap, by jre.bootstrap]

    <?xml version="1.0" standalone='yes'?>
    <!DOCTYPE application-server PUBLIC "Orion Application Server Config" "http://xmlns.oracle.com/ias/dtds/application-server.dtd">
    <application-server
         application-directory="../applications"
         deployment-directory="../application-deployments"
    connector-directory="../connectors"
    >
         <rmi-config path="./rmi.xml" />
         <!-- JMS-server config link, uncomment to activate the JMS service -->
         <jms-config path="./jms.xml" />
         <log>
              <file path="../log/server.log" />
         </log>
         <global-application name="default" path="application.xml" />
         <global-web-app-config path="global-web-application.xml" />
         <web-site default="true" path="./default-web-site.xml" />
         <library path="../../../jlib/ldapjclnt10.jar" />
         <library path="../../../jlib/repository.jar" />
         <library path="../../../reports/jlib/rwrun.jar" />
         <library path="../../../jlib/zrclient.jar" />
    <!-- Do not remove this line. %s_formsSRVEntry% -->
    <!--
         <application name="forms" path="../../../forms/j2ee/formsapp.ear" auto-start="true"/>
    -->
         <application name="reports" path="../../../reports/j2ee/reports_ids.ear" auto-start="true"/>
    </application-server>
    Well, it seems "forms" is commented there.. maybe this is the problem.

  • OC4J: Connection timed out problem

    Hello everyone!
    I am developing a web application in OC4J(1.0.2.2.1), today I found a problem: Client access the server, nothing but only the following content be returned:
    "Description: Connection timed out"
    I used the com.evermind.sql.DriverManagerDataSource and com.evermind.sql.OrionPooledDataSource for database invoke, were they timed out?
    My developing environment:
    AppServer: OC4J(1.0.2.2.1)
    DBServer: Orcale 9i
    ServerOS: MS Windows 2000 Server
    ClientOS: MS Windows 2000 Professional
    JDK: 1.3.1_01
    thank for your any info.
    masstensor.

    Hi,
    Verify your mysqld start script. If you find a --skip-networking parameter, remove or comment and try again.
    In slackware /etc/rc.d/rc.mysql have a line with: SKIP="--skip-networking"
    And in mysqld_start():
    /usr/bin/mysqld_safe datadir=/var/lib/mysql pid-file=/var/run/mysql/mysql.pid $SKIP &
    Comment the #SKIP="--skip-networking" or remove $SKIP (the first is recomended)
    (eu n�o escrevo ingl�s, mas talvez ajude)
    Seja livre! Use linux!

  • OC4J (9.0.2) problem with the classloader

    Dear all,
    We have developped an application which will run into the Application Server.
    Our application writes a .java file at RunTime and compiles it with the javac compiler, into a custom directory. This is done without problems. After the building step, our application instantiates the new compiled classes. To perform this task, we have written a custom ClassLoader which searches (into a custom directory) and loads these classes.
    The PROBLEM is that this procedure, works very well if the application is running outside the application server ( launching it by hands ), but it crashes, with a java.lang.NoClassDefFoundError exception, when it's running into the OC4J AS. In particular our application, when is running into OC4J, is launched by a Session EJB.
    Do you have any suggestions ? I think this could be related to a security issue, but I'm not sure.
    Best regards,
    davide

    Davide,
    Why do you need a custom class loader ? Why can't you compile the class to a location that is in your application class path then use
    Thread.currentThread().getContextClassLoader() to load that class. We were having similar problems loading properties files in EJBs and we were able to fix it by using Thread.currentThread().getContextClassLoader to load the properties file.
    One caveat is that you need to specify the location of the compiled class/resource in the orion-application.xml file using the following tag. Please note that the path specified here is relative to the location of the orion-application.xml file (application-deployments directory)
    <library path="../../applications/cfaupdater/" />
    Of Course we did all this in 9.0.4 to load properties files so your situation is a little different but you could try this to see if it works

  • OC4J - Oracle 9i-sqlplus problem

    Hi,
    When I try to insert to the database using JDBC from a web browser, the browser hangs. The moment I exit from sqlplus at the command prompt, the query from the web browser writes immediately.
    I am using the default "scott" "tiger" username password scheme supplied with Oracle and have specified that in my data-source.xml file.
    I am thinking maybe user "scott" has some predefined number of connections or something? Does anyone know what the problem is?
    Cheers,
    Rahul

    Hi Chen,
    Yes, I agree with you that the SQL*Plus session is locking the database
    table, but actually, I think any operation done on the table (including
    a simple SELECT -- without FOR UPDATE) will lock the table.
    Rahul, you don't need to exit SQL*Plus in order to unlock the table,
    just issue a "commit" or "rollback" command from your SQL*Plus session.
    Hope this helps.
    Good Luck,
    Avi.

  • Can't Start oc4j from Eclipse (OracleDataSource problem)

    I 'm migrating from oc4j 10.1.2 to 10.1.3
    I've installed 10.1.3 standalone and I can start application from DOS prompt. This work fine.
    When I try to start applicacion from Eclipse, I receive the follow message
    2006-11-01 11:21:40.689 NOTIFICATION JMSServer[]: OC4J JMS server recovering transactions (commit 0) (rollback 0) (prepared 0).
    2006-11-01 11:21:40.705 NOTIFICATION JMSServer[]: OC4J JMS server recovering local transactions Queue[jms/Oc4jJmsExceptionQueue].
    2006-11-01 11:21:40.783 NOTIFICATION JMSServer[]: OC4J JMS server recovering local transactions Queue[jms/jobstore].
    2006-11-01 11:21:40.892 NOTIFICATION JMSServer[]: OC4J JMS server recovering local transactions Queue[jms/events].
    2006-11-01 11:21:40.939 NOTIFICATION JMSServer[]: OC4J JMS server recovering local transactions Queue[jms/notifications].
    06/11/01 11:21:43 java.lang.NoSuchMethodError: oracle.jdbc.driver.OracleDriver.getSystemPropertyFastConnectionFailover(Ljava/lang/String;)Ljava/lang/String;
    06/11/01 11:21:43      at oracle.jdbc.pool.OracleDataSource.<clinit>(OracleDataSource.java:97)
    06/11/01 11:21:43      at java.lang.Class.forName0(Native Method)
    06/11/01 11:21:43      at java.lang.Class.forName(Class.java:219)
    06/11/01 11:21:43      at oracle.oc4j.sql.config.DataSourceConfigUtils.createConnectionFactory(DataSourceConfigUtils.java:244)
    06/11/01 11:21:43      at oracle.oc4j.sql.DataSourceConnectionPoolImpl.<init>(DataSourceConnectionPoolImpl.java:107)
    06/11/01 11:21:43      at oracle.oc4j.sql.spi.ResourceAdapterImpl.createDataSourceConnectionPool(ResourceAdapterImpl.java:99)
    06/11/01 11:21:43      at oracle.oc4j.sql.DataSourceUtils.getDataSourceConnectionPool(DataSourceUtils.java:322)
    06/11/01 11:21:43      at com.evermind.server.ApplicationStateRunning.initDataSourceConnectionPool(ApplicationStateRunning.java:1997)
    06/11/01 11:21:43      at com.evermind.server.ApplicationStateRunning.initDataSourceConnector(ApplicationStateRunning.java:1961)
    06/11/01 11:21:43      at com.evermind.server.ApplicationStateRunning.initConnector(ApplicationStateRunning.java:1220)
    06/11/01 11:21:43      at com.evermind.server.ApplicationStateRunning.initConnectors(ApplicationStateRunning.java:356)
    06/11/01 11:21:43      at com.evermind.server.ApplicationStateRunning.initializeApplication(ApplicationStateRunning.java:208)
    06/11/01 11:21:43      at com.evermind.server.Application.setConfig(Application.java:391)
    06/11/01 11:21:43      at com.evermind.server.Application.setConfig(Application.java:308)
    06/11/01 11:21:43      at com.evermind.server.ApplicationServer.initializeDefaultApplication(ApplicationServer.java:1489)
    06/11/01 11:21:43      at com.evermind.server.ApplicationServer.initializeAutoDeployedApplications(ApplicationServer.java:1470)
    06/11/01 11:21:43      at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:922)
    06/11/01 11:21:43      at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:113)
    06/11/01 11:21:43      at java.lang.Thread.run(Thread.java:534)
    Any idea ?
    Really thanks

    this is my datasource.xml
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <data-sources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/data-sources-10_1.xsd" schema-major-version="10" schema-minor-version="1">
    <managed-data-source connection-pool-name="Example Connection Pool" jndi-name="jdbc/OracleDS" name="OracleDS"/>
    <managed-data-source connection-pool-name="etgs" jndi-name="jdbc/etgs" name="etgs"/>
    <connection-pool name="Example Connection Pool">
    <connection-factory factory-class="oracle.jdbc.pool.OracleDataSource" user="scott" password="tiger" url="jdbc:oracle:thin:@//localhost:1521/oracle.regress.rdbms.dev.us.oracle.com"/>
    </connection-pool>
    <connection-pool name="etgs">
    <connection-factory
              factory-class="oracle.jdbc.pool.OracleDataSource"
              user="etgs"
              password="etgs"
              url="jdbc:oracle:thin:@70.101.0.200:1521:DEV"/>
              <property name="fastConnectionFailoverEnabled" value="true"/>
    </connection-pool>
    </data-sources>
    -pfrancav-

  • OC4J and loadbalancer - getRemoteAddr problem

    Is it somehow possible to get user's remote IP if OC4J is used in clustered mode (using loadbalancer)?
    It seems that loadbalancer works as proxy and therefore request.getRemoteAddr() method in JSPs on clustered nodes return address of computer where loadbalancer is running, but not the one that initiated the request.
    aldis

    I made test JSP that prints out all header names (using request.getHeaderNames()).
    Here are header names I get when user connects to OC4J using loadbalancer:
    ACCEPT
    ACCEPT-LANGUAGE
    ACCEPT-ENCODING
    USER-AGENT
    HOST
    CONNECTION
    COOKIE
    No VIA header field.
    It seems that OC4J loadbalancer does not add VIA header as requested in HTTP 1.1 spec.
    Anybody has working OC4J application that uses VIA header info.
    My OC4J version is 1.0.2.2.1.
    Aldis

  • OC4J - Undeploy war file problem

    I have an application, and deploy the war file, I make a new war and when I go to deploy the next error appaers:
    Error while de-serializing the information concerning the J2EE application from the PersistentObject named: inv with description: J2EE application: inv Root Cause:
    oracle.ias.sysmgmt,common,Init.Parameters; is no Serializable.
    In the web server the only change was modify the IP number.
    What can I do?
    Thanks,
    MIGUEL ANGEL CARO
    [email protected]

    Given your war file looks like this:
    jspapp.war
      |___ META-INF
      |         |___ Manifest.MF
      |___ WEB-INF
      |         |___ web.xml
      | 
      |___whatever.jspYou should copy the jspapp.war file to the webapps directory of your Tomcat (I'm assuming your using Tomcat).
    Then your context would look like:
    <Context path="/jspapp" docBase="jspapp" debug="0" reloadable="true"/>
    You don't need the c:\. There is no c:\ in your war file.

  • Problem with servlet after migrating from OC4J to WebLogic 10.3

    I come across a problem when I was migrating from jDev 11g TP4 to production version in that step also server got changed from OC4J to webLogic.
    I am running java http servlet along other jspx pages. When everything was on OC4J there was no problem whit security on this servlet ( servlet was under same authorization automatically, and I was able to create new application module on this servlet by createRootApplicationModule
    ) but when I changed to WebLogic 10.3 I come across a numerous problems. First one is solved i managed to put the servlet under same authorization as jspx pages by
    *&lt;servlet&gt;*
    *&lt;servlet-name&gt;report&lt;/servlet-name&gt;*
    *&lt;servlet-class&gt;path.to.class&lt;/servlet-class&gt;*
    *&lt;security-role-ref&gt;*
    *&lt;role-name&gt;name&lt;/role-name&gt;*
    *&lt;role-link&gt;valid-users&lt;/role-link&gt;*
    *&lt;/security-role-ref&gt;*
    *&lt;/servlet&gt;*
    but when I trying to create new application module I get JBO-30003 error which is Caused by:
    oracle.adf.share.security.ADFSecurityAuthenticationException: JAAS login error.
    Invalid null input: name
    Has anybody any idea what I am doing wrong?
    Thank you for your help, Rok Kogov&scaron;ek

    for example:
    web.xml
    <security-role>
    <role-name>yourrole</role-name>
    </security-role>
    weblogic.xml
    <security-role-assignment>
    <role-name>yourrole</role-name>
    <principal-name>wlsuser</principal-name > <!-- wlsuser is define at wls console-->
    </security-role-assignment>

  • Problem configuring JTA with Spring in OC4J

    Hi all,
    I'm trying to develop an application that uses Spring with JTA in OC4J standalone.
    I've already read http://www.oracle.com/technology/tech/java/spring/how-to-jta-spring.html and the only difference to my configuration is that I'm not employing annotation-driven transaction definitions.
    All seems to be ok but during the deployment of the application I have the following error:
    07/10/11 17:07:03 WARNING: DeployerRunnable.run Error creating bean with name 'txAdvice': Cannot resolve reference to bean 'txManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'txManager' defined in ServletContext resource [WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is org.springframework.transaction.TransactionSystemException: Could not initialize OC4JJtaTransactionManager because OC4J API classes are not available; nested exception is oracle.classloader.util.AnnotatedClassNotFoundException:
    Missing class: oracle.j2ee.transaction.OC4JTransactionManager
    Dependent class: org.springframework.transaction.jta.OC4JJtaTransactionManager
    Loader: global.libraries:1.0
    Code-Source: /home/jkliff/apps/oc4j-10.1.3.2/j2ee/home/applib/spring.jar
    Configuration: <code-source> in /home/jkliff/apps/oc4j-10.1.3.2/j2ee/home/config/server.xml
    This load was initiated at global.libraries:1.0 using the loadClass() method.
    The missing class is available from the following locations:
    1. Code-Source: /home/jkliff/apps/oc4j-10.1.3.2/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in /home/jkliff/apps/oc4j-10.1.3.2/j2ee/home/oc4j.jar)
    This code-source is available in loader oc4j:10.1.3.
    Any ideas?

    Hi timo,
    I'm using OC4J - StandAlone runnig a application for wikis manageiment that uses servelt and have the system authenticate using JASS. I belive that the problem is about using JASS on OC4J.
    The code that the error shows is that:
    HttpServletRequest req = context.getHttpRequest();
    if( req != null && req.getSession() != null )
    HttpSession session = req.getSession();
    try
    String s;
    if( (s = (String)session.getAttribute( varName )) != null )
    return s;
    if( (s = context.getHttpParameter( varName )) != null )
    return s;
    catch( ClassCastException e ) {}
    for me it seem a problem when the application is trying to get a session, the OC4J block with a problem with authentication.
    I thank your help!

  • Primary key problem using with oc4j

    Hi everyone
    I have deployed my entity bean in the oc4j container without any problem.But when I use the search->primary key in the console,no results display.
    detail:
    Step1I open the oc4j console by typing java -jar orion.jar -console
    the oc4j container is successfully built
    and in the left part of my console I see my entity bean
    step2 I click my entity bean and in the right of the console in the search->primary key I type the a number which exists in my table in the database.
    but no results display.
    the following is my datasource-file anf orion-ejb-jar file
    data-sources.xml
    <?xml version="1.0"?>
    <!DOCTYPE data-sources PUBLIC "-//Evermind//- Data-sources configuration" "http://xmlns.oracle.com/ias/dtds/data-sources.dtd">
    <data-sources>
         <data-source
              class="com.evermind.sql.DriverManagerDataSource"
              name="jdbc/OracleDSCore"
              location="jdbc/OracleDSCore"
              pooled-location="jdbc/OracleDSPooled"
              xa-location="jdbc/xa/OracleDSXA"
              connection-driver="oracle.jdbc.driver.OracleDriver"
              username="SCOTT"
              password="TIGER"
              url="jdbc:oracle:thin:@localhost:1521:b2b"
         />
    </data-sources>
    orion-ejb-jar.xml
    <?xml version = '1.0' encoding = 'GBK'?>
    <!DOCTYPE orion-ejb-jar PUBLIC "-//Evermind//DTD Enterprise JavaBeans 1.1 runtime//EN" "http://xmlns.oracle.com/ias/dtds/orion-ejb-jar.dtd">
    <orion-ejb-jar>
    <enterprise-beans>
    <entity-deployment name="EMP" data-source="jdbc/OracleDSCore" table="EMP" >
    <primkey-mapping>
    <cmp-field-mapping>
    <fields>
    <cmp-field-mapping name="EMPNO"
    persistence-name="EMPNO" persistence-type="VARCHAR2(4)"/>
    </fields>
    </cmp-field-mapping>
    </primkey-mapping>
    </entity-deployment>
    </enterprise-beans>
    <assembly-descriptor>
    <default-method-access>
    <security-role-mapping name="&lt;default-ejb-caller-role>" impliesAll="true"/>
    </default-method-access>
    </assembly-descriptor>
    </orion-ejb-jar>
    Any answer is welcome. Thankou in advance!

    Fernando,
    I see you suffer a lot with ADF...write me at [email protected] and let´s keep in touch.
    Maybe we can do a Brazilian list for JDev/ADF.
    Regards,
    Marcelo Alcantara

  • Oc4j 10.1.3.0.0Prev4 does not load libs in WEB-INF/lib

    Hi,
    trying to use an existing application with oc4j I have serious problems.
    When trying to deploy I get exceptions (ClassNotFound) of classes that are in libs that are in the WEB-INF/lib folder of the war file I want to deploy:
    05/09/23 17:20:21 CharScanner; panic: ClassNotFoundException: org.hibernate.hql.ast.HqlToken
    This class is in hibernate3.jar which is included in the war-file.
    When I place all the libs into the applib folder it does deploy. But then it crashes at runtime telling me the classes are duplicate (one in the war, one in applib).
    Any suggestions what I can do would be greatly appreciated.
    Norbert

    Hello,
    Instead of simply dropping the Jar file in the applib directory you should create shared libraries that will give you better control of what is happening at the classloader level (System, Application and Web Application)
    Please take a look to the 10.1.3 How tos about shared library. (Swapping XML parser and JDBC driver), and also to the documentation, chapter 7 "Using Shared Libraries" of the OC4J Configuration and Administration Guide
    Regards
    Tugdual Grall

  • DriverManagerXAConnection is not getting closed.Toplink 9.0.4.5 OC4J 10.1.2

    DriverManagerXAConnection is not getting closed.
    Toplink is acquiring connections from two pools OracleConnectionPooledDataSource
    and XAConnectionpool. The connection of PooledDatasource is getting released
    but the DriverManagerXAConnection is not getting released.
    The oc4j output shows.
    [java] null: Releasing connection com.evermind.sql.DriverManagerXAConnection@d042d7 to pool (Pool size: 1)
    [java] null: Releasing connection com.evermind.sql.DriverManagerXAConnection@702936 to pool (Pool size: 2)
    [java] null: Releasing connection com.evermind.sql.DriverManagerXAConnection@1c0db6a to pool (Pool size: 3)
    I saw a thread in oc4j forum
    Get and close connections many times in an EJB transaction drains pool
    which says that this issue is resolved, but I am using toplink 9045 and oc4j 1012
    and the problem still persist, also I cannot find the bug 3330123 which is
    mentioned in that link on metalink.
    Does toplink uses two different connection pools for reading and writing respectively
    when used with External Transaction Controller ?
    If yes then how this two different pools be configured.
    Any help is appreciated.

    Hello,
    In the forum posting you mentioned, bug: 3330123 I think was a red herring as it was an internal bug that was never able to be verified.
    The post though mentions that a Tar:3793784.996 was opened. This tar was linked to bug:3674906 which was created to deal with the issue that calling ds.getConnection() max-connections*10 times, OC4J throws SQLException (timeout).
    The problem was that each getConnection call was returning a new logical connection, even though they would share the same physical connection if in the same transaction context. This was changed so that there is no limit on the number of logical connections.
    The release logging messages you are seeing are a left over that doesn't seem to have been looked at as a probelm in the bug. I believe they can be ignored - the logical connections are held on to by the container transaction and will only released when this transaction is commited/rolledback.
    As for pooling configuration, I suggest looking at the sessionbean demos that use OC4J as examples of how it should be configured. TopLink will use separate pools for reading/writing if configured.
    Best Regards,
    Chris Delahunt

  • Mapviewer performance problem using image format FORMAT_RAW_COMPRESSED

    I am using the MapViewer.FORMAT_RAW_COMPRESSED map image in my (java) map application because some features must be clickable and as far as I can work out, this is the only way to achieve this in a Java client. On my local system, running the map server in an oc4j container, this works about as fast as using FORMAT_GIF_URL and loading the image from this url. There also doesn't seem to be much difference in memory and cpu usage.
    When I direct the request to a map server running on a remote Application Server the rendering time grows exponentially. The same maprequest using FORMAT_GIF_URL runs as fast as it does in my local OC4J container. The problem seems to be in "packing time" in RealWorker:
    Remote AS:
    Thu Jun 30 13:59:34 CEST 2005 DEBUG [oracle.lbs.mapserver.core.MapperPool] freeMapper() begins...
    Thu Jun 30 13:59:34 CEST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] preparation time: 99ms
    Thu Jun 30 13:59:34 CEST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] querying/rendering time: 5560ms
    Thu Jun 30 13:59:34 CEST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] packing time: 142605ms
    Thu Jun 30 13:59:34 CEST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] --------------- total time: 148264ms
    Local OC4J:
    Thu Jun 30 15:34:42 CEST 2005 DEBUG [oracle.lbs.mapserver.core.MapperPool] freeMapper() begins...
    Thu Jun 30 15:34:42 CEST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] preparation time: 540ms
    Thu Jun 30 15:34:42 CEST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] querying/rendering time: 2490ms
    Thu Jun 30 15:34:42 CEST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] packing time: 120ms
    Thu Jun 30 15:34:42 CEST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] --------------- total time: 3150
    The test server is smaller than my local system and more applications are running on the AS, generating the map takes all the available memory and cpu, but the difference between the time it takes generating a GIF image and generating a Java image of almost a factor 50 is puzzling.
    What could cause this enormous difference? Any idea's about how we can analyze or solve this? What could RealWorker be doing in this packing time? Any hints would be greatly appreciated.
    Many thanks,
    Ida

    Thanks for the replies!
    1. Which AS version are you using? -> 10.1.2
    2. Just as a test, if you restart AS (if possible) do you still get the same values? -> yes, we restarted the AS and the results are the same.
    The server is indeed running low in memory. It is a 512MB machine, just big enough to run the AS. The production server will have some more, but not very much. Could I estimate how much extra memory it will need to keep a good performance when generating maps with live features? And maybe I'm wrong, but shouldn't the extra load for the java image only be on the client, since that's where the image is made? On the server it's just the image data, isn't it?
    I tried removing the basemap, but that reduces the loading time just with a few seconds. The live themes are jdbc themes and result in only some 20 to 30 geofeatures. Removing them from the request so only an empty image with a title is retrieved still takes about 117 seconds. Reducing the device size does reduce the loading time, so it does seem to have something to do with the amount of pixels in the image space, not with the data. Could it be that in the "packing" of the image something happens that takes a lot of memory, related to the amount of pixels?
    In my situation it would be handy if the live features were also returned when the image format is not set to FORMAT_RAW_COMPRESSED, it is also possible to draw shapes onto an existing image and this would bypass the memory problems.
    Thanks for any further help.
    Ida

Maybe you are looking for

  • PB 15" screen backlight after sleep problem

    I have an intermittent problem wherein my display backlight will not light sometimes upon waking up my PB from sleep. The backlight is totally out when this happens, not just dimmed. The laptop is on and the display itself is functioning (I can barel

  • RunTime Exception while reading the file

    Hi, I am using aixs1.0 for my current project. I have uploading an image file. if the file is in c: drive then upload successfully. if the file is in desktop it gives socket connection exception. while the desktop name is with .v example.c:\documents

  • Connect to MS Access using NetBeans, data source name not found!

    Hi NetBeans IDE 7.3 and OS was Windows 7 (64-bit ) When I run my program by NetBeans, it complain about the following errors. java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified In fact,

  • Gestion du module 6501 avec teststand 4.1

    bonjour, j'aimerai commander le  module USB  6501 avec teststand 4.1. comment peut on proceder. merci

  • Values carry over when copying pages!

    Hello, Try as I might, I cannot figure out how to copy a blank page or create a duplicate page in a document without having the values that I type into fields in one page carry over to the copied pages. Basically, I have a document with multiple page