[JBoss-user] [JBossCache] - Re: Hibernate 2nd lvl Cache for EJB3

2006-07-10 Thread MarcReis
Hi Ben,
it shows up on both nodes, but I do have RoundRobin in use for the SFSB. It 
does not show up absoluteley simultaniously, one node starts shortly before the 
other.

I am not sure, but I thought I rather mention it, just in case it is related. 
(If not just ignore it). I still have a problem with Hibernate 3.2.0 CR3
(this was with 3.2.0CR2 
http://www.jboss.com/index.html?module=bbop=viewtopict=84650 
 and about http://opensource.atlassian.com/projects/hibernate/browse/HHH-1816)


  | 09:06:03,640 WARN  [SessionFactoryObjectFactory] Not found: 
2c9096850c573a72010c5741866f0002 // First invokation of the SFSB ( 
client ends after this)
  | 09:06:03,640 WARN  [SessionFactoryObjectFactory] Not found: 
java:Hibernate/MyHibernateSessionFactory // Second invokation of the SFSB 
(with a new instance of the client)
  | 

I just want to make sure this is not due to Hibernate. The prior mentioned 
error shows up no matter if I compile with Hibernate CR2 or CR3.
For the cache I only used the 1.4.CR1 (I will try the CR2 today)

Sincerly
Marc

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3956515#3956515

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3956515


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Hibernate 2nd lvl Cache for EJB3

2006-07-07 Thread MarcReis
Thanks, it worked (after multiple: 1. clean, 2.build 3.goto 1 again; eclipse 
and ant after some attempts finally did what they should and it worked).

Unfourtunately there still is an error that shows up:


  | ... //Server Start
  | 13:35:47,062 INFO  [STDOUT] I have been created by 
de.somewhere.test.ejbean.NatPersLstSFBea
  | ... // some verbose Hibernate output about creating factory and c3p0 pool 
stuff
  | 13:41:21,234 WARN  [CacheLoaderInterceptor] CacheLoader.get(Fqn) returned a 
null; assuming the node nodes not exist.
  | 13:41:21,234 WARN  [CacheLoaderInterceptor] The CacheLoader interface has 
changed since JBossCache 1.3.x
  | 13:41:21,234 WARN  [CacheLoaderInterceptor] Please see 
http://jira.jboss.com/jira/browse/JBCACHE-118
  | 13:41:21,234 WARN  [CacheLoaderInterceptor] CacheLoader.get() should return 
an empty Map if the node does exist but doesn't have any attributes.
  | 13:58:06,859 INFO  [STDOUT] I will be serial soon 
de.somewhere.test.ejbean.NatPersLstSFBean //done from @PrePassivate
  | 14:00:08,359 INFO  [STDOUT] I have been created by 
de.somewhere.test.ejbean.NatPersLstSFBean //done from @Init
  | 14:03:35,046 ERROR [STDERR] java.lang.RuntimeException: 
java.lang.RuntimeException: java.io.IOException
  | 14:03:35,046 ERROR [STDERR] at 
org.jboss.ejb3.interceptor.LifecycleInterceptorHandler.prePassivate(LifecycleInterceptorHandler.java:160)
  | 14:03:35,046 ERROR [STDERR] at 
org.jboss.ejb3.stateful.StatefulContainer.invokePrePassivate(StatefulContainer.java:351)
  | 14:03:35,046 ERROR [STDERR] at 
org.jboss.ejb3.stateful.StatefulBeanContext.prePassivate(StatefulBeanContext.java:178)
  | 14:03:35,046 ERROR [STDERR] at 
org.jboss.ejb3.cache.tree.StatefulEvictionPolicy.passivate(StatefulEvictionPolicy.java:73)
  | 14:03:35,046 ERROR [STDERR] at 
org.jboss.ejb3.cache.tree.StatefulEvictionPolicy.evict(StatefulEvictionPolicy.java:63)
  | 14:03:35,062 ERROR [STDERR] at 
org.jboss.cache.eviction.BaseEvictionAlgorithm.evictCacheNode(BaseEvictionAlgorithm.java:210)
  | 14:03:35,062 ERROR [STDERR] at 
org.jboss.cache.eviction.LRUAlgorithm.evict(LRUAlgorithm.java:90)
  | 14:03:35,062 ERROR [STDERR] at 
org.jboss.cache.eviction.LRUAlgorithm.prune(LRUAlgorithm.java:121)
  | 14:03:35,062 ERROR [STDERR] at 
org.jboss.cache.eviction.BaseEvictionAlgorithm.process(BaseEvictionAlgorithm.java:98)
  | 14:03:35,062 ERROR [STDERR] at 
org.jboss.cache.eviction.EvictionTimerTask.run(EvictionTimerTask.java:80)
  | 14:03:35,062 ERROR [STDERR] at 
java.util.TimerThread.mainLoop(Timer.java:512)
  | 14:03:35,062 ERROR [STDERR] at 
java.util.TimerThread.run(Timer.java:462)
  | 14:03:35,062 ERROR [STDERR] Caused by: java.lang.RuntimeException: 
java.io.IOException
  | 14:03:35,062 ERROR [STDERR] at 
org.jboss.ejb3.stateful.StatefulBeanContext.extractBeanAndInterceptors(StatefulBeanContext.java:365)
  | 14:03:35,062 ERROR [STDERR] at 
org.jboss.ejb3.stateful.StatefulBeanContext.getInterceptorInstances(StatefulBeanContext.java:333)
  | 14:03:35,062 ERROR [STDERR] at 
org.jboss.ejb3.interceptor.LifecycleInvocationContextImpl.getLifecycleInvocationContext(LifecycleInvocationContextImpl.java:65)
  | 14:03:35,062 ERROR [STDERR] at 
org.jboss.ejb3.interceptor.LifecycleInterceptorHandler.prePassivate(LifecycleInterceptorHandler.java:151)
  | 14:03:35,062 ERROR [STDERR] ... 11 more
  | 14:03:35,062 ERROR [STDERR] Caused by: java.io.IOException
  | 14:03:35,062 ERROR [STDERR] at 
org.jboss.serial.persister.RegularObjectPersister.readSlotWithMethod(RegularObjectPersister.java:107)
  | 14:03:35,062 ERROR [STDERR] at 
org.jboss.serial.persister.RegularObjectPersister.defaultRead(RegularObjectPersister.java:269)
  | 14:03:35,062 ERROR [STDERR] at 
org.jboss.serial.persister.RegularObjectPersister.readData(RegularObjectPersister.java:241)
  | 14:03:35,062 ERROR [STDERR] at 
org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming(ObjectDescriptorFactory.java:411)
  | 14:03:35,062 ERROR [STDERR] at 
org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription(ObjectDescriptorFactory.java:81)
  | 14:03:35,062 ERROR [STDERR] at 
org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectInput.readObject(DataContainer.java:639)
  | 14:03:35,062 ERROR [STDERR] at 
org.jboss.serial.persister.ProxyPersister.readData(ProxyPersister.java:66)
  | 14:03:35,078 ERROR [STDERR] at 
org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming(ObjectDescriptorFactory.java:411)
  | 14:03:35,078 ERROR [STDERR] at 
org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription(ObjectDescriptorFactory.java:81)
  | 14:03:35,078 ERROR [STDERR] at 

[JBoss-user] [JBossCache] - Re: Hibernate 2nd lvl Cache for EJB3

2006-07-05 Thread MarcReis
Thank you Ben !

Sincerly 
Marc

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3955385#3955385

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3955385

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Hibernate 2nd lvl Cache for EJB3

2006-07-05 Thread MarcReis
Sorry to bother again, but I do have one more question.
Is there any workaround that I can implement into the 4.0.4.GA source, so that 
when I build a version it will work with 1.4 ?
I had a look at the JBossCache sources (TreeCache, EvictionPolicy, 
RegionManager, Region, Eviction,...) and at the hole org.jboss.ejb3.cache.* 
source, but I dont really see how I could do a work around.
I first thought just using the 1.4 Cache sources in the JBoss sources when 
building would resolve the issue, but I guess there is more to it ;-). So I 
tried to see If I could some how get behind what I would need to do at the 
PassivationTreeCache, but I dont get it yet.

Thanks !

Marc

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3955560#3955560

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3955560

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Hibernate 2nd lvl Cache for EJB3

2006-06-27 Thread MarcReis
Yes, I have a modified \deploy\ejb3.deployer\META-INF\jboss-service.xml so that 
we can use the http-invoker-servlet.
This is the changed line:
...
  | attribute 
name=InvokerLocatorservlet://mc0430-116:8080/servlet-invoker/ServerInvokerServlet/attribute
  | ...
  | 
Also we have modified the 

  | org.jboss.ejb3.stateful.StatefulClusteredProxyFactory and
  | StatefulRemoteProxyFactory 
  | org.jboss.ejb3.stateless.StatelessClusteredProxyFactory and 
  | StatelessRemoteProxyFactory 
  | 
  | so that they allow the usage of the host name rather than the ip address 
(this is mainly one line seting the String clientBindUrl befor passing it to 
the InvokerLocator).
  |  And some other minor changes that though, are not used in this example or 
fiddel with ejb3 (InvokerLocator has an extra variable and slight changes and 
added a new LoadBalancingPolicy).
  | Besides this, the only not out-of-the-box files are one *-ds.xml for 
the DB-Source, the servlet-invoker.war, the tomcat libs copied to the /lib 
folder for the http invoker to work and the ojdbc14.jar for jdbc to the DB. 
So its actually very minimalistic at the moment. I'll also try 1.4.0.CR2 and 
see what it says to this.
  |  
  | 
  | 
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3953621#3953621

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3953621

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Hibernate 2nd lvl Cache for EJB3

2006-06-27 Thread MarcReis
Strange, I just tried it with an 4.0.4CR2 Out-of-the-Box's all and the 
1.4.0Cr1 and a HelloWorld SFSB and up the error came.
 I for this I did use a 4.0.4CR2 that has been out for a while, files are dated 
first of April 06... not that I am missing something here. The sources that I 
use to compile the modified version of the AS are mainly dated May 22.


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3953637#3953637

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3953637

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Hibernate 2nd lvl Cache for EJB3

