FinalizedClientSession on running newbie tutorial

Hi,
I'm examining Toplink for persistancy layer. I started doing the standalone newbie-tutorial on http://www.oracle.com/technology/products/ias/toplink/doc/10131/main/_tutorial/intro/standalone/intro_tutorial.htm.
Having some experience with Hibernate, I'm really impressed by the ease of use of the TopLink workbench.
Everything goes according to plan until testing the application. Every time database access is required I get a "An Error Occurred"-page with
a oracle.toplink.internal.sessions.FinalizedClientSession.
In my first attempt I tried to run it on MySQL5.0, but even after downloading and using Oracle XE it still occurs.
My config:
Windows XP (SP2)
Oracle XE 10.2.0.1.0
TopLink (10.1.3.1.0)
OC4J standalone (10.1.3.2.0)
Java 1.5.0_06-b05
I tried to setup my session using a J2EE Datasource as well as JDBC (oracle.jdbc.driver.OracleDriver). Nothing works. Don't think it's a driver/database problem. Since a Google search on FinalizedClientSession returns 0 hits I expect this happens somewhere in the deep dark secret dungeons of Toplink.
Any ideas?
Grtz,
Roel

Doug,
That's part of the problem: there is no stack trace. On the client nor on the OC4J-console. The oracle.toplink.internal.sessions.FinalizedClientSession is all I get.
I found out I get another error (Error Code: 17002) when I forgot to startup my DB, so a missing database connection seems not the cause of my problem.
Does a session have some kind of timeout, after which it gets "finalized"?
Roel

