Jpg jsf jpa

I want to store jpeg files through jsf , jpa to oracle database. And again to show stored jpeg in database to a jsf page.
Please help.

bigbbkt wrote:
I want to store jpeg files through jsf , jpa to oracle database. You can upload files using under each the Tomahawk's <t:inputFileUpload /> component. Get the InputStream of the uploaded file and write it to the database using e.g. PreparedStatement#setBinaryStream().
See this article for some pointers about uploading files in JSF: [http://balusc.blogspot.com/2008/02/uploading-files-with-jsf.html].
And again to show stored jpeg in database to a jsf page.Better use an independent Servlet for this. Obtain the InputStream from the database using e.g. ResultSet#getBinaryStream() and write it to the OutputStream of the HttpServletResponse after having set the headers accordingly. Then call that Servlet in a JSF <h:graphicImage /> tag or just a plain vanilla HTML <img> tag.
Also see this article for some pointers: [http://balusc.blogspot.com/2007/04/imageservlet.html].

Similar Messages

  • How to run order-jsf-jpa-example.zip in JDeveloper?

    What is the easiest way to make order-jsf-jpa-example.zip from the link http://www.oracle.com/technology/products/ias/toplink/jpa/examples-index.html to run in JDeveloper?
    Step by Step please.
    Thanks
    Ming Man

    You can use the JDeveloper "project from existing source" to create a new project that is based on this code.
    You can then use the built in Ant support to run the build file.

  • JSF-JPA error in netbeans

    hi
    IDE: Netbeans7.1
    Server:Weblogic 10.0
    JSF:2.1
    JPA:toplink essential JPA 1.0
    When i`m inserting JPA in my JSF project following error Shown, Any one have Idea abt it?
    init:
    deps-module-jar:
    deps-ear-jar:
    deps-jar:
    library-inclusion-in-archive:
    library-inclusion-in-manifest:
    compile:
    compile-jsps:
    C:\Users\IS678\Documents\NetBeansProjects\GApp\nbproject\build-impl.xml:730:
    Deployment error:
    null
    See the server log for details.
         at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:232)
         at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:106)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.GeneratedMethodAccessor117.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.Task.perform(Task.java:348)
         at org.apache.tools.ant.Target.execute(Target.java:390)
         at org.apache.tools.ant.Target.performTasks(Target.java:411)
         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
         at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
         at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:284)
         at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:539)
         at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)
    Caused by: java.lang.IllegalThreadStateException
         at java.lang.ThreadGroup.addUnstarted(ThreadGroup.java:843)
         at java.lang.Thread.init(Thread.java:348)
         at java.lang.Thread.<init>(Thread.java:608)
         at java.util.concurrent.Executors$DefaultThreadFactory.newThread(Executors.java:542)
         at java.util.concurrent.ThreadPoolExecutor.addThread(ThreadPoolExecutor.java:672)
         at java.util.concurrent.ThreadPoolExecutor.addIfUnderMaximumPoolSize(ThreadPoolExecutor.java:721)
         at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:657)
         at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:78)
         at org.netbeans.modules.j2ee.weblogic9.optional.WLStartServer.startDeploymentManager(WLStartServer.java:195)
         at org.netbeans.modules.j2ee.deployment.impl.ServerInstance._start(ServerInstance.java:1454)
         at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.startTarget(ServerInstance.java:1405)
         at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.startTarget(ServerInstance.java:1210)
         at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.start(ServerInstance.java:1087)
         at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.start(ServerInstance.java:1248)
         at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.getTargetMap(ServerInstance.java:548)
         at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.getTargets(ServerInstance.java:516)
         at org.netbeans.modules.j2ee.deployment.impl.DeploymentHelper.deployJdbcDrivers(DeploymentHelper.java:93)
         at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:180)
         ... 16 more
    BUILD FAILED (total time: 10 seconds)

    Are you using MS's XP OS?
    I had this exact same problem with XP home edition when I had it using FAT instead of NTFS. I converted to NTFS and all has been well ever since.

  • OIM: JSF / JPA in task adapter

    * Cross Posting from Weblogic Server server forum *
    Hello
    I have a JPA / JSF application that was written to assist with DB reads / writes. The java methods are called from OIM, as task adapters.
    If I run my application from within JDeveloper, all is well. Everything behaves as you'd expect.
    If I create a deployment profile and deploy to a jar file, everything works as well. In the jar, all of the classes, as well as the META-INF/persistence.xml file are included. Running the app with 'java -classpath .:/path/to/jar com.classname.method works as expected.
    If, however, I then copy the jar to the JavaTasks directory of WLS/OIM, and try and execute the method, I get the following error:
    Target Class = com.classname.method
    java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
         at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpCLASSNAME.METHOD(adpCLASSMETHOD.java:120)
         at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpCLASSMETHOD.implementation(adpCLASSMETHOD.java:62)
         at com.thortech.xl.client.events.tcBaseEvent.run(tcBaseEvent.java:196)
         at com.thortech.xl.dataobj.tcDataObj.runEvent(tcDataObj.java:2492)
         at com.thortech.xl.dataobj.tcScheduleItem.runMilestoneEvent(tcScheduleItem.java:2917)
         at com.thortech.xl.dataobj.tcScheduleItem.eventPostInsert(tcScheduleItem.java:547)
         at com.thortech.xl.dataobj.tcDataObj.insert(tcDataObj.java:602)
         at com.thortech.xl.dataobj.tcDataObj.save(tcDataObj.java:474)
         at com.thortech.xl.ejb.beansimpl.tcProvisioningOperationsBean.retryTasks(tcProvisioningOperationsBean.java:4042)
         at Thor.API.Operations.tcProvisioningOperationsIntfEJB.retryTasksx(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)
    Caused by: javax.persistence.PersistenceException: No Persistence provider for EntityManager named persistenceID: The following providers:
    org.eclipse.persistence.jpa.PersistenceProvider
    kodo.persistence.PersistenceProviderImpl
    org.apache.openjpa.persistence.PersistenceProviderImpl
    Returned null to createEntityManagerFactory.
    My persistence.xml file defines the persistenceID provider. It works fine if run from JDeveloper, or the command line. But, WLS/OIM cannot seem to find/parse the persistence.xml file when run as a task adapter.
    I have even created a DataSource within WLS, and tried to reference it that way (instead of directly via the jdbc drivers) with no luck.
    How do I get OIM to recognize the existence of the persistence.xml file in the META-INF directory of the jar that contains my classes? Do I have to add another persistence.xml file elsewhere in the WLS server to get it to be parsed?
    Thank you.

    It is there.
    Here is an extract from the persistence.xml file:
    <persistence-unit name="persistenceName">
    <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
    <jta-data-source>/jdbc/datasourceNameDS</jta-data-source>
    <class>...</class>
    <class>...</class>
    <class>...</class>
    <class>...</class>
    </persistence-unit>
    Thank you.

  • JSF + JPA in one project ( Eclipse IDE)

    Hi,
    I am trying to understand how to work with JPA in eclipse.
    when I open new project I can choose JSF project or JPA project. where is the logic in that?
    these are two different frameworks that suppose to work together at the same web application.
    How can I choose one if I need both?
    Please advise.

    MadUser wrote:
    r035198x,
    Are you sure? ..Yes. Think about it. A JSF expert does not have to be a domain objects expert.
    Splitting them up will stop you from mixing issues that should not be mixed. Your view should be replaceable without changing your model project.
    Different people with different expertise can work on these projects at the same time too. It's the right way to do it.
    Ultimately you will produce two separate files anyway, the jar file with the entities (and persistence.xml) and the war file for your web application.
    it sound too complex to handle two projects just for this...No it's not. You probably need a third project for your services layer and perhaps even a fourth for your service interfaces ...

  • What is the best practice to handle JPA methods in JSF app?

    I am building a JSF-JPA web app(No EJB).
    I have several methods that has JPA QL inside.
    Because I have to put those methods inside JSF beans to inject EntityManagerFactory (am I right about this?).
    And I do want to separate those methods from regular JSF beans which are used by page authors.
    And I may need to use them in different JSF managed beans.
    My question here is that what is the best practice to handle that?
    I. write a or a few separate JSF Beans and inject them into regular Beans?
    II. write a or a few separate JSF Beans and access them into regular Beans using FacesContext?
    III. others?
    Waiting to hear from you opinions.

    You can create named queries on your Entities themselves then just call entityMgr.createNamedQuery("nameOfQuery");
    Normally, we put these named queries in the class of the entity which will be returned. This allows for all information pertaining to a given entity and all ways of accessing that entity (except em.find() and stuff, of course) to be in one place. As long as the entity is defined in your persistence.xml file, any named queries which reside on that entity will be available through the EntityManager.
    As for the EntityManagerFactory, we normally create an application scope bean which holds the factory itself (because this is a heavy-weight object) and then just get all EntityManager instances from that by injecting this bean into whatever needs it. For example, I might have:
    //emfBB is the injected app scope bean which holds the entity manager factory.
    private EmfBB emfBB;
    private void lookupSomeData()
    EntityManager em = this.getEmfBB().getEmf()
    I hope this answered your question?
    ~Zack
    Edited by: zmarr on Nov 6, 2008 1:29 PM

  • Tutorial: Build a Web Application (JSF) Using JPA

    Hi,
    I am trying the subject tutorial at
    [http://www.oracle.com/technology/products/ias/toplink/jpa/tutorials/jsf-jpa-tutorial.html#CHDIIEHA]
    and it seems I have to install OC4J and TopLink JPA.
    I will appreciate if anyone explain me if it is necesary, and in case of it
    witch is the reasson.
    I have some configured enviroments to develop JEE 5. I am talking about Eclipse Galileo against JBoss
    and NetBeans 6.7.1 aginst glassfish v2ur2
    Thanking in advance,
    Jose

    You might want to ask your question in a JDeveloper/ADF forum. With JSF/JPA, the only reason for XE is to provide a JDBC Data Source, so this product is hardly used.
    Once you move to JSF, you are switching to a 3-tier (or n-tier) software model, and the middle of the tiers is OC4J. So you need to get that. And TopLink provides the connection to the database.

  • 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

  • JSFCRUD JPA app can't be deployed to another glassfish 2.1 server

    OK, my colleague wrote a JSF Crud app based on this tutorial:
    http://www.netbeans.org/kb/docs/web/jsf-jpa-crud-wizard.html
    It works fine when I build and run it on my sandbox app server, but when I try to deploy it to our company test app server, the server log complains that org.jnp.interfaces.NamingContextFactory cannot be instantiated because the class is not found (stack trace below). Using google, the only jar I can find that contains this class is in jbossclient-all.jar. I tried adding that to my project's libraries, but then it won't even run properly on my sandbox system. Anybody have any suggestions on an easy way to fix this or should I continue with re-writing it from scratch using Hibernate?
    [#|2009-09-25T15:33:40.422-0700|SEVERE|sun-appserver2.1|com.sun.org.apache.commons.modeler.Registry|_ThreadID=16;_ThreadName=Timer-8;_RequestID=02bcabab-8e86-48cc-a9c3-8342a1a72dd6;|Null component com.sun.appserv:type=JspMonitor,name=jsp,WebModule=//server/ClientPricing,J2EEApplication=null,J2EEServer=server|#]
    [#|2009-09-25T15:33:40.437-0700|SEVERE|sun-appserver2.1|javax.enterprise.system.container.web|_ThreadID=16;_ThreadName=Timer-8;_RequestID=02bcabab-8e86-48cc-a9c3-8342a1a72dd6;|WEB0123: WebModule [ClientPricing] failed to deploy and has been disabled
    java.lang.RuntimeException: java.lang.RuntimeException: javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory [Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory]
       at com.sun.enterprise.web.WebModuleListener.loadPersistenceUnits(WebModuleListener.java:193)
       at com.sun.enterprise.web.WebModuleListener.lifecycleEvent(WebModuleListener.java:168)
       at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:159)
       at org.apache.catalina.core.StandardContext.start(StandardContext.java:5224)
       at com.sun.enterprise.web.WebModule.start(WebModule.java:353)
       at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:989)
       at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:973)
       at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:704)
       at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1627)
       at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1232)
       at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:182)
       at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:278)
       at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:1005)
       at com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:992)
       at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:470)
       at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:182)
       at com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:308)
       at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:231)
       at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:298)
       at com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(ApplicationStartPhase.java:132)
       at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
       at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
       at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:280)
       at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:298)
       at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.deploy(ApplicationsConfigMBean.java:584)
       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:597)
       at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:381)
       at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:364)
       at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:477)
       at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
       at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
       at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:90)
       at $Proxy1.invoke(Unknown Source)
       at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:304)
       at com.sun.enterprise.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:174)
       at com.sun.enterprise.deployment.autodeploy.AutoDeployer.invokeDeploymentService(AutoDeployer.java:583)
       at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployJavaEEArchive(AutoDeployer.java:564)
       at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deploy(AutoDeployer.java:495)
       at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployAll(AutoDeployer.java:270)
       at com.sun.enterprise.deployment.autodeploy.AutoDeployControllerImpl$AutoDeployTask.run(AutoDeployControllerImpl.java:374)
       at java.util.TimerThread.mainLoop(Timer.java:512)
       at java.util.TimerThread.run(Timer.java:462)

    You can check to make sure that all of the required libraries were targeted to the managed servers as well as the admin server. Use the WLS administration console and look at the "deployments" link - check each library and view the targets for it.
    It sounds like perhaps the JRF libraries only are targeted to the AdminServer
    John

  • Jsf entity class support

    Support for Entity Classes with JSF
    http://netbeans.org/kb/docs/web/jsf-jpa-weblogic.html#02e
    can this be done in OEPE?

    Please check this 6 part tutorial:
    http://weblogic.sys-con.com/node/1297479
    http://java.sys-con.com/node/1308612
    http://weblogic.sys-con.com/node/1348972
    http://weblogic.sys-con.com/node/1469182
    http://java.sys-con.com/node/1469182
    http://java.sys-con.com/node/1557486
    OEPE can be configured to connect to database, generate
    JPA entities and ORM classes. Generating JSF pages is planned
    for coming releases.

  • How to use your own database with your users to authenticate in a Web app?

    Hello, everybody!
    I'm starting to write my first web application and I'm going to use JSF, JPA and EJB3 in this application. One of the first things that I have to do on it is the authentication part where I'll have a page with a user name and a password for the user to login. So, as I'm new to all this in Java (I've already implemented this on .NET in the past), I was studying the Java EE 5 Tutorial, especifically the section "Example: Using Form-Based Authentication with a JSP Page". But I saw that the users that the sample application uses come from the file realm on the Application Server. The users are created there and assigned a name, a password and a group. After the users are in the Application Server we can simply uses forms authentication declaratively in the deployment descriptor (web.xml).
    But the problem is that this doesn't work to me as I already have my own database with my users, so I want to use it instead of having to create the users on the Application Server.
    So, I'm asking you how to do that. Of course I'm not expecting that you place the code here to me as I know that such a thing could be complicated. Instead, I'm asking if you know about some tutorial, article, book or something that teaches how to do what I want. But I would like to see theses examples using JSF and/or EJB3 because these are the technologies that I'm using to develop. It's a pity that the Java EE 5 Tutorial doesn't have an example using a custom database as I know that this situation is very common in the majority of web sites.
    Thank you very much.
    Marcos

    From memory, it goes like this... You just create a
    raw jdbc connection on your user database using a
    special "login" DB user account, which has
    permissions only to an "authenticate" stored query,
    which accepts two arguments: username & password, and
    returns a boolean 0 or 1 rows found.When I implemented this in .NET's ASP.NET I had the same solution. I had an special user created in the database that I used to log in. When the real user entered his username and password I was already logged in and I had just to check his username and password agains the right table in my database.
    But that was only possible bacause when I connected to the database using my hidden user, I used the rights APIs in ASP.NET that coordinate the authentication process. This means that before login in, no one could access any resources (pages, atc...). So what I'm saying is that I can't manager this manually in Java. Java has to have some API or whatever to allow me to control the login process programmatically, while letting the Application Server control the access to the resources.

  • SQL Developer 4.0.0.13 and Oracle Cloud DB. Cart Access Issue (Unable to deploy in cloud).

    Hello,
    I asked for a trial account on 04/02 (this year) of the Oracle Cloud. I've been able to create a Cloud Connection in SQL Developer (I'm able to login with my oracle email with the "Service Instance URL"). I am able to see the 11 example tables (DEPT, EMP, and 9 DEMO_X tables).
    My data:
    SQL Developer 4.0.0.13
    DataCenter: US Commercial 2 (US Commercial - Chicago). I'm settled in México, at this moment I don't remember to have selected some DataCenter, but I got that one.
    Domain SFTP Host & Port: sftp.us2.cloud.oracle.com:22
    Domain SFTP User Name: USdddddd (changed here for example reasons)
    Service SFTP Host & Port: sftp.us2.cloud.oracle.com:22
    Service SFTP User Name: USssssss (changed here for example reasons)
    My problem. I cannot deploy on the cloud (via the Cart tool on SQL Developer).
    In chat support, I was told to check this site (1) Data Loading and the Oracle Database Cloud Service. It seems the steps are the same of this site (2) that I was following before Creating and Deploying JSF/JPA Applications to Oracle Cloud.
    My scenario is not according the tutorial. According to (1), the tutorial highlights the use of the user detailed as "Service SFTP User Name" (USssssss). The site says that if I click on that user, I should be able to reset its password on SFTP users. BUT, this user (USssssss, Service SFTP User Name) is NOT shown as it is explained, the user that is shown there is the one under "Domain SFTP information" (USdddddd, that is, the user that I should NOT use, according to that webpage).
    My user Service SFTP User is not shown in Security-SFTP Users. When I click the user name (USssssss), the site takes you to the Security tab, and SFTP Users sub tab. I notice that my Service SFTP User Name (USssssss) appears in Security tab, but it appears under "Users" sub tab, NOT on "SFTP Users" sub tab. Also, if I try to reset the Service SFTP User password (in Users sub tab), the site says "Oracle Cloud will send an email with a temporary password to USssssss USssssss." It does not ask me to write the new password (SFTP Users sub tab works fine, asking me a password for USdddddd).
    Anyway, in SQL Developer, I made several tests in the Cart, testing either the Service and also the Domain users, port 22 and 2222. None of them worked. The message I get is:
    Unable to connect to sftp server with provided details.
    I've also tried to access the sftp url with Putty, PSFTP, and Filezilla. From those three apps, the sftp url gives me timeout (either on port 22, or 2222). But if ping that url, I got a response back.
    So I'm not sure where is the problem. Is it the url? Is it the port? Is it the Service SFTP User? All of them?
    Any comment, is very welcome.
    P.S. It will be nice to have a "posted date" for each tutorial and perhaps identify the Cloud version that is being explained (the Oracle cloud is growing fast, perhaps the tutorials will be deprecated soon).

    Hi Gustavo,
    It appears your Service SFTP user was not created correctly. Please contact support and mention the fact that your Service SFTP user appears on Security/Users tab and not on Security/SFTP Users tab.
    Vlad

  • Is there any JavaEE sample application somewhere which can be runnable by Weblogic server ?

    Is there any JavaEE sample application somewhere which can be runnable by Weblogic server ?
    I would like to learn how JavaEE application and framework work on Weblogic.
    Or is there any e-learnign seminar or how to video ?

    Is Google broken for you?
    Just search for them (e.g. 'weblogic java ee tutorial') and you will find more than you can use.
    https://netbeans.org/kb/docs/web/jsf-jpa-weblogic.html
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/jdev/obe11jdev/11/oepe11g/introeclipseide.htm

  • Can be toplink-essentials.jar and toplink-essentials-agent.jar shared ?

    I have 2 apps, A and B, toplink-essentials.jar and toplink-essentials-agent.jar are not in their war /lib directory. It is in /common/lib (Tomcat 5.5) or /toplink/jlib (OC4J 10.1.3.2.0).
    First I deploy and run A - it works, then I deploy and run B - it fails with exception: No Persistence provider for EntityManager named ...
    When I do it in opposite sequence, B works ok, A fails.
    When I add toplink-essentials.jar and toplink-essentials-agent.jar into war /lib, both works OK, but only on Tomcat. On OC4J not. Itried to add orion-web.xml
    <orion-web-app>
    <web-app-class-loader search-local-classes-first="true"/>
    </orion-web-app>
    but without success. Second application still failed.
    Can be toplink jars shared between applications ?
    Tested with build 41
    Lumir

    Note: The agent JAR is only needed when starting a
    client outside the container.Yes, I kow it - but I am confused, that OC4J /toplink/jlib contain agent, and tutorial at
    http://www.oracle.com/technology/products/ias/toplink/jpa/examples/jsf-jpa-example.html#CHDDIFII
    also say: Add toplink-essentials.jar and toplink-essentials-agent.jar to <EXAMPLE_HOME>\lib.
    Is there any more information in the stack trace that
    might help figure out why the second persistence unit
    cannot be initialized?javax.persistence.PersistenceException: No Persistence provider for EntityManager named xxx
    at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:55)
    at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:33)
    Are you setting up any TopLink session configuration
    properties in your persistence unit (i.e.
    toplink.session-name)?No. I have only session customizer, that does following in customize()
    JNDIConnector connector = (JNDIConnector) session.getLogin().getConnector();
    connector.setLookupType(JNDIConnector.STRING_LOOKUP);          
    session.getLogin().setTableQualifier(schema);
    Bye,
    Lumir

  • CSS not rendering at all

    Hi everyone,
    When explicitly calling my page I can access and see my jsf page with full CSS rendered,
    Where as in portlet in webcenter spaces the CSS is not at all rendering.
    Please tell me how to render CSS in spaces ?
    With Regards,
    KSD

    Hi,
    The Details are as below :
    Version Details_
    Oracle JDeveloper 11g Release 1 11.1.1.2.0,
    Studio Edition Version 11.1.1.2.0,
    Build JDEVADF_11.1.1.2.0_GENERIC_091029.2229.5536
    Copyright © 1997, 2009 Oracle and/or its affiliates. All rights reserved.
    IDE Version: 11.1.1.2.36.55.36,
    Product ID: oracle.jdeveloper
    Product Version: 11.1.1.2.36.55.36
    WebCenter Spaces : Version 11.1.1.2.0 (Build 11.1.1.2.0100510.1800)
    Component     Version
    =========     =======
    ADF Business Components     11.1.1.55.36
    Java(TM) Platform     1.6.0_18
    Oracle IDE     11.1.1.2.36.55.36
    Versioning Support     11.1.1.2.36.55.36
    ScreenShots* :
    Spaces Portal : http://img825.imageshack.us/i/screenshot1lu.jpg/
    JSF Page : http://img215.imageshack.us/i/screenshot1fv.png/
    I don't have trinidad-skins.xml but I have trinidad-config.xml and its Contents are* :
    <?xml version="1.0" encoding="UTF-8"?>
    <trinidad-config xmlns="http://myfaces.apache.org/trinidad/config">
    <skin-family>fusion</skin-family>
    </trinidad-config>
    I have given above all the version details, screenshots and xml content also.
    Please provide me your suggestions.
    Thanks & Regards
    KSD

Maybe you are looking for

  • HT4528 How to unlock my iphone if I locked it?

    I set a lock on my iphone and I don't remember my password. How do I get it to unlock?

  • My Visit to Oracle Developer Forum 2006, India Photos !!

    Last week 11th May, I attended the Oracle Developer Forum held in Chennai. The presentations gave us insights into Oracle Database 10g Express, Oracle JDeveloper, Oracle SQL Developer, SOA, Rapid J2EE Application Development with Oracle Application E

  • How to know whether a method is thread-safe through the java-doc?

    In some book, it says that SAXParserFactory.newSAXParser() is thread-safe,but in the java-doc,it doesn't say that. newSAXParser public abstract SAXParser newSAXParser() throws ParserConfigurationException, SAXExceptionCreates a new instance of a SAXP

  • Settlement Rule in Networks

    Hi Friends, I'm trying to create settlement rules for networks in CJ20N and facing issues. I have projects with WBS elements, networks, and activitieis (standard projects). System is allowing to maintain dettlement rules for WBS elements, but not for

  • Applicate Remote EJB Client

    Hello, I am getting to know EJB and have started with it from a Pocket Book and has started to implement and example suggested by this website: http://www.laliluna.de/articles/ejb-3-tutorial-jboss.html. Coming to the client part, maybe incorrectly by