[JBoss Seam] - Seam 1.1 on Resin
by svadu
HI All,
I've managed to run Seam 1.1 on Resin 3.0.21 with little workarounds (Gavin I posted about it on theserverside.com). It works pretty well for hibernate examples. However, if I want it to run in the ejb-3 micro-container I am getting the following exception:
| java.lang.RuntimeException: exception invoking: startup
| at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:112)
| at org.jboss.seam.Component.callComponentMethod(Component.java:1791)
| at org.jboss.seam.Component.callCreateMethod(Component.java:1739)
| at org.jboss.seam.Component.newInstance(Component.java:1728)
| at org.jboss.seam.contexts.Lifecycle.startup(Lifecycle.java:152)
| at org.jboss.seam.contexts.Lifecycle.endInitialization(Lifecycle.java:126)
| at org.jboss.seam.init.Initialization.init(Initialization.java:430)
| at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:33)
| at com.caucho.server.webapp.Application.start(Application.java:1647)
| at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:621)
| at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
| at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:509)
| at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:153)
| at com.caucho.server.webapp.ApplicationContainer.start(ApplicationContainer.java:670)
| at com.caucho.server.host.Host.start(Host.java:420)
| at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:621)
| at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
| at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:509)
| at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:153)
| at com.caucho.server.host.HostContainer.start(HostContainer.java:504)
| at com.caucho.server.resin.ServletServer.start(ServletServer.java:971)
| at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:621)
| at com.caucho.server.deploy.AbstractDeployControllerStrategy.start(AbstractDeployControllerStrategy.java:56)
| at com.caucho.server.deploy.DeployController.start(DeployController.java:517)
| at com.caucho.server.resin.ResinServer.start(ResinServer.java:546)
| at com.caucho.server.resin.Resin.init(Resin.java)
| at com.caucho.server.resin.Resin.main(Resin.java:625)
| Caused by: java.lang.reflect.InvocationTargetException
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:102)
| ... 26 more
| Caused by: java.lang.NoSuchMethodError: javax.ejb.Local.value()[Ljava/lang/Class;
| at org.jboss.ejb3.ProxyFactoryHelper.getLocalInterfaces(ProxyFactoryHelper.java:124)
| at org.jboss.ejb3.ProxyDeployer.initializeLocalBindingMetadata(ProxyDeployer.java:117)
| at org.jboss.ejb3.SessionContainer.instantiated(SessionContainer.java:71)
| at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:573)
| at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:555)
| at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:536)
| at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:508)
| at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:463)
| at org.jboss.ejb3.embedded.EJB3StandaloneDeployer.create(EJB3StandaloneDeployer.java:437)
| at org.jboss.seam.core.Ejb.startup(Ejb.java:55)
| ... 32 more
|
It seems that ejb-30.jar that is located at resin/lib is not compatible with the one jboss libs want to use. If I delete the jar from resin/lib then class loading works pretty well and ejb-3 works. However this is a problem because I can't do the same at my hosting provider (the ejb-30.jar would be missing for everyone else).
I was wandering whether there is anything possible to do from Seam side?
Thanks in advance,
Siarhei
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994023#3994023
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994023
19 years, 5 months
[JBossCache] - Re: JBoss Cache 1.4.0.SP Notifications
by Rikr2
Yep. It 's something like this but the local (public components) and core cache (non public) cant work in cluster (using replication) because i have different public component in different servers so i don't interested in the content of my server 1 can be replicated to core ant the core replicate it to the server 2.
On the other hand a client can request an object to public component, the public component look for it in its local cache , if the object isnt founded , the public component make a request to the core component ant this look for it in the core cache and return the result to the public component, the public component caches it in its local cache. In this case i need when the object is removed in the core this can be removed in the local.
Im trying with JBoss cache notifications, talking to MBean server and register a listener for remove node event
I need an example of how to connect a remote MBean server using JMX or another idea of how to do this.
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994020#3994020
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994020
19 years, 5 months
[JBossCache] - Re: URGENT: Need documentation for down_thread and up_thread
by manojpn
Here is the current config I am using. We have 2 jboss clusters running on tomcat app server and three different machines. And every few days or so we get issue with cache being out of synch. Aur cache size seems to be around 1.2 MB in size. Do you have any suggestions for the config below ?
<UDP mcast_addr="224.0.0.100" mcast_port="48866" bind_addr="192.168.13.100" ip_ttl="64" ip_mcast="true" mcast_send_buf_size="150000" mcast_recv_buf_size="80000" ucast_send_buf_size="150000" ucast_recv_buf_size="80000" loopback="false" />
<PING timeout="2000" num_initial_members="3" up_thread="false" down_thread="false" />
<MERGE2 min_interval="10000" max_interval="20000" />
- <!-- <FD shun="true" up_thread="true" down_thread="true" />
-->
<FD_SOCK />
<VERIFY_SUSPECT timeout="1500" up_thread="false" down_thread="false" />
<pbcast.NAKACK gc_lag="50" retransmit_timeout="600,1200,2400,4800" max_xmit_size="8192" up_thread="false" down_thread="false" />
<UNICAST timeout="600,1200,2400" window_size="100" min_threshold="10" down_thread="false" />
<pbcast.STABLE desired_avg_gossip="20000" up_thread="false" down_thread="false" />
<FRAG frag_size="8192" down_thread="false" up_thread="false" />
<pbcast.GMS join_timeout="15000" join_retry_timeout="15000" shun="true" print_local_addr="true" />
<pbcast.STATE_TRANSFER up_thread="true" down_thread="true" />
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994019#3994019
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994019
19 years, 5 months
[JBoss Seam] - Re: Can't get Seam managed persistance working in an app sco
by lle
Thanks Gavin.
I tried using SessionFactory.openSession() approach by having my application scope bean to read hibernate.cfg.xml file to build the SessionFactory.
However, I got the following exception when startup Tomcat:
| Caused by: org.hibernate.HibernateException: Could not find datasource
| at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:56)
| at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124)
| at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:56)
| at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:397)
| at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:62)
| at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2006)
| at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1289)
| at com.ga.riskapp.usermgmt.action.GAHostAppManagedAction.openSession(GAHostAppManagedAction.java:126)
| ... 88 more
| Caused by: javax.naming.NameNotFoundException: Name hibernateDatasource-mysql is not bound in this Context
| at org.apache.naming.NamingContext.lookup(NamingContext.java:769)
| at org.apache.naming.NamingContext.lookup(NamingContext.java:152)
| at org.apache.naming.SelectorContext.lookup(SelectorContext.java:136)
| at javax.naming.InitialContext.lookup(InitialContext.java:351)
| at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:52)
| ... 95 more
|
Here is a snippet of my application scope component:
| @Create
| public void init() {
| log.debug("in init()");
| List<GAHostAppInfo> allHostApps = GADAOFactory.DEFAULT.getHostAppDAO(this.openSession()).findAllOrderByHost();
| ...
| }
|
| private Session openSession() {
| try
| {
| SessionFactory sessionFactory = new Configuration().configure(GARiskAppConfig.getHibernateConfigProp()).buildSessionFactory();
| return sessionFactory.openSession();
| }
| catch (HibernateException ex)
| {
| throw new GAInfrastructureException("Failed to build session factory.", ex);
| }
| }
|
|
Did I do something wrong? Please note that similar approach worked without using Seam.
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994015#3994015
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994015
19 years, 5 months