2006-06-27 Thread MarcReis
The SFSB should be on its way to you ! 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3953759#3953759

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3953759

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: configuring jboss cache for EJB3/hibernate

2006-06-26 Thread MarcReis
(I hope I am not hijacking...)
I have the problem, that when I try to use the cache, it results in a:

16:51:44,625 WARN  [ServiceController] Problem starting service jboss.j2ee:ear=t
  | estEJB.ear,jar=testEJB.jar,name=NatPersLstSFBean,service=EJB3
  | java.lang.RuntimeException: java.lang.NoSuchFieldError: 
eviction_policy_provider  at org.jboss.ejb3.
  | ServiceDelegateWrapper.startService(ServiceDelegateWra
  | pper.java:105)at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
  | upport.java:289)  at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
  | eanSupport.java:245)...
  | 
I guess it is due to configuration or version missmatching.. (AS4.0.4GA with 
1.3.0 or 1.4.0CR1).  I wanted to use a cache =1.3.0 so that I can use the 
optimistic node locking (prefarable the 1.4.0 since its been tuned for speed).

I posted about it here (with details)
http://www.jboss.com/index.html?module=bbop=viewtopict=83655
, but I guess it got kind of lost (after the 1.2.4 issue).

Sincerly 
Marc

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3953362#3953362

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3953362

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Hibernate 2nd lvl Cache for EJB3

2006-06-26 Thread MarcReis
Sure, (sorry for being unclear)

The error does not occure when just deploying the 1.3.0 or 1.4.0CR1 
jboss-cache.jar into the /lib Folder 

but as soon as I also deploy my ejb3 application (one SLSB, one SFSB and one 
POJO used via *.hbm.xml as an entity). 
It does not matter if I use a hibernate configuration that configures/uses a 
2nd lvl Cache or not  (not meaning the org.hibernate.cache.NoCacheProvider 
defined in the hibernate.cfg.xml), it will always cause the error.
With the 1.2.4 cache deployed it never occures.

I just tested with a simple SLSB which says Hello packed in a jar (with 2 
Interfaces), when I change it to an SFSB the error comes up. So it doesent seem 
to be related to the Hibernate 2nd lvl cache, but rather to the SFSB. I hope 
this is might give some hints...
and thanks for having a look !

Sincerly 

Marc

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3953457#3953457

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3953457

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Hibernate 2nd lvl Cache for EJB3

2006-06-23 Thread MarcReis
I have tryed this with 1.3.0 and 1.4.0.CR1 and I allways get the above error as 
soon as I deploy the ejb3 application. Just as the error message shows, It 
doesnt matter If I define a cache service or use a Hibernate 2nd lvl.
 If I dont define one and dont tell Hibernate to use one I still get this error 
(except with 1.2.4).
 I think it is due to the ejb3 cache part wich looks up an 
eviciton_policy_provider but seems not to be able to do this anymore when I 
update the lib/jboss-cache.jar to 1.3.0 or 1.4.0.CR1.
 How do I then update to the new Cache ? I checked the docu and wiki, but they 
