[JBoss Seam] - Problem with Seam in Eclipse
by sandytech
Hi All,
I followed the below link to start a seam application in Eclipse.
http://wiki.jboss.org/wiki/Wiki.jsp?page=SeamEclipseHowto.I've done as it is given but when i'm deploying the application its showing an error like
15:09:27,203 ERROR [MainDeployer] Could not initialise deployment: file:/D:/Program Files/JBossforSeam/server/default/deploy/jbo
seam-registration.ear
org.jboss.deployment.DeploymentException: Failed to find module file: el-api.jar
at org.jboss.deployment.EARDeployer.init(EARDeployer.java:257)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:872)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:809)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy8.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
Can anyone tell me why this sort of error occuring??
Thanks in advance.
Sandy
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044213#4044213
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044213
19 years, 1 month
[JBoss Seam] - @In required & session timeout, IdleRemover Exceptions and T
by saimonsez
Hi all,
I'm new to SEAM and so far it's realy impressive. JSF & Hibernate without the difficulties about lazy loading that made me crazy!
Anyway, I'm having a hard time to learn SEAM and I could need some help. The app I'm working on is relatively simple; a login mask, some crud combined with ajax.
The whole thing runs on Tomcat 6.0.10 in combination with Hibernate and a mySQL database. I have three questions regarding this setup and SEAM and I would appreciate every answer very much:
1) When a session timeout occurs and the user activates an action containing an "@In User user" attribute, the following Exception is thrown:
org.jboss.seam.RequiredException: In attribute requires non-null value: someAction.user
The page requires a login but SEAM does not throw an authorization exception. The problem has already be reported as a bug by someone else:
http://jira.jboss.com/jira/browse/JBSEAM-1041?page=com.atlassian.jira.plu...
How can I solve this problem? Right now the app catches every org.jboss.seam.RequiredException and does a redirect to /login.xhtml but this is probabely an unclean solution.
2) IdleRemover sometimes throws NullPointerExceptions and I have absolutely no idea why:
Exception in thread "IdleRemover" java.lang.NullPointerException
| at org.jboss.resource.connectionmanager.IdleRemover$1.run(IdleRemover.java:93)
| at java.lang.Thread.run(Thread.java:619)
I've googled around and did not find anything similar. Is this a bug or a known problem? This is not a major problem for me but since Eclipse opens the Debug perspective and the class file of IdleRemover automaticaly, its very, very annoying.
3) Finaly, TestNG is a mystery for me :( Why and how do I have to inject the org.hibernate.Session object to test my app? The example application tests work without this (?) And why do I get
javax.el.PropertyNotFoundException: ELResolver cannot handle a null base Object with identifier 'user'
on a class that tests the login process? The test class is identical with "RegisterTest.java" from the register example but I could post the code if you need it.
Thank you very much for the help!
Simon
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044212#4044212
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044212
19 years, 1 month
[JBoss jBPM] - Re: how list processes?
by kukeltje
The code of the core is partly documentation, but the testcases are great documentation. Realy simple isolated examples of how to use the api and great in combination with the javadocs. I've worked with several engine and the testcases of jBPM helped me more than thick fat pdf documents of other suppliers. (and a lot more than 1 day to get something running)
Besides that and without wanting to offend you, we get 2 types of feedback on the docs/engine: It's really sufficient and it s*cks. From my experience with both types of responses, the former is from people who read the docs to some extend, use the javadocs, experiment a little and 'get' it. The latter is from people who do not get it. Either because the think in/come from a really different direction, do not know java are lazy (not saying you are) or any other 'cause'.
Your question e.g. on how to get all tasks for a user for all running processes is a question I would normally not answer, simply because it is the default behaviour cases you could have seen that.
About the number of users in the forum. Yes, I have a lot of posts, but often I consult core developers and more and more other users kick in, Ed, Bernd, Martin (an eager JBoss/redhat employee) etc... (don't shoot if I forgot someone). And for the basic newbie stuff, lots of user already help each other out.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044201#4044201
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044201
19 years, 1 month
[EJB/JBoss] - Jboss Classloader isolation not working
by venkaiahp
I am using EJB2.1 Jboss4.0.2 and Xfire for webservices
1. I set the below things for Jboss class loader isolation
in JBOSS_HOME\server\default\deploy ear-deployer xml file
<attribute name="Isolated"> true
<attribute name="CallByValue"> true
and in jboss-service.xml with below
<attribute name="UseJBossWebLoader">false
2.In my application getting the local EJB proxy using the spring
with the below code
public static Object getEJB(String name, Class clazz)
{
// Look up the job slsb as a proxy factory bean.
LocalStatelessSessionProxyFactoryBean bean = new LocalStatelessSessionProxyFactoryBean();
bean.setJndiName(name);
bean.setBusinessInterface(clazz);
bean.setLookupHomeOnStartup(true);
bean.setResourceRef(false);
try
{
// Invoking after properties set ensure the lookup
// is performed.
bean.afterPropertiesSet();
}
catch(NamingException e)
{
logger.error("Naming Exception=" + e.getMessage());
}
// Proxy the factory bean to add the interceptor.
ProxyFactory factory = new ProxyFactory(new Class[] {clazz});
factory.setTarget(bean.getObject());
factory.addAdvice(0, new TransactionFailureInterceptor());
return factory.getProxy();
}
and while getting the proxy of the bean using the below code
ProcManager ProcManager = (ProcManager) BeanUtil
.getEJB("ProcManagerLocal", ProcManager.class);
where ProcManager is the interface commonly implemented by both Service class and EJB and this service class is exposed as a webservice using xfire over spring configuration.
3. With these configurations the application is getting deployed but a method call on the EJB throught service impl is throwing the below error
NoSuchMethodExceptionCaused by: java.lang.NoSuchMethodException: $Proxy104.logon(com.to.Logon)
at java.lang.Class.getMethod(Class.java:1581)
at org.springframework.ejb.access.LocalSlsbInvokerInt erceptor.invoke(LocalSlsbInvokerInterceptor.java:6 9)
at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :185)
at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:209)
... 49 more
3. Can some suggest on how to resolve this...
thanks in advance
venkat
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044200#4044200
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044200
19 years, 1 month