[JBoss-user] [EJB/JBoss] - Re: NoClassDefFoundError in JBoss 3.2.5 but not in 3.2.3

2004-08-26 Thread fljmayer
This issue seems to be related to the order of the JAR files listed in the Class-Path 
of the manifest file. We had a similar issue in 3.2.3, and reordering things in the 
Class-Path reolved it.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3846374#3846374

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3846374


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Re: NullPointerException in org.jboss.mx.loading.LoadMgr3

2004-07-01 Thread fljmayer
Here is the scenario:
I have a stateful session bean called ClientSessionBean, its interface is 
ClientSession. Every client who logs into the system does so by acquiring this bean 
and calling the login() method, which returns a unique session id. On the client side, 
there is a class called ClientSessionProxy, which implements the ClientSession 
interface and also wraps the proxy received from ClientSessionHome.create(). When the 
client calls the login() method on ClientSessionProxy, the call is delegated to the 
wrapped proxy; if that remote call succeeds, the ClientSessionProxy creates a JMS 
MessageListener on a clientIsAlive topic with a message selector that filters out 
everything but messages for this particular session id by looking at the the message 
attribute 'sessionID'.
All the scheduler does is to send messages on the clientIsAlive topic to all logged in 
sessions by setting the message attribute 'sessionID'. If there is no reply within 500 
milliseconds, server-internal resources related to that session are released.
The problem happens when a reply from the client it received: when I call 
ObjectMessage.getObject(), I get the NullPointerException, even though the object is 
just a java.lang.Long containing the session id.

Which forum would you suggest for this one?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3840625#3840625

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3840625


---
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: NoClassDefFoundError in JBoss 3.2.5 but not in 3.2.3

2004-07-01 Thread fljmayer
Thanks, but I don't have any old versions lying around. Everything is packaged within 
the EAR, which is replaced upon deployment. I did see the problem JAR twice, though, 
in those directories:
server\default\tmp\deploy\tmp56967console-mgr.sar-contents
server\default\tmp\deploy\tmp56995capsela.ear-contents\lib
This is probably because I have 2 deployments in my EAR:
A SAR file with some JMX stuff and a JAR file with the EJBs. But this works fine in 
JBoss 3.2.3.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3840618#3840618

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3840618


---
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - NullPointerException in org.jboss.mx.loading.LoadMgr3

2004-06-30 Thread fljmayer
I want to use the org.jboss.varia.scheduler.Scheduler to ping clients via JMS to see 
if they are still alive. I am using JBoss 3.2.3 because if have problems with 3.2.5. 
Unfortunately there is a problem when I try to get the object from the JMS message 
returned by the client. The object is just a java.lang.Long, but it seems that the 
parameter repository passed to LoadMgr3.beginLoadTask() is null, leading to the 
exception below.

anonymous wrote : 
  | 16:36:48,203 ERROR [Scheduler$Listener] Handling a Scheduler call failed
  | java.lang.NullPointerException
  | at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:119)
  | at 
org.jboss.mx.loading.UnifiedClassLoader3.loadClassImpl(UnifiedClassLoader3.java:169)
  | at 
org.jboss.mx.loading.UnifiedClassLoader3.loadClass(UnifiedClassLoader3.java:123)
  | at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
  | at org.jboss.util.Classes.loadClass(Classes.java:357)
  | at org.jboss.util.Classes.loadClass(Classes.java:296)
  | at 
org.jboss.mq.SpyObjectMessage$1$ObjectInputStreamExt.resolveClass(SpyObjectMessage.java:99)
  | at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1513)
  | at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
  | at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626)
  | at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
  | at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
  | at org.jboss.mq.SpyObjectMessage.getObject(SpyObjectMessage.java:103)
  | at 
com.ichg.capsela.framework.util.ObjectMessageListener.receiveObject(ObjectMessageListener.java:31)
  | at 
com.ichg.capsela.framework.util.TopicCommunicator.receiveObjectMessage(TopicCommunicator.java:119)
  | at com.ichg.capsela.ejb.ClientSessionBean.isAlive(ClientSessionBean.java:224)
  | at 
com.ichg.capsela.ejb.ClientSessionBean.removeDeadBeans(ClientSessionBean.java:142)
  | at com.ichg.capsela.jmx.IsAliveSchedulable.perform(IsAliveSchedulable.java:25)
  | at 
org.jboss.varia.scheduler.Scheduler$Listener.handleNotification(Scheduler.java:1263)
  | at 
org.jboss.mx.server.NotificationListenerProxy.handleNotification(NotificationListenerProxy.java:69)
  | at 
javax.management.NotificationBroadcasterSupport.sendNotification(NotificationBroadcasterSupport.java:95)
  | at javax.management.timer.Timer.sendNotifications(Timer.java:441)
  | at javax.management.timer.Timer.access$000(Timer.java:31)
  | at javax.management.timer.Timer$RegisteredNotification.doRun(Timer.java:612)
  | at org.jboss.mx.util.SchedulableRunnable.run(SchedulableRunnable.java:164)
  | at org.jboss.mx.util.ThreadPool$Worker.run(ThreadPool.java:225)
  | 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3840520#3840520

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3840520


---
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - NoClassDefFoundError in JBoss 3.2.5 but not in 3.2.3

