EJB 3.0 integration with JSF

Hi,
I have some problem in integrating EJB into JSF.
I have Entity class Car.java
And Session CarSessionBean.java which implements @Local and @Remote interfaces.
Than i have BackingBean.java which i am trying to integrate into JSF.
When I am running the program i got following error:
JSF1001: Managedbean backBean could not be created.
executePhase(RENDER_RESPONSE 6,com.sun.faces.context.FacesContextImpl@234ab7) threw exception
javax.faces.FacesException: javax.faces.FacesException: com.sun.enterprise.InjectionException: Exception attempting to inject Resolved Ejb-Ref jsfpack.BackingBean/carSession@jndi:  - > CarSessionBean into class jsfpack.BackingBean
        at com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:521)
        at com.sun.faces.el.ManagedBeanELResolver.getValue(ManagedBeanELResolver.java:82)
        at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)
        at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:62)
        at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:65)
        at com.sun.el.parser.AstValue.getValue(AstValue.java:106)
        at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
        at javax.faces.component.UIData.getValue(UIData.java:582)
        at javax.faces.component.UIData.getDataModel(UIData.java:1061)
        at javax.faces.component.UIData.setRowIndex(UIData.java:417)
        at com.sun.faces.renderkit.html_basic.TableRenderer.encodeBegin(TableRenderer.java:85)
        at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:810)
        at javax.faces.component.UIData.encodeBegin(UIData.java:878)
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:881)
        at javax.faces.render.Renderer.encodeChildren(Renderer.java:137)
        at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:828)
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:883)
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:889)
        at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:271)
        at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:182)
        at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:133)
        at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:244)
        at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
        at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
        at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
        at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
        at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
        at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)
        at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
        at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
        at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
        at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
        at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
        at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
        at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
Caused by: javax.faces.FacesException: com.sun.enterprise.InjectionException: Exception attempting to inject Resolved Ejb-Ref jsfpack.BackingBean/carSession@jndi:  - > CarSessionBean into class jsfpack.BackingBean
        at com.sun.faces.config.ManagedBeanFactoryImpl.newInstance(ManagedBeanFactoryImpl.java:325)
        at com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:510)
        ... 47 more
Caused by: com.sun.enterprise.InjectionException: Exception attempting to inject Resolved Ejb-Ref jsfpack.BackingBean/carSession@jndi:  - > CarSessionBean into class jsfpack.BackingBean
        at com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:373)
        at com.sun.enterprise.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:193)
        at com.sun.enterprise.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:87)
        at com.sun.faces.vendor.GlassFishInjectionProvider.inject(GlassFishInjectionProvider.java:65)
        at com.sun.faces.config.ManagedBeanFactoryImpl.newInstance(ManagedBeanFactoryImpl.java:312)
        ... 48 more
Caused by: com.sun.enterprise.InjectionException: Illegal use of static field private static car.session.CarSessionLocal jsfpack.BackingBean.carSession on class that only supports instance-based injection
        at com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:292)
        ... 52 more
StandardWrapperValve[Faces Servlet]: Servlet.service() for servlet Faces Servlet threw exception
com.sun.enterprise.InjectionException: Illegal use of static field private static car.session.CarSessionLocal jsfpack.BackingBean.carSession on class that only supports instance-based injection
        at com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:292)
        at com.sun.enterprise.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:193)
        at com.sun.enterprise.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:87)
        at com.sun.faces.vendor.GlassFishInjectionProvider.inject(GlassFishInjectionProvider.java:65)
        at com.sun.faces.config.ManagedBeanFactoryImpl.newInstance(ManagedBeanFactoryImpl.java:312)
        at com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:510)
        at com.sun.faces.el.ManagedBeanELResolver.getValue(ManagedBeanELResolver.java:82)
        at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)
        at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:62)
        at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:65)
        at com.sun.el.parser.AstValue.getValue(AstValue.java:106)
        at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
        at javax.faces.component.UIData.getValue(UIData.java:582)
        at javax.faces.component.UIData.getDataModel(UIData.java:1061)
        at javax.faces.component.UIData.setRowIndex(UIData.java:417)
        at com.sun.faces.renderkit.html_basic.TableRenderer.encodeBegin(TableRenderer.java:85)
        at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:810)
        at javax.faces.component.UIData.encodeBegin(UIData.java:878)
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:881)
        at javax.faces.render.Renderer.encodeChildren(Renderer.java:137)
        at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:828)
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:883)
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:889)
        at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:271)
        at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:182)
        at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:133)
        at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:244)
        at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
        at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
        at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
        at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
        at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
        at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)
        at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
        at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
        at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
        at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
        at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
        at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
        at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)This is my BackingBean.java source:
package jsfpack;
import car.session.CarSessionLocal;
import java.util.List;
import javax.ejb.EJB;
import javax.naming.InitialContext;
public class BackingBean {
    @EJB
    private static CarSessionLocal carSession;
    private List all;
       /** Creates a new instance of BackingBean */
    public BackingBean() {
       public List getAll() {
        if( all == null)
            all=carSession.queryCarFindAll();
        return all;     
    public void setAll(List all) {
        this.all = all;
    }Where i am doing wrong?
Thank you.

caused by: com.sun.enterprise.InjectionException: Illegal use of static field private static car.session.CarSessionLocal jsfpack.BackingBean.carSession on class that only supports instance-based injectionat com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:292)
... 52 more
StandardWrapperValve[Faces Servlet]: Servlet.service() for servlet Faces Servlet threw exception
com.sun.enterprise.InjectionException: Illegal use of static field private static car.session.CarSessionLocal jsfpack.BackingBean.carSession on class that only supports instance-based injectionInjected fields in server-side components should never be marked static. static is only used for
the main class of Application Client components.

Similar Messages

  • Dojo integration with JSF

    Hello Friends,
    Is there any docs regarding the integration of Dojo with JSF ? Or can somebody please explain it here ?
    Thank you.
    Sudheer Palaparambil

    Not sure which part of Dojo you're interested in. Some components (such as Woodstock) make use of Dojo for their JSF components (https://woodstock.dev.java.net). If you're just looking for XHR functionality, you might look at Ajax4JSF or Dyna-Faces (https://ajax4jsf.dev.java.net or https://jsf-extensions.dev.java.net), although I don't think either one use Dojo for this. jMaki does a very nice job at wrapping JS widgets (such as those provided by Dojo), jMaki has support for JSF, PHP, JSP and more. It also abstracts the model for trees, tables, RSS, and more so that you can swap out JS widgets without changing your code.
    Good luck,
    Ken Paulsen
    https://jsftemplating.dev.java.net

  • Any CRUD example starting with Hibernate+MySQL +Tomcat  with JSF  ??

    Hi,
    I am eager to learn Hibernate integrated with JSF and work on it.
    Kindly let me have any CREATE - REMOVE - UPDATE - DELETE example.
    ex. employee , users etc etc...
    If any good material or link to start with this. USING DAO pattern please let me know.
    I need your help.
    Thanks
    Ghanshyam

    Ghanshyam,
    Go to the following URL http://www.jsftutorials.net/
    you will find some good examples there.

  • EJB 3.0 integration in FDS, with Annotations

    We have been working with the EJB 3.0 implementations and see
    a lot of synergy between the new approach to enterprise Java with
    this new specification, and would love to see FDS add an adaptor to
    support it.
    Our new entity/session beans have annotated relationships,
    primary key information, and security regarding access to the
    object and it's methods are specified already in the Java source.
    Centralized management of this information where it is closest to
    the source is highly productive.
    With so much of the FDS configuration still sitting in static
    XML files, we are required to maintain a redundant copy of all of
    the annotation information separately. This adds pure overhead to
    the development process, and it is challenging to keep the two in
    sync when applications are enhanced.
    We would like to see the FDS framework more tightly
    integrated with the rest of the J2EE world, and through Java
    introspection and annotations learn about the applications
    available on the server side without custom config files.
    The fill, assembler, and synchronization methods could simply
    be a standard class interface to be implemented with methods to
    override, or even annotated with flex annotations. Destinations
    would no longer need to be hand-configured. The meta-data about row
    identity would be read from the entity beans themselves. If a fill
    method has parameters, read them from the function prototypes.
    (The existing Flash remoting product seems to have the above
    features. We enjoy the integration of Flash Remoting, and the
    development workflow associated. The Flash client only needs the
    JNDI name of the services, and once authenticated, access to any
    function is possible without further action. FDS goes above and
    beyond to provide several very interesting features, but is not
    quite as intuitive when it comes to J2EE services.)
    To tie this meta-information on the server back to the IDE
    for visual design, using real server-side object properties and
    methods, and session bean functions would close the loop on the
    development cycle. This could also be accomplished within Eclipse
    since the server side Java classes could easily be in the
    classpath. The IDE could give the developer a hand in choosing and
    referencing valid return object properties. An actionscript object
    could even be generated if necessary from the entity bean's
    properties...
    Are any of these ideas in the works, or are there any
    exisiting methods for accomplishing these efficiencies?

    caused by: com.sun.enterprise.InjectionException: Illegal use of static field private static car.session.CarSessionLocal jsfpack.BackingBean.carSession on class that only supports instance-based injectionat com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:292)
    ... 52 more
    StandardWrapperValve[Faces Servlet]: Servlet.service() for servlet Faces Servlet threw exception
    com.sun.enterprise.InjectionException: Illegal use of static field private static car.session.CarSessionLocal jsfpack.BackingBean.carSession on class that only supports instance-based injectionInjected fields in server-side components should never be marked static. static is only used for
    the main class of Application Client components.

  • JSF integration with Webwork and Freemarker ?

    My company is investing a lot in an application that uses Webwork and Freemarker. I'd like to reuse chunks of that but with JSF components for new development. I know it's possible to link to and from external URLs using JSF's navigation, but I don't think that buys me much in this case. Is it possible to use the JSF View (as in Model-View-Controller) with someone else's (Webwork's) front controller? I'm guessing JSF can coexist with Freemarker as it does with JSP and HTML. Or, does anyone know of any successful approach to Webwork integration anywhere?
    thx!

    My company is investing a lot in an application that uses Webwork and Freemarker. I'd like to reuse chunks of that but with JSF components for new development. I know it's possible to link to and from external URLs using JSF's navigation, but I don't think that buys me much in this case. Is it possible to use the JSF View (as in Model-View-Controller) with someone else's (Webwork's) front controller? I'm guessing JSF can coexist with Freemarker as it does with JSP and HTML. Or, does anyone know of any successful approach to Webwork integration anywhere?
    thx!

  • Integration with Websphere 5.0 (EJB 2.0) problems

    Hello all,
    Although a bit new to JDO, I have been trying to integrate Kodo 2.4 with
    Websphere 5.0 (using EJB 2.0).
    I have been basically binding a PersistenceManagerFactory into JNDI via
    start-up servlet, however got the exception bellow when I tried to create
    PersistenceManagerFactory (in setSessionContext of the EJB).
    <i>JDOFatalInternalException: Could not perform automatic lookup of EJB
    container's javax.transaction.TransactionManager implementation. Please ensure
    that you are running the application from within an <b>EJB 1.1</b> compliant
    EJB container, and then set the
    com.solarmetric.kodo.ee.ManagedRuntimeProperties property to the appropriate
    value to obtain the TransactionManager.</i>
    The reference to EJB 1.1 actually scared me a bit. Does this imply that
    Kodo (2.4) does not support J2EE 1.3?
    Would you know how to set the
    com.solarmetric.kodo.ee.ManagedRuntimeProperties to make it work with WSAD
    5.0?
    Thank you,
    Petr

    Petr-
    Is the integration with Websphere 5.0 application server officially
    supported? Has anobody (that you know of) done it successfully yet?Yes, we do have reports of people using Kodo successfully from within
    Websphere. However, it should be noted that it is not as rigorously
    tested internally at SolarMetric as some other application servers (E.g.,
    JBoss and WebLogic). In short, integration is known to work, but it
    might be a little more rough around the edges than for other application
    servers (as shown in our misspelling of Websphere's TransactionManager
    implementation name).
    How do I tell Kodo to use existing Datasource managed by app server?You can have Kodo use a named DataSource by specifying the
    javax.jdo.option.ConnectionFactoryName property (see
    http://www.solarmetric.com/docs/2.4.0/docs/manual.html#javax.jdo.option.ConnectionFactoryName).
    This is often more appropriate for applications server usage, since it
    allows you to configure pooling and other information from within the
    application server's centralized configuration.
    javax.jdo.option.ConnectionDriverName=COM.ibm.db2.jdbc.app.DB2Driver
    javax.jdo.option.ConnectionURL=jdbc:db2:snetWhat kind of driver is COM.ibm.db2.jdbc.app.DB2Driver? The DB2
    configuration we use for testing with IBM's drivers is:
    javax.jdo.option.ConnectionDriverName=COM.ibm.db2.jdbc.net.DB2Driver
    javax.jdo.option.ConnectionURL=jdbc:db2://SERVER_NAME/DATABASE_NAME
    They shouldn't behave differently (I am guessing that the app driver is
    a type 2 driver or something), but it might be worth a shot to try using
    the net driver. If this fixes the problem, please let us know, because
    it will indicate that Kodo has a deficiency with one of IBM's drivers
    that we should look into resolving.
    Since I have been trying to integrate with App server, this is the
    initialization code that I use to bind PersistenceManagerFactory to JNDI.
    You may find some funny stuff there.The binding code looks fine, and you are obviously able to retrive the
    PM and start persistence operations. Note that you should also be able
    to deploy Kodo as a Resource Adapter (which allows Kodo configuration
    through the centralized Websphere configuration interface). However, I
    doubt this is part of the issue.
    So, in short, I recommend trying the following things:
    1. Using the ConnectionFactoryName to use the DataSource defined for the
    appserver, on the off chance this will fix it.
    2. Using the net driver instead of the app driver.
    3. Seeing if it will work with javax.jdo.option.Optimistic set to false
    If none of these work, please let us know, and we will continue to
    investigate other possible solutions.
    In article <[email protected]>, Petr Bulanek wrote:
    Hello Marc,
    Very good guess. Pretty much the same code worked well without App server.
    In that case, there obviously was no magic related to
    TransactionManagerFactory initialization (see bellow).
    Is the integration with Websphere 5.0 application server officially
    supported? Has anobody (that you know of) done it successfully yet?
    How do I tell Kodo to use existing Datasource managed by app server?
    Here is the basic configuration (URL, class, etc):
    javax.jdo.PersistenceManagerFactoryClass=com.solarmetric.kodo.impl.jdbc.JDBCPersistenceManagerFactory
    javax.jdo.option.ConnectionDriverName=COM.ibm.db2.jdbc.app.DB2Driver
    javax.jdo.option.ConnectionURL=jdbc:db2:snet
    javax.jdo.option.Optimistic=true
    javax.jdo.option.RetainValues=true
    javax.jdo.option.NontransactionalRead=true
    We use DB2 Version 7.2/Version 7.1 FixPak 3 for Windows, in case it helps.
    Since I have been trying to integrate with App server, this is the
    initialization code that I use to bind PersistenceManagerFactory to JNDI.
    You may find some funny stuff there.
    The new EESimpleConfiguration(true) construct seems to (by default) read
    the kodo.properties file that is part of the project.
    EEConfiguration conf = new EESimpleConfiguration(true);
    conf.setManagedRuntimeProperties(\"TransactionManagerMethod=com.ibm.ejs.jts.jta.TransactionManagerFactory.getTransactionManager\");
    conf.setManagedRuntimeClass(\"com.solarmetric.kodo.ee.InvocationManagedRuntime\");
    EEPersistenceManagerFactory pmf =
                        new EEPersistenceManagerFactory(conf);
    InitialContext ic = new InitialContext();
    ic.rebind(\"KodoPMF\", pmf);
    Thank you,
    Petr
    Marc Prud\'hommeaux wrote:
    Petr-
    It looks like DB2 doesn\'t like our attempt to close the connection
    without a rollback or commit. This is odd, since we have never
    seen this happen in our stand-alone DB2 tests. Can you let us know
    the connection details (driver, connectionURL, etc)?
    In the meantime, one possible workaround may be to turn off
    optimistic transactions (since this will cause the PM to
    only use a single Connection); can you try to specify:
    javax.jdo.option.Optimistic=false
    Also, have you tried to run this code in a non-managed environment
    (e.g., outside the application server)? I would be interested
    to know if it is related to running within an appserver.
    In article <[email protected]>, Petr Bulanek wrote:
    Hi Abe,
    Thank you for a speedo reply. You guys really are on the ball!!!
    As you suggested, the
    \\\'com.ibm.ejs.jts.jta.TransactionManagerFactory.getTransactionManager\\\'
    did the job (for others, please note that the proper package name should
    contain \\\'jts.jta\\\', not \\\'jts.jts\\\').
    Unfortunately, I got another problem. When running a method containing
    query (code bellow),
    I get SQLException complaining about \\\'Invalid transaction state\\\'.
    The method that executes the query is a stateless transactional Session
    bean.
    Thank you for your help,
    Petr
    --------------------------- DB2 - transaction state description
    CLI0116E Invalid transaction state.
    Explanation: There was a transaction in progress when SQLDisconnect was
    called.
    User Response: Call SQLTransact before calling SQLDisconnect.
    --------------------------- Exception ------------------------------------
    [2/01/03 16:34:19:050 EST] 563ddb8a SQL I
    com.solarmetric.kodo.impl.jdbc.SQL [ C:336042896; T:1446894474;
    D:118283149 ] preparing statement <369367952>: SELECT DISTINCT
    PARENTX.JDOCLASSX FROM PARENTX
    [2/01/03 16:34:19:050 EST] 563ddb8a SQL I
    com.solarmetric.kodo.impl.jdbc.SQL [ C:336042896; T:1446894474;
    D:118283149 ] executing statement <369367952>: [reused=1;params={}]
    [2/01/03 16:34:19:061 EST] 563ddb8a JDBC I
    com.solarmetric.kodo.impl.jdbc.JDBC [ C:336042896; T:1446894474;
    D:118283149 ] close:
    com.solarmetric.datasource.PoolConnection@14079b90[[requests=6;size=6;max=70;hits=0;created=6;redundant=0;overflow=0;new=6;leaked=0;unavailable=0]]
    [2/01/03 16:34:19:061 EST] 563ddb8a JDBC I
    com.solarmetric.kodo.impl.jdbc.JDBC [ C:336042896; T:1446894474;
    D:118283149 ] close connection
    [2/01/03 16:34:19:061 EST] 563ddb8a JDBC W
    com.solarmetric.kodo.impl.jdbc.JDBC [ C:null; T:1446894474; D:118283149 ]
    exception when closing connection
    [2/01/03 16:34:19:541 EST] 563ddb8a JDBC W
    com.solarmetric.kodo.impl.jdbc.JDBC TRAS0014I: The following exception
    was logged COM.ibm.db2.jdbc.DB2Exception: [IBM][CLI Driver] CLI0116E
    Invalid transaction state. SQLSTATE=25000
    atcom.solarmetric.datasource.ConnectionWrapper.close(ConnectionWrapper.java:243)
    atcom.solarmetric.datasource.DataSourceImpl$AbstractPool.close(DataSourceImpl.java:690)
    atcom.solarmetric.datasource.DataSourceImpl.close(DataSourceImpl.java:373)
    atcom.solarmetric.datasource.DataSourceImpl.close(DataSourceImpl.java:347)
    at com.solarmetric.datasource.PoolConnection.close(PoolConnection.java:70)
    atcom.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.close(SQLExecutionManagerImpl.java:885)
    atcom.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.release(JDBCStoreManager.java:654)
    atcom.solarmetric.kodo.impl.jdbc.ormapping.SubclassProviderImpl.getSubclasses(SubclassProviderImpl.java:274)
    atcom.solarmetric.kodo.impl.jdbc.ormapping.ClassMapping.addSubclassConditions(ClassMapping.java:1239)
    atcom.solarmetric.kodo.impl.jdbc.ormapping.ClassMapping.selectPrimaryMappings(ClassMapping.java:1218)
    atcom.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.executeQuery(JDBCStoreManager.java:717)
    atcom.solarmetric.kodo.impl.jdbc.runtime.JDBCQuery.executeQuery(JDBCQuery.java:92)
    at com.solarmetric.kodo.query.QueryImpl.executeWithMap(QueryImpl.java:792)
    atcom.solarmetric.kodo.query.QueryImpl.executeWithArray(QueryImpl.java:668)
    at com.solarmetric.kodo.query.QueryImpl.execute(QueryImpl.java:609)
    at com.testkodo.ejb.ControllerBean.observeHumans(ControllerBean.java:66)
    --------------------------- Failing code sample
    try {
                   PersistenceManager pm = factory.getPersistenceManager();
                   Extent ex = pm.getExtent(Parent.class, false);
                   Query q = pm.newQuery(ex, \\\"name==parName\\\");
                   q.declareParameters(\\\"String parName\\\");
                   Collection col = (Collection) q.execute(\\\"James\\\");
                   Iterator iter = col.iterator();
                   Parent pp;
                   Collection ch;
                   while (iter.hasNext()) {
                        pp = (Parent) iter.next();
                        System.out.println(pp);
                        ch = pp.getChildren();
                        Iterator it= ch.iterator();
                        while (it.hasNext()) {
                             System.out.println(it.next());
                   q.closeAll();
                   pm.close();
              } catch (Exception e) {
                   System.out.println(e);
                   throw new EJBException(e);
    Abe White wrote:
    The reference to EJB 1.1 actually scared me a bit. Does this imply that
    Kodo (2.4) does not support J2EE 1.3?
    EJB 2.0 is also supported. Sorry for the confusing error message.
    Would you know how to set the
    com.solarmetric.kodo.ee.ManagedRuntimeProperties to make it work with
    WSAD
    5.0?
    Try these settings:
    com.solarmetric.kodo.ee.ManagedRuntimeClass=\\\\
         com.solarmetric.kodo.ee.InvocationManagedRuntime
    com.solarmetric.kodo.ee.ManagedRuntimeProperties=\\\\
         TransactionManagerMethod=\\\\
         com.ibm.ejs.jts.jts.TransactionManagerFactory.getTransactionManager
    Marc Prud\'hommeaux [email protected]
    SolarMetric Inc. http://www.solarmetric.com

  • JSF output truncated when integrating with OpenCms

    Hi all!
    I'm quite new to JSF and am trying to integrate it with OpenCms, a JSP based content management system. In OpenCms all files reside in a virtual filesystem (VFS) and are accessed through the opencms-servlet which is mapped to "/opencms/*".
    While trying to integrate JSF with OpenCms I added another prefix servlet mapping for the faces servlet: "/faces/*". When I now try to access a JSF-page I have to use a URL like this:
    http://myserver:8080/mywebapp/faces/opencms/page1.jsp
    For my understanding the faces servlet now tries to read a file /opencms/page1.jsp from the real filesystem, which does not exist. Is this correct? How could I get faces-servlet to obtain page1.jsp from the VFS? However, I do not get an exception or a message telling me that the resource page1.jsp is missing.
    Instead the faces-servlet seems to do it's work and forwards to the opencms-servlet which in turn forwards to the JSP-servlet and processes the JSP. I'm sure the whole JSP is processed as I added log-statements from the beginning to the end, of which all are executed. However, the output of the JSP is truncated whenever there exists at least one JSF tag in the page.
    Any ideas what's going wrong here?
    Is my understanding of the executing order correct?
    many thanks in advance for your help,
    - martin

    Hi!
    Working with JSF 1.1 works, but now I want to switch to JSF 1.2, which does not work :-(
    I have a simple demo application (webapp 2.4 and webapp 2.5) without OpenCms which works. OpenCms 7.0.2 without JSF works as a 2.4 and as a 2.5 webapp. As soon as I want to access a JSF-page with an URL like http://localhost:8080/opencms-7.0.24/faces/opencms/mypage.jsp I get only truncated output like the following:
    <form id="j_id_jsp_2033902881_1" name="j_id_
    {code}
    Any Ideas what could cause the truncation?
    There are now log messages and no exceptions in any logfile :-(
    tia,
    - martin                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • JSF 1.1 integration with shale-tiles-1.0.4 giving page cannot be displayed

    I am trying to get shale-tiles-1.0.4 work with JSF 1.1
    I am getting the page can not be displayed error.
    The page cannot be displayed
    There is a problem with the page you are trying to reach and it cannot be displayed.
    Please try the following:
    Open the 10.21.31.170:8988 home page, and then look for links to the information you want.
    Click the Refresh button, or try again later.
    Click Search to look for information on the Internet.
    You can also see a list of related sites.
    HTTP 500 - Internal server error
    Internet Explorer
    These are the steps I have followed
    I have included shale-core-1.0.4.jar and shale-tiles-1.0.4.jar in /WEB-INF/lib
    I have included the following entry in web.xml
    <servlet>
    <servlet-name>Tiles Servlet</servlet-name>
    <servlet-class>org.apache.tiles.servlets.TilesServlet;/servlet-class>
    <init-param>
    <param-name>definitions-config</param-name>
    <param-value>/WEB-INF/tiles-defs.xml;/param-value>
    </init-param>
    <load-on-startup>3</load-on-startup>
    </servlet>
    <context-param>
    <param-name>definitions-config</param-name>
    <param-value>/WEB-INF/tiles-defs.xml;/param-value>
    </context-param>
    <listener>
    <listener-class>
    org.apache.tiles.listener.TilesListener
    </listener-class>
    </listener>
    My tiles-defs.xml:
    <tiles-definitions>
    <definition name="/siteMainLayout" path="/tiles/layout.jsp";>
    <put name="header" value="/tiles/header.jsp";/>
    <put name="menu" value="/tiles/menu.jsp";/>
    <put name="content" value=""/>
    </definition>
    <definition name="/systemLogon" extends="/siteMainLayout">
    <put name="content" type="template" value="/welcome.jsp";/>
    </definition>
    <definition name="/systemChangePwd" extends="/siteMainLayout">
    <put name="content" type="template" value="/application/changePassword.jsp";/>
    </definition>
    <definition name="/systemMain" extends="/siteMainLayout">
    <put name="content" type="template" value="/application/mainPage.jsp";/>
    </definition>
    <definition name="/systemFailue" extends="/siteMainLayout">
    <put name="content" type="template" value="/failue.jsp";/>
    </definition>
    <definition name="/systemMain" extends="/siteMainLayout">
    <put name="content" type="template" value="/application/mainPage.jsp";/>
    </definition>
    <definition name="/systemCancel" extends="/siteMainLayout">
    <put name="content" type="template" value="/application/Misc.jsp";/>
    </definition>
    </tiles-definitions>
    My layout.jsp:
    <%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles"%>
    <h:panelGrid columns="2">
    <f:facet name="header">
    <f:subview id="header">
    <tiles:insert name="header" flush="false"/>
    </f:subview>
    </f:facet>
    <f:subview id="menu">
    <tiles:insert name="menu" flush="false"/>
    </f:subview>
    <f:subview id="content">
    <tiles:insert name="content" flush="false"/>
    </f:subview>
    </h:panelGrid>
    My faces-config.xml:
    <faces-config xmlns="http://java.sun.com/JSF/Configuration">
    <managed-bean>
    <managed-bean-name>backing_Welcome</managed-bean-name>
    <managed-bean-class>state.mn.mdh.mrc.login.Welcome;/managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    <!--oracle-jdev-comment:managed-bean-jsp-link:1Welcome.jspx-->
    </managed-bean>
    <application>
    <view-handler>
    org.apache.shale.tiles.TilesViewHandler
    </view-handler>
    </application>
    <navigation-rule>
    <from-view-id>/systemLogon.jsp;/from-view-id>
    <navigation-case>
    <from-outcome>ChangePassword</from-outcome>
    <to-view-id>/systemChangePwd</to-view-id>
    <redirect/>
    </navigation-case>
    <navigation-case>
    <from-outcome>LoginSuccess</from-outcome>
    <to-view-id>/systemMain</to-view-id>
    <redirect/>
    </navigation-case>
    <navigation-case>
    <from-outcome>Others</from-outcome>
    <to-view-id>/systemCancel</to-view-id>
    <redirect/>
    </navigation-case>
    <navigation-case>
    <from-outcome>Failure</from-outcome>
    <to-view-id>/systemFailue</to-view-id>
    <redirect/>
    </navigation-case>
    </navigation-rule>
    My systemLogon.jsp:
    <%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles"%>
    <html>
    <f:view>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
    <title>System Logon</title>
    </head>
    <body>
    <f:subview id="content">
    <h:form>
    <tiles:insert name="content" flush="false">
    </tiles:insert>
    </h:form>
    </f:subview>
    </body>
    </f:view>
    </html>
    The url I am trying is http://10.21.31.170:8988/Test-ViewController-context-root/faces/systemLogon.jsp
    Please assist in what I am missing.
    Thanks,
    Ambika

    Hi
    I do not see any error messages on the application server log except the server initialized message( I have included that at the end)
    But when I run the application in Firefox browser it gives me this error,
    Error instantiating web-application
    Error loading listener 'org.apache.tiles.listener.TilesListener', class not found
    When I removed the <listener> entry from web.xml and get the error,
    Error instantiating web-application
    Error instantiate servlet classes
    The message in Jdeveloper is:
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    C:\jdevstudio10133\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\config>
    C:\jdevstudio10133\jdk\bin\javaw.exe -client -classpath C:\jdevstudio10133\j2ee\home\oc4j.jar;C:\jdevstudio10133\jdev\lib\jdev-oc4j-embedded.jar -Xverify:none -XX:MaxPermSize=256m -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:\jdevstudio10133\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\config\server.xml
    [waiting for the server to complete its initialization...]
    Could not canonicalize '"C:\Program Files\Sybase\Adaptive Server Anywhere 6.0\win32"' (The filename, directory name, or volume label syntax is incorrect). From system property java.library.path.
    Jun 13, 2008 10:18:21 AM oracle.security.jazn.JAZNConfig parseJAZNConfig
    FINE: JAAS: Configuration properties: { location = system-jazn-data.xml, provider.type = XML, realm.default = jazn.com }
    Jun 13, 2008 10:18:21 AM oracle.security.jazn.JAZNConfig parseJAZNConfig
    FINE: JAAS: Configuration properties: { provider.type = XML }
    Jun 13, 2008 10:18:22 AM oracle.security.jazn.JAZNConfig parseJAZNConfig
    FINE: JAAS: Configuration properties: { provider.type = XML }
    Jun 13, 2008 10:18:22 AM oracle.security.jazn.JAZNConfig parseJAZNConfig
    FINE: JAAS: Configuration properties: { location = TestWithShaleTiles-jazn-data.xml, provider.type = XML, realm.default = jazn.com }
    Jun 13, 2008 10:18:22 AM oracle.security.jazn.JAZNConfig init
    FINE: JAAS: Configuration properties: { location = system-jazn-data.xml, deployment.url = file:/C:/jdevstudio10133/jdev/system/oracle.j2ee.10.1.3.41.57/embedded-oc4j/config/system-application.xml, provider.type = XML, realm.default = jazn.com }
    Jun 13, 2008 10:18:22 AM oracle.security.jazn.JAZNConfig init
    FINE: JAAS: JAZNConfig.init(): deployment URL=file:/C:/jdevstudio10133/jdev/system/oracle.j2ee.10.1.3.41.57/embedded-oc4j/config/system-application.xml
    Jun 13, 2008 10:18:22 AM oracle.security.jazn.JAZNConfig init
    FINE: JAAS: JAZNConfig.init(): classpath=null
    Jun 13, 2008 10:18:22 AM oracle.security.jazn.JAZNConfig init
    FINE: JAAS: JAZNConfig.init(): this=[JAZNConfig file:/C:/jdevstudio10133/jdev/system/oracle.j2ee.10.1.3.41.57/embedded-oc4j/config/system-application.xml]
    Jun 13, 2008 10:18:22 AM oracle.security.jazn.JAZNConfig fileExists
    FINE: JAAS: Verify file=C:\jdevstudio10133\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\config\jazn.xml
    Jun 13, 2008 10:18:22 AM oracle.security.jazn.JAZNConfig getDefaultJAZNConfigFilePath
    FINE: JAAS: Configuration file=C:\jdevstudio10133\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\config\jazn.xml
    Jun 13, 2008 10:18:22 AM oracle.security.jazn.JAZNConfig getJAZNProperties
    FINE: JAAS: Configuration file=C:\jdevstudio10133\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\config\jazn.xml
    Jun 13, 2008 10:18:22 AM oracle.security.jazn.JAZNConfig parseJAZNConfig
    FINE: JAAS: Configuration properties: { idm.token.type = HTTP_COOKIE, custom.sso.key.alias = ssoSymmetricKey, idm.token.asserter.class = oracle.security.jazn.sso.SSOCookieTokenAsserter, realm.default = jazn.com, custom.sso.url.login = /jsso/SSOLogin, provider.type = XML, custom.sso.url.logout = /jsso/SSOLogout, idm.token.collector.class = oracle.security.jazn.sso.SSOCookieTokenCollector, location = ./system-jazn-data.xml, idm.authentication.name = JavaSSO, idm.token.collector.cookie.1 = ORA_OC4J_SSO }
    Jun 13, 2008 10:18:22 AM oracle.security.jazn.JAZNConfig init
    FINE: JAAS: Configuration properties: { idm.token.type = HTTP_COOKIE, custom.sso.key.alias = ssoSymmetricKey, idm.token.asserter.class = oracle.security.jazn.sso.SSOCookieTokenAsserter, realm.default = jazn.com, deployment.url = file:/C:/jdevstudio10133/jdev/system/oracle.j2ee.10.1.3.41.57/embedded-oc4j/config/jazn.xml, custom.sso.url.login = /jsso/SSOLogin, provider.type = XML, custom.sso.url.logout = /jsso/SSOLogout, idm.token.collector.class = oracle.security.jazn.sso.SSOCookieTokenCollector, location = ./system-jazn-data.xml, idm.authentication.name = JavaSSO, idm.token.collector.cookie.1 = ORA_OC4J_SSO }
    Jun 13, 2008 10:18:22 AM oracle.security.jazn.JAZNConfig init
    FINE: JAAS: JAZNConfig.init(): deployment URL=file:/C:/jdevstudio10133/jdev/system/oracle.j2ee.10.1.3.41.57/embedded-oc4j/config/jazn.xml
    Jun 13, 2008 10:18:22 AM oracle.security.jazn.JAZNConfig init
    FINE: JAAS: JAZNConfig.init(): classpath=null
    Jun 13, 2008 10:18:22 AM oracle.security.jazn.JAZNConfig init
    FINE: JAAS: JAZNConfig.init(): this=[JAZNConfig file:/C:/jdevstudio10133/jdev/system/oracle.j2ee.10.1.3.41.57/embedded-oc4j/config/jazn.xml]
    Jun 13, 2008 10:18:22 AM oracle.security.jazn.spi.xml.XMLJAZNProvider getJAZNDataXMLDoc
    FINE: JAAS-XML: url=file:/C:/jdevstudio10133/jdev/system/oracle.j2ee.10.1.3.41.57/embedded-oc4j/config/system-jazn-data.xml fname=file:/C:/jdevstudio10133/jdev/system/oracle.j2ee.10.1.3.41.57/embedded-oc4j/config/system-jazn-data.xml file=C:\jdevstudio10133\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\config\system-jazn-data.xml
    Jun 13, 2008 10:18:22 AM oracle.security.jazn.spi.xml.XMLRealmUser init
    FINE: JAZN-XML: XMLRealmUser.init: user(anonymous) is deactivated.
    Jun 13, 2008 10:18:22 AM oracle.security.jazn.spi.xml.XMLJACCRepository init
    FINE: JACC: jaccRepo.init - JACCRepository already initialized. repo=[XMLJACCRepository isValid=true
         jaznConfig=[JAZNConfig file:/C:/jdevstudio10133/jdev/system/oracle.j2ee.10.1.3.41.57/embedded-oc4j/config/jazn.xml]
         jaccPolicyMap.keySet=[]
         jaccPolicyMap.values=[]] node=oracle.xml.parser.v2.XMLElement@170984c
    Jun 13, 2008 10:18:22 AM oracle.security.jazn.spi.xml.XMLUserManager getAdminUser
    FINE: JAZN-XML: UserManager.getAdminUser: admin.user=oc4jadmin
    Jun 13, 2008 10:18:22 AM oracle.security.jazn.oc4j.RealmUserManager getAdminUser
    FINE: JAZN-OC4J: RealmUserManager.getAdminUser()=RealmUser: oc4jadmin
    Jun 13, 2008 10:18:23 AM com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering transactions (commit 0) (rollback 0) (prepared 0).
    Jun 13, 2008 10:18:23 AM com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering local transactions Queue[jms/Oc4jJmsExceptionQueue].
    Jun 13, 2008 10:18:23 AM oracle.oc4j.security.SSLMessages logGetSecureSocket
    FINE: getSecureSocket(address=/0.0.0.0, port=24043, backlog=30)
    Jun 13, 2008 10:18:23 AM oracle.oc4j.security.SSLMessages logGetSecureSocket
    FINE: getSecureSocket(address=/0.0.0.0, port=24043, backlog=30)
    Jun 13, 2008 10:18:25 AM oracle.security.jazn.JAZNConfig init
    FINE: JAAS: Configuration properties: { deployment.url = file:/C:/jdevstudio10133/jdev/system/oracle.j2ee.10.1.3.41.57/embedded-oc4j/config/application.xml, provider.type = XML }
    Jun 13, 2008 10:18:25 AM oracle.security.jazn.JAZNConfig init
    FINE: JAAS: JAZNConfig.init(): deployment URL=file:/C:/jdevstudio10133/jdev/system/oracle.j2ee.10.1.3.41.57/embedded-oc4j/config/application.xml
    Jun 13, 2008 10:18:25 AM oracle.security.jazn.JAZNConfig init
    FINE: JAAS: JAZNConfig.init(): classpath=null
    Jun 13, 2008 10:18:25 AM oracle.security.jazn.JAZNConfig init
    FINE: JAAS: JAZNConfig.init(): this=[JAZNConfig file:/C:/jdevstudio10133/jdev/system/oracle.j2ee.10.1.3.41.57/embedded-oc4j/config/application.xml]
    Jun 13, 2008 10:18:25 AM oracle.security.jazn.JAZNConfig init
    FINE: JAAS: Configuration properties: { deployment.url = file:/C:/jdevstudio10133/jdev/system/oracle.j2ee.10.1.3.41.57/embedded-oc4j/application-deployments/datatags/, provider.type = XML }
    Jun 13, 2008 10:18:25 AM oracle.security.jazn.JAZNConfig init
    FINE: JAAS: JAZNConfig.init(): deployment URL=file:/C:/jdevstudio10133/jdev/system/oracle.j2ee.10.1.3.41.57/embedded-oc4j/application-deployments/datatags/
    Jun 13, 2008 10:18:25 AM oracle.security.jazn.JAZNConfig init
    FINE: JAAS: JAZNConfig.init(): classpath=null
    Jun 13, 2008 10:18:25 AM oracle.security.jazn.JAZNConfig init
    FINE: JAAS: JAZNConfig.init(): this=[JAZNConfig file:/C:/jdevstudio10133/jdev/system/oracle.j2ee.10.1.3.41.57/embedded-oc4j/application-deployments/datatags/]
    Jun 13, 2008 10:18:25 AM oracle.security.jazn.JAZNConfig init
    FINE: JAAS: Configuration properties: { location = TestWithShaleTiles-jazn-data.xml, deployment.url = file:/C:/jdevstudio10133/jdev/mywork/Test_Tiles/Test_with_shale_tiles/TestWithShaleTiles-oc4j-app.xml, provider.type = XML, realm.default = jazn.com }
    Jun 13, 2008 10:18:25 AM oracle.security.jazn.JAZNConfig init
    FINE: JAAS: JAZNConfig.init(): deployment URL=file:/C:/jdevstudio10133/jdev/mywork/Test_Tiles/Test_with_shale_tiles/TestWithShaleTiles-oc4j-app.xml
    Jun 13, 2008 10:18:25 AM oracle.security.jazn.JAZNConfig init
    FINE: JAAS: JAZNConfig.init(): classpath=null
    Jun 13, 2008 10:18:25 AM oracle.security.jazn.JAZNConfig init
    FINE: JAAS: JAZNConfig.init(): this=[JAZNConfig file:/C:/jdevstudio10133/jdev/mywork/Test_Tiles/Test_with_shale_tiles/TestWithShaleTiles-oc4j-app.xml]
    Jun 13, 2008 10:18:25 AM oracle.security.jazn.spi.xml.XMLJAZNProvider getJAZNDataXMLDoc
    FINE: JAAS-XML: url=file:/C:/jdevstudio10133/jdev/mywork/Test_Tiles/Test_with_shale_tiles/TestWithShaleTiles-jazn-data.xml fname=file:/C:/jdevstudio10133/jdev/mywork/Test_Tiles/Test_with_shale_tiles/TestWithShaleTiles-jazn-data.xml file=C:\jdevstudio10133\jdev\mywork\Test_Tiles\Test_with_shale_tiles\TestWithShaleTiles-jazn-data.xml
    Jun 13, 2008 10:18:26 AM oracle.security.jazn.util.Misc findOracleHome
    FINE: JAAS: ORACLE_HOME=C:\jdevstudio10133
    Jun 13, 2008 10:18:26 AM oracle.security.jazn.util.Misc fileExists
    FINE: JAAS: Verify file=C:\jdevstudio10133\j2ee\home\config\jazn.xml
    Jun 13, 2008 10:18:26 AM oracle.security.jazn.util.Misc getJ2eeHomeJAZNConfigFilePath
    FINE: JAAS: Bootstrap jazn.xml @C:\jdevstudio10133\j2ee\home\config\jazn.xml
    Jun 13, 2008 10:18:26 AM oracle.security.jazn.JAZNConfig <init>
    FINE: JAAS: Configuration file=C:\jdevstudio10133\j2ee\home\config\jazn.xml
    Jun 13, 2008 10:18:26 AM oracle.security.jazn.JAZNConfig getJAZNProperties
    FINE: JAAS: Configuration file=C:\jdevstudio10133\j2ee\home\config\jazn.xml
    Jun 13, 2008 10:18:26 AM oracle.security.jazn.JAZNConfig parseJAZNConfig
    FINE: JAAS: Configuration properties: { idm.token.type = HTTP_COOKIE, custom.sso.key.alias = ssoSymmetricKey, idm.token.asserter.class = oracle.security.jazn.sso.SSOCookieTokenAsserter, realm.default = jazn.com, custom.sso.url.login = /jsso/SSOLogin, provider.type = XML, custom.sso.url.logout = /jsso/SSOLogout, idm.token.collector.class = oracle.security.jazn.sso.SSOCookieTokenCollector, location = ./system-jazn-data.xml, idm.authentication.name = JavaSSO, idm.token.collector.cookie.1 = ORA_OC4J_SSO }
    Jun 13, 2008 10:18:26 AM oracle.security.jazn.JAZNConfig init
    FINE: JAAS: Configuration properties: { idm.token.type = HTTP_COOKIE, custom.sso.key.alias = ssoSymmetricKey, idm.token.asserter.class = oracle.security.jazn.sso.SSOCookieTokenAsserter, realm.default = jazn.com, deployment.url = file:/C:/jdevstudio10133/j2ee/home/config/jazn.xml, custom.sso.url.login = /jsso/SSOLogin, provider.type = XML, custom.sso.url.logout = /jsso/SSOLogout, idm.token.collector.class = oracle.security.jazn.sso.SSOCookieTokenCollector, location = ./system-jazn-data.xml, idm.authentication.name = JavaSSO, idm.token.collector.cookie.1 = ORA_OC4J_SSO }
    Jun 13, 2008 10:18:26 AM oracle.security.jazn.JAZNConfig init
    FINE: JAAS: JAZNConfig.init(): deployment URL=file:/C:/jdevstudio10133/j2ee/home/config/jazn.xml
    Jun 13, 2008 10:18:26 AM oracle.security.jazn.JAZNConfig init
    FINE: JAAS: JAZNConfig.init(): classpath=null
    Jun 13, 2008 10:18:26 AM oracle.security.jazn.JAZNConfig init
    FINE: JAAS: JAZNConfig.init(): this=[JAZNConfig file:/C:/jdevstudio10133/j2ee/home/config/jazn.xml]
    Jun 13, 2008 10:18:26 AM oracle.security.jazn.util.Misc initJ2eeHomeJAZNConfig
    FINE: JAAS: default jazn.xml @ C:\jdevstudio10133\j2ee\home\config\jazn.xml : [JAZNConfig file:/C:/jdevstudio10133/j2ee/home/config/jazn.xml]
    Jun 13, 2008 10:18:26 AM oracle.security.jazn.util.Misc getIASPropertiesFilePath
    FINE: JAAS: XML Provider
    Jun 13, 2008 10:18:27 AM oracle.security.jazn.util.Misc getIASPropertiesFilePath
    FINE: JAAS: XML Provider
    Ready message received from Oc4jNotifier.
    Embedded OC4J startup time: 9375 ms.
    Target URL -- http://10.21.31.170:8988/Test-ViewController-context-root/faces/systemLogon.jsp
    08/06/13 10:18:28 Oracle Containers for J2EE 10g (10.1.3.3.0) initialized
    Jun 13, 2008 10:18:29 AM oracle.security.jazn.util.Misc getIASPropertiesFilePath
    FINE: JAAS: XML Provider
    Thanks for your help,
    Ambika

  • Ejb 3.0 createNativeQuery with resultClass

    As suggested by Shay Shmeltzer on the jdev forum, I post this question on the toplink forum.
    I am developing an application with jsf+ejb. I need to create a search form with a complex query, so I think I need to use a native query with entity manager’s createNativeQuery method. The query execution should then populate a List<ScrSoggElenco> variable, where ScrSoggElenco is the class I use as ‘data type hint’ for the table in which the query results are shown.
    I am trying to do this by using the
    createNativeQuery(String sqlString, Class resultClass)
    method.
    My code is like this
    Query q = em.createNativeQuery(nativeQuery,ScrSoggElenco.class);
    List<ScrSoggElenco> res = q.getResultList();
    But q.getResultList() throws an exception:
    javax.faces.el.EvaluationException: javax.faces.el.EvaluationException: Error getting property 'soggetti' from bean of type view.backing.ScrElencoSogg: javax.ejb.EJBException: Exception [TOPLINK-6007] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.QueryException
    Exception Description: Missing descriptor for [class model.ScrSoggElenco].
    Query: ReadAllQuery(model.ScrSoggElenco); nested exception is: Exception [TOPLINK-6007] (Oracle TopLink Essentials - 2006.8 (Build 060829)): oracle.toplink.essentials.exceptions.QueryException
    Exception Description: Missing descriptor for [class model.ScrSoggElenco].
    Query: ReadAllQuery(model.ScrSoggElenco)
    at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:190)
    at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143)
    It seems it looks for a descriptor of class model.ScrSoggElenco, I don’t know where and how to specify such descriptor.
    I tried also a simpler example, with a simpler query and a simple ‘String’ class in place of ScrSoggElenco, but I got the same exception: Missing descriptor for [class java.lang.String] .
    Thanks in advance, Mauro

    At this point I have to post the full code of my ejb method.
    You can see my query is quite complex to be written with ejbql, maybe the most difficult point is how to calculate the age of the person:
    floor(months_between(sysdate,SO_SOGGETTO.DATA_NASCITA)/12) eta
    how do you express this with ejbql?
    I have ‘solved’ the problem with a loop that transforms each object array in an instance of ScrSoggElenco (yes, ScrSoggElenco is an arbitrary class, not a mapped entity). Of course I would like to find a more direct statement to do this.
    Thanks, Mauro
    public List<ScrSoggElenco> findElencoSogg(Object cognome)
    String nativeQuery =
    "select codts, cognome, nome, DATA_NASCITA, escl, dtapp, desc_tpinv, desc_esito, eta,\n" +
    "dtrichiamo, tprich\n" +
    "from\n" +
    "(\n" +
    "\n" +
    "SELECT\n" +
    " SO_SOGGETTO.COGNOME,\n" +
    " SO_SOGGETTO.NOME,\n" +
    " SO_SOGGETTO.DATA_NASCITA,\n" +
    " fun_esclusione(SO_SOGGETTO.CODTS,SO_SOGGETTO.ULSS,SO_CNF_TPSCR.CODSCR) escl,\n" +
    " SO_INVITO.DTAPP,\n" +
    " SO_CNF_TPINVITO.DESCRBREVE desc_tpinv,\n" +
    " SO_CNF_ESITOINVITO.DESCRBREVE desc_esito,\n" +
    " SO_INVITO.CONSENSO,\n" +
    "\n" +
    " SO_INVITO.IDCENTROPRELIEVO,\n" +
    " SO_SOGGETTO.CF,\n" +
    " SO_SOGGETTO.CODTS,\n" +
    " SO_SOGGETTO.CODCOMRES,\n" +
    " SO_SOGGETTO.CODDISTRZONA,\n" +
    " SO_SOGGETTO.CODICEREGMEDICO,\n" +
    " SO_CNF_TPSCR.CODSCR tpscr,\n" +
    " SO_SOGGETTO.ulss,\n" +
    " 1 invpres,\n" +
    " SO_INVITO.IDINVITO idinvito,\n" +
    " floor(months_between(sysdate,SO_SOGGETTO.DATA_NASCITA)/12) eta,\n" +
    " SO_INVITO.IDCENTROREF1LIV idcref,\n" +
    " SO_INVITO.LIVELLO,\n" +
    " to_date(fun_get_richiamo(so_soggetto.codts,so_soggetto.ulss,SO_CNF_TPSCR.CODSCR,3),'dd/mm/yyyy') dtrichiamo,\n" +
    " fun_get_richiamo(so_soggetto.codts,so_soggetto.ulss,SO_CNF_TPSCR.CODSCR,0) TPRICH,\n" +
    " SO_SOGG_SCR.ALTORISCHIO,\n" +
    " fun_restituire_lastre(SO_SOGGETTO.CODTS,SO_CNF_TPSCR.CODSCR) restituire\n" +
    "\n" +
    " FROM SO_SOGGETTO, SO_INVITO, SO_CNF_TPINVITO, SO_CNF_ESITOINVITO, SO_CNF_TPSCR, SO_SOGG_SCR\n" +
    " where SO_INVITO.CODTS = SO_SOGGETTO.CODTS\n" +
    " AND SO_INVITO.ULSS = SO_SOGGETTO.ULSS\n" +
    " AND SO_INVITO.TPSCR = SO_CNF_TPSCR.CODSCR\n" +
    " and SO_INVITO.attivo = 1\n" +
    "\n" +
    " and SO_CNF_TPINVITO.IDTPINVITO = SO_INVITO.IDTPINVITO\n" +
    " and SO_CNF_TPINVITO.ULSS = SO_INVITO.ULSS\n" +
    " and SO_CNF_TPINVITO.TPSCR = SO_INVITO.TPSCR\n" +
    "\n" +
    " and SO_CNF_ESITOINVITO.CODESITOINVITO (+) = SO_INVITO.CODESITOINVITO\n" +
    " and SO_CNF_ESITOINVITO.LIVESITO (+) = SO_INVITO.LIVESITO\n" +
    " and SO_CNF_ESITOINVITO.ULSS (+) = SO_INVITO.ULSS\n" +
    " and SO_CNF_ESITOINVITO.TPSCR (+) = SO_INVITO.TPSCR\n" +
    " AND (SO_CNF_TPSCR.SESSO IS NULL OR SO_SOGGETTO.SESSO = SO_CNF_TPSCR.SESSO)\n" +
    " AND SO_SOGG_SCR.codts = SO_SOGGETTO.codts\n" +
    " AND SO_SOGG_SCR.ulss = SO_SOGGETTO.ulss\n" +
    " AND SO_SOGG_SCR.tpscr = SO_CNF_TPSCR.codscr\n" +
    "\n" +
    "union all\n" +
    "\n" +
    " SELECT\n" +
    " SO_SOGGETTO.COGNOME,\n" +
    " SO_SOGGETTO.NOME,\n" +
    " SO_SOGGETTO.DATA_NASCITA,\n" +
    " fun_esclusione(SO_SOGGETTO.CODTS,SO_SOGGETTO.ULSS,SO_CNF_TPSCR.CODSCR) escl,\n" +
    " to_date(null),\n" +
    " null,\n" +
    " null,\n" +
    " null,\n" +
    "\n" +
    " null,\n" +
    " SO_SOGGETTO.CF,\n" +
    " SO_SOGGETTO.CODTS,\n" +
    " SO_SOGGETTO.CODCOMRES,\n" +
    " SO_SOGGETTO.CODDISTRZONA,\n" +
    " SO_SOGGETTO.CODICEREGMEDICO,\n" +
    " SO_CNF_TPSCR.CODSCR tpscr,\n" +
    " SO_SOGGETTO.ulss,\n" +
    " 0 invpres,\n" +
    " null idinvito,\n" +
    "floor(months_between(sysdate,SO_SOGGETTO.DATA_NASCITA)/12) eta,\n" +
    " null idcref,\n" +
    " null livello,\n" +
    " to_date(fun_get_richiamo(so_soggetto.codts,so_soggetto.ulss,SO_CNF_TPSCR.CODSCR,3),'dd/mm/yyyy') dtrichiamo,\n" +
    " fun_get_richiamo(so_soggetto.codts,so_soggetto.ulss,SO_CNF_TPSCR.CODSCR,0) TPRICH,\n" +
    " to_number(null),\n" +
    " 0 restituire\n" +
    "\n" +
    " FROM SO_SOGGETTO,SO_CNF_TPSCR\n" +
    " where not exists\n" +
    " (select 1 from SO_INVITO\n" +
    " where SO_INVITO.CODTS = SO_SOGGETTO.CODTS\n" +
    " AND SO_INVITO.ULSS = SO_SOGGETTO.ULSS\n" +
    " AND SO_INVITO.TPSCR = SO_CNF_TPSCR.CODSCR\n" +
    " and SO_INVITO.attivo = 1)\n" +
    " AND (SO_CNF_TPSCR.SESSO IS NULL OR SO_SOGGETTO.SESSO = SO_CNF_TPSCR.SESSO)\n" +
    " ) " +
    "where cognome like '" + cognome + "%'";
    String nativeQuery = "select cognome from so_soggetto " +
    "where cognome like '" + cognome + "%'";
    //Query q = em.createNativeQuery(nativeQuery,ScrSoggElenco.class);
    Query q = em.createNativeQuery(nativeQuery);
    List<ScrSoggElenco> res = q.getResultList();
    Object[] listaSogg = res.toArray();
    int size = listaSogg.length;
    List<ScrSoggElenco> elenco = new ArrayList<ScrSoggElenco>();
    for (int i=0 ;i<size ;i++ )
    Vector vec = (Vector) listaSogg;
    Object[] sogg = vec.toArray();
    ScrSoggElenco newSogg =
    new ScrSoggElenco(
    (String) sogg[0],
    (String) sogg[1],
    (String) sogg[2],
    (Timestamp) sogg[3],
    (String) sogg[4],
    (Timestamp) sogg[5],
    (String) sogg[6],
    (String) sogg[7],
    (BigDecimal) sogg[8],
    (Timestamp) sogg[9],
    (String) sogg[10]
    elenco.add(newSogg);
    return elenco;

  • Want to integrate JavaFX with JSF

    Hi all,
    I am developing a web application in JSF. I want to integrate it with JavaFX. Is it possible to do so? If possible then how can I achieve it?
    Thanks in advance,
    JSF GEEKS

    Actually I found the same code for integrating JavaFX with JSF, which you have linked, but I show it afterwards. Anyways, thanks for your kind support.
    The other interesting thing I found is, interaction between JavaFX and JSF.
    You can interact between JavaFX and JSF like the following way.
    You just give the id in the script in which you have defined the parameters of applet to run in browser with JSF or any language like this;
    <ui:script id="js" type="text/javascript">
        javafx(
                  archive: "Your_JAR_File.jar",
                  draggable: true,
                  width: 550,
                  height: 370,
                  code: "package_name.Main",
                  name: "Name_of_Application/package_name",
    id: "myJavaFX"
        </ui:script>Then uin the header part of your page (acually in <head>), you write another script something like below;
    <script language="javascript" type="text/javascript">
    function changeColor() {
    myJavaFX.script.line1=myJavaFX.Packages.javafx.scene.paint.Color.WHITE;
    myJavaFX.script.line2=myJavaFX.Packages.javafx.scene.paint.Color.LIGHTBLUE;
    </script>Here line1+ & line2 are the variables of JavaFX script/program. So here, by this example I am changing the value of variables of JavaFX script to change the colors. myJavaFX {color:#333333} {color}is the id of the applet which I have given in the first script to generate and run the applet in browser.
    so here I give you what I understood. Hope it helps.
    Thanks,
    JSF GEEKS
    Edited by: jsfgeeks on Sep 17, 2009 10:59 AM
    Edited by: jsfgeeks on Sep 17, 2009 11:02 AM
    Edited by: jsfgeeks on Sep 17, 2009 11:03 AM
    Edited by: jsfgeeks on Sep 17, 2009 11:04 AM

  • LDAP Security Integration to JSF

    I would like to integrate a security system that we use to the JSF project I'm developing. The setting is as follows:
    We have a centralized single signon authentication system (OBLIX) that present the user with a login screen. Once the user logs in successfully, the system will direct the user to a url of my choice. The login information, such as user id, will be stored in the request as parameters.
    I'm new to JSF. So far I have not have to use any servlets in jsf. All I have done in my application with JSF are backing beans and control beans. The business logic resides in the control beans which invoke the backend model programs (which deals with database etc.).
    The question is how to integrate this OBLIX security nicely into my application. Can I have OBLIX direct a successful login to a jsp that triggers a control bean automatically? I need to read off the request parameters to find out who the login user is.
    Is this something that should be done with JSF listeners?
    Thanks in advance. I hope to hear from you experts soon.

    Hi Gary,
    maybe get in contact with Scott Spendolini from Sumner Technologies (http://sumnertechnologies.com/), I think these guys have some experience integrating APEX with eBusiness Suite.
    Patrick
    My APEX Blog: http://inside-apex.blogspot.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/

  • SunOne Portal integration with other application

    How Sun Portal Server integration with other appliction?
    Where are have this topic information(pdf,html,etc)
    Plealse help me ! Urgency!!!!!
    yuan
    [email protected]

    Application Integration is done with providers(portlets)
    It depends on the API of your application.
    - Basic integration could be a dynalic SSO-Link in a simple provider.
    - Some apps via Netlet to remote access the application(wold/excel ...)
    - ERP/CRM integration via WSDL or XML/JSP proxy
    or even EJB, CORBA or JDBC connectors if your application support these APIs.
    For more info about providers see:
    http://docs.sun.com/db/coll/S1_PortalServer_60
    and
    http://docs.sun.com/source/816-6362-10/index.html

  • Very big problem with JSF about FORM and "id=" for HTML form's elements and

    I have discovered a very big problem with JSF about FORM and "id=" for HTML form's elements and java instruction "request.getParameterNames()".
    Suppose you have something like this, to render some datas form a Java Beans :
    <h:dataTable value="#{TablesDb2Bean.myDataDb2ListSelection}" var="current" border="2" width="50%" cellpadding="2" cellspacing="2" style="text-align: center">
    <h:column>
    <f:facet name="header">
    <h:outputText value="Name"/>
    </f:facet>
    <h:outputText id="nameTableDb2" value="#{current.db2_name_table}"/>
    </h:column>
    </h:dataTable>
    Everything works fine...
    Suppose you want to get the name/value pairs for id="nameTableDb2" and #{current.db2_name_table} to process them in a servlet. Here is the HTML generated :
    <td><span <span class="attribute-name">id=<span class="attribute-value">"j_id_jsp_1715189495_22:0:nameTableDb2">my-table-db2-xxxxx</span></td>
    You think you can use the java instructions :
    Enumeration NamesParam = request.getParameterNames();
    while (NomsParam.hasMoreElements()) {
    String NameParam = (String) NamesParam.nextElement();
    out.println("<h4>"++NameParam+ "+</h4>);
    YOU ARE WRONG : request.getParameterNames() wants the syntax *name="nameTableDb2" but JSF must use id="nameTableDb2" for "<h:outputText"... So, you can't process datas in a FORM generated with JSF in a Servlet ! Perhaps I have made an error, but really, I wonder which ?
    Edited by: ungars on Jul 18, 2010 12:43 AM
    Edited by: ungars on Jul 18, 2010 12:45 AM

    While I certainly appreciate ejb's helpful responses, this thread shows up a difference in perspective between how I read the forum and how others do. Author ejb is correct in advising you to stay inside JSF for form processing if form processing is what you want to do.
    However, I detect another aspect to this post which reminds me of something Marc Andreesen once said when he was trying to get Netscape off the ground: "there's no such thing as bad HTML."
    In this case, I interpret ungar's request as a new feature request. Can I phrase it like this?
    "Wouldn't it be nice if I could render my nice form with JSF but, in certain cases, when I REALLY know what I'm doing" just post out to a separate servlet? I know that in this case I'll be missing out on all the nice validation, conversion, l10n, i18n, ajax, portlet and other features provided by JSF".
    If this is the case, because it really misses the point of JSF, we don't allow it, but we do have an issue filed for it
    https://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=127
    If you can't wait for it to be fixed, you could decorate the FormRenderer to fix what you want.
    I have an example in my JSF book that shows how to do this decoration. http://bit.ly/edburnsjsf2
    Ed

  • Where can get the adftutoial or adfdevguide for TopLink JPA with JSF/ADF ?

    Hello...
    Can anyone suggest me where on OTN I can find the adftutorial and adfdevguide describing developement using Toplink JPA ( EJB 3.0) with JSF/ADF faces ?
    Thanking you in advance,
    Samba

    Hi Samba,
    - Build a Web Application(JSF) using JPA
    - Oracle ADF Developer Guide
    - ADF Learning Center
    Hope it helps!
    Koen

  • Tiles integration with Jdeveloper11g

    Hi
    I am working on jdev11g and planning to integarte Tiles with it.
    I follow the steps given in Help document but unable to get success.
    To add a Tiles definitions file to a web application project:
    For a JSF application, Add Tiles Servlet definition to web.xml.
    when I add it it is unable to get TilesServlet class.
    Can u giude me or give some usefull liks from where i can get Step to Step info @ Tiles integration with jde11g
    Thanks for all Help.

    Jaydeep,
    Did you create a library (Tools -> Manage Libraries) containing the Tiles jar files and add that library to your project?
    John

Maybe you are looking for

  • Can't replicate data inserted using DBMS_XMLSAVE.insertXML

    Enviroment: OS: SLES 10 SP2 Database Version: 11.1.0.6 I have configured an Oracle Streams environment compose by two database. The first is the source where a local capture process should captures dml changes from some tables. If I insert some data

  • Configuring multiple web sites in a single OC4J instance with 10g OEM

    Hi There, there doesn't seem to be a way of configuring multiple web sites within a single OC4J instance using the 10g Enterprise Manager Website, so can i assume that there's some performance related issues with doing this, or is it just a case of i

  • Backup of backupset and FRA

    Hi, seems like I need some clarifications about two scenarios: 1. When we do backup of backupset from disk to tape how recovery procedure looks like ? - are we able to restore directly from tape or we need to restore from tape onto disk and do restor

  • Database Time Spent Waiting (%): Wait Class Other nearly 100% all the time

    Don't understand why OEM is reporting that Database Time Spent Waiting (%): Wait Class Other is nearly 100% all the time. Database 10.1.0.4 just installed on Linux(RHEL4AS) and nobody use it for now except OEM and me for admin purpose. Any clue for t

  • Getting SQL statement from OCIStmt

    Is there a way to retrieve the SQL statement from OCIStmt structure? That is, does anyone know what this structure is? For example, if used OCIPrepareStmt, then bound all the variables to OCIStmt, can I tell from OCIStmt what the final SQL statement