From: sherwinds <nu...@jb...> - 2005-05-10 06:27:15
|
check this out: JBossIDE Tutorial 1.4, page 34, section 9.3, start from 3rd paragraph. Verify if you followed this tutorial and notice the 6th paragraph where it says: "The classes must be located under the WEB-INF/classes of the War package. Set the prefix to WEB-INF/classes." You can try to remove the entry on Prefix, it should be blank, and try to run Packaging again and re-deploy your FiboApp.ear and try Fibo again. Hopes this help. Mine is now working after 3 days of almost on the brink of insanity. S My current config: OS: WXP SP4 JBossIDE: JBossIDE-1.5M1-jre15-win32.zip Java: 1.5.0_3 View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3877107#3877107 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3877107 |
From: pacwest <nu...@jb...> - 2005-06-08 23:08:50
|
I m having the same problem. I tried removing the WEB-INF/classes from the packaging info. I redeployed it also. But it is still giving me the same error. Can anybody help? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3880863#3880863 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3880863 |
From: bruteous <nu...@jb...> - 2005-07-21 00:17:20
|
I removed the WEB-INF/classes from packaging info as above, and it worked, thanks a million. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3885806#3885806 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3885806 |
From: plasante <nu...@jb...> - 2005-07-26 11:58:38
|
Hi, In ComputeServlet.java I changed the following line from: Object ref = context.lookup("java:/com/env/ejb/Fibo"); to: Object ref = context.lookup("ejb/Fibo"); and Run Packaging and everything was fine. I also had to use jboss-4.0.1 instead of jboss-4.0.2 Regards. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3886572#3886572 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3886572 |
From: helmut.staudinger <nu...@jb...> - 2005-08-02 11:29:02
|
Hi, the correct URL should be "java:com/env/ejb/Fibo". If you get an exception like "ClassCastException" when narrowing the reference to the homeInterface, have a look at the AdminGuide Chapter 2 (Server Config.) and change some Config-Flags, making the server J2EE-1.4 compliant. I did this with Version 4.0.2 and 4.0.3RC1 and the tutorial example (jBossIDE) worked fine! Helmut View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3887917#3887917 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3887917 |
From: AndersLind <nu...@jb...> - 2005-08-09 18:44:44
|
"helmut.staudinger" wrote : Hi, | the correct URL should be "java:com/env/ejb/Fibo". | | If you get an exception like "ClassCastException" when narrowing the reference to the homeInterface, have a look at the AdminGuide Chapter 2 (Server Config.) and change some Config-Flags, making the server J2EE-1.4 compliant. I did this with Version 4.0.2 and 4.0.3RC1 and the tutorial example (jBossIDE) worked fine! | | Helmut I can confirm that it works! My sestup is eclipse 3.1.0 with jboss ide 1.5.0M2 and I use JBoss 4.0.3RC1. I ran my setup as a J2EE 1.4 project and used the EAR 1.4 Deployment Descriptor and the application.xml has the following content: <?xml version="1.0" encoding="UTF-8"?> <application version="1.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd"> <display-name>Sum Application</display-name> ... View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3889095#3889095 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3889095 |
From: cfessl <nu...@jb...> - 2005-08-15 15:52:56
|
"bruteous" wrote : I removed the WEB-INF/classes from packaging info as above, and it worked, thanks a million. Hi! i had the same problem too: Win2000 jboss-4.0.2 jdk1.5.0_04 removing only the WEB-INF/classes was enough to fix the problem, no changes in the jboss configuration was necessary... best regards, Christian View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3890043#3890043 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3890043 |
From: jkytang <nu...@jb...> - 2005-08-24 07:49:35
|
Would anyone explain why removing WEB-INF/classes can solve the problem? Thanks! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3891383#3891383 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3891383 |
From: fguerzoni <do-...@jb...> - 2005-09-03 11:37:33
|
Thanks to Helmut. Your solution worked fine. WinXP jboss-4.0.2 jdk1.5.0_04 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3892898#3892898 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3892898 |
From: joern <do-...@jb...> - 2005-09-22 15:45:37
|
Please, could anyone explain me Helmut's solution? What do I have to do, to get rid of this classCastException? What configuration files do I have to change? Thank you very much! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3896354#3896354 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3896354 |
From: thomasramapuram <do-...@jb...> - 2005-10-19 09:58:24
|
This is basically a classloading problem. The new JBoss does not have a flat classloader like the old JBoss. So if you load a class in your EJB and you load a class in your servlet even though the bytecode is the same they are treated as diffrent classes. So for the tutorial to work you should remove the FiboEJB-client.jar from your FiboWEB.war file. Your servlet will reference the class FiboHome from the FiboEJB.jar file. After 2 days of digging into the code. IRC channels web searches. I finally managed to get the applcation working. There is also a problem with the Discriptor Wizard but if you type in all that is written in the tutorial it should work. @jboss.xxxx tags also did not work for me. I just typed it in. From all this the lession I learnt was "There is no substitute to hard work" if you have any problems you can mail me. I know your plight. I've been there. Ciao Some of the sites I visited to know more of the problem. http://www.jbossgroup.com/index.html?module=bb&op=viewtopic&p=3887843 http://jira.jboss.com/jira/browse/JBAS-1775 http://wiki.jboss.org/wiki/Wiki.jsp?page=ClassLoadingConfiguration http://jira.jboss.com/jira/browse/JBAS-1691 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3901970#3901970 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3901970 |
From: amathewk <do-...@jb...> - 2005-10-30 01:13:34
|
Just confirming that I had the classloader problem and ThomasRamapuram's solution of removing the client jar from the war worked perfectly. Wish I found this thread sooner!! thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3904314#3904314 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904314 |
From: plieger <do-...@jb...> - 2005-12-16 13:20:49
|
Removing the WEB-INF/classes did the trick for me, thanks for the tip!!! After looking at the project tree on disk I found that there was no such directory, the classes are in the Tutorial/bin/ejb, Tutorial/bin/interfaces and Tutorial/bin/web directories. This explains why you have to leave it blank, everything is found relative to the class directory Tutorial/bin. Cheers, Roel. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3913105#3913105 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3913105 |
From: plieger <do-...@jb...> - 2005-12-16 13:38:54
|
"plieger" wrote : This explains why you have to leave it blank, everything is found relative to the class directory Tutorial/bin. After reconcidering a while, I think this is not the real reason, because the prefix indicates where the classfiles are in the .war file... So somewhere else down the line there is a discrepancy, perhaps in the web.xml file? <ejb-ref > <![CDATA[Reference to the Fibo EJB]]> <ejb-ref-name>ejb/Fibo</ejb-ref-name> <ejb-ref-type>Session</ejb-ref-type> tutorial.interfaces.FiboHome tutorial.interfaces.Fibo </ejb-ref> Well, I'm not sure, just starting my way into this wonderful world of EJB's :-) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3913109#3913109 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3913109 |