dont tell about anything special to do.
Sincerly
Marc

 (I also update various lib/*.jar 's and the ejb3 package to RC8FD, but this 
did not resolve the issue, I thought this might solve the missmatch. Do I need 
to flunge the 1.4.0 Sources into the JBoss 4.0.4.GA Sources and do a complete 
build of all to get the new cache integrated ?)


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3952911#3952911

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3952911

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence, JBoss/CMP, Hibernate, Database] - persistence.xml and hibernate (with ejb3)

2006-06-21 Thread MarcReis
Hi,
I have a problem using the persistence.xml to configure my persistence for a 
simple ejb3 test app.
I am using 4.0.4.GA, EJB3(RC7) and hibernate (3.2.0CR2).
It works fine when I use the config with the hibernate-service.xml and the 
hibernate.cfg.xml (for the programmatic approach) but configuring with the 
persistence.xml wont do the job.
it leads to :

  | 12:34:54,515 INFO  [EJB3Deployer] Deployed: 
file:/C:/work/_programme/jboss-4.0.4
  | .GA-ejb3/server/default/deploy/EJBTest2EJB.jar
  | 12:34:54,609 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
  | --- MBeans waiting for other MBeans ---
  | ObjectName: persistence.units:jar=EJBTest2EJB.jar,unitName=entwDS
  |   State: NOTYETINSTALLED
  |   I Depend On:
  | jboss.jca:name=jdbc/OLGAENTW,service=ManagedConnectionFactory
  | 
  | --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
  | ObjectName: jboss.jca:name=jdbc/OLGAENTW,service=ManagedConnectionFactory
  |   State: NOTYETINSTALLED
  |   Depends On Me:
  | persistence.units:jar=EJBTest2EJB.jar,unitName=entwDS
  | 

 I posted about this in the ejb3 thread, I guess it wasn?t the right place, but 
rather than posting it all again, details are here:
http://www.jboss.com/index.html?module=bbop=viewtopict=84930
I would appreciate any help!
Sincerely
Marc


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3952403#3952403

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3952403


___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Hibernate 2nd lvl Cache for EJB3

2006-06-20 Thread MarcReis
Yes,  it is the 1.2.4SP2 package (sorry for the late reply).

I got it to work (more or less) with  1.2.4sp2 with this config:

  | server
  | ...
  | !-- Pesimistic is extremley slow,  OPTIMISTIC only  1.3.0 --
  | attribute name=NodeLockingSchemePESSIMISTIC/attribute
  | attribute name=IsolationLevelREPEATABLE_READ/attribute
  | !-- This works for 1.2.4.sp2 --
  | attribute name=CacheModeREPL_ASYNC/attribute 
  | ...
  | !-- Seems to be unknown in 1.2.4sp2
  | attribute name=FetchInMemoryStatefalse/attribute
  | --
  | ...
  | /mbean
  | /server
  | 

I would like to use a cache = 1.3.0 though, so
when I use the 1.3.0sp2 hibernate-recommended-config.xml (only modified the 
name of the cache) and the 1.3.0.sp2 chache (jboss-cache-jdk50.jar) I get this 
error:


  | 16:51:44,625 WARN  [ServiceController] Problem starting service 
jboss.j2ee:ear=t
  | estEJB.ear,jar=testEJB.jar,name=NatPersLstSFBean,service=EJB3
  | java.lang.RuntimeException: java.lang.NoSuchFieldError: 
eviction_policy_provider  at 
org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWra
  | pper.java:105)at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
  | upport.java:289)  at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
  | eanSupport.java:245)
  | at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
  | sorImpl.java:25)
  | ...
  | org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  | at $Proxy5.deploy(Unknown Source)
  | at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
  | at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
  | at org.jboss.Main.boot(Main.java:200)
  | at org.jboss.Main$1.run(Main.java:464)
  | at java.lang.Thread.run(Thread.java:595)
  | Caused by: java.lang.NoSuchFieldError: eviction_policy_provider
  | at 
org.jboss.ejb3.cache.tree.PassivationTreeCache.getEvictionPolicy(Pass
  | ivationTreeCache.java:42)
  | at 
org.jboss.ejb3.cache.tree.StatefulTreeCache.initialize(StatefulTreeCa
  | che.java:164)
  | at 
org.jboss.ejb3.stateful.StatefulContainer.start(StatefulContainer.jav
  | a:87)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
  | java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
  | sorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWra
  | pper.java:99)
  | ... 138 more
  | 
the hibernate.cfg.xml cache part is
 
  | ...
  | property 
name=cache.provider_classorg.jboss.hibernate.cache.DeployedTreeCacheProvider/property
  | property 
name=treecache.mbean.object_namejboss.cache:service=HibernateTreeCache/property.
 ... 
  | 

Did I again miss something ? It seems like its looking for a 
eviction_policy_provider but I could'nt find anything about this in the wiki, 
doc or the forum besides the standart config, which I also tried to add to the 
hibernate-recommended-config.xml, since this one doesnt define one in the 
attributes.
Sincerly
marc

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3952053#3952053

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3952053


___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration Deployment] - Re: Dependency problem deploying EJB3 persistence unit

2006-06-19 Thread MarcReis
Hi,
I would also be interested in the solution, since I also have this problem (or 
better very similar). 

Thanks !

(I posted about it in the ejb3 forum since I thought the specific problem would 
be related to ejb3 details, 
http://www.jboss.com/index.html?module=bbop=viewtopict=84930 )

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3951594#3951594

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3951594


___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: config for using persistence.xml

2006-06-16 Thread MarcReis
I am still having the problem... I can configure it as an MBean 
(hibernate-service.xml) and it works fine, use a utility class for a static 
factory and the hibernate.cfg.xml and it works.
But with the persistence.xml, it seems I am missing something. I read over the 
documentation again and again (JBossAS, EJB3Persistence, TrailBlaizer etc.) 
since I thought my question is to obvious...
 If it is, please still feel free to mention it to me ;).
I hope my persistence.xml and the mydata-ds.xml give some hints (these are the 
minimalistic versions)
Thanks!


  | persistence 
  | persistence-unit name=entwDS 
  | providerorg.hibernate.ejb.HibernatePersistence/provider 
  | jta-data-sourcejdbc/OLGAENTW/jta-data-source
  | properties
  | property name=hibernate.dialect 
value=org.hibernate.dialect.Oracle9Dialect/
  | property name=hibernate.hbm2ddl.auto 
value=create-drop/   

  | /properties
  | /persistence-unit
  | /persistence
  | 
and the data source file...

  | ?xml version=1.0 encoding=UTF-8?
  | datasources
  |  local-tx-datasource
  |  jndi-name/jdbc/OLGAENTW/jndi-name
  |   
connection-urljdbc:oracle:thin:@somewhere.de:1234:olgaentw/connection-url
  |  driver-classoracle.jdbc.driver.OracleDriver/driver-class
  |  
exception-sorter-class-nameorg.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter/exception-sorter-class-name
  | metadata
  | type-mappingOracle/type-mapping
  | /metadata
  |   /local-tx-datasource
  | datasources
  | 
leads to

  | 12:34:54,515 INFO  [EJB3Deployer] Deployed: 
file:/C:/work/_programme/jboss-4.0.4
  | .GA-ejb3/server/default/deploy/EJBTest2EJB.jar
  | 12:34:54,609 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
  | --- MBeans waiting for other MBeans ---
  | ObjectName: persistence.units:jar=EJBTest2EJB.jar,unitName=entwDS
  |   State: NOTYETINSTALLED
  |   I Depend On:
  | jboss.jca:name=jdbc/OLGAENTW,service=ManagedConnectionFactory
  | 
  | --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
  | ObjectName: jboss.jca:name=jdbc/OLGAENTW,service=ManagedConnectionFactory
  |   State: NOTYETINSTALLED
  |   Depends On Me:
  | persistence.units:jar=EJBTest2EJB.jar,unitName=entwDS
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3951269#3951269

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3951269


___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - config for using persistence.xml

2006-06-14 Thread MarcReis
Hi,
the Problem is that when I use the jar with persistence.xml it  says:

  | ObjectName: jboss.jca:name=jdbc/MYDB,service=ManagedConnectionFactory
  |   State: NOTYETINSTALLED
  |   Depends On Me:
  | persistence.units:jar=EJBTest2EJB.jar,unitName=entwDS
  | 

I used to use the hibernate-service.xml (ejb.har) and a 
hibernat.cfg.xml(ejb.jar) in my Application (App.ear). With a Utility class I 
build the SessionFactory and used it in my beans. The DataSource was defined in 
a mydata-ds.xml, which defines an oracle db as a Datasource. The entity beans 
are mapped via a MyEntity.hbm.xml.  In that scenario all works fine concerning 
this matter (all ejb 3).

Now,
I wanted to go towards using the annotations in the Entity classes and use a 
persistence.xml file for the persicetence-unit to see how this works and make 
things easier. My setup is basicly like the one in the ejb3 trailblaizer (more 
or less).
 I just use a jar file, which contains all the classes and has a 
persistence.xml in its META-INF (and an empty ejb-jar.xml). The persistence.xml 
has the same properties set as in the hibernate.cfg.xml.
As it JTA-data-source it uses the ds (java:/jdbc/MYDB) defined in the 
mydata-ds.xml (which is always deployed, not part of the jar).

It seems it cant use the DataSource which works for the alternative approach. 
The only thing that I see is that the bound datasource has: 
service=DataSourceBinding and not service=ManagedConnectionFactory:
14:23:00,250 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jb
  | oss.jca:service=DataSourceBinding,name=/jdbc/OLGAENTW' to JNDI name 
'java:/jdbc/
  | OLGAENTW'
So what am I missing in the config ? I read all the docu and trail blaizer and 
all that they say, I thing do: have your jar with its persistence.xml and a 
*-ds.xml for your data sources and of course use the correct names defined. 

Thanks 


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3950842#3950842

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3950842


___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: config for using persistence.xml

2006-06-14 Thread MarcReis
Just saw that I have a typo in the post, both ds have the same name 
java:/jdbc/OLGAENTW and are not different.
By misstake I copied the first code snipit with java:/jdbc/MYDB.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3950844#3950844

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3950844


___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: SFSB 3.0, replication trouble

2006-06-12 Thread MarcReis
Thanks !

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3950387#3950387

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3950387


___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: SFSB 3.0, replication trouble

2006-06-09 Thread MarcReis
Sure ! Somethings might be pointless, as it is a class just for testing purpose.


  | @RemoteBinding(jndiBinding=EJBTEST/NatPerLstSFBean/remote)
  | /* This is set as a System.property 
  | clientBindUrl=servlet://mc0430-116.somewhere.de:8080/invoker/JNDIFactory
  | */
  | @LocalBinding(jndiBinding=comp/env/EJBTEST/NatPerLstSFBean/local)
  | @Stateful
  | @Clustered(partition= DefaultPartition, loadBalancePolicy = 
org.jboss.ha.framework.interfaces.RoundRobin.class)
  | public class NatPersLstSFBean implements INatPersLstLocal,
  | 
 INatPersLstRemote,
  | 
 Serializable{
  | @Resource SessionContext sctx;
  | //@PersistenceManager EntityManager em;
  | private int hitCount= 0;
  | private Session sess= null;
  | ListNatPers   myResult= null;
  | private String  oldletterLastName= ;
  | 
  | public int getIntValue(String intString) {
  | hitCount++;
  | return hitCount;
  | }   
  | 
  | @PermitAll
  | public ListNatPers getNatPersLst(String letterLastName){  
  | if (sess==null || sess.isConnected()==false)
  | sess = new 
HibTestUtil().sessionFactory.getCurrentSession(); // Could this cause the 
problem when clustering ? 
  | 
  | try{
  | sess.beginTransaction();
  | System.out.println(about to create query);
  | Query qry = sess.createSQLQuery(
  |  SELECT PersonID, Name, Vorname from NATPERSON 
np +
  |  WHERE  np.name like '+ letterLastName + %' 
 +
  |  ORDER BY NAME, VORNAME 
).addEntity(np,NatPers.class);
  | //qry.setCacheable(false);
  | System.out.println(about to save result);
  | myResult = (ListNatPers) qry.list();
  | sess.getTransaction().commit();
  | }catch (Exception e){
  | e.printStackTrace();
  | sess.getTransaction().rollback();
  | }   
  | String sctxUserName=;
  | try{
  | if (sctx !=null){
  | sctxUserName = 
sctx.getCallerPrincipal().getName();
  | System.out.println(sctxUserName);
  | }
  | }catch(Exception e){System.out.println(e);}
  | 
  | return myResult;
  | }   
  | @Init
  | public void createSession(){
  | System.out.println(I have been created by+ 
  | 
  |   
+this.getClass().getName());
  | }
  | @Remove
  | public void endSession(){
  | System.out.println(I am ending +this.getClass().getName());
  | }
  | @PrePassivate
  | public void doSerialization(){
  | System.out.println(I will be serial soon 
+this.getClass().getName());
  | }   
  | 
  | @PostActivate
  | public void doDeSerialization(){
  | System.out.println(I am deserialized again 
+this.getClass().getName());
  | }
  | }
  | 

Mainly it fetches a hibernate session from a factory and uses this to to the 
query on the db and passes the result back to the client.  The client invokes 
the methodes a couple times in a row and ends.
After what you said, could it for some reason be that the  getCurrentSession() 
method trys to somehow use the factory of node one ?

Sincerely
Marc

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3950046#3950046

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3950046


___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: SFSB 3.0, replication trouble

2006-06-09 Thread MarcReis
I have gone through all of the logs files. I thing it seems to be the problem 
that
Node A registers org.hibernate.impl.SessionFactoryImpl with uid x1
An invokation on A does fine, when turning to Node B 
SessionFactoryObjectFactory trys to look up the uid x1, which it cant find 
since node B only has y1.
Same happens the other way around when initially invoking on B, it registers 
the SessionFactory with uid y2 (also has y1), next invoke goes to A where it 
trys to look up uid y2 but A only has x1 and so the lookup in ther 
SesionFactoryObjectFactory fails.

a part of the server.log from Node B for this:


  |  ...
  |  DEBUG [org.hibernate.SQL]  SELECT PersonID...
  |  DEBUG [com.mchange.v2.c3p0.stmt.GooGooStatementCache]   CACHE HIT
  |  DEBUG [com.mchange.v2.c3p0.stmt.GooGooStatementCache] checkoutStatement: 
com.mchange.v2.c3p0.stmt.GlobalMaxOnlyStatementCache stats -- total size: 4; 
checked out: 1; num connections: 2; num keys: 4
  | 
  |  DEBUG [org.hibernate.impl.SessionFactoryObjectFactory] lookup: 
uid=2c9096850bb7af1e010bb7b881390001
  |  WARN  [org.hibernate.impl.SessionFactoryObjectFactory] Not found: 
2c9096850bb7af1e010bb7b881390001
  |  DEBUG [org.hibernate.impl.SessionFactoryObjectFactory] [EMAIL PROTECTED], 
[EMAIL PROTECTED]
  |  DEBUG [org.jboss.remoting.transport.servlet.ServletServerInvoker] Error 
thrown calling invoke on server invoker.
  | org.jboss.ejb3.stateful.ForwardId: java.lang.RuntimeException: 
java.io.IOException  at 
org.jboss.ejb3.stateful.StatefulContainer.dynamicInvoke(StatefulContainer.java:314)
  | at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106) 
  | 
  | 


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3950083#3950083

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3950083


___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: SFSB 3.0, replication trouble

2006-06-09 Thread MarcReis
I have just stumbled over a solution.I thought about would could cause the 
SessionFactory Problem (for the x't time) and had a stupid idea...
Clear the Farm folder on both nodes before start up (so all is up before 
deploying the App). Start the nodes up. Then drop the ear to deploy in the farm 
folder - SFSB works fine.

Tried it with combinations of leaving the ear in the farm folder and then 
startign up - SessionFactoryObjectFactory fails to lookup the uid.

So no inital farm no harm ;-)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3950088#3950088

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3950088


___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: SFSB 3.0, replication trouble

