Sounds like a firewall issue to me. Make sure port 8080 is open.
Also, you might want to use "-b 0.0.0.0". If you use "-b 192.168.1.2" then any requests from localhost will not work.
Finally, is there a typo here:
"./run.sh -b 192.168.1.2"
I have a similar problem with JBoss-5.1.0 on Fedora Core 12 with Java 1.6. I am trying to configure a new i-net CrystalClear report server. My apologies if I do not have the correct terminology but this is what i know.
1. When entering the url for the report, I can display the report properly on the SERVER browser in a Java Viewer
2. When entering the url on the LAN or outside I get http 500 error.
description The server encountered an internal error () that prevented it from fulfilling this request.
javax.servlet.ServletException: java.lang.NoClassDefFoundError: com/inet/report/ReportServletJSP
3. From the LAN it appears that things are correctly configured
a. I can display an html page in my report.war folder (exploded)
b. I can display a jsp page in my report.war (exploded)
4. I agree that this could be a firewall issue in the i-net CrystalClear uses port 9000 but I verified that this port is open
# iptables -L -n
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:9000
ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 state NEW udp dpt:9000
5. From the error it is obvious that it cannot find ReportServletJSP from the outside. I don't understand why would it be able to see it from the SERVER (inside) and not outside of the server?
Can you suggest what else I should test or focus on?
Thanks for your trouble.
Let me ask some questions to clarify this statement:
"When entering the url for the report, I can display the report properly on the SERVER browser in a Java Viewer"
Are you saying that if you open a browser on the same system running JBoss AS and enter a URL such as http://localhost:8080/myapp/xxx then everything works correctly and you see the desired web page?
"When entering the url on the LAN or outside I get http 500 error."
Are you saying that is you open a browser on another system and enter a URL such as http://hostname:8080/myapp/xxx, then you get the 500 error?
Based on the exception stack you posted, I would suspect that it would never work because the missing class, com/inet/report/ReportServletJSP, should happen in either instance. Where is this class located in your WAR?
This is for those that follow.
I continued to pursue the problem and this is what i did for a solution.
1. Removed the default java version installed with FedoraCore installation.
2. I had installed JAVA under a non root account for JBoss installation
3. Configured a java.sh file to configure the server java environment to point my local ava install for JBoss
4. verfied that i had only one java version running (java -version)
Saddness as the above did not completely fix the problem.
5. I have seen other posts that this was not required but as a reminant of my MS experience, I rebooted the server.
6. After reboot, restarted JBoss
sh ./run.sh &
I could not even get the JBoss console to appear in my browser.
7. Shutdown and restarted JBoss with
sh ./run.sh -b 999.999.999.99 (server IP address).
8. My remote connections to the server work properly and I can display my CrystalClear reports.
9. Now I am a HAPPY GUY andI will leave it to the experts to explain why this worked / did not work.
The answer is yes it would work on the server that held JBoss and when i went to a different system, I would get the Http 500 error.
In the console, I would receive information about the connection/report when I ran the URL on the server housing JBoss but I would receive nothing when I tried the different system.
I have a follow up post on how I resolved the issue. I probably made a basic neophyte error by having two Java versions running because I know just about enough to either get myself in and out of trouble.
I posted the details because my gut says someone out there will make the same mistake that I did. I would appreciate it if you would comment on my 'solution' and address it as a learning / teaching opportunity.
I know you ran into this issue:
Also, I don't know exactly which JDK you used initially, but the GNU JDK that comes with most Linux distros cannot handle JBoss AS, or any app server for that matter. So it is good that you installed a Sun JDK.