2004-06-30 Thread fljmayer
I have an EAR that runs fine on JBoss 3.2.3, but when I deploy it on 3.2.5 I always 
get a NoClassDefFoundError. The problem class is within a JAR in the EAR. That JAR is 
on the Class-Path of the manifest file inside of the JAR with our EJBs. I also tried 
putting the JAR with the problem class in the server/default/lib directory and 
restarting JBoss, the result is the same. The error happens when a stateful session 
bean attempts to initialize Hibernate (see stack trace below). I first thought it 
might be a class loader problem, but then putting the JAR into the server/default/lib 
directory and restarting JBoss should have solved the problem. We even put Hibernate 
and the problem class into a single JAR, that didn't help . The Hibernate version 
(2.1.2 or 2.1.4) doesn't have an impact either.


  | java.lang.NoClassDefFoundError: org/jfree/chart/JFreeChart
  | at java.lang.Class.getDeclaredMethods0(Native Method)
  | at java.lang.Class.privateGetDeclaredMethods(Class.java:1647)
  | at java.lang.Class.getMethod0(Class.java:1893)
  | at java.lang.Class.getMethod(Class.java:976)
  | at net.sf.hibernate.util.ReflectHelper.overridesEquals(ReflectHelper.java:57)
  | at net.sf.hibernate.type.EntityType.(EntityType.java:44)
  | at net.sf.hibernate.type.ManyToOneType.(ManyToOneType.java:43)
  | at net.sf.hibernate.type.ManyToOneType.(ManyToOneType.java:39)
  | at net.sf.hibernate.Hibernate.entity(Hibernate.java:226)
  | at net.sf.hibernate.cfg.Binder.bindOneToMany(Binder.java:703)
  | at net.sf.hibernate.cfg.Binder.bindCollection(Binder.java:541)
  | at net.sf.hibernate.cfg.Binder$2.create(Binder.java:1421)
  | at net.sf.hibernate.cfg.Binder.propertiesFromXML(Binder.java:1017)
  | at net.sf.hibernate.cfg.Binder.bindSubclass(Binder.java:172)
  | at net.sf.hibernate.cfg.Binder.handleSubclass(Binder.java:1083)
  | at net.sf.hibernate.cfg.Binder.propertiesFromXML(Binder.java:1044)
  | at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:361)
  | at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1243)
  | at net.sf.hibernate.cfg.Configuration.add(Configuration.java:249)
  | at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:285)
  | at net.sf.hibernate.cfg.Configuration.addClass(Configuration.java:351)
  | at 
com.ichg.capsela.framework.domain.PersistenceManager.hibernateConfiguration(PersistenceManager.java:270)
  | at 
com.ichg.capsela.framework.domain.PersistenceManager.sessionFactory(PersistenceManager.java:294)
  | at 
com.ichg.capsela.framework.domain.PersistenceSession.openHibernateSession(PersistenceSession.java:308)
  | at 
com.ichg.capsela.framework.domain.PersistenceSession.resume(PersistenceSession.java:97)
  | at 
com.ichg.capsela.framework.domain.PersistenceManager.resumeSession(PersistenceManager.java:234)
  | at 
com.ichg.capsela.ejb.ClientSessionBean.queryPrincipals(ClientSessionBean.java:358)
  | 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:324)
  | at 
org.jboss.ejb.StatefulSessionContainer$ContainerInterceptor.invoke(StatefulSessionContainer.java:949)
  | at 
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:120)
  | at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)
  | at 
org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSessionInstanceInterceptor.java:273)
  | at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
  | at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:315)
  | at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:148)
  | at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
  | at 
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
  | at 
org.jboss.ejb.StatefulSessionContainer.internalInvoke(StatefulSessionContainer.java:416)
  | at org.jboss.ejb.Container.invoke(Container.java:723)
  | 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:324)
  | at 
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
  | at org.jboss.mx.server.Invocation.invoke(Invocatio

[JBoss-user] [Installation & Configuration] - Re: WAR and EJB-JAR in same EAR?

2004-06-06 Thread fljmayer
Hm, something went wrong in the last sentence. I meant the ejb and web modules. Here 
is an attempt to post my application.xml for clarification:

  | 
  | http://java.sun.com/dtd/application_1_3.dtd";>
  | 
  |lifex
  |
  |   
  |  lifex.war
  |  /lifex
  |   
  |   lifex.jar
  |
  | 
  | 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3837673#3837673

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3837673


---
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - WAR and EJB-JAR in same EAR?

2004-06-06 Thread fljmayer
I have a really strange deployment problem with JBoss 3.2.3:
I have an EAR that contains a JAR with some EJBs and other classes, and a WAR with 
JSPs, struts stuff etc. When I copy the EAR into the deploy directory, only the JAR is 
picked up by the deployer, nothing from the WAR is available. If I then copy the WAR 
into deploy directory, the JSPs are available. So my JAR and my WAR seem to be okay. I 
check application.xml multiple times, everything looks fine. I remove the  entry for 
the JAR from application.xml, copy the EAR to the deploy directory and - voila - the 
WAR deploys just fine (after I removed the WAR file from the deploy directory). So it 
seems that my application.xml it correct after all.

But what is the cause of this behavior? Am I doing something wrong or does JBoss 
really not support both an  and a  module in the same EAR?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3837667#3837667

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3837667


---
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user