[JBoss Seam] - naive seam developer tries eclipse
by jjfraney
I want to recreate the example/registration in my eclipse with WTP and Tomcat as web server. I built and ran the example outside of eclipse first and used the result as a reference.
create Dynamic Web Project
import files from the example/registration putting them in the 'right' place: lib, components.xml, a seam.properties, mc-config.jar, but not the jboss-seam-registration.jar. My intent had been to put the beans in the project's src directory and let eclipse build and deposit them in the build/classes directory. Eclipse manipulates the tomcat configuration (setting a classpath somewhere) so that build/classes is in the classpath of the webapp. But this is not enough:
Looking into the reference build of the example, there appears to be a strong reason why the beans were bundled into a jar: to contain a seam.properties file. This file indicates to SEAM that the archive contains beans and should be scanned. Otherwise, the exception PropertyNotFoundException from JavaServerFaces library.
So, great naive idea, create a seam.properties file in the src directory so it shows in the classes directory. It worked, well, no it didn't. Seems the other files in that archive are also needed.
I'm not sure I want to continue forcing this to work. However, its a goal that I don't want to give up on yet.
Any thoughts?
Regards,
John
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080186#4080186
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080186
17 years, 4 months
[JBoss Portal] - Cannot install Blogs
by jvence
I keep getting this error when trying to deploy jboss-blog-preview (by copying the sar folder to the deploy directory. I have also installed forums and suspect that there's a conflict.
21:39:09,669 ERROR [MainDeployer] Could not create deployment: file:/Applications/dev/java/jboss-4.2.1.GA/server/default/deploy/jboss-blog.sar/
org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: org.jboss.security.acl.AclKernelFactory:service=aclKernelFactory
at org.jboss.system.ServiceCreator.install(ServiceCreator.java:103)
at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:449)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
at org.jboss.system.ServiceController.install(ServiceController.java:226)
at sun.reflect.GeneratedMethodAccessor24.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.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.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy4.install(Unknown Source)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor22.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 $Proxy9.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)
Try to comment out the mbean declaration in jboss-service.xml but that gave:
22:21:21,161 ERROR [[/jboss-blog]] Error configuring application listener of class org.apache.myfaces.webapp.StartupServletContextListener
java.lang.ClassNotFoundException: org.apache.myfaces.webapp.StartupServletContextListener
Anyone has a solution?
Many thanks
Jean
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080185#4080185
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080185
17 years, 4 months