2006-06-09 Thread MarcReis
I guess I was to euphoric... so forget my last post :(.
Its still there.  I tested invoking initialy on node 2 and deploying first on 
node 1. That worked, no idea why. I tried it  three time and all was good. Then
 I invoked first on node 1 and the problem is there again and also in other 
combinations of invoking and deploying. 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3950100#3950100

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3950100


___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - SFSB 3.0, replication trouble

2006-06-08 Thread MarcReis
We are using a modified 4.0.4GA. StatfullRemoteProxyFactory, 
StatefullClusterProxyFactory, StatlessRemoteProxyFactory, 
StatelessClusterProxyFactory,RemoteProxyFactory and InvokerLocator have been 
changed. They now fetch the bindURL from a System.property, since we needed to 
use the host name. The invoker locator is changed (Mehtod resolveHost and 
Constructor) to be able to use the host name and not look it up to the ip. Also 
we use the ServerServletInvoker so that we can go over Http.

On maschine 1 a Statefull Bean is invoked, on maschine 2 the second invokation 
of the SFSB will be received cause to RoundRobin.
This results in the following warning on the second maschine

  | 10:25:44,281 WARN  [SessionFactoryObjectFactory] Not found: 
2c9096850bad968e010b
  | ad9899550001
  | 

As a result, both SFSB are invoked on the first maschine.
After time x the SFSB will be serialized. This causes this error on the second 
maschine, since there is nothing there to evict:


  | 10:31:51,468 ERROR [STDERR] java.lang.NullPointerException
  | 10:31:51,468 ERROR [STDERR] at 
org.jboss.ejb3.cache.tree.StatefulEvictionPol
  | icy.evict(StatefulEvictionPolicy.java:48)
  | 10:31:51,468 ERROR [STDERR] at 
org.jboss.cache.eviction.LRUAlgorithm.evictCa
  | cheNode(LRUAlgorithm.java:197)
  | 10:31:51,468 ERROR [STDERR] at 
org.jboss.cache.eviction.LRUAlgorithm.prune(L
  | RUAlgorithm.java:303)
  | 10:31:51,468 ERROR [STDERR] at 
org.jboss.cache.eviction.LRUAlgorithm.process
  | (LRUAlgorithm.java:55)
  | 10:31:51,468 ERROR [STDERR] at 
org.jboss.cache.eviction.EvictionTimerTask.ru
  | n(EvictionTimerTask.java:37)
  | 10:31:51,468 ERROR [STDERR] at 
java.util.TimerThread.mainLoop(Timer.java:512
  | )
  | 10:31:51,468 ERROR [STDERR] at java.util.TimerThread.run(Timer.java:462)
  | 

Complete Error in the server.log which mainly shows that the hibernate 
SessionFactoryObjectFactory cant lookup the object:

  | 2006-06-07 10:38:22,343 INFO  [org.jboss.system.server.Server] JBoss (MX 
MicroKernel) [4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605221016)] 
Started in 36s:609ms
  | 2006-06-07 10:38:22,468 DEBUG [org.jboss.cache.eviction.RegionManager] 
getRegions(): size of region 2
  | 2006-06-07 10:45:49,484 DEBUG 
[org.jboss.resource.connectionmanager.IdleRemover] run: IdleRemover notifying 
pools, interval: 45
  | 2006-06-07 10:46:24,046 DEBUG 
[org.hibernate.impl.SessionFactoryObjectFactory] lookup: 
uid=2c9096850bad968e010bad9899550001
  | 2006-06-07 10:46:24,046 WARN  
[org.hibernate.impl.SessionFactoryObjectFactory] Not found: 
2c9096850bad968e010bad9899550001
  | 2006-06-07 10:46:24,046 DEBUG 
[org.hibernate.impl.SessionFactoryObjectFactory] [EMAIL PROTECTED]
  | 2006-06-07 10:46:24,046 DEBUG 
[org.jboss.remoting.transport.servlet.ServletServerInvoker] Error thrown 
calling invoke on server invoker.
  | org.jboss.ejb3.stateful.ForwardId: java.lang.RuntimeException: 
java.io.IOException
  | at 
org.jboss.ejb3.stateful.StatefulContainer.dynamicInvoke(StatefulContainer.java:314)
  | at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
  | at 
org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
  | at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:828)
  | at 
org.jboss.remoting.transport.servlet.ServletServerInvoker.processRequest(ServletServerInvoker.java:211)
  | 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.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 
javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:201)
  | at $Proxy62.processRequest(Unknown Source)
  | at 
org.jboss.remoting.transport.servlet.web.ServerInvokerServlet.processRequest(ServerInvokerServlet.java:139)
  | at 
org.jboss.remoting.transport.servlet.web.ServerInvokerServlet.doPost(ServerInvokerServlet.java:168)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | at 

[JBoss-user] [Clustering/JBoss] - Re: SFSB 3.0, replication trouble

2006-06-08 Thread MarcReis
Hi
Sorry for the information overflow...
I guess this sums it up:

  | [org.jboss.cache.eviction.RegionManager] getRegions(): size of region 2
  | [org.jboss.resource.connectionmanager.IdleRemover] run: IdleRemover 
notifying pools, interval: 45
  | [org.hibernate.impl.SessionFactoryObjectFactory] lookup: 
uid=2c9096850bad968e010bad9899550001
  | [org.hibernate.impl.SessionFactoryObjectFactory] Not found: 
2c9096850bad968e010bad9899550001
  | [org.hibernate.impl.SessionFactoryObjectFactory] [EMAIL PROTECTED]
  | [org.jboss.remoting.transport.servlet.ServletServerInvoker] Error thrown 
calling invoke on server invoker.
  | org.jboss.ejb3.stateful.ForwardId: java.lang.RuntimeException: 
java.io.IOException
  | at 
org.jboss.ejb3.stateful.StatefulContainer.dynamicInvoke(StatefulContainer.java:314)
  | at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
  | 

I could give you an ear with the EJB's and Client, but I dont belive this would 
help a lot (except for clearing up the config of the client).
 The App and client ist is rather simple. The App just uses a Hibernate session 
to do a sql query on a Oracle DB and give the result to the Client.
 I guess I would need to also send you the server modifikations and setup.
The main Problem seems to be that the SFSB is not replicating correctly and so 
cant be invoked an the second node. This could be caused by the combination of 
using httpha-invoker.sar and using the host name rather than the ip. The 
problem is that I cant find the point were it fails, do to lack of knowledge of 
the things that happen on the server.

If you want I can pack that all up and send it to you.

Thanks for your time !
(and sorry for the overflow of text)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3949924#3949924

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3949924


___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: configuring jboss cache for EJB3/hibernate

2006-05-24 Thread MarcReis
I also have some issues on this, but maybe I can help a bit.
Do you want to configure the 2nd level Cache? If you have a hibernate.cfg.xml 
in your project, you can set it up in there.
 Alternatively the shiped full install comes with the 
ejb3-clustered-sfsbcache-service.xml and ejb3-entity-cache-service.xml where 
caches are Setup.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3946205#3946205

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3946205


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Hibernate 2nd lvl Cache for EJB3

2006-05-24 Thread MarcReis
Hi I have a some questions about seting up the hibernate 2nd level Chach. I 
read some docu on this and mainly followed the 
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossCacheHibernate
I am using 4.0.4.GA all.
When I use the hibernate-recommended-config.xml from the cache package (renamed 
to TreeCache-service.xml) I get an exception:


  | 18:02:41,640 INFO  [ServiceConfigurator] Problem configuring service 
jboss.cache
  | :service=MyTreeCache
  | org.jboss.deployment.DeploymentException: Exception setting attribute 
javax.mana
  | [EMAIL PROTECTED] on mbean jboss.cache:service=MyTreeCache; - nested thro
  | wable: (java.lang.IllegalArgumentException: setCacheMode(): caching mode -1 
is i
  | nvalid)
  | at 
org.jboss.system.ServiceConfigurator.setAttribute(ServiceConfigurator
  | .java:698)
  | at 
org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.ja
  | va:332)
  | at 
org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigura
  | tor.java:460)
  | at 
org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java
  | :171)
  | at 
org.jboss.system.ServiceController.install(ServiceController.java:226
  | )
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
  | java:39)
  | ...
  | 
 I thought the CacheMode must be wrong and tried around with the other modes, 
with the REPL_ASYNC  I get a step further and get this:

  | 18:20:56,546 INFO  [ServiceConfigurator] Problem configuring service 
jboss.cache
  | :service=MyTreeCache
  | org.jboss.deployment.DeploymentException: No Attribute found with name: 
FetchInM
  | emoryState
  | at 
org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.ja
  | va:318)
  | at 
org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigura
  | tor.java:460)
  | at 
org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java
  | :171)
  | at 
org.jboss.system.ServiceController.install(ServiceController.java:226
  | )
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
  | java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
  | sorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch)
  | ...
  | 
So I tryed it with the existing cahes and configured my hibernate.cfg.xml to 
use :

  | property 
name=cache.provider_classorg.jboss.ejb3.entity.TreeCacheProviderHook/property
  | property 
name=treecache.mbean.object_namejboss.cache:service=EJB3EntityTreeCache/property
  | 
This works at first, but produces this on the  node of the cluster, where my 
EJB's are not called.

  | 17:47:16,078 ERROR [STDERR] java.lang.NullPointerException
  | 17:47:16,078 ERROR [STDERR] at 
org.jboss.ejb3.cache.tree.StatefulEvictionPol
  | icy.evict(StatefulEvictionPolicy.java:48)
  | 17:47:16,078 ERROR [STDERR] at 
org.jboss.cache.eviction.LRUAlgorithm.evictCa
  | cheNode(LRUAlgorithm.java:197)
  | 17:47:16,078 ERROR [STDERR] at 
org.jboss.cache.eviction.LRUAlgorithm.prune(L
  | RUAlgorithm.java:303)
  | 17:47:16,078 ERROR [STDERR] at 
org.jboss.cache.eviction.LRUAlgorithm.process
  | (LRUAlgorithm.java:55)
  | 17:47:16,078 ERROR [STDERR] at 
org.jboss.cache.eviction.EvictionTimerTask.ru
  | n(EvictionTimerTask.java:37)
  | 17:47:16,078 ERROR [STDERR] at 
java.util.TimerThread.mainLoop(Timer.java:512
  | )
  | 17:47:16,078 ERROR [STDERR] at java.util.TimerThread.run(Timer.java:462)
  | 

I also tried it with the org.jboss.hibernate.cache.DeployedTreeCacheProvider 
then it seems that the EJB3EntityTreeCache is not looked for but .. (have a 
look -)


  | 18:37:00,312 WARN  [DeployedTreeCacheProvider] Unable to locate TreeCache 
MBean
  | under object name [jboss.cache:service=HibernateTreeCache]
  | java.lang.RuntimeException: Error creating MBeanProxy: 
jboss.cache:service=Hiber
  | nateTreeCache
  | at org.jboss.mx.util.MBeanProxyExt.init(MBeanProxyExt.java:415)
  | at org.jboss.mx.util.MBeanProxyExt.init(MBeanProxyExt.java:99)
  | at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:394)
  | at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:349)
  | at 
