[jboss-user] [JBoss Seam] - Seam 1.0.1 GA on Tomcat 5.5

jimcarrey do-not-reply at jboss.com
Wed Sep 27 11:07:33 EDT 2006


Hi,
I read the FAQ for deploying Seam 1.0.1.GA on Tomcat 5.5.
I compile and deploy the booking example.
When I try to register a new user I get the following error in my browser:

exception 

javax.servlet.ServletException: Could not instantiate Seam component: register
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)
	org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:30)


root cause 

org.jboss.seam.InstantiationException: Could not instantiate Seam component: register
	org.jboss.seam.Component.newInstance(Component.java:735)
	org.jboss.seam.Component.newInstance(Component.java:1308)
	org.jboss.seam.Component.getInstance(Component.java:1263)
	org.jboss.seam.Component.getInstance(Component.java:1246)
	org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:44)
	org.apache.myfaces.config.LastVariableResolverInChain.resolveVariable(LastVariableResolverInChain.java:42)
	com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:134)
	com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:65)
	com.sun.el.parser.AstValue.getTarget(AstValue.java:62)
	com.sun.el.parser.AstValue.getType(AstValue.java:55)
	com.sun.el.ValueExpressionImpl.getType(ValueExpressionImpl.java:180)
	com.sun.facelets.el.TagValueExpression.getType(TagValueExpression.java:60)
	com.sun.facelets.el.LegacyValueBinding.getType(LegacyValueBinding.java:94)
	org.apache.myfaces.shared_impl.renderkit._SharedRendererUtils.findUIOutputConverter(_SharedRendererUtils.java:55)
	org.apache.myfaces.shared_impl.renderkit.RendererUtils.findUIOutputConverter(RendererUtils.java:316)
	org.apache.myfaces.shared_impl.renderkit.RendererUtils.getConvertedUIOutputValue(RendererUtils.java:636)
	org.apache.myfaces.shared_impl.renderkit.html.HtmlSecretRendererBase.getConvertedValue(HtmlSecretRendererBase.java:106)
	javax.faces.component.UIInput.getConvertedValue(UIInput.java:395)
	javax.faces.component.UIInput.validate(UIInput.java:349)
	javax.faces.component.UIInput.processValidators(UIInput.java:183)
	javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:624)
	javax.faces.component.UIForm.processValidators(UIForm.java:70)
	javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:624)
	javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:146)
	org.apache.myfaces.lifecycle.LifecycleImpl.processValidations(LifecycleImpl.java:262)
	org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:76)
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
	org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:30)



And I get the following error, in my tomcat console:

INFO  27-09 15:47:10,703 (Log4JLogger.java:info:94)  -No context init parameter
'org.apache.myfaces.PRETTY_HTML' found, using default value true
INFO  27-09 15:47:10,703 (Log4JLogger.java:info:94)  -No context init parameter
'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value true
INFO  27-09 15:47:10,703 (Log4JLogger.java:info:94)  -Tomahawk jar not available
. Autoscrolling, DetectJavascript, AddResourceClass and CheckExtensionsFilter ar
e disabled now.
INFO  27-09 15:47:39,578 (Log4JLogger.java:info:94)  -Hibernate Annotations 3.2.
0.CR1
ERROR 27-09 15:47:39,687 (Log4JLogger.java:error:119)  -Servlet.service() for se
rvlet Faces Servlet threw exception
org.jboss.seam.InstantiationException: Could not instantiate Seam component: reg
ister
        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(SeamVariableR
esolver.java:44)
        at org.apache.myfaces.config.LastVariableResolverInChain.resolveVariable
(LastVariableResolverInChain.java:42)
        at com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyE
LContext.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.jav
a:60)
        at com.sun.facelets.el.LegacyValueBinding.getType(LegacyValueBinding.jav
a:94)
        at org.apache.myfaces.shared_impl.renderkit._SharedRendererUtils.findUIO
utputConverter(_SharedRendererUtils.java:55)
        at org.apache.myfaces.shared_impl.renderkit.RendererUtils.findUIOutputCo
nverter(RendererUtils.java:316)
        at org.apache.myfaces.shared_impl.renderkit.RendererUtils.getConvertedUI
OutputValue(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(UIComponentBa
se.java:624)
        at javax.faces.component.UIForm.processValidators(UIForm.java:70)
        at javax.faces.component.UIComponentBase.processValidators(UIComponentBa
se.java:624)
        at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:14
6)
        at org.apache.myfaces.lifecycle.LifecycleImpl.processValidations(Lifecyc
leImpl.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(Appl
icationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
        at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter
.java:30)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:868)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
rocessConnection(Http11BaseProtocol.java:663)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
lowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:684)
        at java.lang.Thread.run(Thread.java:595)
Caused by: javax.naming.NamingException: Local server is not initialized
        at org.jnp.interfaces.LocalOnlyContextFactory.getInitialContext(LocalOnl
yContextFactory.java:45)
        at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
67)
        at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247
)
        at javax.naming.InitialContext.init(InitialContext.java:223)
        at javax.naming.InitialContext.(InitialContext.java:197)
        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 greatly appreciated, 
Jim


















View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3974575#3974575

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3974575



More information about the jboss-user mailing list