[Beginners Corner] - JBOSS isn't working... VERY BEGINNER
by tmonteit
Just installed JBoss and, of course, it isn't working.
I had several jsps and servlets working in tomcat. I tried to migrate them to jboss so I can eventually add ejbs to the mix.
Every page html, or jsp I get a 404 error.
I can't figure out why nothing works.
In tomcat I can check the log files and see the error. Not true on JBoss.
I found 2 log files on JBOSS:
c:\code\jboss\server\default\log\boot.log
c:\samePath\server.log
If I refresh the web page and get the 404 error, this error isnt logged.
How do I know why it isn't working?
So now, I try to refresh the log files.
I kill jboss, remove the log files, and restart jboss; the log files are 1.5M
That's insane!!! How can jboss make 1.5M log files just after just starting?
Please explain what's going on here. I'm very confused.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973735#3973735
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973735
19 years, 7 months
[JBossWS] - Standard Java exceptions thrown from EJB3 web services?
by lhoriman
Hiya. I'm trying out the web service annotations for the first time, and hit a stumbling block.
JBossWS doesn't seem to allow me to deploy EJB3 web service methods that throw standard java exceptions like UnsupportedEncodingException. Ie, a method like this:
public void blah() throws UnsupportedEncodingException;
Produces this exception on deployment:
org.jboss.ws.WSException: Element message found in jaxrpc-mapping but not in the schema: {http://ws.subethamail.org/}UnsupportedEncodingException
It works just fine if the declared exception is one of my own; the exception shows up in the WSDL schema section. However, when the exception is part of the JDK, the schema section says nothing. Note that problems also occur if my exception extends something other than java.lang.Exception itself.
Is this expected behavior?
Is there a way I can make standard declared java exceptions work just like my own exceptions?
I've read the "Custom Exceptions" section of the user guide (and the linked IBM article) but it's oriented towards JSR-109 web services not EJB3 JSR-181 services.
BTW this is 4.0.4.GA (from the latest installer, with ejb3rc8) using the stock JBossWS that comes with that version.
Thanks in advance,
Jeff Schnitzer
http://subetha.tigris.org/ - hopefully soon to be a mailing list manager with web service APIs :-)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973732#3973732
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973732
19 years, 7 months