org.jboss.hibernate.cache.DeployedTreeCacheProvider.start(DeployedTre
  | eCacheProvider.java:74)
  | at 
org.hibernate.impl.SessionFactoryImpl.init(SessionFactoryImpl.java:
  | 180)
  | at 
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.jav
  | a:1213)
  | at de.mediacare.test.util.HibTestUtil.clinit(HibTestUtil.java:22)
  | at 
de.mediacare.test.ejbean.NatPersLstSFBean.getNatPersLst(NatPersLstSFB
  

[JBoss-user] [Remoting] - Re: Error connecting to ejb3 cluster

2006-05-19 Thread MarcReis
Have a look at 
http://www.jboss.com/index.html?module=bbop=viewtopict=82345

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3944835#3944835

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3944835


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Remoting] - Re: Remoting using Http over a singel port

2006-05-18 Thread MarcReis
Thanks !, I'llkeep my eyes open for news !

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3944586#3944586

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3944586


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Remoting] - Re: Remoting using Http over a singel port

2006-05-17 Thread MarcReis
Hi, thanks for your answers!

I don?t know, but I would guess that the deployment descriptor override 
function will act like useing the corresponding annotation at the moment.(?)
When I use the annotation ?clientBindURL?, I can set the port and the host 
name. I then still have the problem that the host name is looked up towards the 
IP of the maschine.
I am not sure, but since I found the sources to this in the remoting package, 
(and not in the AS sources ejb3/../remoting) I thing this could be a problem 
which relates to all using/relaying  on the ?InvokerLocator.java??s 
?resolveHost(String host)? method.
So, as far as I would guess, when the deployment descriptor override function 
is fully implemented, it would pass the ?${jboss.bind.address}? for the 
attribute ?IvokerLocator? (as defined in the ejb3 deployers jboss-service.xml) 
on, as it has been set with the--host? option at start up, just like using the 
annotation at the moment.
It then would pass the host name on as suspected by Tom. But then again at this 
point, the only place where this is keept in the InvokerLocator is the String 
?originalURL?, since the actuall host name has been looked up to the IP and the 
IP is what is used. So again there is the problem of a client in a diffrent 
network, not beein abel to look up that IP of the server at all or correctly.

Thanks for taking your time on this!

Sincerely
Marc

( Is a rough approximation for the time when the deployment descriptor override 
function is fully implemented possible? :-). At the moment we are thinging on 
altering the InvokerLocator?s ?resolveHost? method, so that the host name is 
used instead of the IP, any Tips that should be considert when doing this 
(other than the performance loss do to dns lookups, maybe concerning Clustering 
and HA) ? )




View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3944165#3944165

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3944165


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Remoting] - Re: Remoting using Http over a singel port

2006-05-11 Thread MarcReis
Hi Tom, 
I did some further testing, when I set up a cluster on a single machine, the 
Bindingmanager assigns port 3873 and 4073 for the Connector defined in 
/EJB3Deployer/META-INF/jboss-service.xml. When I kill the first node, 3873 is 
of course gone and the app fails. Just running node 2 shows, the Interfaces 
InvokerLocator property still trys the 3873 port , even though it has never 
been set for that node. This also shows up when both servers are running, then 
the 2 InvokerLocator elements in the interfaces array are both the same (and 
not 3873 and 4073). 

I also have another question: after looking at the InvokerLocator's method 
private static final String resolveHost(String host), I think that the host 
name will always be looked up to the IP address of the current machine (I guess 
do too performance reasons) (or did I miss something?). Is it possible to avoid 
this? I thing in a scenario were each IP Addresses of the JBoss servers should 
or is not visible to the outside, is imaginable (e.g. Client goes over the 
I-Net to the Servers). Then this would lead to an invocation failure since the 
ip is not resolvable to the client. Please correct me if I am wrong, I am still 
missing quite a bit of over view over all this.

Sincerely 
Marc


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3942807#3942807

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3942807


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration Deployment] - Re: mod_jk

2006-05-11 Thread MarcReis
Are your versions compatible ? I had the same error when I tried using mod_jk 
with Apache 2.2, switched to 2.0 and all was fine.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3942819#3942819

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3942819


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JNDI/Naming/Network] - Re: How to deploy a session bean so that its JNDI binding is

2006-05-09 Thread MarcReis
One way you can tell your bean how it should be placed into the JNDI Tree is 
with annotations


  | //Bind the remote interface under EJBTEST/NatPerLstBean/remote into the 
//JNDI Tree
  | @RemoteBinding( jndiBinding=EJBTEST/ThisIsYourtBean/remote)
  | @LocalBinding( jndiBinding=comp/env/EJBTEST/ThisIsYourtBean/local)
  | 

you should also be able to do this in the corresponding xml file.


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3942093#3942093

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3942093


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Remoting] - Re: Remoting using Http over a singel port

2006-05-08 Thread MarcReis
Thanks a lot !
I'll keep my eyes open on the forum, and just in case I figure something out, 
I'll post it. Thanks !

Sincerely Marc

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3941788#3941788

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3941788


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Remoting] - Remoting using Http over a singel port

2006-05-05 Thread MarcReis
The scenario, a (cluster of) JBoss 4.0.4RC2 running behind a Firewall/NAT, a 
client communicating via http with the Server and visa versa. So, all over http 
and just using a single port (e.g. 8080) and using EJB 3.0. (Something like 
client = Firewall = I-Net = Firewall=Apache=JBossCluster )

We have read through the most of the forum and issue posts we could find 
concerning this topic (best of by searching for ?clientBindUrl? in the forum 
and continuing from there).
So instead of asking the same questions again, I?ll try to keep it very general:
 - Which configurations can/have too be done to get this working, or to be more 
precisely which is the best method of doing so, as concerning the current state 
and the near changes (as I read, there could be a release of a Remoting package 
this month which could change some things ?).
- Can the clientBindUrl, also be defined in an external file like the 
ejb-jar.xml rather than annotating each bean?

Maybe someone could post a small ?guide? on how to do this properly (for one 
case or maybe distinct for different cases (Http/Servlet etc))
And yes, I know there is a 
http://labs.jboss.com/portal/jbossremoting/docs/guide/ch04.html, and I have 
read through it.

_

Just in case this seems to general I?ll hang on some of what we encountered so 
far:
First of, things we did were configure the 
ejb3.deployer\META-INF\jboss-service.xml, copy the tomcat libs missing, alter 
the jndi.properties for the client and adding the bean annotation for the 
clientBindUrl and played with these settings.
- the various ways of configuring the 
\deploy\ejb3.deployer\META-INF\jboss-service.xml seem to enable a initial 
communication over lets say port 8080
- after initial lookup of JNDI over 8080, when invoking an interfaces, it has 
its ?InvokationLocator? property set at its default ?0.0.0.0:3873? (as defined 
in RemoteProxyFactory.java.) unless
- the annotation @RemoteBinding(clientBindUrl=?) is used.

I read that the clientBindUrl should, since EJB 3.,0 RC2, be fetch from the 
MBean, but this seems to work only initially. Without the annotation, a method 
invocation of a remote bean interface will lead in a try to communicate over 
port 3873 (as for our config).
When setting up all of this, it is still not working correctly.
 I guess we could/should try the version with the serverlet-invoker.war (would 
be nice to have easy access to it) and then configure the jboss-service.xml 
accordingly. But having a guide on how this is done best and what/how it is so 
far implemented and how/what will be changed would be create

Sincerely
Marc


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3941528#3941528

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3941528


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: Deploying EJB 3 ear via Farming

2006-05-05 Thread MarcReis
I should have noticed it, the problem is that the jndi.properties got into the 
jar and ear package, so ofcourse causing trouble. Corrected the ant script and 
I could continue on to the next problems ;)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3941529#3941529

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3941529


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JNDI/Naming/Network] - Re: Using the http RMI invoker

2006-05-05 Thread MarcReis
Thanks for the reply !
In this context, I havent looked into those configs very much until now.
We also try to get our App/JBoss to just use one port. Have you done any 
approach into configuring jboss to do this ?
 We started with the \ejb3.deployer\META-INF\jbosss-service.xml and configured

  | mbean code=org.jboss.remoting.transport.Connector
  |   xmbean-dd=org/jboss/remoting/transport/Connector.xml
  |   
name=jboss.remoting:type=Connector,name=DefaultEjb3Connector,handler=ejb3
  |   dependsjboss.aop:service=AspectDeployer/depends
  | !-- Tomcat doesnt like it when doing http://:8080--
  | attribute 
name=InvokerLocatorservlet://${jboss.bind.address}:8080/invoker/EJBInvokerServlet/attribute
  |   !--attribute 
name=InvokerLocatorsocket://${jboss.bind.address}:3873/attribute--
  |   attribute name=Configuration
  |  handlers
  | handler 
subsystem=AOPorg.jboss.aspects.remoting.AOPRemotingInvocationHandler/handler
  |  /handlers
  |   /attribute
  |/mbean
  | 
The problem we had is that after fetching the JNDI, method invocations try 
going to 3873 again instead of using 8080.
With the annotation 
@RemoteBinding(... 
cientBindUrl=http://server:8080/invoker/EJBInvokerServlet) at least that 
changed (not a good solution though), but from here on there are still poblems. 
( I posted about this in 
http://www.jboss.com/index.html?module=bbop=viewtopict=82345 )
Thanks again for your reply and help!

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3941565#3941565

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3941565


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JNDI/Naming/Network] - Re: Using the http RMI invoker

2006-05-04 Thread MarcReis
Have you made any advance in this ?
I also would like to just use http and port 80.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3941323#3941323

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3941323


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: Deploying EJB 3 ear via Farming

2006-05-03 Thread MarcReis
You are right. It has the same effect if I manually do the deploy in each 
deploy folder. It seems to be my ear (and what is within) that causes the 
trouble. We have a real project we ported to 4.0.4rc2 and it worked, no matter 
if farmed or not (at least in the short time we tested it).

The test app is actually very simple, but I dont get why it produces such 
strange effects. If I leave the app in the farm folder and restart the server 
it will throw errors right away, that is something it doesnt do when I start 
the server and the ear is in the deploy folder. 
After some more trying out I now also have the problem that the jmx consol's 
JNDI Tree view wont show me the bean and interfaces that I deploy in the 
ear very strange, the hibernate factory is visibile though.
The bean and interfaces are there though, when I run a client in debug mode I 
can see that it gets access via HAJNDI to the tree and can fetch the interface, 
but then when I try to call a mehtod through the interface i looked up, I get a 
cluster invocation error. I allready set back to server folder to what I 
started with (merged all and ejb3.0 clusterd) to make sure I didnt mess up the 
config too much, but the effect holds on.
I also get the effect if I just deploy/farm the testEJB.jar.

My ear  and the containing jar, har and war look like this( I guess the configs 
would be more interresting, but I've got to start somewhere;):

  | testEJB.ear
  |  +--testEJB.jar
  |  +--testEJBHib.har
  |  +--testEJBWar.war
  |  +--META-INF/
  |   +--application.xml
  |   +--jboss-app.xml
  | 


  | testEJB.jar
  |  +--ejb-jar.xml
  |  +--hibernate.cfg.xml
  |  +--jndi.properties
  |  +--log4j.properties
  |  +--de/somewhere/test/
  |+--ejbean/
  | +--NatPersLstBean.class
  | +--HelloWorld.class
  |+--interfaces/
  |  +--IHelloWorld.class
  |  +--IHelloWorldRemote.class
  |  +--INatPersLst.class
  |  +--INatPersLstLocal.class
  |  +--INatPersLstRemote.class
  | +--persi/
  |  +--NatPers.class
  | +--util/
  |  +--HibTestUtil.class
  | 


  | testEJBHib.har
  |  +--NatPers.hbm.xml
  |  +--META-INF/
  |   +--hibernate-service.xml
  | +--de/somewhere/test/persi
  |   +--NatPers.class
  | 


  | testEJBWar.war
  |  +--hibernate.cfg.xml
  |  +--jndi.properties
  |  +--log4j.properties
  |  +--NatPersPage.html
  |  +--META-INF/
  |  +--WEB-INF/
  |   +--web.xml
  |  +--NatPers/
  |   +--Count2Ten.jsp
  |   +--LilstNatPers.jsp 
  |  +--de/somewhere/test/
  |+--ejbean/
  | +--NatPersLstBean.class
  | +--HelloWorld.class
  |+--interfaces/
  |  +--IHelloWorld.class
  |  +--IHelloWorldRemote.class
  |  +--INatPersLst.class
  |  +--INatPersLstLocal.class
  |  +--INatPersLstRemote.class
  | +--persi/
  |  +--NatPers.class
  | +--util/
  |  +--HibTestUtil.class
  | 

Since I have the some problem with just the jar, I guess that should be the 
start point (the jar depends on the har, which I deploy before).
My ejb-jar.xml is mainly empty just contains the main xml node, but nothing 
defined or configured there.
I guess the jndi.properties could be interresting, so here it comes

  | #- RMI
  | #java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
  | #java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
  | #java.naming.provider.url=192.168.111.222:1099
  | #java.naming.provider.url=localhost:1099
  | #- HTTP 
  | #java.naming.factory.initial=org.jboss.naming.HttpNamingContextFactory
  | #java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
  | #java.naming.provider.url=192.168.111.222:8080/invoker/JNDIFactory
  | 
  | java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
  | java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
  | jnp.partitionName=DefaultPartition
  | java.naming.provider.url=192.168.111.222:1100
  | 

For the cache the hibernate.cfg.xml might also be interessting:

  | ?xml version='1.0' encoding='utf-8'?
  | !DOCTYPE hibernate-configuration PUBLIC
  | -//Hibernate/Hibernate Configuration DTD 3.0//EN
  | http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd;
  | hibernate-configuration
  | session-factory
  | !-- Database connection settings --
  | property 
name=connection.driver_classoracle.jdbc.OracleDriver/property
  | property 
name=connection.urljdbc:oracle:thin:@thedb.somewhere.de:1521:THEDBNAME/property
  | property name=connection.usernamemyname/property
  | property name=connection.passwordmypass/property
  | 
  | !-- JDBC connection pool (use the built-in) --
  | !--property name=connection.pool_size1/property --
  | !-- JDBC 

[JBoss-user] [Clustering/JBoss] - Re: Deploying EJB 3 ear via Farming

2006-05-03 Thread MarcReis
... as always, just after posting, one problem or cause is solved. The culster 
invocation error was due to a typo (I read over it about 20times yesterday and 
did'nt see it, sorry) in the hibernate.cfg.xml at 

  | !-- Define cached entities and collections --
  | class-cache class=de.somewhere.test.persi.NatPers 
usage=transactional/
  | 
I had two letters mixed up. Now the invocation works.

Still the problem with the deployment causing the allready bound error ist 
there and the fact that I cant see my bean and interfaces in the JNDI tree via 
jmx consol (which is new).
As said, I run two instances of Jboss on one mashine, when I call the bean via 
the client multiple times (one non and one web app), it accesses the first 
mashine (do to the jndi.properties), should round robin still do its work and 
alternate the load  ? (I thought so, but it doesnt, the way I'm doing it at the 
moment. Just the bean on one maschine is used).

Thx !

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3940910#3940910

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3940910


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: Deploying EJB 3 ear via Farming

2006-05-03 Thread MarcReis
There it is again...

  | java.lang.RuntimeException: cluster invocation failed, last exception was: 
  | at 
org.jboss.aspects.remoting.ClusterChooserInterceptor.invoke(ClusterChooserInterceptor.java:115)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
  | at 
org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:46)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
  | at 
org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:40)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)An 
Error has accured: java.lang.RuntimeException: cluster invocation failed, last 
exception was:
  | at 
org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:41)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
  | at 
org.jboss.ejb3.stateless.StatelessClusteredProxy.invoke(StatelessClusteredProxy.java:85)
  | at $Proxy1.getNatPersLst(Unknown Source)
  | at 
de.somewhere.test.client.ClientNatPers.getNatPersLst(ClientNatPers.java:77)
  | at de.somewhere.test.client.ClientNatPers.main(ClientNatPers.java:35)
  | Caused by: org.jboss.aop.NotFoundInDispatcherException: Object with oid: 
jboss.j2ee:ear=testEJB.ear,jar=testEJB.jar,name=NatPerLstBean,service=EJB3 was 
not found in the Dispatcher
  | at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:83)
  | at 
org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
  | at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:828)
  | at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:681)
  | at 
org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:358)
  | at 
org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:398)
  | at 
org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:239)
  | 
 I deployed (in the /deploy folder) the ear, first in the 2nd node, then the 
1st node. So the could not bind to jndi... appeared on the first node.  I 
then tried to access it via the non web-client, and the above error accured .
I guess thats the also the reason there is no load balancing happening.
If I deploy in ascending order (node1,node2) this doesnt happen  (I guess since 
only node 1 is used ).


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3940941#3940941

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3940941


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: Deploying EJB 3 ear via Farming

2006-04-28 Thread MarcReis
Hi, 
no I did not, that is what is confusing me also.
The deploy dir contains nothing but the elements that come with the default 
deploy dir (no personal stuff at all, I cleared all out and used a clean 
install made out of the all and ejb 3.0 cluster folders, to make sure there is 
nothing I have overseen). 
I then start both servers, one after the other. And both find each other 
nicely. Then I drop my testEJB.ear  into the /farm folder of node 1 (which is 
until now empty on both nodes). Node 1 then starts to deploy nicely and at the 
end does its push to the cluster, node 2 receives this push and starts 
deploying also and then the already bound exception is thrown for the 
interfaces, since they are already in the JNDI - Tree, which seems logically, 
since HAJindi is supposed to provide them to all in the cluster (or ?). I 
thought what would happen automatically is, that the second node would 
register that, and then just link to the same bindings.




View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3940062#3940062

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3940062


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: Deploying EJB 3 ear via Farming

2006-04-28 Thread MarcReis
It seems to be a problem of my Test ear file. We deployed a larger application 
made out of jar, har, ejb3 and ear files and they were distributed fine (none 
are market @clustered though).

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3940147#3940147

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3940147


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: FarmDeployment Configuration

2006-04-27 Thread MarcReis
This one works for my config (at least the farming works ;-) )

  | ?xml version=1.0 encoding=UTF-8?
  | server   
  | mbean code=org.jboss.ha.framework.server.FarmMemberService 
  | name=jboss:service=FarmMember,PartitionName=DefaultPartition
  | 
dependsjboss:service=${jboss.partition.name:DefaultPartition}/depends   

  | attribute name=PartitionNameDefaultPartition/attribute  
  | attribute name=ScanPeriod5000/attribute  
  | attribute name=URLsfarm//attribute
  |   attribute name=FilterInstance 
attributeClass=org.jboss.deployment.scanner.DeploymentFilter 
serialDataType=javaBean
  |  property name=prefixes#,%,\,,.,_$/property
  |  property 
name=suffixes#,$,%,.BAK,.old,.orig,.rej,.bak,.sh,\,v,~/property
  |  property 
name=matches.make.state,.nse_depinfo,CVS,CVS.admin,RCS,RCSLOG,SCCS,TAGS,core,tags/property
  |   /attribute
  |   attribute 
name=URLComparatororg.jboss.deployment.scanner.PrefixDeploymentSorter/attribute
  |   attribute 
name=Deployerjboss.system:service=MainDeployer/attribute  
  | /mbean   
  | /server   
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3939738#3939738

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3939738


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: FarmDeployment Configuration

