[jboss-user] [JBoss Seam] - TROUBLE RUNNING BOOKING EXAMPLE ON TOMCAT
igorarbizu
do-not-reply at jboss.com
Sun Sep 10 15:37:14 EDT 2006
Hi, I've deployd on tomcat the booking example as explained in 1.0.1 distribution, and it starts ok but when I try to make any action I get errors I, m not able to solve. This is the lod starting tomcat:
INFO 10-09 21:21:54,203 (Log4JLogger.java:info:94) -Reading standard config org/apache/myfaces/resource/standard-faces-config.xml
INFO 10-09 21:21:55,015 (Log4JLogger.java:info:94) -Reading config jar:file:/C:/Tomcat5.5/webapps/jboss-seam-booking/WEB-INF/lib/jboss-seam-debug.jar!/META-INF/faces-config.xml
INFO 10-09 21:21:55,031 (Log4JLogger.java:info:94) -Reading config jar:file:/C:/Tomcat5.5/webapps/jboss-seam-booking/WEB-INF/lib/jboss-seam-ui.jar!/META-INF/faces-config.xml
INFO 10-09 21:21:55,093 (Log4JLogger.java:info:94) -Reading config jar:file:/C:/Tomcat5.5/webapps/jboss-seam-booking/WEB-INF/lib/jboss-seam.jar!/META-INF/faces-config.xml
INFO 10-09 21:21:55,125 (Log4JLogger.java:info:94) -Reading config jar:file:/C:/Tomcat5.5/webapps/jboss-seam-booking/WEB-INF/lib/jsf-facelets.jar!/META-INF/faces-config.xml
INFO 10-09 21:21:55,156 (Log4JLogger.java:info:94) -Reading config /WEB-INF/faces-config.xml
WARN 10-09 21:21:55,328 (Log4JLogger.java:warn:104) -Locale name in faces-config.xml null or empty, setting locale to default locale : es_ES
INFO 10-09 21:21:55,750 (Log4JLogger.java:info:94) -ServletContext 'C:\Tomcat5.5\webapps\jboss-seam-booking\' initialized.
INFO 10-09 21:21:55,750 (Log4JLogger.java:info:94) -Welcome to Seam 1.0.1.GA
INFO 10-09 21:21:55,765 (Log4JLogger.java:info:94) -reading components.xml
INFO 10-09 21:21:55,968 (Log4JLogger.java:info:94) -reading properties from: /seam.properties
INFO 10-09 21:21:55,968 (Log4JLogger.java:info:94) -reading properties from: /jndi.properties
INFO 10-09 21:21:55,984 (Log4JLogger.java:info:94) -initializing Seam
INFO 10-09 21:21:56,171 (Log4JLogger.java:info:94) -Component: org.jboss.seam.core.init, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Init
INFO 10-09 21:21:56,609 (Log4JLogger.java:info:94) -Component: org.jboss.seam.core.pages, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Pages
INFO 10-09 21:21:56,640 (Log4JLogger.java:info:94) -Component: events, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Events
INFO 10-09 21:21:56,656 (Log4JLogger.java:info:94) -Component: org.jboss.seam.core.manager, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.core.Manager
INFO 10-09 21:21:56,734 (Log4JLogger.java:info:94) -Component: switcher, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.Switcher
INFO 10-09 21:21:56,750 (Log4JLogger.java:info:94) -Component: redirect, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Redirect
INFO 10-09 21:21:56,765 (Log4JLogger.java:info:94) -Component: httpError, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.HttpError
INFO 10-09 21:21:56,796 (Log4JLogger.java:info:94) -Component: userPrincipal, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.UserPrincipal
INFO 10-09 21:21:56,828 (Log4JLogger.java:info:94) -Component: isUserInRole, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.IsUserInRole
INFO 10-09 21:21:56,843 (Log4JLogger.java:info:94) -Component: conversation, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Conversation
INFO 10-09 21:21:56,875 (Log4JLogger.java:info:94) -Component: conversationList, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationList
INFO 10-09 21:21:56,906 (Log4JLogger.java:info:94) -Component: conversationStack, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationStack
INFO 10-09 21:21:56,921 (Log4JLogger.java:info:94) -Component: facesContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesContext
INFO 10-09 21:21:56,937 (Log4JLogger.java:info:94) -Component: pageContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.PageContext
INFO 10-09 21:21:57,015 (Log4JLogger.java:info:94) -Component: eventContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.EventContext
INFO 10-09 21:21:57,031 (Log4JLogger.java:info:94) -Component: sessionContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.SessionContext
INFO 10-09 21:21:57,046 (Log4JLogger.java:info:94) -Component: statelessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.StatelessContext
INFO 10-09 21:21:57,062 (Log4JLogger.java:info:94) -Component: applicationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ApplicationContext
INFO 10-09 21:21:57,078 (Log4JLogger.java:info:94) -Component: conversationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationContext
INFO 10-09 21:21:57,109 (Log4JLogger.java:info:94) -Component: businessProcessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.BusinessProcessContext
INFO 10-09 21:21:57,109 (Log4JLogger.java:info:94) -Component: locale, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Locale
INFO 10-09 21:21:57,125 (Log4JLogger.java:info:94) -Component: messages, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.Messages
INFO 10-09 21:21:57,140 (Log4JLogger.java:info:94) -Component: interpolator, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Interpolator
INFO 10-09 21:21:57,171 (Log4JLogger.java:info:94) -Component: facesMessages, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesMessages
INFO 10-09 21:21:57,203 (Log4JLogger.java:info:94) -Component: resourceBundle, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.ResourceBundle
INFO 10-09 21:21:57,218 (Log4JLogger.java:info:94) -Component: localeSelector, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.LocaleSelector
INFO 10-09 21:21:57,250 (Log4JLogger.java:info:94) -Component: uiComponent, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.UiComponent
INFO 10-09 21:21:57,265 (Log4JLogger.java:info:94) -Component: org.jboss.seam.remoting.messaging.subscriptionRegistry, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.remoting.messaging.SubscriptionRegistry
INFO 10-09 21:21:57,296 (Log4JLogger.java:info:94) -Component: pojoCache, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.PojoCache
INFO 10-09 21:21:57,656 (Log4JLogger.java:info:94) -Component: org.jboss.seam.debug.introspector, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.debug.Introspector
INFO 10-09 21:21:57,750 (Log4JLogger.java:info:94) -Component: org.jboss.seam.debug.contexts, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.debug.Contexts
INFO 10-09 21:21:57,781 (Log4JLogger.java:info:94) -scanning: /C:/Tomcat5.5/webapps/jboss-seam-booking/WEB-INF/lib/jboss-seam-booking.jar
INFO 10-09 21:21:58,109 (Log4JLogger.java:info:94) -Component: changePassword, scope: EVENT, type: STATEFUL_SESSION_BEAN, class: org.jboss.seam.example.booking.ChangePasswordAction, JNDI: jboss-seam-booking/ChangePasswordAction/local
INFO 10-09 21:21:58,156 (Log4JLogger.java:info:94) -Component: booking, scope: CONVERSATION, type: ENTITY_BEAN, class: org.jboss.seam.example.booking.Booking
INFO 10-09 21:21:58,265 (Log4JLogger.java:info:94) -Component: register, scope: EVENT, type: STATEFUL_SESSION_BEAN, class: org.jboss.seam.example.booking.RegisterAction, JNDI: jboss-seam-booking/RegisterAction/local
INFO 10-09 21:21:58,281 (Log4JLogger.java:info:94) -Component: login, scope: STATELESS, type: STATELESS_SESSION_BEAN, class: org.jboss.seam.example.booking.LoginAction, JNDI: jboss-seam-booking/LoginAction/local
INFO 10-09 21:21:58,296 (Log4JLogger.java:info:94) -Component: hotelBooking, scope: CONVERSATION, type: STATEFUL_SESSION_BEAN, class: org.jboss.seam.example.booking.HotelBookingAction, JNDI: jboss-seam-booking/HotelBookingAction/local
INFO 10-09 21:21:58,328 (Log4JLogger.java:info:94) -Component: hotelSearch, scope: SESSION, type: STATEFUL_SESSION_BEAN, class: org.jboss.seam.example.booking.HotelSearchingAction, JNDI: jboss-seam-booking/HotelSearchingAction/local
INFO 10-09 21:21:58,390 (Log4JLogger.java:info:94) -Component: bookingList, scope: SESSION, type: STATEFUL_SESSION_BEAN, class: org.jboss.seam.example.booking.BookingListAction, JNDI: jboss-seam-booking/BookingListAction/local
INFO 10-09 21:21:58,406 (Log4JLogger.java:info:94) -Component: hotel, scope: CONVERSATION, type: ENTITY_BEAN, class: org.jboss.seam.example.booking.Hotel
INFO 10-09 21:21:58,421 (Log4JLogger.java:info:94) -Component: logout, scope: STATELESS, type: STATELESS_SESSION_BEAN, class: org.jboss.seam.example.booking.LogoutAction, JNDI: jboss-seam-booking/LogoutAction/local
INFO 10-09 21:21:58,421 (Log4JLogger.java:info:94) -Component: user, scope: SESSION, type: ENTITY_BEAN, class: org.jboss.seam.example.booking.User
INFO 10-09 21:21:58,437 (Log4JLogger.java:info:94) -done initializing Seam
INFO 10-09 21:31:30,296 (Log4JLogger.java:info:94) -reading pages.xml
INFO 10-09 21:31:32,171 (Log4JLogger.java:info:94) -No context init parameter 'org.apache.myfaces.PRETTY_HTML' found, using default value true
INFO 10-09 21:31:32,171 (Log4JLogger.java:info:94) -No context init parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value true
INFO 10-09 21:31:32,171 (Log4JLogger.java:info:94) -Tomahawk jar not available. Autoscrolling, DetectJavascript, AddResourceClass and CheckExtensionsFilter are disabled now.
And if I try to login I get this error:
ERROR 10-09 21:31:44,828 (Log4JLogger.java:error:119) -Servlet.service() para servlet Faces Servlet lanzó excepción
javax.faces.FacesException: Error calling action method of component with id _id2:_id14
at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:79)
at javax.faces.component.UICommand.broadcast(UICommand.java:106)
at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:94)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:168)
at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:343)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:30)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
Caused by: org.jboss.seam.InstantiationException: Could not instantiate Seam component: login
at org.jboss.seam.Component.newInstance(Component.java:735)
at org.jboss.seam.Component.newInstance(Component.java:1308)
at org.jboss.seam.Component.getInstance(Component.java:1263)
at org.jboss.seam.Component.getInstance(Component.java:1246)
at org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:44)
at org.apache.myfaces.config.LastVariableResolverInChain.resolveVariable(LastVariableResolverInChain.java:42)
at com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:134)
at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:65)
at com.sun.el.parser.AstValue.getTarget(AstValue.java:62)
at com.sun.el.parser.AstValue.invoke(AstValue.java:147)
at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:69)
at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
... 23 more
Caused by: javax.naming.NamingException: Local server is not initialized
at org.jnp.interfaces.LocalOnlyContextFactory.getInitialContext(LocalOnlyContextFactory.java:45)
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.(Unknown Source)
at org.jboss.seam.util.Naming.getInitialContext(Naming.java:26)
at org.jboss.seam.util.Naming.getInitialContext(Naming.java:37)
at org.jboss.seam.Component.instantiate(Component.java:774)
at org.jboss.seam.Component.newInstance(Component.java:731)
... 36 more
or If I try to register:
INFO 10-09 21:36:12,781 (Log4JLogger.java:info:94) -Hibernate Annotations 3.2.0.CR1
ERROR 10-09 21:36:12,984 (Log4JLogger.java:error:119) -Servlet.service() para servlet Faces Servlet lanzó excepción
org.jboss.seam.InstantiationException: Could not instantiate Seam component: register
at org.jboss.seam.Component.newInstance(Component.java:735)
at org.jboss.seam.Component.newInstance(Component.java:1308)
at org.jboss.seam.Component.getInstance(Component.java:1263)
at org.jboss.seam.Component.getInstance(Component.java:1246)
at org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:44)
at org.apache.myfaces.config.LastVariableResolverInChain.resolveVariable(LastVariableResolverInChain.java:42)
at com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:134)
at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:65)
at com.sun.el.parser.AstValue.getTarget(AstValue.java:62)
at com.sun.el.parser.AstValue.getType(AstValue.java:55)
at com.sun.el.ValueExpressionImpl.getType(ValueExpressionImpl.java:180)
at com.sun.facelets.el.TagValueExpression.getType(TagValueExpression.java:60)
at com.sun.facelets.el.LegacyValueBinding.getType(LegacyValueBinding.java:94)
at org.apache.myfaces.shared_impl.renderkit._SharedRendererUtils.findUIOutputConverter(_SharedRendererUtils.java:55)
at org.apache.myfaces.shared_impl.renderkit.RendererUtils.findUIOutputConverter(RendererUtils.java:316)
at org.apache.myfaces.shared_impl.renderkit.RendererUtils.getConvertedUIOutputValue(RendererUtils.java:636)
at org.apache.myfaces.shared_impl.renderkit.html.HtmlSecretRendererBase.getConvertedValue(HtmlSecretRendererBase.java:106)
at javax.faces.component.UIInput.getConvertedValue(UIInput.java:395)
at javax.faces.component.UIInput.validate(UIInput.java:349)
at javax.faces.component.UIInput.processValidators(UIInput.java:183)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:624)
at javax.faces.component.UIForm.processValidators(UIForm.java:70)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:624)
at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:146)
at org.apache.myfaces.lifecycle.LifecycleImpl.processValidations(LifecycleImpl.java:262)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:76)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:30)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.naming.NamingException: Local server is not initialized
at org.jnp.interfaces.LocalOnlyContextFactory.getInitialContext(LocalOnlyContextFactory.java:45)
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.(Unknown Source)
at org.jboss.seam.util.Naming.getInitialContext(Naming.java:26)
at org.jboss.seam.util.Naming.getInitialContext(Naming.java:37)
at org.jboss.seam.Component.instantiate(Component.java:774)
at org.jboss.seam.Component.newInstance(Component.java:731)
... 43 more
Any help would be much appreciated
Thanks in advance
Igor
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970629#3970629
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970629
More information about the jboss-user
mailing list