Results 1 to 3 of 3
  1. #1
    ulix83 is offline Member
    Join Date
    Oct 2009
    Posts
    13
    Rep Power
    0

    Default Problem with navigation rule!

    Hello everybody,
    I am new to JSF and I have a very simple question.
    I have placed two file in a folder:
    - /authentication/login.xhtml
    - /authentication/loginFailed.xhtml

    and the home page file in another:
    /home.xhtml

    How could I modify the navigation rule in way that, in case of login successful, the subpath "/authentication/" could disappear? The problem is that, if it remains, I have problems importin css and js files!
    Thannk you!

    <navigation-rule>
    <from-view-id>/authentication/login.xhtml</from-view-id>
    <navigation-case>
    <from-action>#{login.CheckValidUser}</from-action>
    <from-outcome>success</from-outcome>
    <to-view-id>home.xhtml</to-view-id>

    </navigation-case>
    <navigation-case>
    <from-action>#{login.CheckValidUser}</from-action>
    <from-outcome>fail</from-outcome>
    <to-view-id>/authentication/loginFailed.xhtml</to-view-id>
    </navigation-case>
    </navigation-rule>

  2. #2
    ravi5357 is offline Member
    Join Date
    Jan 2011
    Posts
    1
    Rep Power
    0

    Default

    i have a problem when i am using poi framework.
    Any one can solve it...

    Jan 12, 2011 10:18:10 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
    WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:AMS' did not find a matching property.
    Jan 12, 2011 10:18:10 AM org.apache.catalina.core.AprLifecycleListener init
    INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre6\bin;.;C:\WINDOWS\Sun\Java\bin;C:\W INDOWS\system32;C:\WINDOWS;C:/Program Files/Java/jre6/bin/client;C:/Program Files/Java/jre6/bin;C:/Program Files/Java/jre6/lib/i386;C:\oracle\product\10.2.0\client_1\bin;C:\WIND OWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C :\Program Files\Java\jdk1.6.0_20\bin;.;C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin;
    Jan 12, 2011 10:18:10 AM org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on http-9999
    Jan 12, 2011 10:18:10 AM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 2037 ms
    Jan 12, 2011 10:18:10 AM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Jan 12, 2011 10:18:10 AM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.20
    Jan 12, 2011 10:18:13 AM org.apache.catalina.core.ApplicationContext log
    INFO: Initializing Spring root WebApplicationContext
    Jan 12, 2011 10:18:13 AM org.springframework.web.context.ContextLoader initWebApplicationContext
    INFO: Root WebApplicationContext: initialization started
    Jan 12, 2011 10:18:13 AM org.springframework.context.support.AbstractApplic ationContext prepareRefresh
    INFO: Refreshing org.springframework.web.context.support.XmlWebAppl icationContext@157c2bd: display name [Root WebApplicationContext]; startup date [Wed Jan 12 10:18:13 IST 2011]; root of context hierarchy
    Jan 12, 2011 10:18:13 AM org.springframework.beans.factory.xml.XmlBeanDefin itionReader loadBeanDefinitions
    INFO: Loading XML bean definitions from ServletContext resource [/WEB-INF/classes/applicationContext.xml]
    Jan 12, 2011 10:18:14 AM org.springframework.context.support.AbstractApplic ationContext obtainFreshBeanFactory
    INFO: Bean factory for application context [org.springframework.web.context.support.XmlWebAppl icationContext@157c2bd]: org.springframework.beans.factory.support.DefaultL istableBeanFactory@17f409c
    Jan 12, 2011 10:18:14 AM org.springframework.beans.factory.support.DefaultL istableBeanFactory preInstantiateSingletons
    INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultL istableBeanFactory@17f409c: defining beans [dataSource,sessionFactory,hibernateTemplate,hibern ateDAO,excelBean]; root of factory hierarchy
    Jan 12, 2011 10:18:14 AM org.springframework.jdbc.datasource.DriverManagerD ataSource setDriverClassName
    INFO: Loaded JDBC driver: com.mysql.jdbc.Driver
    Jan 12, 2011 10:18:15 AM org.hibernate.cfg.Environment <clinit>
    INFO: Hibernate 3.2.0
    Jan 12, 2011 10:18:15 AM org.hibernate.cfg.Environment <clinit>
    INFO: hibernate.properties not found
    Jan 12, 2011 10:18:15 AM org.hibernate.cfg.Environment buildBytecodeProvider
    INFO: Bytecode provider name : cglib
    Jan 12, 2011 10:18:15 AM org.hibernate.cfg.Environment <clinit>
    INFO: using JDK 1.4 java.sql.Timestamp handling
    Jan 12, 2011 10:18:15 AM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
    INFO: Mapping class: com.idexcel.pc.Asset -> asset_table
    Jan 12, 2011 10:18:16 AM org.springframework.orm.hibernate3.LocalSessionFac toryBean buildSessionFactory
    INFO: Building new Hibernate SessionFactory
    Jan 12, 2011 10:18:16 AM org.hibernate.connection.ConnectionProviderFactory newConnectionProvider
    INFO: Initializing connection provider: org.springframework.orm.hibernate3.LocalDataSource ConnectionProvider
    Jan 12, 2011 10:18:17 AM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: RDBMS: MySQL, version: 5.1.39-community
    Jan 12, 2011 10:18:17 AM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.0.4 ( $Date: 2006-10-19 17:47:48 +0200 (Thu, 19 Oct 2006) $, $Revision: 5908 $ )
    Jan 12, 2011 10:18:17 AM org.hibernate.dialect.Dialect <init>
    INFO: Using dialect: org.hibernate.dialect.MySQLDialect
    Jan 12, 2011 10:18:17 AM org.hibernate.transaction.TransactionFactoryFactor y buildTransactionFactory
    INFO: Transaction strategy: org.springframework.orm.hibernate3.SpringTransacti onFactory
    Jan 12, 2011 10:18:17 AM org.hibernate.transaction.TransactionManagerLookup Factory getTransactionManagerLookup
    INFO: No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
    Jan 12, 2011 10:18:17 AM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Automatic flush during beforeCompletion(): disabled
    Jan 12, 2011 10:18:17 AM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Automatic session close at end of transaction: disabled
    Jan 12, 2011 10:18:17 AM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: JDBC batch size: 15
    Jan 12, 2011 10:18:17 AM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: JDBC batch updates for versioned data: disabled
    Jan 12, 2011 10:18:17 AM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Scrollable result sets: enabled
    Jan 12, 2011 10:18:17 AM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: JDBC3 getGeneratedKeys(): enabled
    Jan 12, 2011 10:18:17 AM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Connection release mode: auto
    Jan 12, 2011 10:18:17 AM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Maximum outer join fetch depth: 2
    Jan 12, 2011 10:18:17 AM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Default batch fetch size: 1
    Jan 12, 2011 10:18:17 AM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Generate SQL with comments: disabled
    Jan 12, 2011 10:18:17 AM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Order SQL updates by primary key: disabled
    Jan 12, 2011 10:18:17 AM org.hibernate.cfg.SettingsFactory createQueryTranslatorFactory
    INFO: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
    Jan 12, 2011 10:18:17 AM org.hibernate.hql.ast.ASTQueryTranslatorFactory <init>
    INFO: Using ASTQueryTranslatorFactory
    Jan 12, 2011 10:18:17 AM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Query language substitutions: {}
    Jan 12, 2011 10:18:17 AM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: JPA-QL strict compliance: disabled
    Jan 12, 2011 10:18:17 AM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Second-level cache: enabled
    Jan 12, 2011 10:18:17 AM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Query cache: disabled
    Jan 12, 2011 10:18:17 AM org.hibernate.cfg.SettingsFactory createCacheProvider
    INFO: Cache provider: org.hibernate.cache.NoCacheProvider
    Jan 12, 2011 10:18:17 AM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Optimize cache for minimal puts: disabled
    Jan 12, 2011 10:18:17 AM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Structured second-level cache entries: disabled
    Jan 12, 2011 10:18:17 AM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Echoing all SQL to stdout
    Jan 12, 2011 10:18:17 AM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Statistics: disabled
    Jan 12, 2011 10:18:17 AM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Deleted entity synthetic identifier rollback: disabled
    Jan 12, 2011 10:18:17 AM org.hibernate.cfg.SettingsFactory buildSettings
    INFO: Default entity-mode: pojo
    Jan 12, 2011 10:18:17 AM org.hibernate.impl.SessionFactoryImpl <init>
    INFO: building session factory
    Jan 12, 2011 10:18:18 AM org.hibernate.impl.SessionFactoryObjectFactory addInstance
    INFO: Not binding factory to JNDI, no JNDI name configured
    Jan 12, 2011 10:18:18 AM org.springframework.web.context.ContextLoader initWebApplicationContext
    INFO: Root WebApplicationContext: initialization completed in 5359 ms
    Jan 12, 2011 10:18:18 AM com.sun.faces.config.WebConfiguration <init>
    INFO: JSF1026: [/AMS] Configuration option 'com.sun.faces.managedBeanFactoryDecoratorClass' not configured
    Jan 12, 2011 10:18:18 AM com.sun.faces.config.WebConfiguration <init>
    INFO: JSF1018: [/AMS] Configuration option 'com.sun.faces.STATE_SAVING_METHOD' set to 'server'
    Jan 12, 2011 10:18:18 AM com.sun.faces.config.WebConfiguration <init>
    INFO: JSF1018: [/AMS] Configuration option 'com.sun.faces.DEFAULT_SUFFIX' set to '.jsp'
    Jan 12, 2011 10:18:18 AM com.sun.faces.config.WebConfiguration <init>
    INFO: JSF1026: [/AMS] Configuration option 'com.sun.faces.CONFIG_FILES' not configured
    Jan 12, 2011 10:18:18 AM com.sun.faces.config.WebConfiguration <init>
    INFO: JSF1026: [/AMS] Configuration option 'com.sun.faces.LIFECYCLE_ID' not configured
    Jan 12, 2011 10:18:18 AM com.sun.faces.config.WebConfiguration <init>
    INFO: JSF1018: [/AMS] Configuration option 'com.sun.faces.numberOfViewsInSession' set to '15'
    Jan 12, 2011 10:18:18 AM com.sun.faces.config.WebConfiguration <init>
    INFO: JSF1018: [/AMS] Configuration option 'com.sun.faces.numberOfLogicalViews' set to '15'
    Jan 12, 2011 10:18:18 AM com.sun.faces.config.WebConfiguration <init>
    INFO: JSF1021: [/AMS] Configuration option 'com.sun.faces.validateXml' - DISABLED
    Jan 12, 2011 10:18:18 AM com.sun.faces.config.WebConfiguration <init>
    INFO: JSF1021: [/AMS] Configuration option 'com.sun.faces.verifyObjects' - DISABLED
    Jan 12, 2011 10:18:18 AM com.sun.faces.config.WebConfiguration <init>
    INFO: JSF1021: [/AMS] Configuration option 'com.sun.faces.forceLoadConfiguration' - DISABLED
    Jan 12, 2011 10:18:18 AM com.sun.faces.config.WebConfiguration <init>
    INFO: JSF1021: [/AMS] Configuration option 'com.sun.faces.disableVersionTracking' - DISABLED
    Jan 12, 2011 10:18:18 AM com.sun.faces.config.WebConfiguration <init>
    INFO: JSF1021: [/AMS] Configuration option 'com.sun.faces.enableHtmlTagLibValidator' - DISABLED
    Jan 12, 2011 10:18:18 AM com.sun.faces.config.WebConfiguration <init>
    INFO: JSF1021: [/AMS] Configuration option 'com.sun.faces.preferXHTML' - DISABLED
    Jan 12, 2011 10:18:18 AM com.sun.faces.config.WebConfiguration <init>
    INFO: JSF1021: [/AMS] Configuration option 'com.sun.faces.compressViewState' - ENABLED
    Jan 12, 2011 10:18:18 AM com.sun.faces.config.ConfigureListener contextInitialized
    INFO: Initializing Sun's JavaServer Faces implementation (1.2-NIGHTLY_20060407) for context '/AMS'
    Jan 12, 2011 10:18:19 AM com.sun.faces.config.ConfigureListener contextInitialized
    INFO: Completed initializing Sun's JavaServer Faces implementation (1.2-NIGHTLY_20060407) for context '/AMS'
    Jan 12, 2011 10:18:19 AM com.sun.faces.config.ConfigureListener contextInitialized
    INFO: Initializing Sun's JavaServer Faces implementation (1.2-NIGHTLY_20060407) for context '/AMS'
    Jan 12, 2011 10:18:19 AM com.sun.faces.config.ConfigureListener contextInitialized
    INFO: Completed initializing Sun's JavaServer Faces implementation (1.2-NIGHTLY_20060407) for context '/AMS'
    Jan 12, 2011 10:18:19 AM org.apache.coyote.http11.Http11Protocol start
    INFO: Starting Coyote HTTP/1.1 on http-9999
    Jan 12, 2011 10:18:19 AM org.apache.jk.common.ChannelSocket init
    INFO: JK: ajp13 listening on /0.0.0.0:8009
    Jan 12, 2011 10:18:19 AM org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/172 config=null
    Jan 12, 2011 10:18:19 AM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 9019 ms
    Hibernate: select asset0_.asset_id as asset1_0_, asset0_.as_serial as as2_0_, asset0_.as_position as as3_0_, asset0_.as_delivered as as4_0_ from asset_table asset0_
    [1 yes ok 0125, 2 yes ok 0125, 3 yes ok 0125, 4 yes ok 0125, 5 yes ok 0125, 6 yes ok 0125, 7 yes ok 0125]
    Jan 12, 2011 10:18:52 AM javax.faces.event.MethodExpressionActionListener processAction
    SEVERE: "Received 'java.lang.NoClassDefFoundError' when invoking action listener '#{excelBean.createExcel}' for component 'j_id_jsp_1989708854_2'
    Jan 12, 2011 10:18:52 AM javax.faces.event.MethodExpressionActionListener processAction
    SEVERE: java.lang.NoClassDefFoundError: org/apache/poi/hssf/usermodel/HSSFWorkbook
    at com.idexcel.pc.ExcelBean.createExcel(ExcelBean.jav a:46)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.el.parser.AstValue.invoke(AstValue.java :172)
    at org.apache.el.MethodExpressionImpl.invoke(MethodEx pressionImpl.java:276)
    at org.apache.jasper.el.JspMethodExpression.invoke(Js pMethodExpression.java:68)
    at javax.faces.event.MethodExpressionActionListener.p rocessAction(MethodExpressionActionListener.java:8 8)
    at javax.faces.event.ActionEvent.processListener(Acti onEvent.java:77)
    at javax.faces.component.UIComponentBase.broadcast(UI ComponentBase.java:775)
    at javax.faces.component.UICommand.broadcast(UIComman d.java:369)
    at javax.faces.component.UIViewRoot.broadcastEvents(U IViewRoot.java:452)
    at javax.faces.component.UIViewRoot.processApplicatio n(UIViewRoot.java:764)
    at com.sun.faces.lifecycle.InvokeApplicationPhase.exe cute(InvokeApplicationPhase.java:97)
    at com.sun.faces.lifecycle.LifecycleImpl.phase(Lifecy cleImpl.java:266)
    at com.sun.faces.lifecycle.LifecycleImpl.execute(Life cycleImpl.java:132)
    at javax.faces.webapp.FacesServlet.service(FacesServl et.java:244)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:128)
    at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:293)
    at org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:849)
    at org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.process(Http11Protocol.java:583)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run( JIoEndpoint.java:454)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.ClassNotFoundException: org.apache.poi.hssf.usermodel.HSSFWorkbook
    at org.apache.catalina.loader.WebappClassLoader.loadC lass(WebappClassLoader.java:1387)
    at org.apache.catalina.loader.WebappClassLoader.loadC lass(WebappClassLoader.java:1233)
    ... 30 more

    Jan 12, 2011 10:45:20 AM org.apache.coyote.http11.Http11Protocol pause
    INFO: Pausing Coyote HTTP/1.1 on http-9999
    Jan 12, 2011 10:45:22 AM org.apache.catalina.core.StandardService stop
    INFO: Stopping service Catalina
    Jan 12, 2011 10:45:23 AM org.apache.catalina.core.ApplicationContext log
    INFO: Closing Spring root WebApplicationContext
    Jan 12, 2011 10:45:23 AM org.springframework.context.support.AbstractApplic ationContext doClose
    INFO: Closing org.springframework.web.context.support.XmlWebAppl icationContext@157c2bd: display name [Root WebApplicationContext]; startup date [Wed Jan 12 10:18:13 IST 2011]; root of context hierarchy
    Jan 12, 2011 10:45:24 AM org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry destroySingletons
    INFO: Destroying singletons in org.springframework.beans.factory.support.DefaultL istableBeanFactory@17f409c: defining beans [dataSource,sessionFactory,hibernateTemplate,hibern ateDAO,excelBean]; root of factory hierarchy
    Jan 12, 2011 10:45:24 AM org.springframework.orm.hibernate3.AbstractSession FactoryBean destroy
    INFO: Closing Hibernate SessionFactory
    Jan 12, 2011 10:45:24 AM org.hibernate.impl.SessionFactoryImpl close
    INFO: closing
    Jan 12, 2011 10:45:27 AM org.apache.coyote.http11.Http11Protocol destroy
    INFO: Stopping Coyote HTTP/1.1 on http-9999

  3. #3
    AmrKhaled is offline Member
    Join Date
    Jan 2011
    Posts
    3
    Rep Power
    0

Similar Threads

  1. navigation b/w frames
    By imrankhan in forum AWT / Swing
    Replies: 3
    Last Post: 03-19-2012, 01:25 PM
  2. JBOSS Drool rule writing problem
    By ping.animesh in forum Advanced Java
    Replies: 0
    Last Post: 05-12-2010, 12:44 PM
  3. Navigation inside a webpage...?
    By JavaStudent23 in forum New To Java
    Replies: 1
    Last Post: 03-27-2010, 12:54 PM
  4. a navigation bar that has floating images
    By shayz in forum Advanced Java
    Replies: 3
    Last Post: 02-07-2009, 02:52 PM
  5. Identifier Naming Rule
    By udayadas in forum Advanced Java
    Replies: 1
    Last Post: 08-21-2008, 06:56 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •