Hey Erik,

to run smooth, install and use JDK 1.3. The exception below is reported when
using jdk1.2.2.
Then clear completely your classpath.
Start jboss running run_with_tomcat as explained in the README contained in
the distribution you downloaded.
Surf localhost:8080/jboss, et voila (I just did this and for me it works).

For these beans/jsp, you can find the source code in CVS under module
contrib, or download a snapshot of it at http://jboss.org/zip_archives/
(choose the contrib zipped file).
So, take a look at the sources and start from there to experiment.

HTH,

Simon

> Hello,
> Two days ago I started looking into jBoss.
> I have downloaded and installed the jBoss 2.0 FINAL with 
> Tomcat support.
> Problem is I still have not been able to access any EJB's in 
> the server.
> There are lots of documentation on how to make EJB's, how to 
> deploy them,
> how to access them via JSP etc.,
> and the mailing list archive also is a rich source for a beginner.
> But I have not been able to find a simple, straightforward, complete
> example that can be downloaded, installed, and run.
> 
> Does anybody have such an example that can be deployed under 
> Windows 2000,
> and run without changes against a jBoss server running on localhost?
> If such an example exists, and if it in addition includes a 
> CMP Entity Bean
> that uses an Oracle database for persistence, and both a standalone
> testclient, and a JSP testpage, then it would be greatly 
> appreciated. (if
> not, I will be glad publish it here as soon as I have figured 
> out how to do
> it. But it may take some time...)
> 
> The examples on jboss.org are fine, but more guidelines than complete
> examples, and suited for a non-windows environment.
> (If you as a beginner has to do things manually, you tend to 
> think that
> every error you get has do do with your own lack of 
> understanding. That's
> why a simple yet complete example would be wonderful.)
> 
> I have tried the testsuite for jBoss, but could not build it 
> without making
> modifications to the build.xml (different ant versions?).
> Deploying the testsuite jar-files causes messages like
> 
> [Verifier]
> Bean   : Teller
> Method : public abstract Teller create() throws RemoteException
> Section: 6.10.6
> Warning: The throws clause of a create(...) method must include the
> javax.ejb.CreateException.
> 
> Trying to run eg. dbtest.bat gives this error:
> 
> Welcome to the database test
> _____________________________________________
> 
> Deploying the bean...done!
> 
> 1- Looking up the home AllTypes...javax.naming.CommunicationException.
> Root exception is java.lang.ClassNotFoundException:
> org.jboss.ejb.plugins.jrmp13.interfaces.HomeProxy
>      at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>      at java.security.AccessController.doPrivileged(Native Method)
>      at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>      at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
>      at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
>      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
>      at java.lang.Class.forName0(Native Method)
>      at java.lang.Class.forName(Class.java:195)
>      at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:354)
>      at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:88)
>      at
> sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStr
> eam.java:145)
>      at
> java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStre
> am.java:918)
>      at 
> java.io.ObjectInputStream.readObject(ObjectInputStream.java:366)
>      at 
> java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
>      at 
> java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1186)
>      at 
> java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
>      at
> java.io.ObjectInputStream.inputClassFields(ObjectInputStream.j
> ava:2262)
>      at
> java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.
> java:519)
>      at 
> java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1411)
>      at 
> java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
>      at 
> java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
>      at java.rmi.MarshalledObject.get(MarshalledObject.java:138)
>      at 
> org.jnp.interfaces.NamingContext.lookup(NamingContext.java:299)
>      at 
> org.jnp.interfaces.NamingContext.lookup(NamingContext.java:279)
>      at javax.naming.InitialContext.lookup(InitialContext.java:350)
>      at org.jboss.test.dbtest.test.Main.testAllTypesBean(Main.java:88)
>      at org.jboss.test.dbtest.test.Main.main(Main.java:42)
> 
> Could not lookup the context:  the beans are probably not deployed
> Check the server trace for details
> java.lang.Exception
>      at org.jboss.test.dbtest.test.Main.testAllTypesBean(Main.java:99)
>      at org.jboss.test.dbtest.test.Main.main(Main.java:42)
> 
> (I included a printStackTrace to get the information above).
> 
> I did not find the class in question when searching the jBoss 
> inst. dir,
> and server trace says nothing (if this refers to
> the output in the dos window where jBoss is started).
> 
> Hope somebody can help, because I really should like to be 
> able to move
> ahead (preferrably with jBoss) soon....
> 
> 
> Regards,
> erik
> 
> 
> 
> 
> 
> --
> --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> List Help?:          [EMAIL PROTECTED]
> 


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to