[JBoss Seam] - Re: PropertyNotFoundException - Target Unreachable
by strickla
After reading the Seam reference documentation a little more closely I found that if you are deploying a WAR (like I am) that the seam.properties file must be in the WEB-INF/classes directory of the WAR.
Placing the seam.properties file there appears to allow Seam to find and instantiate my beans. Now however I get the following exception
javax.servlet.ServletException: Could not instantiate Seam component: login
| javax.faces.webapp.FacesServlet.service(FacesServlet.java:256)
| org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| org.jboss.seam.web.HttpAuthFilter.processBasicAuth(HttpAuthFilter.java:121)
| org.jboss.seam.web.HttpAuthFilter.doFilter(HttpAuthFilter.java:79)
| org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:55)
| org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:59)
| org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:55)
| org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:81)
| org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:55)
| org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:47)
| org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:55)
| org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:126)
| org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
|
| root cause
|
| org.jboss.seam.InstantiationException: Could not instantiate Seam component: login
| org.jboss.seam.Component.newInstance(Component.java:1744)
| org.jboss.seam.Component.getInstance(Component.java:1647)
| org.jboss.seam.Component.getInstance(Component.java:1614)
| org.jboss.seam.Component.getInstance(Component.java:1608)
| org.jboss.seam.jsf.SeamELResolver.getValue(SeamELResolver.java:49)
| javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
| com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
| org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
| org.jboss.el.parser.AstValue.getTarget(AstValue.java:34)
| org.jboss.el.parser.AstValue.invoke(AstValue.java:95)
| org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
| com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
| javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
| com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
| javax.faces.component.UICommand.broadcast(UICommand.java:383)
| javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:447)
| javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:752)
| com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
| com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
| com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
| javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
| org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| org.jboss.seam.web.HttpAuthFilter.processBasicAuth(HttpAuthFilter.java:121)
| org.jboss.seam.web.HttpAuthFilter.doFilter(HttpAuthFilter.java:79)
| org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:55)
| org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:59)
| org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:55)
| org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:81)
| org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:55)
| org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:47)
| org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:55)
| org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:126)
| org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
|
| root cause
|
| javax.naming.NameNotFoundException: NetProv not bound
| org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
| org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
| org.jnp.server.NamingServer.getObject(NamingServer.java:543)
| org.jnp.server.NamingServer.lookup(NamingServer.java:267)
| org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
| org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
| javax.naming.InitialContext.lookup(InitialContext.java:351)
| org.jboss.seam.Component.instantiateSessionBean(Component.java:1108)
| org.jboss.seam.Component.instantiate(Component.java:1094)
| org.jboss.seam.Component.newInstance(Component.java:1740)
| org.jboss.seam.Component.getInstance(Component.java:1647)
| org.jboss.seam.Component.getInstance(Component.java:1614)
| org.jboss.seam.Component.getInstance(Component.java:1608)
| org.jboss.seam.jsf.SeamELResolver.getValue(SeamELResolver.java:49)
| javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
| com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
| org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
| org.jboss.el.parser.AstValue.getTarget(AstValue.java:34)
| org.jboss.el.parser.AstValue.invoke(AstValue.java:95)
| org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
| com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
| javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
| com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
| javax.faces.component.UICommand.broadcast(UICommand.java:383)
| javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:447)
| javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:752)
| com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
| com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
| com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
| javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
| org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| org.jboss.seam.web.HttpAuthFilter.processBasicAuth(HttpAuthFilter.java:121)
| org.jboss.seam.web.HttpAuthFilter.doFilter(HttpAuthFilter.java:79)
| org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:55)
| org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:59)
| org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:55)
| org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:81)
| org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:55)
| org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:47)
| org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:55)
| org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:126)
| org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048449#4048449
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048449
18 years, 11 months
[EJB 3.0] - EJB3 Application Client - how to use
by leonell
Hello,
I installed JBOSS AS 4.2.0, integrated it with Netbeans 5.5.1, created simple EAR application with EJB, WAR and ApplicationClient module.
Deployment was successful.
| [EARDeployer] Init J2EE application: file:/home/lur/AppServery/jboss-4.2.0.GA/server/all/deploy/SimpleTest.ear
| WARN [MainDeployer] Found non-jar deployer for SimpleTest-ejb.jar: MBeanProxyExt[jboss.ejb3:service=EJB3Deployer]
| INFO [ClientDeployer] Client ENC bound under: SimpleTest-app-client
| INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
| INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=SimpleTest.ear,jar=SimpleTest-ejb.jar,name=ServerTimeBean,service=EJB3 with dependencies:
| INFO [EJBContainer] STARTED EJB: cz.qds.simpletest.sbs.ServerTimeBean ejbName: ServerTimeBean
| INFO [EJB3Deployer] Deployed: file:/home/lur/AppServery/jboss-4.2.0.GA/server/all/tmp/deploy/tmp65459SimpleTest.ear-contents/SimpleTest-ejb.jar
| INFO [TomcatDeployer] deploy, ctxPath=/SimpleTest-war, warUrl=.../tmp/deploy/tmp65459SimpleTest.ear-contents/SimpleTest-war-exp.war/
| INFO [EARDeployer] Started J2EE application: file:/home/lur/AppServery/jboss-4.2.0.GA/server/all/deploy/SimpleTest.ear
|
Glassfish supports access thru Java WebStart, how to use (EAR based) application client with Jboss?
| INFO [ClientDeployer] Client ENC bound under: SimpleTest-app-client
|
Thank you very much,
Leonell
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048442#4048442
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048442
18 years, 11 months
[JBossCache] - Re: EJB3 + JBossCache, accessing from external client
by bstansberry@jboss.com
On the server side, use
<property name="hibernate.cache.provider_class">org.jboss.ejb3.entity.TreeCacheProviderHook</property>
That provider knows how to talk to the jboss.cache:service=EJB3EntityTreeCache service.
anonymous wrote : The only references i've found about this indicate that you need to include those three lines above to the hibernate.cfg.xml file in the client side. So i do so. And now everything works.
It's not clear to me from your post whether you want second-level caching on the client side.
1) If you do, sound's like it's at least semi working. You just need to be sure that the JBoss Cache configuration on the client side matches the one on the server side.
2) If you don't, include this in your hibernate.cfg.xml:
<property name="hibernate.cache.use_second_level_cache">false</property>
| <property name="hibernate.cache.use_query_cache">false</property>
Hibernate defaults to 'true' on 'use_second_level_cache' so if you mark any of your entities as cacheable it will throw the exception you posted when you don't configure a provider. Explicitly setting the config to false should get around the problem.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048436#4048436
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048436
18 years, 11 months
[JBoss Messaging] - Server Peer Configuration
by snecu001
I have replaced the Hypersonic database with oracle9i datasource.
I have followed the wiki steps and configure the DefaultDS to point my oracle but when I use the messaging service I do not wish to use persistence i.e no database storage for PersistenceManager,PostOffice or JMSUserManager.
The problem is that when the server peer starts is depended on PersistenceManager, JMSUSerManager services since I did not add the oracle-pesistence-ds.xml file to the messaging.sar there are no such services. I have tried to comment out the 2 depend statements but it seems that the PersistenceManager name is required when invoking serverStart(..) from ServerPeer.java.
Question is how can I configure messaging-service.xml for the server peer not to look for the Persistencemanager service ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048435#4048435
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048435
18 years, 11 months