2006-04-27 Thread MarcReis
The farimg works in my test case( I have trouble with double binding in the 
JNDI Tree for the deployed packages afterwards).
Wich install and JBoss version do you run  ?(my config:   
http://www.jboss.com/index.html?module=bbop=viewtopict=81796 )  
I did a all installation and since I needed EJB 3.0 also merged the EJB3 
Clustered install into the all. I just added the farm-service.xml (after trying 
the uncomplete one in the admin guide, found that one in this forum). 
Do you sitll receive the same error message as before ?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3939750#3939750

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3939750


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: FarmDeployment Configuration

2006-04-27 Thread MarcReis
You started both servers (on the same machine ?), copy the ear to your /farm 
folder, does the first server then deploy the ear succesfully and ends like 
this ?

  | ...
  | 11:32:36,859 INFO  [EARDeployer] Started J2EE application: 
file:/C:/work/_progra
  | mme/jboss-4.0.4.CR2/server/default/farm/testEJB.ear
  | 11:32:36,859 INFO  [ClusterFileTransfer] Start push of file testEJB.ear to 
clust
  | er.
  | 11:32:36,875 INFO  [ClusterFileTransfer] Finished push of file testEJB.ear 
to cl
  | uster.
  | 
After this message shows up, my second node receives the ear and also starts 
deploying. Do both have the exact same config ? (e.g copy /default to /default2 
as the second node)...



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3939760#3939760

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3939760


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: FarmDeployment Configuration

2006-04-27 Thread MarcReis
It should be 2.0. But I don?t think that is the cause of the problem.
Maybe you are missing some libs, depending on your installation.
If you don?t have the all installation, II would try doing a second install 
with the all option and use that folder on your existing JBoss installation, 
that way you should avoid missing dependencies.
In that case you could just check via coping the farm-service.xml and see if it 
works on that installation. That way you might be able to sort out the cause 
(missing libs or network configuration for example). Does the clustering work 
out ok?
Be aware that I am not an expert on this ! I am also new to it and just telling 
what I have noticed/read/figured out so far (or belive to have).


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3939770#3939770

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3939770


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: FarmDeployment Configuration

2006-04-27 Thread MarcReis
When you start up the first server, is the /farm empty ? if you delete the farm 
folder, will it be created when you start up the server ?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3939778#3939778

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3939778


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: FarmDeployment Configuration

2006-04-27 Thread MarcReis
I Also noticed, but forgot to mention, that your second server has not found or 
joint the cluster -

  | 14:24:02,397 INFO  [DefaultPartition] Number of cluster members: 1
  | 14:24:02,413 INFO  [DefaultPartition] Other members: 0
  | 14:24:02,413 INFO  [DefaultPartition] Fetching state (will wait for 3 
milliseconds):
  | 14:24:02,413 INFO  [DefaultPartition] New cluster view for partition 
DefaultPartition (id: 0, delta:
  |  0) : [10.37.13.52:1099]
  | 14:24:02,413 INFO  [DefaultPartition] I am (10.37.13.52:1099) received 
membershipChanged event:
  | 14:24:02,413 INFO  [DefaultPartition] Dead members: 0 ([])
  | 14:24:02,413 INFO  [DefaultPartition] New Members : 0 ([])
  | 14:24:02,413 INFO  [DefaultPartition] All Members : 1 ([10.37.13.52:1099])
  | 14:24:02,444 INFO  [HANamingService] Started ha-jndi bootstrap 
jnpPort=1100, backlog=50, bindAddress
  | =/0.0.0.0
  | 14:24:02,460 INFO  [DetachedHANamingService$AutomaticDiscovery] Listening 
on /0.0.0.0:1102, group=23
  | 0.0.0.4, HA-JNDI address=10.37.13.52:1100
  | 

  | 4:22:56,744 INFO  [DefaultPartition] Number of cluster members: 1
  | 14:22:56,744 INFO  [DefaultPartition] Other members: 0
  | 14:22:56,744 INFO  [DefaultPartition] Fetching state (will wait for 3 
milliseconds):
  | 14:22:56,744 INFO  [DefaultPartition] New cluster view for partition 
DefaultPartition (id: 0, delta:
  |  0) : [10.37.13.40:1099]
  | 14:22:56,744 INFO  [DefaultPartition] I am (10.37.13.40:1099) received 
membershipChanged event:
  | 14:22:56,744 INFO  [DefaultPartition] Dead members: 0 ([])
  | 14:22:56,744 INFO  [DefaultPartition] New Members : 0 ([])
  | 14:22:56,744 INFO  [DefaultPartition] All Members : 1 ([10.37.13.40:1099])
  | 14:22:56,791 INFO  [HANamingService] Started ha-jndi bootstrap 
jnpPort=1100, backlog=50, bindAddress
  | =/0.0.0.0
  | 

All Members is in both cases 1, it should be two, I cant see it, but does  the 
first server notices that the second started ? it should post a message like 
the above with  New Members 1 and All Members 2 !

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3939785#3939785

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3939785


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: FarmDeployment Configuration

2006-04-27 Thread MarcReis
Never mind,  I didnt see the last linesince it looks different on the 4.0.4.RC2 
(like the New Member etc. lines at start up).
Your server does of course notive the other one

  | [DefaultPartition] Originating groups: [[wks-nkhachat:2102 (additional 
data: 16 b
  | ytes)|0] [wks-nkhachat:2102 (additional data: 16 bytes)], [10.37.13.52:2117 
(additional data: 16 byt
  | es)|0] [10.37.13.52:2117 (additional data: 16 bytes)]]
  | 

Sorry !

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3939791#3939791

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3939791


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: FarmDeployment Configuration

2006-04-27 Thread MarcReis
I'm sorry, then I dont see what else you could do (but as I said, I dont know 
alot about this).
You might check via jmx consol if you can find the 
 service=FarmMember, too see if it gets started at all.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3939822#3939822

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3939822


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: Deploying EJB 3 ear via Farming

2006-04-27 Thread MarcReis
 Depending on my config I also get this problem with the EJB3EntityTreeCache 
on startup of the second server. 
I really would appriciate a tip, since I still cant find any thing in the wiki, 
the there linked documents or the other guides and handbooks I have (google 
wont help either, and reading the stuff the fourth or fifth time also did not 
do the job). 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3939825#3939825

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3939825


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: FarmDeployment Configuration

2006-04-27 Thread MarcReis
Here it comes, but be aware that I am using the 4.0.4.rc2. I dont know if there 
are version specific dependencies..


  | ?xml version=1.0 encoding=UTF-8?
  | 
  | !-- = 
--
  | !--   
--
  | !--  Sample Clustering Service Configuration  
--
  | !--   
--
  | !-- = 
--
  | 
  | server
  | 
  |!-- 
 --
  |!-- Cluster Partition: defines cluster  
 --
  |!-- 
 --
  | 
  |mbean code=org.jboss.ha.framework.server.ClusterPartition
  |   name=jboss:service=${jboss.partition.name:DefaultPartition}
  |  
  |   !-- Name of the partition being built --
  |   attribute 
name=PartitionName${jboss.partition.name:DefaultPartition}/attribute
  | 
  |   !-- The address used to determine the node name --
  |   attribute name=NodeAddress${jboss.bind.address}/attribute
  | 
  |   !-- Determine if deadlock detection is enabled --
  |   attribute name=DeadlockDetectionFalse/attribute
  |  
  |   !-- Max time (in ms) to wait for state transfer to complete. 
Increase for large states --
  |   attribute name=StateTransferTimeout3/attribute
  | 
  |   !-- The JGroups protocol configuration --
  |   attribute name=PartitionConfig
  |  !--
  |  The default UDP stack:
  |  - If you have a multihomed machine, set the UDP protocol's 
bind_addr attribute to the
  |  appropriate NIC IP address, e.g bind_addr=192.168.0.2.
  |  - On Windows machines, because of the media sense feature being 
broken with multicast
  |  (even after disabling media sense) set the UDP protocol's loopback 
attribute to true
  |  --
  |  Config
  | UDP mcast_addr=${jboss.partition.udpGroup:228.1.2.3} 
mcast_port=45566
  |ip_ttl=8 ip_mcast=true
  |mcast_send_buf_size=80 mcast_recv_buf_size=15
  |ucast_send_buf_size=80 ucast_recv_buf_size=15
  |loopback=false/
  | PING timeout=2000 num_initial_members=3
  |up_thread=true down_thread=true/
  | MERGE2 min_interval=1 max_interval=2/
  | FD shun=true up_thread=true down_thread=true
  |timeout=2500 max_tries=5/
  | VERIFY_SUSPECT timeout=3000 num_msgs=3
  |up_thread=true down_thread=true/
  | pbcast.NAKACK gc_lag=50 
retransmit_timeout=300,600,1200,2400,4800
  |max_xmit_size=8192
  |up_thread=true down_thread=true/
  | UNICAST timeout=300,600,1200,2400,4800 window_size=100 
min_threshold=10
  |down_thread=true/
  | pbcast.STABLE desired_avg_gossip=2
  |up_thread=true down_thread=true/
  | FRAG frag_size=8192
  |down_thread=true up_thread=true/
  | pbcast.GMS join_timeout=5000 join_retry_timeout=2000
  |shun=true print_local_addr=true/
  | pbcast.STATE_TRANSFER up_thread=true down_thread=true/
  |  /Config
  | 
  |  !-- Alternate TCP stack: customize it for your environment, 
change bind_addr and initial_hosts --
  |  !--
  |  Config
  | TCP bind_addr=thishost start_port=7800 loopback=true/
  | TCPPING initial_hosts=thishost[7800],otherhost[7800] 
port_range=3 timeout=3500
  |num_initial_members=3 up_thread=true down_thread=true/
  | MERGE2 min_interval=5000 max_interval=1/
  | FD shun=true timeout=2500 max_tries=5 up_thread=true 
down_thread=true /
  | VERIFY_SUSPECT timeout=1500 down_thread=false 
up_thread=false /
  | pbcast.NAKACK down_thread=true up_thread=true gc_lag=100
  |retransmit_timeout=3000/
  | pbcast.STABLE desired_avg_gossip=2 down_thread=false 
up_thread=false /
  | pbcast.GMS join_timeout=5000 join_retry_timeout=2000 
shun=false
  |print_local_addr=true down_thread=true up_thread=true/
  | pbcast.STATE_TRANSFER up_thread=true down_thread=true/
  |  /Config
  |  --
  |   /attribute
  |   dependsjboss:service=Naming/depends
  |/mbean
  | 
  |!-- 
 --
  |!-- HA Session State Service for SFSB   
 --
  |!-- 
 --
  | 
  |mbean 

[JBoss-user] [Clustering/JBoss] - Deploying EJB 3 ear via Farming