Similar Messages

  • Error while running the tutorial posted by Steve Muench

    Hi Guys,
    I have been trying to run the tutorial published by Steve Muench on October 9 2006. I've followed all the steps as specified in the tutorial.
    Chapter 3.4:Run the Application, should supposed to compile and run my application using stand-alone embedded OC4J. It was compiled witout any error. But gave me the following error while running the application.
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    C:\oracledevday\jdeveloper\jdev\system\oracle.j2ee.10.1.3.39.14\embedded-oc4j\config>
    C:\oracledevday\jdeveloper\jdk\bin\javaw.exe -client -classpath C:\oracledevday\jdeveloper\j2ee\home\oc4j.jar;C:\oracledevday\jdeveloper\jdev\lib\jdev-oc4j-embedded.jar -Xverify:none -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config C:\oracledevday\jdeveloper\jdev\system\oracle.j2ee.10.1.3.39.14\embedded-oc4j\config\server.xml
    [waiting for the server to complete its initialization...]
    2006-10-12 22:47:17.250 NOTIFICATION JMSServer[]: OC4J JMS server recovering transactions (commit 0) (rollback 0) (prepared 0).
    2006-10-12 22:47:17.265 NOTIFICATION JMSServer[]: OC4J JMS server recovering local transactions Queue[jms/Oc4jJmsExceptionQueue].
    2006-10-12 22:47:22.609 ERROR J2EE HTTP-00004 Internal error raised tyring to instantiate web-application: webapp defined in web site OC4J 10g (10.1.3) Default Web Site. Application: datatags does not exist. Error creating Web application: webapp
    Ready message received from Oc4jNotifier.
    Embedded OC4J startup time: 14015 ms.
    Target URL -- http://10.10.10.10:8988/MyDemo/faces/pages/EmployeesTable.jspx
    06/10/12 22:47:22 Oracle Containers for J2EE 10g (10.1.3.1.0) initialized
    22:47:26 WARN (Digester) -[ConverterRule]{faces-config/converter} Merge(javax.faces.Short,null)
    22:47:26 WARN (Digester) -[ConverterRule]{faces-config/converter} Merge(null,java.lang.Short)
    22:47:26 WARN (Digester) -[ConverterRule]{faces-config/converter} Merge(javax.faces.Byte,null)
    22:47:26 WARN (Digester) -[ConverterRule]{faces-config/converter} Merge(null,java.lang.Byte)
    22:47:26 WARN (Digester) -[ConverterRule]{faces-config/converter} Merge(javax.faces.Integer,null)
    22:47:26 WARN (Digester) -[ConverterRule]{faces-config/converter} Merge(null,java.lang.Integer)
    22:47:26 WARN (Digester) -[ConverterRule]{faces-config/converter} Merge(javax.faces.Long,null)
    22:47:26 WARN (Digester) -[ConverterRule]{faces-config/converter} Merge(null,java.lang.Long)
    22:47:26 WARN (Digester) -[ConverterRule]{faces-config/converter} Merge(javax.faces.Float,null)
    22:47:26 WARN (Digester) -[ConverterRule]{faces-config/converter} Merge(null,java.lang.Float)
    22:47:26 WARN (Digester) -[ConverterRule]{faces-config/converter} Merge(javax.faces.Double,null)
    22:47:26 WARN (Digester) -[ConverterRule]{faces-config/converter} Merge(null,java.lang.Double)
    22:47:26 WARN (Digester) -[ValidatorRule]{faces-config/validator} Merge(javax.faces.LongRange)
    22:47:26 WARN (Digester) -[ConverterRule]{faces-config/converter} Merge(javax.faces.DateTime,null)
    22:47:26 WARN (Digester) -[ConverterRule]{faces-config/converter} Merge(javax.faces.Number,null)
    22:47:27 WARN (Digester) -[NavigationRuleRule]{faces-config/navigation-rule} Merge(*)
    22:47:27 WARN (Digester) -[NavigationRuleRule]{faces-config/navigation-rule} Merge(*)
    22:47:27 WARN (Digester) -[NavigationRuleRule]{faces-config/navigation-rule} Merge(/pages/EmployeesTable.jspx)
    22:47:27 WARN (Digester) -[NavigationRuleRule]{faces-config/navigation-rule} Merge(/pages/DepartmentsTable.jspx)
    22:47:27 WARN (Digester) -[NavigationRuleRule]{faces-config/navigation-rule} Merge(/pages/LocationsTable.jspx)
    22:47:27 WARN (Digester) -[NavigationRuleRule]{faces-config/navigation-rule} Merge(/pages/CountriesTable.jspx)
    22:47:27 WARN (Digester) -[NavigationRuleRule]{faces-config/navigation-rule} Merge(/pages/RegionsTable.jspx)
    22:47:27 WARN (Digester) -[NavigationRuleRule]{faces-config/navigation-rule} Merge(/pages/JobsTable.jspx)
    2006-10-12 22:47:29.546 TRACE Setting JAZN Config property ...
    2006-10-12 22:47:29.625 NOTIFICATION ---- JAZNSecurityContext.getUserPrincipal(): NULL
    2006-10-12 22:47:32.015 NOTIFICATION ADF Faces is running with time-stamp checking enabled. This should not be used in a production environment. See the oracle.adf.view.faces.CHECK_FILE_MODIFICATION property in WEB-INF/web.xml
    22:47:32 DEBUG (JhsPageLifecycle) -Executing prepareModel, page=/pages/EmployeesTable.jspx, pagedef=EmployeesPageDef
    22:47:32 DEBUG (JhsNavigationHandlerImpl) -Executing checkRoles
    22:47:32 DEBUG (BreadcrumbStack) -Adding breadcrumb to stack: "Employees" (/pages/EmployeesTable.jspx)
    22:47:32 DEBUG (JhsPageLifecycle) -Executing prepareRender, page=/pages/EmployeesTable.jspx, pagedef=EmployeesPageDef
    22:47:32 DEBUG (BreadcrumbStack) -Breadcrumb already on stack; rolling back the stack
    22:47:32 DEBUG (BreadcrumbStack) -Adding breadcrumb to stack: "Employees" (/pages/EmployeesTable.jspx)
    2006-10-12 22:47:34.468 ERROR
    Please advise and let me know if you need any other information from me.
    Thanks,
    Magesh.

    Thanks Steven.
    That makes sense. Is there anything I can do to make this demo work without de-installing 10.1.3.1 Preview? Or If I also install 10.1.3.0.4 with SU5 on another folder, does that affect my 10.1.3.1 Preview version?
    I'm using 10.1.3.1 Preview version to learn Oracle's SOA suite.
    Thanks again,
    Magesh.

  • Error while running SRDemo tutorial application using Jdeveloper 10.1.3.0.4

    Hi,
    I have completed all the ten chapters in the SRDemo tutorial and when i run the SRList.jspx it is been running and will ask for the username and password so i am logging as username:bernst,password:welcome. When it opens in the browser it displays the following error and it displays."No Rows Yet" message will be displayed. Please help me regarding this...
    Note: The same error is coming even if we run the files which are provided with tutorial.
    JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: javax.ejb.EJBException, msg=Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.DatabaseException Internal Exception: java.sql.SQLException: Io exception: The Network Adapter could not establish the connectionError Code: 17002; nested exception is: Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.DatabaseException Internal Exception: java.sql.SQLException: Io exception: The Network Adapter could not establish the connectionError Code: 17002
    JBO-29000: Unexpected exception caught: javax.ejb.EJBException, msg=Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.DatabaseException Internal Exception: java.sql.SQLException: Io exception: The Network Adapter could not establish the connectionError Code: 17002; nested exception is: Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.DatabaseException Internal Exception: java.sql.SQLException: Io exception: The Network Adapter could not establish the connectionError Code: 17002
    Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.DatabaseException Internal Exception: java.sql.SQLException: Io exception: The Network Adapter could not establish the connectionError Code: 17002; nested exception is: Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.DatabaseException Internal Exception: java.sql.SQLException: Io exception: The Network Adapter could not establish the connectionError Code: 17002
    JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: javax.ejb.EJBException, msg=Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.DatabaseException Internal Exception: java.sql.SQLException: Io exception: The Network Adapter could not establish the connectionError Code: 17002; nested exception is: Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.DatabaseException Internal Exception: java.sql.SQLException: Io exception: The Network Adapter could not establish the connectionError Code: 17002
    JBO-29000: Unexpected exception caught: javax.ejb.EJBException, msg=Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.DatabaseException Internal Exception: java.sql.SQLException: Io exception: The Network Adapter could not establish the connectionError Code: 17002; nested exception is: Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.DatabaseException Internal Exception: java.sql.SQLException: Io exception: The Network Adapter could not establish the connectionError Code: 17002
    Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.DatabaseException Internal Exception: java.sql.SQLException: Io exception: The Network Adapter could not establish the connectionError Code: 17002; nested exception is: Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.DatabaseException Internal Exception: java.sql.SQLException: Io exception: The Network Adapter could not establish the connectionError Code: 17002
    JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: java.lang.RuntimeException, msg=javax.servlet.jsp.el.ELException: An error occurred while getting property "userId" from an instance of class oracle.srdemo.view.UserInfo
    JBO-29000: Unexpected exception caught: java.lang.RuntimeException, msg=javax.servlet.jsp.el.ELException: An error occurred while getting property "userId" from an instance of class oracle.srdemo.view.UserInfo
    javax.servlet.jsp.el.ELException: An error occurred while getting property "userId" from an instance of class oracle.srdemo.view.UserInfo

    Hi,
    the databse is not available. Check the database connection and make sure the database listeber is up and running. If this issue persist and you run the tutorial based on TopLink, select the session.xml file and open the Structure window. Double click onto the entry shown and check the connect information.
    If you are usin ADF BC make use the tester to veriffy teh DB connection
    Frank

  • 10.5 Server : Standard Installation : Newbie Tutorial /  Setup Walk-Through

    Hello all,
    I recently setup OS X Server 10.5 for a client after doing it many times at my home. I could not have possibly done it without the help of this discussion board so thanks to everyone asking and answering questions!
    To help other server newbies easily setup Server 10.5 (as apple claims), I'm hoping to make a basic installation procedure that will always work for newbies. Right now it's not exactly "detailed" - just the basic steps to ensure success.
    Below is my setup procedure that has worked well for me (especially at my house). It's for a Standard installation; and we'll be setting up the server to include Mail (local only), iChat, VPN, File Sharing, iCal, Web Server/Wiki, Apple Remote Desktop access, and Time Machine (may not work well).
    Please let me know if I'm missing something that will help ensure this setup works as perfectly as possible on any system.
    +to help make sure this works, try using all the names i've used below (besides perhaps user names & passwords); like "server.house"+
    *1) Setup Router*
    • ensure router is properly connected to modem/internet
    • router lan address = 10.0.2.1
    • subnet mask = 255.255.255.0
    • dhcp on
    • dhcp server starts at = 10.0.2.9
    • dhcp server ends at = 10.0.2.99
    • dns server (opendns servers) = 208.67.222.222, 208.67.220.220 (not a completely necessary step, but may help ensure it works)
    • port forward to 10.0.2.2 = vpn (udp: 500, 4500; udp/tcp: 50)
    • port forward to 10.0.2.2 = ard (tcp: 5900, 5988; udp/tcp: 3283)
    *2) Install/Setup Server*
    • startup server computer with installation cd and start installation process
    • choose "Standard Installation"
    • setup administrator account with the following settings:
    user name: Administrator
    short name: admin
    password: admin
    • setup network settings (choose manual configuration):
    manual ip address = 10.0.2.2
    subnet mask = 255.255.255.0
    router = 10.0.2.1
    dns server = 10.0.2.2
    search domain = house
    • primary dns server = server.house
    • server name = server
    +choose all the services and let installation complete; wait until desktop loads+
    Verify things are initially okay:
    • Open safari, and type "server.house" in the address bar (ensure wiki appears)
    Good, now:
    • Download latest 10.5 server combo update, install, restart.
    • Run software update until all updates are installed (may require several restarts)
    • Setup a dyndns account for your server, install dyndns software (make sure it's updating via web and the ip address doesn't start with 10.x)
    *3) Setup Server Preferences*
    • open server preferences
    • go to file sharing: turn on file sharing
    • go to vpn: turn on vpn
    shared secret = somethingsecretive
    ip address range = 10.0.2.101 - 10.0.2.199
    • go to users
    • make new user(s) with all options enabled
    +you should now have all services in server preferences enabled (if not, enable them) and user names setup; for good measure, restart the computer again+
    *4) Setup Client Computers*
    +make sure client computers have all software updates installed before proceeding+
    • Open system preferences: network
    • Make a new location called "Server"
    • Set TCP/IP to DHCP
    • DNS Server = 10.0.2.2
    • Search domain = house
    • Click apply
    It's probably a good time to double check that the internet works - open Safari and google something. Good, it works.
    There are two ways to setup the client computers to connect to the server with basically no manual configuration needed:
    First way:
    Go to system preferences: accounts: select user name to associate with server: select "server account" (if available): enter appropriate info for user on server: wait a bit: restart computer
    or (if "server account" isn't available):
    Second way:
    Open finder: applications: utilities: directory utility. once opened, it should automatically find your server. if it doesn't, click the lock, click "plus sign", type = "open directory", server name = server.house, click ok
    • enter appropriate info to connect to server and ensure it's set to automatically setup all services, once finished - restart.
    *5) If the automatic setup didn't work, here's how to manually setup the client workstations:*
    Safari
    • Open Safari and type "server.house" in the address bar, enter user/pass, make sure it connects to wiki.
    iChat
    • add new jabber account
    • jabber id = [email protected]
    • server = server.house
    • port = 5222
    • kerbos = on (you can leave off if you want)
    You can test by connecting to your Jabber account
    VPN
    • open Network in system preferences
    • click lock
    • click "plus sign"
    • interface = VPN
    • vpn type = L2TP over IPSec
    • service name = server
    • server address = your dyndns address
    • click advanced
    • dns server = 10.0.2.2
    • search domain = house
    • click ok
    • click authentication
    • enter user's server password
    • enter "somethingsecretive" in "shared secret"
    • click ok - click apply
    You can test by clicking "connect" - after verified, disconnect.
    _File sharing_
    • Open finder: click "Server" under "Shared"
    • If it connects as guest, click "connect as"
    • enter your server username/password
    Drag a file to and from a folder to make sure file sharing works
    Mail
    • Add new mail account (imap)
    • Incoming mail server = server.house
    • Outgoing mail server = server.house
    • Outgoing authentication = kerberos 5 (or password)
    • user name = [email protected]
    • enter password
    Check to make sure you get the server welcome e-mail and that you can send email to other users on the server.
    *Time Machine* (very problematic at this time)
    • Open Time Machine in System Preferences
    • Click "options"
    • Eliminate as many folders as possible to keep backup times shorter; click done
    • Click "change disk"
    • Select "Server" disk; click "use for backup"
    ** I highly recommend using local SuperDuper! backups and/or Retrospect for networked backups to the server. Other options include the dot mac Backup application or online backups (google it).
    *If you have PCs on your network that you want to be able to connect to the server for file sharing*
    • Open Windows Explorer (my computer)
    • Click tools: map network drive
    • Enter "\\server\public" (or if you setup a user account on the server for the pc user(s) i think you can use "\\server\pcusername" - and follow the next two steps)
    -Click "connect using different user name"
    -Enter pc user account username/password
    • save settings
    Check to make sure the drive shows up and you can move files to/from server
    Helpful info for newbies setting up server 10.5:
    • Apple's Server Resources page with all manuals
    • Probably the most helpful newbie setup discussion
    • Probably the most helpful newbie setup discussion #2
    • Discussion about DNS
    • "Time Machine is a dog... discussion"
    • Manage Central Address Book discussion
    • Leopard to Windows Files Sharing Issues discussion
    • Lynda's 10.5 Server Training Videos (this does cost money and I haven't personally used it, but it looks very helpful)
    I hope that's a good start for people, but I'm sure some setting(s) can be tweaked or I missed something that could make this process go even more smoothly. Lets make this the definitive newbie standard installation setup tutorial.
    -Brian
    corewerkz

    Hi gikku,
    Good idea! I forgot about the web server port forwarding, that will allow the wiki to be seen over the internet.
    One question: what does adding the dyndns address to "Server Admin > web > settings > sites" actually do? I'm not too knowledgeable about Server Admin.
    Thanks,
    Brian
    corewerkz

  • WSIT: Unable to run WSIT tutorial document's Using Atomic Transaction

    Hi,
    I've to implement a sample web service demonstrating the use of WS Transaction and so I downloaded NetBeans 6.7.1, installed all web services related plug ins. Downloaded and installed Java SDK 6 and latest java run time. Installed Glassfish 2.x and Glassfish 3 prelude. I also downloaded the zip files required for the tutorials mentioned in the WSIT tutorials.
    I've followed all the instructions so far from the tutorial for configuring the system after installation of the required software. Like setting up the PATH, the ANT_HOME and JAVA_HOME variables and stuff.
    In the transaction tutorial the sample downloaded for the tutorial has some build files and i've configured them accordingly. Pasting the build.properties mentioned in the document after my edit changes below:
    <br />
    <pre><strong># Save this file as build.properties in the =${wsit.tutorial.home}/examples/bp-project
    # directory.  Then set the javaee.home property to the location of your GlassFish
    # installation and the wsit.tutorial.home property to the location of your WSIT
    # Tutorial installation.
    javaee.home=C:/Sun/AppServer
    wsit.tutorial.home=C:/Documents and Settings/Navina GK/My Documents/UoSouthampton/MSc Web Tech/Semester 1/COMP6017 - Advanced Topics on WebServices/Ebook/Samples/wsittutorial</strong></pre><pre><strong># machine name (or the IP address) where the applications will be deployed.
    javaee.server.name=localhost
    # port number where the app-server is accessed by the users
    javaee.server.port=8080</strong></pre><strong># port number where the admin server of the app-server is available</strong><pre><strong>javaee.adminserver.port=4848</strong></pre><pre><strong># Uncomment the property j2ee.server.username,</strong></pre><pre><strong># and replace the administrator username of the app-server</strong></pre><pre><strong>javaee.server.username=eakangk</strong></pre><pre><strong># Uncomment the property j2ee.server.passwordfile,</strong></pre><pre><strong># and replace the following line to point to a file that</strong></pre><pre><strong># contains the admin password for your app-server.</strong></pre><pre><strong># The file should contain the password in the following line:</strong></pre><pre><strong>#</strong></pre><pre><strong># AS_ADMIN_PASSWORD=adminadmin</strong></pre><pre><strong>#</strong></pre><pre><strong># Notice that the password is adminadmin since this is</strong></pre><pre><strong># the default password used by the glassfish app-server installation.</strong></pre><pre><strong>#</strong></pre><pre><strong>javaee.server.passwordfile=${wsit.tutorial.home}/examples/bp-project/admin-password.txt</strong></pre><pre><strong>appserver.instance=server</strong></pre><pre><strong># Uncomment and set this property to the location of the browser you</strong></pre><pre><strong># choose to launch when an application is deployed.</strong></pre><pre><strong># On Windows and Mac OS X the default browser is used.</strong></pre><pre><strong>#default.browser=/Applications/Firefox.app/Contents/MacOS/firefox-bin</strong></pre><pre><strong># Database vendor property for db tasks</strong></pre><pre><strong>db.vendor=javadb</strong></pre><pre><strong># Digital certificate properties for mutual authentication</strong></pre><pre><strong>truststore=${javaee.home}/domains/domain1/config/cacerts.jks</strong></pre><pre><strong>keystore.password=changeit</strong></pre><pre><strong>truststore.password=changeit</strong></pre>and all i have to do after that is go to the directory mentioned in the tutorial (https://wsit-docs.dev.java.net/releases/1.1/WSITTutorial.pdf
    ) in page 204 and run "ant setup"
    But after runningthe command i get a huge report with an error at the end saying BUILD FAILED.
    Pasting it below
    <br />
    <strong>C:\xx\xx\Samples\wsittutorial\exam<br />
    ples\wstx\basicWSTX\SampleService>ant setup<br />
    Buildfile: build.xml<br />
    <br />
    check:<br />
    <br />
    tools:<br />
    <br />
    setup:<br />
         [echo]    Starting C:/Sun/AppServer domain1<br />
         [echo] domain1 started.<br />
    Duplicated project name in import. Project SampleService-impl defined first in C<br />
    :\xx\xx\Samples\wsittutorial\examp<br />
    les\wstx\basicWSTX\SampleService\nbproject\ant-deploy.xml and again in C:\xx\xx\Samples\wsittutorial\examples\wstx<br />
    \basicWSTX\SampleService\nbproject\build-impl.xml<br />
    <br />
    check:<br />
    <br />
    tools:<br />
    <br />
    setup-resources:<br />
    Duplicated project name in import. Project SampleService-impl defined first in C<br />
    :\xx\xx\Samples\wsittutorial\examp<br />
    les\wstx\basicWSTX\SampleService\nbproject\ant-deploy.xml and again in C:\xx\xx\Samples\wsittutorial\examples\wstx<br />
    \basicWSTX\SampleService\nbproject\build-impl.xml<br />
    <br />
    create-queue:<br />
    Duplicated project name in import. Project SampleService-impl defined first in C<br />
    :\xx\xx\Samples\wsittutorial\examp<br />
    les\wstx\basicWSTX\SampleService\nbproject\ant-deploy.xml and again in C:\xx\xx\Samples\wsittutorial\examples\wstx<br />
    \basicWSTX\SampleService\nbproject\build-impl.xml<br />
    <br />
    check:<br />
    <br />
    tools:<br />
    <br />
    create-jms-resource:<br />
         [exec] Usage: create-jms-resource --restype resource_type [--terse=false] [<br />
    --echo=false] [--interactive=true] [--host localhost] [--port 4848|4849] [--secu<br />
    re | -s] [--user admin_user] [--passwordfile file_name] [--enabled=true] [--desc<br />
    ription text] [--property (name=value)[:name=value]*] [--target target(Default s<br />
    erver)] jndi_name<br />
    continued..                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    [exec] CLI014 restype is a required option.
    Duplicated project name in import. Project SampleService-impl defined first in C
    :\xx\xx\Samples\wsittutorial\examp
    les\wstx\basicWSTX\SampleService\nbproject\ant-deploy.xml and again in C:\xx\xx\Samples\wsittutorial\examples\wstx
    \basicWSTX\SampleService\nbproject\build-impl.xml
    check:
    tools:
    create-xa-cf:
    [exec] Usage: create-connector-connection-pool --raname resource_adapter_na<br />
    me --connectiondefinition connection_definition_name [--terse=false] [--echo=fal<br />
    se] [--interactive=true] [--host localhost] [--port 4848|4849] [--secure | -s] [
    --user admin_user] [--passwordfile file_name] [--steadypoolsize 8] [--maxpoolsiz<br />
    e 32] [--maxwait 60000] [--poolresize 2] [--idletimeout 300] [--failconnection=f<br />
    alse] [--transactionsupport transaction_support] [--isconnectvalidatereq=false]
    [--description text] [--property (name=value)[:name=value]*] poolname
    [exec] CLI014 raname is a required option.
    Duplicated project name in import. Project SampleService-impl defined first in C
    :\xx\xx\Samples\wsittutorial\examp
    les\wstx\basicWSTX\SampleService\nbproject\ant-deploy.xml and again in C:\xx\xx\Samples\wsittutorial\examples\wstx
    \basicWSTX\SampleService\nbproject\build-impl.xml
    check:
    tools:
    create-jms-connection-factory:
    [exec] Usage: create-jms-resource --restype resource_type [--terse=false] [
    --echo=false] [--interactive=true] [--host localhost] [--port 4848|4849] [--secu<br />
    re | -s] [--user admin_user] [--passwordfile file_name] [--enabled=true] [--desc<br />
    ription text] [--property (name=value)[:name=value]*] [--target target(Default s<br />
    erver)] jndi_name
    [exec] CLI014 restype is a required option.
    [echo] Created required resources and added them to domain1 ...
    [echo] Now creating C:/Sun/AppServer domain2 ...
    [exec] Usage: create-domain [--user admin] [--adminport port_number] [--ter<br />
    se=false] [--echo=false] [--interactive=true] [--domaindir domain_directory] [--<br />
    profile profile_name] [--template domain_template] [--passwordfile filename ] [
    --instanceport port_number] [--savemasterpassword=false] [--domainproperties (na<br />
    me=value)[:name=value]*] [--portbase portbase] [--savelogin=false] [--checkports<br />
    =true] domain_name
    [exec] CLI019 Invalid number of operands. Number of operands should be equ
    al to 1.
    [echo] Created C:/Sun/AppServer domain2 successfully
    Duplicated project name in import. Project SampleService-impl defined first in C
    :\xx\xx\Samples\wsittutorial\examp
    les\wstx\basicWSTX\SampleService\nbproject\ant-deploy.xml and again in C:\xx\xx\Samples\wsittutorial\examples\wstx
    \basicWSTX\SampleService\nbproject\build-impl.xml
    check:
    tools:
    trust-domains:
    Duplicated project name in import. Project SampleService-impl defined first in C
    :\xx\xx\Samples\wsittutorial\examp
    les\wstx\basicWSTX\SampleService\nbproject\ant-deploy.xml and again in C:\xx\xx\Samples\wsittutorial\examples\wstx
    \basicWSTX\SampleService\nbproject\build-impl.xml
    check:
    tools:
    trust-other-domain:
    [exec] Certificate stored in file <s1as.cer>
    [exec] Certificate was added to keystore
    [exec] keytool error: java.io.FileNotFoundException: C:\Sun\AppServer\domai
    ns\domain2\config\cacerts.jks (The system cannot find the path specified)
    BUILD FAILED
    C:\xx\xx\Samples\wsittutorial\exam
    ples\wstx\basicWSTX\SampleService\build.xml:136: The following error occurred wh
    ile executing this line:
    C:\xx\xx\Samples\wsittutorial\exam
    ples\wstx\basicWSTX\SampleService\build.xml:142: The following error occurred wh
    ile executing this line:
    C:\xx\xx\Samples\wsittutorial\exam
    ples\wstx\basicWSTX\SampleService\build.xml:178: exec returned: 1
    Total time: 2 minutes 7 seconds
    C:\xx\xx\Samples\wsittutorial\exam
    ples\wstx\basicWSTX\SampleService>
    </strong>
    <br />
    <br />
    I really would like to know who created the tutorial if it is not working with the newer version of java. I've wasted quite some time on this now. around 5 hours. trying to figure out wat could be wrong. I would highly appreciate a prompt response from an expert who could explain in layman terms about what is the problem.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Errors while running SRDemo tutorial (JSF/ EJB) to testing data model

    Hi experts,
    I go the following error messages while running SRDemo
    (web application - EJB 3.0, JSF, JPA) tutorial (Java EE tutorial from JavaEE_tutorial_setup.zip) on page 44 of 222 - testing the data model in JDeveloper version 10.1.3.1, the tutorial shows what the output should be, but I got the errors even though I followed all the steps, all JAVA EXPERTS, could you tell me what might be wrong? how should I do with those configureation files like persistence.xml? Thank you very much in advance. Jan
    Creating a service request //correct output
    setting the status //correct output
    setting the timestamp for request date //correct output
    2007-01-29 15:07:14.859 //correct output
    getting product object with id = 117 //correct output
    // error stack trace showed in JDeveloper
    Jan 29, 2007 3:07:16 PM oracle.j2ee.rmi.RMIMessages EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER
    WARNING: Exception returned by remote server: {0}
    javax.ejb.EJBException: Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [selectobject (product) from Products product where product.PROD_ID = :prodId], unexpected token [selectobject].; nested exception is:
         Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [selectobject (product) from Products product where product.PROD_ID = :prodId], unexpected token [selectobject].; nested exception is: oracle.oc4j.rmi.OracleRemoteException: Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [selectobject (product) from Products product where product.PROD_ID = :prodId], unexpected token [selectobject].; nested exception is:
         Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [selectobject (product) from Products product where product.PROD_ID = :prodId], unexpected token [selectobject].
    oracle.oc4j.rmi.OracleRemoteException: Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [selectobject (product) from Products product where product.PROD_ID = :prodId], unexpected token [selectobject].
         at com.evermind.server.ejb.EJBUtils.getUserException(EJBUtils.java:346)
         at com.evermind.server.ejb.interceptor.system.AbstractTxInterceptor.convertAndHandleMethodException(AbstractTxInterceptor.java:69)
         at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         at ServiceRequestFacade_RemoteProxy_p4gp54.findProductById(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:53)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
         Nested exception is:
    Local Exception Stack:
    Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [selectobject (product) from Products product where product.PROD_ID = :prodId], unexpected token [selectobject].
         at oracle.toplink.essentials.exceptions.EJBQLException.unexpectedToken(EJBQLException.java:358)
         at oracle.toplink.essentials.internal.parsing.ejbql.EJBQLParserBase.handleANTLRException(EJBQLParserBase.java:246)
         at oracle.toplink.essentials.internal.parsing.ejbql.EJBQLParserBase.reportError(EJBQLParserBase.java:204)
         at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.document(EJBQLParser.java:156)
         at oracle.toplink.essentials.internal.parsing.ejbql.EJBQLParserBase.parseEJBQLString(EJBQLParserBase.java:315)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.buildEJBQLDatabaseQuery(EJBQueryImpl.java:199)
         at oracle.toplink.essentials.queryframework.EJBQLPlaceHolderQuery.processEjbQLQuery(EJBQLPlaceHolderQuery.java:96)
         at oracle.toplink.essentials.internal.sessions.AbstractSession.processEJBQLQueries(AbstractSession.java:2040)
         at oracle.toplink.essentials.internal.sessions.AbstractSession.processEJBQLQueries(AbstractSession.java:2027)
         at oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.postConnectDatasource(DatabaseSessionImpl.java:679)
         at oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.loginAndDetectDatasource(DatabaseSessionImpl.java:559)
         at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:180)
         at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:230)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:84)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:127)
         at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:84)
         at com.evermind.server.ejb.persistence.PersistenceUnitImpl.createTempPersistenceContext(PersistenceUnitImpl.java:84)
         at com.evermind.server.ejb.persistence.EntityManagerProxy.createEntityManager(EntityManagerProxy.java:99)
         at com.evermind.server.ejb.persistence.EntityManagerProxy.allocateEntityManager(EntityManagerProxy.java:84)
         at com.evermind.server.ejb.persistence.AbstractEntityManagerProxy.createNamedQuery(AbstractEntityManagerProxy.java:110)
         at com.evermind.server.ejb.persistence.EntityManagerProxy.createNamedQuery(EntityManagerProxy.java:33)
         at org.srdemo.business.ServiceRequestFacadeBean.findProductById(ServiceRequestFacadeBean.java:51)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         at ServiceRequestFacade_RemoteProxy_p4gp54.findProductById(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:53)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    javax.ejb.EJBException: Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [selectobject (product) from Products product where product.PROD_ID = :prodId], unexpected token [selectobject].; nested exception is:
         Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [selectobject (product) from Products product where product.PROD_ID = :prodId], unexpected token [selectobject].; nested exception is: oracle.oc4j.rmi.OracleRemoteException: Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [selectobject (product) from Products product where product.PROD_ID = :prodId], unexpected token [selectobject].; nested exception is:
         Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [selectobject (product) from Products product where product.PROD_ID = :prodId], unexpected token [selectobject].
         at com.evermind.server.ejb.EJBUtils.createEJBException(EJBUtils.java:365)
         at com.evermind.server.ejb.EJBUtils.createEJBException(EJBUtils.java:356)
         at com.evermind.server.ejb.AbstractEJBObject.OC4J_handleUncheckedException(AbstractEJBObject.java:396)
         at ServiceRequestFacade_RemoteProxy_p4gp54.findProductById(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:53)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: oracle.oc4j.rmi.OracleRemoteException: Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [selectobject (product) from Products product where product.PROD_ID = :prodId], unexpected token [selectobject].; nested exception is:
         Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [selectobject (product) from Products product where product.PROD_ID = :prodId], unexpected token [selectobject].
         at com.evermind.server.ejb.EJBUtils.getUserException(EJBUtils.java:346)
         at com.evermind.server.ejb.interceptor.system.AbstractTxInterceptor.convertAndHandleMethodException(AbstractTxInterceptor.java:69)
         at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         ... 8 more
    Caused by: Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [selectobject (product) from Products product where product.PROD_ID = :prodId], unexpected token [selectobject].
         at oracle.toplink.essentials.exceptions.EJBQLException.unexpectedToken(EJBQLException.java:358)
         at oracle.toplink.essentials.internal.parsing.ejbql.EJBQLParserBase.handleANTLRException(EJBQLParserBase.java:246)
         at oracle.toplink.essentials.internal.parsing.ejbql.EJBQLParserBase.reportError(EJBQLParserBase.java:204)
         at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.document(EJBQLParser.java:156)
         at oracle.toplink.essentials.internal.parsing.ejbql.EJBQLParserBase.parseEJBQLString(EJBQLParserBase.java:315)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.buildEJBQLDatabaseQuery(EJBQueryImpl.java:199)
         at oracle.toplink.essentials.queryframework.EJBQLPlaceHolderQuery.processEjbQLQuery(EJBQLPlaceHolderQuery.java:96)
         at oracle.toplink.essentials.internal.sessions.AbstractSession.processEJBQLQueries(AbstractSession.java:2040)
         at oracle.toplink.essentials.internal.sessions.AbstractSession.processEJBQLQueries(AbstractSession.java:2027)
         at oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.postConnectDatasource(DatabaseSessionImpl.java:679)
         at oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.loginAndDetectDatasource(DatabaseSessionImpl.java:559)
         at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:180)
         at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:230)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:84)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:127)
         at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:84)
         at com.evermind.server.ejb.persistence.PersistenceUnitImpl.createTempPersistenceContext(PersistenceUnitImpl.java:84)
         at com.evermind.server.ejb.persistence.EntityManagerProxy.createEntityManager(EntityManagerProxy.java:99)
         at com.evermind.server.ejb.persistence.EntityManagerProxy.allocateEntityManager(EntityManagerProxy.java:84)
         at com.evermind.server.ejb.persistence.AbstractEntityManagerProxy.createNamedQuery(AbstractEntityManagerProxy.java:110)
         at com.evermind.server.ejb.persistence.EntityManagerProxy.createNamedQuery(EntityManagerProxy.java:33)
         at org.srdemo.business.ServiceRequestFacadeBean.findProductById(ServiceRequestFacadeBean.java:51)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
         ... 13 more
    javax.ejb.EJBException: Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [selectobject (product) from Products product where product.PROD_ID = :prodId], unexpected token [selectobject].; nested exception is:
         Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [selectobject (product) from Products product where product.PROD_ID = :prodId], unexpected token [selectobject].; nested exception is: oracle.oc4j.rmi.OracleRemoteException: Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [selectobject (product) from Products product where product.PROD_ID = :prodId], unexpected token [selectobject].; nested exception is:
         Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [selectobject (product) from Products product where product.PROD_ID = :prodId], unexpected token [selectobject].
    oracle.oc4j.rmi.OracleRemoteException: Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [selectobject (product) from Products product where product.PROD_ID = :prodId], unexpected token [selectobject].
         at com.evermind.server.ejb.EJBUtils.getUserException(EJBUtils.java:346)
         at com.evermind.server.ejb.interceptor.system.AbstractTxInterceptor.convertAndHandleMethodException(AbstractTxInterceptor.java:69)
         at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         at ServiceRequestFacade_RemoteProxy_p4gp54.findProductById(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:53)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
         Nested exception is:
    Local Exception Stack:
    Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [selectobject (product) from Products product where product.PROD_ID = :prodId], unexpected token [selectobject].
         at oracle.toplink.essentials.exceptions.EJBQLException.unexpectedToken(EJBQLException.java:358)
         at oracle.toplink.essentials.internal.parsing.ejbql.EJBQLParserBase.handleANTLRException(EJBQLParserBase.java:246)
         at oracle.toplink.essentials.internal.parsing.ejbql.EJBQLParserBase.reportError(EJBQLParserBase.java:204)
         at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.document(EJBQLParser.java:156)
         at oracle.toplink.essentials.internal.parsing.ejbql.EJBQLParserBase.parseEJBQLString(EJBQLParserBase.java:315)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.buildEJBQLDatabaseQuery(EJBQueryImpl.java:199)
         at oracle.toplink.essentials.queryframework.EJBQLPlaceHolderQuery.processEjbQLQuery(EJBQLPlaceHolderQuery.java:96)
         at oracle.toplink.essentials.internal.sessions.AbstractSession.processEJBQLQueries(AbstractSession.java:2040)
         at oracle.toplink.essentials.internal.sessions.AbstractSession.processEJBQLQueries(AbstractSession.java:2027)
         at oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.postConnectDatasource(DatabaseSessionImpl.java:679)
         at oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.loginAndDetectDatasource(DatabaseSessionImpl.java:559)
         at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:180)
         at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:230)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:84)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:127)
         at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:84)
         at com.evermind.server.ejb.persistence.PersistenceUnitImpl.createTempPersistenceContext(PersistenceUnitImpl.java:84)
         at com.evermind.server.ejb.persistence.EntityManagerProxy.createEntityManager(EntityManagerProxy.java:99)
         at com.evermind.server.ejb.persistence.EntityManagerProxy.allocateEntityManager(EntityManagerProxy.java:84)
         at com.evermind.server.ejb.persistence.AbstractEntityManagerProxy.createNamedQuery(AbstractEntityManagerProxy.java:110)
         at com.evermind.server.ejb.persistence.EntityManagerProxy.createNamedQuery(EntityManagerProxy.java:33)
         at org.srdemo.business.ServiceRequestFacadeBean.findProductById(ServiceRequestFacadeBean.java:51)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         at ServiceRequestFacade_RemoteProxy_p4gp54.findProductById(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:53)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    javax.ejb.EJBException: Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [selectobject (product) from Products product where product.PROD_ID = :prodId], unexpected token [selectobject].; nested exception is:
         Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [selectobject (product) from Products product where product.PROD_ID = :prodId], unexpected token [selectobject].; nested exception is: oracle.oc4j.rmi.OracleRemoteException: Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [selectobject (product) from Products product where product.PROD_ID = :prodId], unexpected token [selectobject].; nested exception is:
         Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [selectobject (product) from Products product where product.PROD_ID = :prodId], unexpected token [selectobject].
         at com.evermind.server.rmi.RMICall.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(RMICall.java:109)
         at com.evermind.server.rmi.RMICall.throwRecordedException(RMICall.java:125)
         at com.evermind.server.rmi.RMIClientConnection.obtainRemoteMethodResponse(RMIClientConnection.java:517)
         at com.evermind.server.rmi.RMIClientConnection.invokeMethod(RMIClientConnection.java:461)
         at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:63)
         at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:28)
         at com.evermind.server.ejb.StatelessSessionRemoteInvocationHandler.invoke(StatelessSessionRemoteInvocationHandler.java:43)
         at __Proxy1.findProductById(Unknown Source)
         at org.srdemo.client.ServiceRequestFacadeClientEmbed.main(ServiceRequestFacadeClientEmbed.java:38)
    Caused by: oracle.oc4j.rmi.OracleRemoteException: Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [selectobject (product) from Products product where product.PROD_ID = :prodId], unexpected token [selectobject].; nested exception is:
         Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [selectobject (product) from Products product where product.PROD_ID = :prodId], unexpected token [selectobject].
         at com.evermind.server.ejb.EJBUtils.getUserException(EJBUtils.java:346)
         at com.evermind.server.ejb.interceptor.system.AbstractTxInterceptor.convertAndHandleMethodException(AbstractTxInterceptor.java:69)
         at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         at ServiceRequestFacade_RemoteProxy_p4gp54.findProductById(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:53)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: Exception [TOPLINK-8025] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.EJBQLException
    Exception Description: Syntax error parsing the query [selectobject (product) from Products product where product.PROD_ID = :prodId], unexpected token [selectobject].
         at oracle.toplink.essentials.exceptions.EJBQLException.unexpectedToken(EJBQLException.java:358)
         at oracle.toplink.essentials.internal.parsing.ejbql.EJBQLParserBase.handleANTLRException(EJBQLParserBase.java:246)
         at oracle.toplink.essentials.internal.parsing.ejbql.EJBQLParserBase.reportError(EJBQLParserBase.java:204)
         at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.document(EJBQLParser.java:156)
         at oracle.toplink.essentials.internal.parsing.ejbql.EJBQLParserBase.parseEJBQLString(EJBQLParserBase.java:315)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.buildEJBQLDatabaseQuery(EJBQueryImpl.java:199)
         at oracle.toplink.essentials.queryframework.EJBQLPlaceHolderQuery.processEjbQLQuery(EJBQLPlaceHolderQuery.java:96)
         at oracle.toplink.essentials.internal.sessions.AbstractSession.processEJBQLQueries(AbstractSession.java:2040)
         at oracle.toplink.essentials.internal.sessions.AbstractSession.processEJBQLQueries(AbstractSession.java:2027)
         at oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.postConnectDatasource(DatabaseSessionImpl.java:679)
         at oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.loginAndDetectDatasource(DatabaseSessionImpl.java:559)
         at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:180)
         at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:230)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:84)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:127)
         at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:84)
         at com.evermind.server.ejb.persistence.PersistenceUnitImpl.createTempPersistenceContext(PersistenceUnitImpl.java:84)
         at com.evermind.server.ejb.persistence.EntityManagerProxy.createEntityManager(EntityManagerProxy.java:99)
         at com.evermind.server.ejb.persistence.EntityManagerProxy.allocateEntityManager(EntityManagerProxy.java:84)
         at com.evermind.server.ejb.persistence.AbstractEntityManagerProxy.createNamedQuery(AbstractEntityManagerProxy.java:110)
         at com.evermind.server.ejb.persistence.EntityManagerProxy.createNamedQuery(EntityManagerProxy.java:33)
         at org.srdemo.business.ServiceRequestFacadeBean.findProductById(ServiceRequestFacadeBean.java:51)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
         ... 13 more
    Process exited with exit code 0.

    Hi,
    the problem seems to be caused by an invalid query
    selectobject (product) from Products product where product.PROD_ID = :prodId
    Should be
    select object (product) from Products product where product.PROD_ID = :prodId
    Please check the query you created in TopLink
    Frank

  • Error 500 running a tutorial application and other issues

    While I am following a tutorial at Oracle JDeveloper 12c (12.1.2) Tutorials - Building a Web Application Using EJB, JPA, and JavaServer Faces it is refusing to run more than once.
    When I re-run the application after making changes, it throws error 500 with the below exception stack until it is un-deployed. Once un-deployed, it runs once fine. Why does it have to be terminated and re-deployed?
    In Part 3, Step 1 i cannot follow 'p. 7 In the Applications Navigator, right-click HRFacadeBean.java and select Edit Session Facade from context.' as the tree does not have Employees branch.
    Why is there no Employees under the session facade?
    Error 500 exception:
    java.lang.ClassCastException: oracle.adfinternal.view.faces.webapp.rich.RichWindowManagerFactory$WindowIdProviderAdapter cannot be cast to org.apache.myfaces.trinidad.event.WindowLifecycleListener
    at oracle.adfinternal.view.faces.webapp.rich.RichWindowManagerFactory$ApplicationWindowListeners.processWindowLifecylce(RichWindowManagerFactory.java:244)
    at oracle.adfinternal.view.faces.webapp.rich.RichWindowManager._fireWindowLifecycleEvent(RichWindowManager.java:362)
    at oracle.adfinternal.view.faces.webapp.rich.RichWindowManager._handleWindowOpened(RichWindowManager.java:398)
    at oracle.adfinternal.view.faces.webapp.rich.RichWindowManager.beginRequest(RichWindowManager.java:924)
    at org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl._beginWindowManagerRequest(GlobalConfiguratorImpl.java:657)
    at org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl.beginRequest(GlobalConfiguratorImpl.java:225)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:174)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:137)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:120)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:217)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:81)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:225)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3367)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3333)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
    at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2220)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2146)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2124)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1564)
    at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:254)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:295)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:254)

    I thought he prematurely hit Post, thanks for clarification.
    The method kind of works. It worked for a few times, then I got this. Of course property b6 does exist. Undeploying and re-deploying fixed the issue, as previously.
    javax.el.PropertyNotFoundException: //D:/Users/user0/AppData/Roaming/JDeveloper/system12.1.2.0.40.66.68/o.j2ee/drs/OracleDemoWeb/ViewControllerWebApp.war/customerOrders.jsf @25,100 binding="#{backingBeanScope.backing_untitled1.b6}": The class 'oracledemo.view.backing.Untitled1' does not have the property 'b6'.
    at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:111)
    at com.sun.faces.application.ApplicationImpl.createComponentApplyAnnotations(ApplicationImpl.java:1941)
    at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:1144)
    at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.createComponent(ComponentTagHandlerDelegateImpl.java:518)
    at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:168)
    at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
    at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
    at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
    at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:195)
    at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
    at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
    at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:195)
    at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
    at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
    at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
    at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:195)
    at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
    at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
    at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:195)
    at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
    at com.sun.faces.facelets.tag.jsf.core.FacetHandler.apply(FacetHandler.java:104)
    at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
    at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
    at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:195)
    at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
    at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
    at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:195)
    at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
    at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
    at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
    at oracle.adfinternal.view.faces.facelets.rich.RichDocumentHandler.applyNextHandler(RichDocumentHandler.java:69)
    at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:195)
    at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
    at com.sun.faces.facelets.tag.jsf.core.ViewHandler.apply(ViewHandler.java:182)
    at com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
    at com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86)
    at com.sun.faces.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:152)
    at com.sun.faces.application.view.FaceletViewHandlingStrategy.buildView(FaceletViewHandlingStrategy.java:774)
    at org.apache.myfaces.trinidad.view.ViewDeclarationLanguageWrapper.buildView(ViewDeclarationLanguageWrapper.java:94)
    at org.apache.myfaces.trinidad.view.ViewDeclarationLanguageWrapper.buildView(ViewDeclarationLanguageWrapper.java:94)
    at org.apache.myfaces.trinidadinternal.application.ViewDeclarationLanguageFactoryImpl$ChangeApplyingVDLWrapper.buildView(ViewDeclarationLanguageFactoryImpl.java:322)
    at oracle.adfinternal.view.faces.lifecycle.ResponseRenderManager._processViewDefinitionLanguage(ResponseRenderManager.java:105)
    at oracle.adfinternal.view.faces.lifecycle.ResponseRenderManager.runRenderView(ResponseRenderManager.java:41)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:1104)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:389)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:255)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:280)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:254)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:341)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:192)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:478)
    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:478)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:303)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:208)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at weblogic.servlet.utils.FastSwapFilter.doFilter(FastSwapFilter.java:64)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:137)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:120)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:217)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:81)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:225)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3367)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3333)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
    at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2220)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2146)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2124)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1564)
    at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:254)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:295)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:254)

  • Having problem to run JMS tutorial

    Hi,
    I have successfully compiled and add MyQueue to the queue. But when I try to run the sample program from the JMS tutorial my system would produced the exact error that I have posted bellow:
    =========================================
    F:\ttech\jeti\classes>java -Djms.properties=F:\j2sdkee1.3.1\config\jms_client.pr
    operties SimpleQueueSender MyQueue 3
    Queue name is MyQueue
    JNDI lookup failed: javax.naming.NoInitialContextException: Need to specify clas
    s name in environment or system property, or as an applet parameter, or in an ap
    plication resource file: java.naming.factory.initial
    ====================================
    If some body could please tell me what I am doing wrong here. I have installed all the jar files (like jms.jar, jndi.jar) and j2sdkee1.3.1 and jsdk1.3.1_01 and set up all the classpath accordingly.
    Thank you so much.
    Amir.

    This script should get rid of your troubles:
    Just to lay it all out, here is how to "run" the code.. the compiling is a breeze. So, this is only how to generically get things to run. Specific of *nix, but I'm sure windows users can pick-out the important parts.
    #!/bin/sh
    J2EE_HOME=/usr/local/j2sdkee1.4
    # this assumes your PATH already points to the following:
    # (the j2ee goodies listed below)
    # $J2EE_HOME/lib/j2ee.jar
    # $J2EE_HOME/lib/system/jmsra.jar
    # and of course... the standard java libs.
    #below the ~/code/w3track/jms1.0.2b/src/
    # is the directory where I manually compiled #The jms libraries in...
    # this could instead point to the jms.jar file in the lib directory.
    p=$PATH:$J2EE_HOME/lib/j2ee.jar:$J2EE_HOME/lib/system/jmsra.jar:~/code/w3track/jms1.0.2b/src/:.
    [ "$1" != "" ] && java -server -Djava.endorsed.dirs=$J2EE_HOME/lib/endorsed -classpath $p $1
    # first setup the queue,
    #I'll assume you have started a jms queue by
    #first starting #the j2ee -startRegistry and
    # j2eeadmin -addJmsDestination q1des queue
    #example of running:
    # ./<this_script> "SendToQueue q1des 5"
    #this will send 5 messages into the queue.
    #hope this helps some people out
    #there who are having issues getting the compiled
    #code to run. Good Luck!
    # Chris Danielson

  • "No PasswordCredential Found" while running bookstore tutorial

    Hi,
    I'm trying to get the J2EE bookstore1 example to work.
    When I go to the page http://localhost:8080/bookstore1/bookstore I have this error message "No PasswordCredential Found"
    I'm using NetbeansIDE 6.5.1 and Glassfish. I only run the example just like in the tutorial.
    I also checked the Resources in glassfish. I have the user and password set up in the "DerbyPool" in the Connection Pool. I also can ping it successfully.
    Can someone give me an idea, what did I do wrong?

    Just a stab in the dark, but did you create the required database and tables in MySQL for this app? Also, what's the stacktrace. I'm sure it'll be helpful to look at the exception that occurred

  • Error running WebCenter Tutorial

    Hi,
    I am trying to go through the WebCenter tutorial Oracle® Fusion Middleware Tutorial for Oracle WebCenter Developers 11g Release 1 (11.1.1)
    I have installed JDeveloper Studio Edition Version 11.1.1.4.0 and added the WebCenter Extensions.
    I created the tutorial portal application and tried to run it (as per the tutorial but get the following error:
    03:10:07 PM] Deploying Application...
    <Jan 26, 2011 3:10:17 PM GMT> <Warning> <J2EE> <BEA-160140> <Unresolved optional package references (in META-INF/MANIFEST.MF): [Extension-Name: oracle.apps.common.resource, referenced from: /home/oracle/.jdeveloper/system11.1.1.4.37.59.23/DefaultDomain/servers/DefaultServer/tmp/_WL_user/oracle.webcenter.framework/owur7d]. Make sure the referenced optional package has been deployed as a library.>
    <Jan 26, 2011 3:10:20 PM GMT> <Notice> <LoggingService> <BEA-320400> <The log file /home/oracle/.jdeveloper/system11.1.1.4.37.59.23/DefaultDomain/servers/DefaultServer/logs/DefaultServer.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>
    <Jan 26, 2011 3:10:20 PM GMT> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to /home/oracle/.jdeveloper/system11.1.1.4.37.59.23/DefaultDomain/servers/DefaultServer/logs/DefaultServer.log00001. Log messages will continue to be logged in /home/oracle/.jdeveloper/system11.1.1.4.37.59.23/DefaultDomain/servers/DefaultServer/logs/DefaultServer.log.>
    <Jan 26, 2011 3:10:27 PM GMT> <Error> <HTTP> <BEA-101371> <There was a failure when processing annotations for application /home/oracle/.jdeveloper/system11.1.1.4.37.59.23/o.j2ee/drs/MyPortalApplication/PortalWebApp.war. Please make sure that the annotations are valid. The error is An I/O error occurred during listing of the directory: /home/oracle/.jdeveloper/system11.1.1.4.37.59.23/o.j2ee/drs/MyPortalApplication/PortalWebApp.war/WEB-INF/classes>
    <Jan 26, 2011 3:10:27 PM GMT> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1296054608923' for task '2'. Error is: 'weblogic.application.ModuleException: Failed to load webapp: 'MyPortalApplication-Portal-context-root''
    weblogic.application.ModuleException: Failed to load webapp: 'MyPortalApplication-Portal-context-root'
    The environment in Oracle Enterprise Linux 64 bit running in VMware Workstation 7 and is a clean install with a clean install of JDeveloper.
    The other thing I noticed is that on the JDevelopers "Extentions" tab there is a warning:
    oracle.webcenter.app
    Warning: Classpath entry /d01/oracle/javahome/jdk/lib/tools.jar not found.
    I do not know why it would configure /d01/oracle/javahome/jdk/lib as that is not a valid path in the installation.
    The full stack trace is:
    [03:10:07 PM] Deploying Application...
    <Jan 26, 2011 3:10:17 PM GMT> <Warning> <J2EE> <BEA-160140> <Unresolved optional package references (in META-INF/MANIFEST.MF): [Extension-Name: oracle.apps.common.resource, referenced from: /home/oracle/.jdeveloper/system11.1.1.4.37.59.23/DefaultDomain/servers/DefaultServer/tmp/_WL_user/oracle.webcenter.framework/owur7d]. Make sure the referenced optional package has been deployed as a library.>
    <Jan 26, 2011 3:10:20 PM GMT> <Notice> <LoggingService> <BEA-320400> <The log file /home/oracle/.jdeveloper/system11.1.1.4.37.59.23/DefaultDomain/servers/DefaultServer/logs/DefaultServer.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>
    <Jan 26, 2011 3:10:20 PM GMT> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to /home/oracle/.jdeveloper/system11.1.1.4.37.59.23/DefaultDomain/servers/DefaultServer/logs/DefaultServer.log00001. Log messages will continue to be logged in /home/oracle/.jdeveloper/system11.1.1.4.37.59.23/DefaultDomain/servers/DefaultServer/logs/DefaultServer.log.>
    <Jan 26, 2011 3:10:27 PM GMT> <Error> <HTTP> <BEA-101371> <There was a failure when processing annotations for application /home/oracle/.jdeveloper/system11.1.1.4.37.59.23/o.j2ee/drs/MyPortalApplication/PortalWebApp.war. Please make sure that the annotations are valid. The error is An I/O error occurred during listing of the directory: /home/oracle/.jdeveloper/system11.1.1.4.37.59.23/o.j2ee/drs/MyPortalApplication/PortalWebApp.war/WEB-INF/classes>
    <Jan 26, 2011 3:10:27 PM GMT> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1296054608923' for task '2'. Error is: 'weblogic.application.ModuleException: Failed to load webapp: 'MyPortalApplication-Portal-context-root''
    weblogic.application.ModuleException: Failed to load webapp: 'MyPortalApplication-Portal-context-root'
         at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:393)
         at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
         at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
         at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:517)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         Truncated. see log file for complete stacktrace
    Caused By: weblogic.utils.enumerations.FileEnumeration$NullDirectoryListException: An I/O error occurred during listing of the directory: /home/oracle/.jdeveloper/system11.1.1.4.37.59.23/o.j2ee/drs/MyPortalApplication/PortalWebApp.war/WEB-INF/classes
         at weblogic.utils.enumerations.FileEnumeration.getNextFile(FileEnumeration.java:150)
         at weblogic.utils.enumerations.FileEnumeration.hasMoreFiles(FileEnumeration.java:102)
         at weblogic.utils.enumerations.FileEnumeration.hasMoreElements(FileEnumeration.java:134)
         at weblogic.utils.enumerations.SequencingEnumerator.hasMoreElements(SequencingEnumerator.java:52)
         at weblogic.utils.enumerations.SequencingEnumerator.hasMoreElements(SequencingEnumerator.java:52)
         Truncated. see log file for complete stacktrace
    >
    <Jan 26, 2011 3:10:27 PM GMT> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'MyPortalApplication [Version=V2.0]'.>
    <Jan 26, 2011 3:10:27 PM GMT> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    weblogic.application.ModuleException: Failed to load webapp: 'MyPortalApplication-Portal-context-root'
         at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:393)
         at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
         at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
         at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:517)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         Truncated. see log file for complete stacktrace
    Caused By: weblogic.utils.enumerations.FileEnumeration$NullDirectoryListException: An I/O error occurred during listing of the directory: /home/oracle/.jdeveloper/system11.1.1.4.37.59.23/o.j2ee/drs/MyPortalApplication/PortalWebApp.war/WEB-INF/classes
         at weblogic.utils.enumerations.FileEnumeration.getNextFile(FileEnumeration.java:150)
         at weblogic.utils.enumerations.FileEnumeration.hasMoreFiles(FileEnumeration.java:102)
         at weblogic.utils.enumerations.FileEnumeration.hasMoreElements(FileEnumeration.java:134)
         at weblogic.utils.enumerations.SequencingEnumerator.hasMoreElements(SequencingEnumerator.java:52)
         at weblogic.utils.enumerations.SequencingEnumerator.hasMoreElements(SequencingEnumerator.java:52)
         Truncated. see log file for complete stacktrace
    >
    [03:10:27 PM] #### Deployment incomplete. ####
    [03:10:27 PM] Remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer)
    #### Cannot run application MyPortalApplication due to error deploying to IntegratedWebLogicServer.
    [Application MyPortalApplication stopped and undeployed from Server Instance IntegratedWebLogicServer]

    Hi Peter,
    Fixed the problem, I created directories:
    /d01/oracle/javahome
    and
    /d01/oracle/javahome/jdk
    then created a symbolic link:
    ln -s /d01/oracle/middleware/jdk160_21/lib /d01/oracle/javahome/jdk/lib
    When I restarted weblogic it got beyond that but then failed due to "to many open files"
    So I edited /etc/security/limits.conf
    adding the lines:
    oracle hard nofile 4096
    oracle soft nofile 4096
    as per the weblogic installation guide
    The tutorial application then started ...
    Thanks for the responses
    Craig

  • Cant run J2EE tutorial DukesBank ...

    Hello,
    I am new in Java and J2EE and want just run the J2EE tutorial DukesBank which i have downloaded from java.sun.com.
    Therefore are following steps done:
    1. starting the J2EE server (j2ee -start)
    2. starting the cloudscape database (cloudscape -start)
    3. starting deploytool
    4. compile the sources (ant compile-ejb)
    5. package the ejbs (ant package-ejb)
    Now when i use the verifier in the deploytool then i got the error message:
    FAILED: method [makePayment] does not throw valid application exception in Remote/Local interface [com.sun.ebank.ejb.tx.TxController]
    I think this causes also the error message which i got when i goto localhost/bank in the webbrowser:
    Server Error
    Your request cannot be completed. The server got the following error
    null
    So now i have modified the interface TxController.java with deleting the method 'makePayment', also in TxControllerBean.java.
    Then i compiled they again (ant compile-ejb and ant package-ejb) but I have the same problem again, so has the tutorial an error or do i need to modify something else ?!?
    Many thanks for every help
    Regards
    Plato23

    DukesBank - RemoteException in AppClient package
    The two ant invocations "ant compile-ejb" and "ant package-ejb" take care of of the EJBs. The simplest to way to bring Bank up is "ant all" and there is no need of Deploytool though you will need J2EE Server up.
    The context root of the Bank is simply "bank" and the BankAdmin can be run using "runclient.bat" (with a few vanity changes).
    This is as far as I go for running the Bank. But when I tried to activate the various functions in the BankAdmin, I kept getting "RemoteException" and could neither create accounts nor customers.
    Can anybody out there help? Thanks
    p (which does packages (Customer, c

  • Running the Tutorial - Cannot find OA_HTML/runregion.jsp

    Hi,
    I am working on the hello world tutorial and I am getting an alert on the page when I run the HelloPG.xml saying that the file http://....../OA_HTML/runregion.jsp cannot be found. The page however loads correctly after I click OK. One more thing I noticed is that it opens 3-4 windows everytime I run the HelloPG.xml.
    Does anyone have an idea what could be wrong here ?
    Thanks in advance,
    Nisha

    Hi Tapash,
    I am getting this error no matter which page I run.
    Specifically this is what is happening. The page seems to be launched twice. In one window i get the alert saying that runregion.jsp could not be found. Both the windows load successfully
    This is what I see on the console :
    Ready message received from Oc4jNotifier.
    Embedded OC4J startup time: 291 ms.
    ApplicationServer: appName = APPS_OA
    ApplicationServer: appName = bc4j
    ApplicationServer: appName = current-workspace-app
    ApplicationServer: appName = soap
    Error creating the ORB :
    Auto-deploying OA Framework web application deployment descriptor (New server version detected)...
    TIME: runregion: initialization [0 ms]
    ICX DIAGNOSTIC: FND_TOP = C:\jdev9i\jdevhome\jdev\dbc_files\
    ICX DIAGNOSTIC: application_id = 401
    ICX DIAGNOSTIC: responsibility_id = 20634
    ICX DIAGNOSTIC: security_group_id = 0
    ICX DIAGNOSTIC: mEncryptedSessionID = 3dGSIs5zEGaBI6Og16qkFB6C:S
    ICX DIAGNOSTIC: mSessionID = 400417624TIME: runregion: session and transaction creation [381 ms]
    ICX DIAGNOSTIC: mTransactionID = 987021808
    The system cannot find the file http://..................../OA_HTML/runregion.jsp.
    TIME: runregion: initialization [0 ms]
    ICX DIAGNOSTIC: FND_TOP = C:\jdev9i\jdevhome\jdev\dbc_files\
    ICX DIAGNOSTIC: application_id = 401
    ICX DIAGNOSTIC: responsibility_id = 20634
    ICX DIAGNOSTIC: security_group_id = 0
    ICX DIAGNOSTIC: mEncryptedSessionID = Z3F66oSdaxz9AsDKRryI2Dcy:S
    ICX DIAGNOSTIC: mSessionID = 807824351TIME: runregion: session and transaction creation [411 ms]
    ICX DIAGNOSTIC: mTransactionID = 1002872129
    Thank and Regards,
    Nisha

  • Error running SwingApplication tutorial

    I'm trying to run the SwingApplication from the 'Compiling and Running Swing Programs' tutorial at http://java.sun.com/docs/books/tutorial/uiswing/start/swingStart12.html.
    When I enter: 'java SwingApplication' I get the following error:
    Exception in thread "main" java.lang.NoClassDefFoundError: SwingApplication
    I'm running Java version 1.3.1_02. Can anyone please help me with this error?
    Thanks in advance.

    Thank you very much for your input. I was running in the wrong directory. When I got into the right directory, ....\jdk\bin, and used the -classpath option, everything worked fine. One more arrow in the back to becoming an expert......... :-)

  • Help, run J2ee tutorial - Converter. Thanks

    I deployed Converter example successively. Then, run:
    runclient -client ConverterApp.ear -name ConverterClient -textauth
    The result is different from the tutorial:
    <--------------------
    Initiating login ...
    Enter Username:guest
    Enter Password:guest123
    Binding name:`java:comp/env/ejb/SimpleConverter`
    12160.00
    0.77
    -------------------->
    No "Unbinding name:'java:comp/env/ejb/SimpleConverter'"
    What's the problem?
    Next, I open webbrowser and locate page "http://localhost:8000/converter". This page looks fine. When submit to next page, errors come out:
    <----------
    J2EE SDK/1.3.1 - HTTP Status 500 - Internal Server Error
    type Exception report
    message Internal Server Error
    description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
    exception
    java.lang.NullPointerException
         at org.apache.jsp.index$jsp._jspService(index$jsp.java:113)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.access$0(ApplicationFilterChain.java:197)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:368)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
         at java.lang.Thread.run(Thread.java:536)
    ----------->
    Any help is appreciated.

    Hi,
    I want to deploy an application created by WSAD. I have created the ear file usingh WSAD. While I am trying to deploy the ear file J2EE RI it's giving me the following error. Can anyone help me in solving this problem? Is there anything that I have to write which is J2ee-Ri specific?
    Thanks
    The error is:
    java.lang.NullPointerException
         at java.util.zip.ZipFile.getInputStream(ZipFile.java:174)
         at java.util.jar.JarFile.getInputStream(JarFile.java:307)
         at com.sun.enterprise.deployment.ApplicationArchivist.saveInClassLoadableFormat(ApplicationArchivist.java:1796)
         at com.sun.enterprise.tools.deployment.backend.JarInstallerImpl.deployApplication(JarInstallerImpl.java:150)
         at org.omg.stub.com.sun.enterprise.tools.deployment.backend._JarInstallerImpl_Tie._invoke(Unknown Source)
         at com.sun.corba.ee.internal.corba.ServerDelegate.dispatch(ServerDelegate.java:355)
         at com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:255)
         at com.sun.corba.ee.internal.iiop.RequestProcessor.process(RequestProcessor.java:84)
         at com.sun.corba.ee.internal.orbutil.ThreadPool$PooledThread.run(ThreadPool.java:99)
    java.lang.NullPointerException
         at java.util.zip.ZipFile.getInputStream(ZipFile.java:174)
         at java.util.jar.JarFile.getInputStream(JarFile.java:307)
         at com.sun.enterprise.deployment.ApplicationArchivist.saveInClassLoadableFormat(ApplicationArchivist.java:1796)
         at com.sun.enterprise.tools.deployment.backend.JarInstallerImpl.deployApplication(JarInstallerImpl.java:150)
         at org.omg.stub.com.sun.enterprise.tools.deployment.backend._JarInstallerImpl_Tie._invoke(Unknown Source)
         at com.sun.corba.ee.internal.corba.ServerDelegate.dispatch(ServerDelegate.java:355)
         at com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:255)
         at com.sun.corba.ee.internal.iiop.RequestProcessor.process(RequestProcessor.java:84)
         at com.sun.corba.ee.internal.orbutil.ThreadPool$PooledThread.run(ThreadPool.java:99)

  • I couldn't run Java Tutorial Sample

    I'am studying java with Tutorial but
    I couldn't run this sample
    OutputApplet.html
    OutputApplet.java
    Error : java.security.AccessControlException:access denied (java.lang.RuntimePermission accessClassInPackage.sun.jdbc.odbc)
    Other files run successful so I think "I don't have Odbc Problem "
    But this sample is applet and doesn't work
    /** OutputApplet.java
    * This is a demonstration JDBC applet.
    * It displays some simple standard output from the Coffee database.
    import java.applet.Applet;
    import java.awt.Graphics;
    import java.util.Vector;
    import java.sql.*;
    public class OutputApplet extends Applet implements Runnable {
    private Thread worker;
    private Vector queryResults;
    private String message = "Initializing";
    public synchronized void start() {
         // Every time "start" is called we create a worker thread to
         // re-evaluate the database query.
         if (worker == null) {     
         message = "Connecting to database";
    worker = new Thread(this);
         worker.start();
    * The "run" method is called from the worker thread. Notice that
    * because this method is doing potentially slow databases accesses
    * we avoid making it a synchronized method.
    public void run() {
         String url = "jdbc:odbc:MyAccess";
         String query = "select COF_NAME, PRICE from COFFEES";
         try {
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         } catch(Exception ex) {
         setError("1: " + ex);
         return;
         try {
         Vector results = new Vector();
         Connection con = DriverManager.getConnection(url,"
    MyUser","MyPass");
         Statement stmt = con.createStatement();
         ResultSet rs = stmt.executeQuery(query);
         while (rs.next()) {
              String s = rs.getString("COF_NAME");
              float f = rs.getFloat("PRICE");
              String text = s + " " + f;
              results.addElement(text);
         stmt.close();
         con.close();
         setResults(results);
         } catch(SQLException ex) {
         setError("SQLException: " + ex);
    * The "paint" method is called by AWT when it wants us to
    * display our current state on the screen.
    public synchronized void paint(Graphics g) {
         // If there are no results available, display the current message.
         if (queryResults == null) {
         g.drawString(message, 5, 50);
         return;
         // Display the results.
         g.drawString("Prices of coffee per pound: ", 5, 10);
         int y = 30;
         java.util.Enumeration enum = queryResults.elements();
         while (enum.hasMoreElements()) {
         String text = (String)enum.nextElement();
         g.drawString(text, 5, y);
         y = y + 15;
    * This private method is used to record an error message for
    * later display.
    private synchronized void setError(String mess) {
         queryResults = null;     
         message = mess;     
         worker = null;
         // And ask AWT to repaint this applet.
         repaint();
    * This private method is used to record the results of a query, for
    * later display.
    private synchronized void setResults(Vector results) {
         queryResults = results;
         worker = null;
         // And ask AWT to repaint this applet.
         repaint();

    Friend try using <code> </code> when you post your program.
    It posts in a better Readable format.
    Ex.
    public class see
    public static void main(String[] args)

Maybe you are looking for

  • Can i move a boot volume (to a partition on another HD)?

    i have a boot install of windows xp and windows 7 on two separate HD's in my mac pro and i would like to consolidate these (along with my primary mac OS) onto one single drive. can i migrate these somehow to a new partitioned drive? TIA

  • A class of a different type

    If I have Two classes, Class Student, and Class UnderGrad I declare: Student stud =  new UnderGrad();     What does this mean, can stud use all of the methods in Student, Undergrad, or both? How is this useful? Thank You

  • Class not found - ie

    When, I compile applets, I continually get class not found errors when I run it from IE... (Status bar says Class (name) not found) But when I use appletviewer, the applet works fine The files are where they are supposed to be... Here's the kicker...

  • Getting these errors when trying to install elements 11 on my mac osx

    WARNING: DW066: OS requirements not met for {FA19351D-E98C-48C1-B5E1-0C8C42B5E11C} WARNING: DW066: OS requirements not met for {F7FD5B5C-CE79-4657-AEB7-B0EE4626C912} WARNING: DW031: Payload:{F6F5021E-0548-43C1-82CC-C5C7A6906585} Camera Profiles Insta

  • Mouse cursor problem with CS4 64 bit under Windows 8.1

    When using tools such as the various lasso tools, I get three cursors in a horizontal line, the leftmost one being the active one. Then when I click in a panel, it turns into a hieroglyph resembling three small vehicles or boats in a line. I don't kn