[JBoss Seam] - Deployment: Where to put richfaces-*.jar for rich:tree?!
by mugwump
The simple idea to use a rich:tree to display some tree-like data from a backing bean is currently turning into a nightmare:
As rich:tree needs its TreeNode (org.richfaces.component.TreeNode), the method:
| public TreeNode getChildTree()
|
forces me to package the richfaces-jar inside the ear and reference it from the application.xml (instead of simply dropping it into //WEB-INF/lib, which is the default.
When I do that, I get a nasty exception:
| org.jboss.deployment.DeploymentException: URL file:/C:/jboss-4.2.0.GA/server/default/deploy/lehrbuch-psychologie.ear/lehrbuch-psychologie.war/ deployment failed
| at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:379)
| at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
| at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
| at org.jboss.web.WebModule.startModule(WebModule.java:83)
| at org.jboss.web.WebModule.startService(WebModule.java:61)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
| ....
|
with no indication, where this error might come from.
Has anybody any experiences/best practices on how to use the rich:tree with seam?! Where to put the richfaces-jar?! Where to build the tree-model (I do not want to build it in the web-layer: I currently like the idea of keeping stuff together and keeping the web-layer clean)?!
cheers&thx
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4060718#4060718
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4060718
18Â years, 9Â months
[Persistence, JBoss/CMP, Hibernate, Database] - EJB QL table name with underscores?
by wojtekb82
Hi, I get the following error:
2007-07-05 11:03:51,377 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Incomplete Deployment listing:
|
| --- MBeans waiting for other MBeans ---
| ObjectName: jboss.j2ee:jndiName=xxxxxx/ejb/XXXXXXXX,service=EJB
| State: FAILED
| Reason: org.jboss.deployment.DeploymentException: Error compiling EJB-QL statement 'SELECT OBJECT(partner) FROM TABLE_NAME_WITH_UNDERSCORES partner'; - nested
| throwable: (org.jboss.ejb.plugins.cmp.ejbql.ParseException: Encountered "TABLE_" at line 1, column 29.
| Was expecting one of:
| "IN" ...
| <ABSTRACT_SCHEMA> ...
| )
|
| --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
| ObjectName: jboss.j2ee:jndiName=xxxxxx/ejb/XXXXXXXX,service=EJB
| State: FAILED
| Reason: org.jboss.deployment.DeploymentException: Error compiling EJB-QL statement 'SELECT OBJECT(partner) FROM TABLE_NAME_WITH_UNDERSCORES partner'; - nested
| throwable: (org.jboss.ejb.plugins.cmp.ejbql.ParseException: Encountered "TABLE_" at line 1, column 29.
| Was expecting one of:
| "IN" ...
| <ABSTRACT_SCHEMA> ...
| )
|
|
I am using jboss-3.2.8.SP1 and j2sdk1.4.2_14
Thanks in advance for replies.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4060713#4060713
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4060713
18Â years, 9Â months
[JNDI/Naming/Network] - problem with Entity Bean lookup through other ejb
by prakash.dumbre
Jboss Migration:
I am migrating our application from Weblogic 7.0 to JBoss 4.0.5. I have
successfully Deployed our ear file after changing all xml files on JBoss.
But now i am facing problem regarding to ejb JNDI lookup for Local Entity
Bean
Actually I have lookup entity bean through another ejb.Now if my application executes that time following error occurs.
No binding for: ejb in context env, bindings:
javax.naming.NameNotFoundException: ejb not bound
or in my log
com.xxxxx.exception.XXXXException: MSG: java.rmi.ServerException:
EJBException:; nested exception is:
com.cedera.exception.EJBException: MSG: javax.naming.NameNotFoundException:
ejb not bound ejb not bound TIME: 0EJBException:; nested exception is:
com.exception.EJBException: MSG: javax.naming.NameNotFoundException: ejb
not bound ejb not bound TIME: 0 TIME: 0
In Detail : I am getting remote interface in the client bean. In that remote
interface there is one method call getProductDetails(). In this method we
have again lookup our entity bean but it is giving error while running the
application. Following is the necessary information
JNDI VIEW:
java:comp namespace of the BusinessSKUEntity bean:
+- HandleDelegate
+- ORB
+- env
| +- ejb
| | +- local
| | | +- BusinessSKUEntity[link -> local/BusinessSKUEntity@31008771]
Above is my entity bean jndi view for BusinessSKUEntity.
My code to lookup :
InitialContext initialcontext = new InitialContext();
BusinessSKUEntityHome businessskuentityhome = (BusinessSKUEntityHome)initialcontext.lookup("java:comp/env/ejb/local/BusinessSKUEntity");
BusinessSKUEntityPK businessskuentitypk = new BusinessSKUEntityPK(i);
BusinessSKUEntity businessskuentity = businessskuentityhome.findByPrimaryKey(businessskuentitypk);
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4060700#4060700
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4060700
18Â years, 9Â months