2006-04-26 Thread MarcReis
Hi,
my config in short:
I have configured a 4.0.4rc2 to run clustered on one machine with farming for 
EJB 3 (followed the guides I found in the wiki and the admin guide. Merged the 
all and EJB 3 clustered installations, which works so far). I have a small test 
app which I wish to deploy via farming. It consists of an ear, with a HAR, JAR 
(for EJB 3) and a WAR.
Too sum up the package, it consist of one tiny EJB 3 (marked @Clustered with 
remote and local interface (bound through the @RemoteBinding and @LocalBinding 
annotations).
So far, everything works (the ear works for none farming deployment on one 
instance of the server).
 When I deploy the EAR in the /farm Folder the 1st node does fine and deploys 
the EAR and pushes it to the 2nd node. This one receives the EAR and also 
starts deploying. 
The Problem:
 comes up at this point: as the 2nd node starts deploying, it try's to bind the 
remote and local interfaces to the JNDI tree (HAJndi Tree), which results in a 
conlict, since they are already bound, on the consol this looks something like 
this (shortend version):


  | ...
  | 2006-04-26 16:46:43,187 DEBUG [org.jboss.ejb3.ServiceDelegateWrapper] 
Starting failed 
jboss.j2ee:ear=testEJB.ear,jar=testEJB.jar,name=NatPerLstBean,service=EJB3
  | javax.naming.NamingException: Could not bind statless proxy with ejb name 
NatPerLstBean into JNDI under jndiName: /EJBTEST/NatPerLstBean/remote [Root 
exception is javax.naming.NameAlreadyBoundException]
  | at 
org.jboss.ejb3.stateless.BaseStatelessProxyFactory.start(BaseStatelessProxyFactory.java:70)
  | at 
org.jboss.ejb3.stateless.StatelessClusterProxyFactory.start(StatelessClusterProxyFactory.java:97)
  | at org.jboss.ejb3.ProxyDeployer.start(ProxyDeployer.java:85)
  | at org.jboss.ejb3.SessionContainer.start(SessionContainer.java:85)
  | at 
org.jboss.ejb3.stateless.StatelessContainer.start(StatelessContainer.java:80)
  | 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.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:99)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
  | ...
  | 
ending with

  | 16:46:43,187 INFO  [EJB3Deployer] Deployed: 
file:/C:/work/_programme/jboss-4.0.4
  | .CR2/server/default2/tmp/deploy/tmp39879testEJB.ear-contents/testEJB.jar
  | 16:46:43,203 INFO  [TomcatDeployer] deploy, ctxPath=/testEJBWar, 
warUrl=.../tmp/
  | deploy/tmp39879testEJB.ear-contents/testEJBWar-exp.war/
  | 16:46:43,421 INFO  [EARDeployer] Started J2EE application: 
file:/C:/work/_progra
  | mme/jboss-4.0.4.CR2/server/default2/farm/testEJB.ear
  | 16:46:43,421 ERROR [FarmMemberService] Incomplete Deployment listing:
  | 
  | --- MBeans waiting for other MBeans ---
  | ObjectName: 
jboss.j2ee:ear=testEJB.ear,jar=testEJB.jar,name=NatPerLstBean,servic
  | e=EJB3
  |   State: FAILED
  |   Reason: javax.naming.NamingException: Could not bind statless proxy with 
ejb n
  | ame NatPerLstBean into JNDI under jndiName: /EJBTEST/NatPerLstBean/remote 
[Root
  | exception is javax.naming.NameAlreadyBoundException]
  | 
  | --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
  | ObjectName: 
jboss.j2ee:ear=testEJB.ear,jar=testEJB.jar,name=NatPerLstBean,servic
  | e=EJB3
  |   State: FAILED
  |   Reason: javax.naming.NamingException: Could not bind statless proxy with 
ejb n
  | ame NatPerLstBean into JNDI under jndiName: /EJBTEST/NatPerLstBean/remote 
[Root
  | exception is javax.naming.NameAlreadyBoundException]
  | 

I thought I had configured all correct so far, but I guess I am missing 
something... Thanks for any help hint's and links ! :)



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3939559#3939559

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3939559


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: EJB 3.0, JBoss 4.0.4.RC2 JNDI Binding

2006-04-24 Thread MarcReis
This might actually rather fit into the JNDI area, but since I?m not sure, I'll 
use this thread to continue my questioning:
The Problem that I am having is concerning the binding into the JNDI Tree via 
annotations:
After the new naming schema in 4.0.4.RC2 ( RC6 EJB 3.0), my objects get hung as 
objectname/remote and ?objectname/local? into the JNDI Tree.
Before I used too look up the remote interface using:

  | INatPersLst persLstI = 
(INatPersLst)initCtx.lookup(INatPersLstRemote.class.getName());
  | 
So now, I thought , I could look it up like this (I dont really like to hard 
code the name)

  | String jndiName = 
((RemoteBinding)INatPersLstRemote.class.getAnnotation(RemoteBinding.class)).jndiBinding();
Object xyz = initCtx.lookup(jndiName);
  | 
I stated in the remote interface the annotation 

  | @RemoteBinding(jndiBinding=de.somewhere.test.interfaces.INatPersLstRemote)
  | 
as the name to use in the JNDI Tree (or at least that is what I expected), but 
unfortunately that is not the name with which it gets hung into the JNDI Tree, 
there it is still named NatPersLstBean/remote.

Is there some config I missed that enables/disables the renaming of the JNDI 
Binding in some config file?
And/or is there a  better non static way of  fetching/naming for the interface 
name and doing this lookup?

Thx !

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3938887#3938887

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3938887


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: EJB 3.0, JBoss 4.0.4.RC2 JNDI Binding

2006-04-24 Thread MarcReis
Ok, I have the binding... seems like  I missunderstud something there, sorry. I 
placed the annotation in the class representing the remote interface for the 
bean, that did not work. I now placed the annotation in the bean and so get the 
binding I want in the JNDI Tree.

Thx 
Marc

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3938889#3938889

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3938889


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: EJB 3.0, JBoss 4.0.4.RC2 JNDI Binding

2006-04-24 Thread MarcReis
hmm, next problem...
I would greatly appreciate a tip, link, hint or example for an efficient way of 
doing the JNDI lookup on the 4.0.4.RC2 and EJB 3.0 RC 6, like the old style 
of just asking for the name of the interface and looking this up

The problem that I have is, that I don?t wish to hard code each interface name, 
I am looking for a ?dynamic? approach, like before. 
 Since I only want the client to know the interface, I can?t fetch the value of 
the [EMAIL PROTECTED] ? Annotation of the bean, (and that?s the only place 
where it has effects on the naming in the JNDI Tree).

 Also, I would still not be able to set it dynamic since you cant do something 
like [EMAIL PROTECTED] =  (jndiBinding = 
de.home.test.interfaces.INatPersLstRemote.class.getName())?or similar (as far 
as I have read up till now).

So how do most of you handle this?
 I tried to find some documentation or examples on this ?new? naming approach, 
but have not really found anything (just lots of ?older ? examples, where in 
most cases they just used the name as a constant like ?myBean/remote?).

Thx ahead !


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3938922#3938922

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3938922


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - EJB 3.0, JBoss 4.0.4.RC2 JNDI Binding

2006-04-20 Thread MarcReis
Hi, I am new to JBoss, EJB3.0 and Co. (So the solution might be simpler, since 
I might oversee something in the config)
I just tryed to move a simple test app from 4.0.3.sp1 to 4.0.4.RC2. 
The Problem I am having now ist that I get a different naming in the JNDI Tree 
and I have no idea why. The JNDI Tree:
4.0.3sp1

  | ...
  | +- de.home.test.interfaces.INatPersLstLocal (proxy: $Proxy65 implements 
interface de.mediacare.test.interfaces.INatPersLstLocal,interface 
org.jboss.ejb3.JBossProxy)
  | +- de.home.test.interfaces.INatPersLstRemote (proxy: $Proxy64 implements 
interface de.mediacare.test.interfaces.INatPersLstRemote,interface 
org.jboss.ejb3.JBossProxy)
  | ...
  | 

4.0.4rc2
 
  | ...
  | +- NatPerLstBean (class: org.jnp.interfaces.NamingContext)
  |   |   +- local (proxy: $Proxy67 implements interface 
de.home.test.interfaces.INatPersLstLocal,interface 
org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBLocalObject)
  |   |   +- remote (proxy: $Proxy66 implements interface 
de.home.test.interfaces.INatPersLstRemote,interface 
org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBObject)
  | ...
  | 

So when I try to fecht the context with

  | ...
  | InitialContext initCtx = new InitialContext();
  | NamingEnumeration myNamingEnum = 
initCtx.list(initCtx.getNameInNamespace());
  | 
  | INatPersLst persLstI = 
(INatPersLst)initCtx.lookup(de.home.test.interfaces.INatPersLstRemote.class.getName());
  | ...
  | 
nothing is found.
What am I overseening ?

Thx ahead !

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3938407#3938407

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3938407


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: EJB 3.0, JBoss 4.0.4.RC2 JNDI Binding

2006-04-20 Thread MarcReis
Hi first off, thanks for the link. I checked it out, but...
Unfortunately it doesn?t clarify to me why the behaviour of the JNDI 
Binding/Naming changed for my code when deploying in 4.0.3SP1 (where it works) 
or 4.0.4.RC2 (where it does not work).
I have, of course, checked all config files I know of (or could find) and the 
doc?s, but I don?t see why the behaviour has changed (of course I could have 
overseen something or looked at the wrong spots of the doc?s).

Is it suggested to always defined your own local/remote binding/naming  so that 
you don?t run into this?


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3938420#3938420

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3938420


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: EJB 3.0, JBoss 4.0.4.RC2 JNDI Binding

2006-04-20 Thread MarcReis
Thx  for the fast help !

I did it like this, since a direct lookup (NatPersLstBean/remote) didnt seem to 
work, but this does the job:


  | ...
  | Object xyz = initCtx.lookup(NatPerLstBean);
  | NamingContext myNamingContext = (NamingContext)xyz;
  | xyz = myNamingContext.lookup(remote);
  | INatPersLst persLstI = (INatPersLst)xyz;
  | ...
  | 


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3938442#3938442

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3938442


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user