Hi
I'm a newbie to ejb
in general and to jboss in particular. I have a question which no doubt is
related to some simple configuration issue. I thought I'd ask before i resort to
reinstalling everything.
I have installed
ejboss, without much difficulty. I have set up my odbc driver correctly ( i
think, haven't been able to test it though)
i have compiled and
tested a session bean (using the getting started example) and an entity bean
(from the oreilley ejb examples from chapter 4)
everything seems
fine.
I want next to test
out my jdbc stuff, so i need to start playing with jaws. I have had a devil of a
time getting the ejx stuff to run.
1. i was
getting numerous exceptions regarding missing xml classes. I found the previous
mailing list thread regarding moving the xml.jar to the ext dir. that at least
made it start up without exceptions.
2. now it starts up,
but when i tried to load an existing ejb descriptor xml file, i would get many
exceptions regarding missing classes in the com.dreambean... package (sorry -
didnt write anything down).
went prowling around
through all the jar files that were part of the install, no luck. searched the
mailing list, no luck. Went to the dreambeam.com site, downloaded their ejx
stuff, installed it, and it seemed to run fine. I could open and edit ejb
descriptor xml files correctly, without throwing exeptions. Seemed like i was
making progress.
then, i moved the
jaws and jboss plugins over, and tried to run those. Now i get missing class
exceptions of the sort:
Loading preference
for:userDir
Exception occurred during event dispatching:
java.lang.NoClassDefFoundError: com/dreambean/awt/BeanContextViewer
at org.jboss.ejb.plugins.jaws.deployment.TypeMappings.getComponent(Type
appings.java:77)
at org.jboss.ejb.plugins.jaws.deployment.JawsEjbJarViewer.setObject(Jaw
EjbJarViewer.java:41)
at org.jboss.ejb.plugins.jaws.deployment.JawsEjbJar.getComponent(JawsEj
Jar.java:88)
at org.jboss.ejb.plugins.jaws.deployment.JawsFileManager.getComponent(J
wsFileManager.java:330)
at com.dreambean.ejx.editor.FileManagerViewer.initializeBeanContextReso
rces(FileManagerViewer.java:83)
at java.beans.beancontext.BeanContextChildSupport.setBeanContext(Unknow
Source)
at java.beans.beancontext.BeanContextSupport.add(Unknown Source)
at com.dreambean.ejx.editor.EJX$1.actionPerformed(EJX.java:53)
Exception occurred during event dispatching:
java.lang.NoClassDefFoundError: com/dreambean/awt/BeanContextViewer
at org.jboss.ejb.plugins.jaws.deployment.TypeMappings.getComponent(Type
appings.java:77)
at org.jboss.ejb.plugins.jaws.deployment.JawsEjbJarViewer.setObject(Jaw
EjbJarViewer.java:41)
at org.jboss.ejb.plugins.jaws.deployment.JawsEjbJar.getComponent(JawsEj
Jar.java:88)
at org.jboss.ejb.plugins.jaws.deployment.JawsFileManager.getComponent(J
wsFileManager.java:330)
at com.dreambean.ejx.editor.FileManagerViewer.initializeBeanContextReso
rces(FileManagerViewer.java:83)
at java.beans.beancontext.BeanContextChildSupport.setBeanContext(Unknow
Source)
at java.beans.beancontext.BeanContextSupport.add(Unknown Source)
at com.dreambean.ejx.editor.EJX$1.actionPerformed(EJX.java:53)
seems like there is
some kind of version difference in the jar files between what comes from the
dreambean site and what comes with jboss (though looking in cvs does not confirm
this)
so, i tried to based
on dates / filesizes update the jar files in the ext directory under the
ejx install with versions from jboss. When i did, the class not found exception
turned into a method not found for the same class that was previously giving the
classnotfound exception.
Noone else seems to
be having such trouble getting this stuff to work, so I must be doing something
stupid.
Any suggestions?
Thanks a
lot.
-Chris
Chris
Perreault
Engenius, Inc.
11 Lexington Street
Waltham, MA 02452
781.642.0946 x202
