[JBoss-user] Re: JBoss-user digest, Vol 1 #5010 - 10 msgs
Hi, I found the problem, a link was actually referencing a local URL, problem solved. Thanks anyway. Bob - Original Message - From: "rjh" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, September 09, 2003 11:35 PM Subject: Re: JBoss-user digest, Vol 1 #5010 - 10 msgs > Hi, > > My SMTP server requires authentication for outbound message sends. I have the usual > mail-service.xml filled in and it can send messages locally and even login to POP3. > But sends outside the local domain fail, giving the below error. Below that is the > xml template > I use, which is the default filled in. I changed the host and user ids in the error > msg below, all > ids and email addresses are valid and send locally, they also send when invoked > outside > EJBs. I encounter the same problem when accessing mail from Outlook, I have to set > outbound > authentication to correct it. > > Again, the question is how do I specify outbound SMTP authentication from JavaMail > in JBOSS, > my configuration is standard but failing to send email messages outside the local > domain. > > Code now is basically: > > try{ > Properties props = new Properties(); > props.put(SMTP_HOST, smtpHost); >Session session = null; >try { >session = (Session)PortableRemoteObject.narrow(new > InitialContext().lookup("java:Mail"), Session.class); >} catch (javax.naming.NamingException e) { >e.printStackTrace(); >} >System.err.println("before getStore"); >System.err.println("after getStore"); >transport.connect(HOST, 110, LOGON_EMAIL, LOGON_PWD); >System.err.println("after connect"); > > MimeMessage message = new MimeMessage(session); > > if(from != null){ > InternetAddress fromIA = new InternetAddress(from); > message.setFrom(fromIA); > } > if(to != null){ > InternetAddress toIA = new InternetAddress(to); > message.addRecipient(Message.RecipientType.TO, toIA); > } > if(subject != null) > message.setSubject(subject); > if(body != null) > message.setText(body); > > transport.send(message); > transport.close(); > }catch(Exception e){ >System.err.println("caught e=" + e + ", msg=" + e.getMessage()); >e.printStackTrace(); > } > > > Thanks in advance, > Bob > > 22:33:07,640 INFO [STDOUT] DEBUG: getProvider() returning > javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun > Microsystems, Inc] > 22:33:07,656 ERROR [STDERR] after getStore > 22:33:07,656 INFO [STDOUT] POP3: connecting to host "objectfaq.com", port 110 > 22:33:07,796 INFO [STDOUT] S: +OK POP3 ensim.rackshack.net v2001.78rh server ready > 22:33:07,796 INFO [STDOUT] C: USER [EMAIL PROTECTED] > 22:33:07,843 INFO [STDOUT] S: +OK User name accepted, password please > 22:33:07,843 INFO [STDOUT] C: PASS pppaaassswd > 22:33:08,000 INFO [STDOUT] S: +OK Mailbox open, 0 messages > 22:33:08,000 ERROR [STDERR] after connect > 22:33:08,000 INFO [STDOUT] DEBUG: getProvider() returning > javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun > Microsystems, Inc] > 22:33:08,000 INFO [STDOUT] DEBUG SMTP: useEhlo true, useAuth false > 22:33:08,000 INFO [STDOUT] > DEBUG: SMTPTransport trying to connect to host "abc.com", port 25 > 22:33:08,125 INFO [STDOUT] DEBUG SMTP RCVD: 220 ensim.rackshack.net ESMTP Sendmail > 8.11.6/8.11.6; Wed, 10 Sep 2003 10:48:26 -0500 > 22:33:08,125 INFO [STDOUT] DEBUG: SMTPTransport connected to host "abc.com", port: > 25 > 22:33:08,125 INFO [STDOUT] DEBUG SMTP SENT: EHLO Bob > 22:33:08,187 INFO [STDOUT] DEBUG SMTP RCVD: 250-ensim.rackshack.net Hello > 24-168-149-145.nj.rr.com [24.168.149.145], pleased to > meet you > 250-ENHANCEDSTATUSCODES > 250-8BITMIME > 250-SIZE > 250-DSN > 250-ONEX > 250-ETRN > 250-XUSR > 250-AUTH LOGIN PLAIN > 250 HELP > 22:33:08,187 INFO [STDOUT] DEBUG SMTP Found extension "ENHANCEDSTATUSCODES", arg "" > 22:33:08,187 INFO [STDOUT] DEBUG SMTP Found extension "8BITMIME", arg "" > 22:33:08,187 INFO [STDOUT] DEBUG SMTP Found extension "SIZE", arg "" > 22:33:08,187 INFO [STDOUT] DEBUG SMTP Found extension "DSN", arg "" > 22:33:08,187 INFO [STDOUT] DEBUG SMTP Found extension "ONEX", arg "" > 22:33:08,187 INFO [STDOUT] DEBUG SMTP Found extension "ETRN", arg "" > 22:33:08,187 INFO [STDOUT] DEBUG SMTP Found extension "XUSR", arg "" > 22:33:08,187 INFO [
[JBoss-user] Re: JBoss-user digest, Vol 1 #5010 - 10 msgs
Hi, My SMTP server requires authentication for outbound message sends. I have the usual mail-service.xml filled in and it can send messages locally and even login to POP3. But sends outside the local domain fail, giving the below error. Below that is the xml template I use, which is the default filled in. I changed the host and user ids in the error msg below, all ids and email addresses are valid and send locally, they also send when invoked outside EJBs. I encounter the same problem when accessing mail from Outlook, I have to set outbound authentication to correct it. Again, the question is how do I specify outbound SMTP authentication from JavaMail in JBOSS, my configuration is standard but failing to send email messages outside the local domain. Code now is basically: try{ Properties props = new Properties(); props.put(SMTP_HOST, smtpHost); Session session = null; try { session = (Session)PortableRemoteObject.narrow(new InitialContext().lookup("java:Mail"), Session.class); } catch (javax.naming.NamingException e) { e.printStackTrace(); } System.err.println("before getStore"); System.err.println("after getStore"); transport.connect(HOST, 110, LOGON_EMAIL, LOGON_PWD); System.err.println("after connect"); MimeMessage message = new MimeMessage(session); if(from != null){ InternetAddress fromIA = new InternetAddress(from); message.setFrom(fromIA); } if(to != null){ InternetAddress toIA = new InternetAddress(to); message.addRecipient(Message.RecipientType.TO, toIA); } if(subject != null) message.setSubject(subject); if(body != null) message.setText(body); transport.send(message); transport.close(); }catch(Exception e){ System.err.println("caught e=" + e + ", msg=" + e.getMessage()); e.printStackTrace(); } Thanks in advance, Bob 22:33:07,640 INFO [STDOUT] DEBUG: getProvider() returning javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc] 22:33:07,656 ERROR [STDERR] after getStore 22:33:07,656 INFO [STDOUT] POP3: connecting to host "objectfaq.com", port 110 22:33:07,796 INFO [STDOUT] S: +OK POP3 ensim.rackshack.net v2001.78rh server ready 22:33:07,796 INFO [STDOUT] C: USER [EMAIL PROTECTED] 22:33:07,843 INFO [STDOUT] S: +OK User name accepted, password please 22:33:07,843 INFO [STDOUT] C: PASS pppaaassswd 22:33:08,000 INFO [STDOUT] S: +OK Mailbox open, 0 messages 22:33:08,000 ERROR [STDERR] after connect 22:33:08,000 INFO [STDOUT] DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc] 22:33:08,000 INFO [STDOUT] DEBUG SMTP: useEhlo true, useAuth false 22:33:08,000 INFO [STDOUT] DEBUG: SMTPTransport trying to connect to host "abc.com", port 25 22:33:08,125 INFO [STDOUT] DEBUG SMTP RCVD: 220 ensim.rackshack.net ESMTP Sendmail 8.11.6/8.11.6; Wed, 10 Sep 2003 10:48:26 -0500 22:33:08,125 INFO [STDOUT] DEBUG: SMTPTransport connected to host "abc.com", port: 25 22:33:08,125 INFO [STDOUT] DEBUG SMTP SENT: EHLO Bob 22:33:08,187 INFO [STDOUT] DEBUG SMTP RCVD: 250-ensim.rackshack.net Hello 24-168-149-145.nj.rr.com [24.168.149.145], pleased to meet you 250-ENHANCEDSTATUSCODES 250-8BITMIME 250-SIZE 250-DSN 250-ONEX 250-ETRN 250-XUSR 250-AUTH LOGIN PLAIN 250 HELP 22:33:08,187 INFO [STDOUT] DEBUG SMTP Found extension "ENHANCEDSTATUSCODES", arg "" 22:33:08,187 INFO [STDOUT] DEBUG SMTP Found extension "8BITMIME", arg "" 22:33:08,187 INFO [STDOUT] DEBUG SMTP Found extension "SIZE", arg "" 22:33:08,187 INFO [STDOUT] DEBUG SMTP Found extension "DSN", arg "" 22:33:08,187 INFO [STDOUT] DEBUG SMTP Found extension "ONEX", arg "" 22:33:08,187 INFO [STDOUT] DEBUG SMTP Found extension "ETRN", arg "" 22:33:08,187 INFO [STDOUT] DEBUG SMTP Found extension "XUSR", arg "" 22:33:08,187 INFO [STDOUT] DEBUG SMTP Found extension "AUTH", arg "LOGIN PLAIN" 22:33:08,187 INFO [STDOUT] DEBUG SMTP Found extension "HELP", arg "" 22:33:08,187 INFO [STDOUT] DEBUG SMTP: use8bit false 22:33:08,187 INFO [STDOUT] DEBUG SMTP SENT: MAIL FROM:<[EMAIL PROTECTED]> 22:33:08,265 INFO [STDOUT] DEBUG SMTP RCVD: 250 2.1.0 <[EMAIL PROTECTED]>... Sender ok 22:33:08,265 INFO [STDOUT] DEBUG SMTP SENT: RCPT TO:<[EMAIL PROTECTED]> 22:33:08,328 INFO [STDOUT] DEBUG SMTP RCVD: 550 5.7.1 <[EMAIL PROTECTED]>... Relaying denied 22:33:08,328 INFO [STDOUT] Invalid Addresses 22:33:08,328 INFO [STDOUT] [EMAIL PROTECTED] 22:33:08,328 INFO [STDOUT] DEBUG SMTPTransport: Sending failed because of invalid destination addresses 22:33:08,328 INFO [STDOUT] DEBUG SMTP SENT: RSET 22:33:08,390 INFO [STDOUT] DEBUG SMTP RCVD: 250 2.0.0 Reset state 22:33:08,390 INFO [STDOUT] DEBUG SMTP SENT: QUIT 22:33:08,390 ERROR [STDERR] caught e=javax.mail.SendFailedException: Sending failed; nested exception is: class javax.mail.SendFailedException: Invalid Addresses; nested exception is: cl
Re: [JBoss-user] jboss-4.0.0DR2 Fails to Startup Undex XP
UserEJB has a meta-inf directory with a manifest file and ejb-jar.xml which apparently is missing. Since this is picked up by all other versions, I presume this is a bug in JBOSS? Wish I had time to debug JBOSS, since I'd love to learn the internals but unfortunately I don't. Any ideas on how to proceed? I can try playing with the meta-inf directory, it's no different than the other EJB jars that apparently are being picked up. I'll send the files in a private email, perhaps there's some obvious reason V4 is missing what the others can pick up. Thanks, Bob - Original Message - From: "Adrian Brock" <[EMAIL PROTECTED]> To: "rjh" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, September 01, 2003 6:24 AM Subject: Re: [JBoss-user] jboss-4.0.0DR2 Fails to Startup Undex XP > 2003-08-30 15:40:55,032 DEBUG [org.jboss.deployment.XSLSubDeployer] > accepts: packageSuffix: null, urlStr: > file:/F:/jboss/jboss-4.0.0DR2/server/all/deploy/testImport27.ear/UserEJB.jar > 2003-08-30 15:40:55,032 DEBUG [org.jboss.deployment.JARDeployer] No > META-INF or > WEB-INF resource found, assuming it is for us > > It is just deploying it as a classes jar b > > On Mon, 2003-09-01 at 07:22, rjh wrote: > > Here's the server.log zipped, this is the 2nd message. > > > > Bob --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] jboss-4.0.0DR2 Fails to Startup Undex XP
Hi, Perhaps I should mention precicely what's going on. testImport27.ear is the ear under discussion that's failing in V4, yet works on all other builds as is. It contains a few war's and jars, the TqmProj war references UserEJB.jar. UserEJB.jar contains a few statlesss session beans, and you can see the error in the console log when the TqmProj war tries to access the session beans in UserEJB.jar, it gets a message that JNDI can't find the local context. The UserEJB.jar beans are accessed locally, starting with local/ in it's service locator. SurveySessionLocalHome surveySessionLocalHome = (SurveySessionLocalHome)jndiContext.lookup("local/SurveySession"); I also note that while the other EJB file, EntityEJB.jar and the other war files are mentioned in the console output, UserEJB is saliently missing. UserEJB is mentioned and seems to process in the server.log file, so I don't know why it's missing in the console log. Also, all of the EJBs in both EJB jar files (UserEJB and EntityEJB) are referenced locally, it looks as though the local interfaces aren't registering with JNDI. Thanks for any help on resloving this issue. Bob - Original Message ----- From: "Adrian Brock" <[EMAIL PROTECTED]> To: "rjh" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Sunday, August 31, 2003 6:19 PM Subject: Re: [JBoss-user] jboss-4.0.0DR2 Fails to Startup Undex XP > So what error do you get now? > Posting things like "It doesn't work" won't get you many answers. > > Also including "vir*s" in an e-mail is automatically filtered into my > junk folder. Turn off your cleaning response. Spam is bad enough > without making it worse by responding to it. > > Regards, > Adrian > > On Sat, 2003-08-30 at 22:17, rjh wrote: > > Hi, > > > > Still doesn't work after changing JVM memory size to 512, other problems. > > Seems the > > JNDI name still isn't registered and no 'local' JNDI context exists for > > testImport27.ear > > local interface EJBs (all have local interfaces). > > > > Thanks, > > Bob > > > > P.S. The last jboss email-list send had a virus cleaned by my newsreader. > > > > - Original Message - > > From: "Adrian Brock" <[EMAIL PROTECTED]> > > To: "rjh" <[EMAIL PROTECTED]> > > Cc: <[EMAIL PROTECTED]> > > Sent: Saturday, August 30, 2003 2:53 PM > > Subject: Re: [JBoss-user] jboss-4.0.0DR2 Fails to Startup Undex XP > > > > > > > You are only using the default 64M heap, > > > from your original post: > > > > > > > JAVA_OPTS: -server -Dprogram.name=run.bat > > > > > > Add -Xmx512M or whatever size you want. > > > > > > The memory footprint of JBoss4 is a known issue > > > that should be resolved by DR3 > > > > > > Regards, > > > Adrian > > > > > > On Sat, 2003-08-30 at 19:45, rjh wrote: > > > > > On Sat, 2003-08-30 at 18:25, rjh wrote: > > > > > > Adrain, > > > > > > > > > > I am not A drain :-) > > > > > > > > Sorry, you're actually quite helpful. > > > > > > > > >> [...] > > > > > > > > > > I can see jboss's ejbs starting. > > > > > > > > Attached are the console and logs when hot dropping testImport27.ear. > > > > > > > > This is from the console, it shows out of memory but only 372MB out of > > 1.5GB > > > > are used and I run very large programs all the time. > > > > > > > > Console > > > > === > > > > > > > > 13:21:44,578 INFO [Engine] StandardHost[localhost]: MAPPING > > configuration > > > > error for request URI / jmx-console > > > > 14:34:20,438 INFO [MainDeployer] Starting deployment of package: > > > > file:/F:/jboss/jboss-4.0.0DR2/server/all/deploy/testImport27.ear > > > > 14:34:20,563 INFO [EARDeployer] Init J2EE application: > > > > file:/F:/jboss/jboss-4.0.0DR2/server/all/deploy/testImport27.ear > > > > 14:34:23,813 INFO [MainDeployer] Starting deployment of package: > > > > > > file:/F:/jboss/jboss-4.0.0DR2/server/all/tmp/deploy/server/all/deploy/testImport27.ear/66.testImport27.ear-contents/Utilities.jar > > > > 14:34:24,329 INFO [MainDeployer] Deployed package: > > > > > > file:/F:/jboss/jboss-4.0.0DR2/server/all/tmp/deploy/server/all/deploy/testImport27.ear/66.testImport27.ear-contents/Utilities.jar > > > > 14:34:24,329 INFO [MainDeployer] Package: > > > > > > file:/F:/jboss/jboss-4.0.0DR2/server/all/tmp/deploy/server/all/deploy/testImport27.ear/66.testImport27.ear-contents/Utilities.jar > > > > is already deployed > > > > 14:34:28,344 ERROR [STDERR] java.lang.OutOfMemoryError > > > > > > > > Thanks again, > > > > Bob --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] jboss-4.0.0DR2 Fails to Startup Undex XP
I'll try to send the logs one more time. As below, the EJBs aren't registered and JNDI access to them fails saying local context not found, all EJBs are access thru local interfaces. Hopefully the logs will get through, since there is no chance the jboss logs contain a virus, either the programs are mistaken or something caught in en route. I'm first sending the console unzipped, a 2nd post will contain the server.log zipped. Regards, Bob - Original Message - From: "Adrian Brock" <[EMAIL PROTECTED]> To: "rjh" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Sunday, August 31, 2003 6:19 PM Subject: Re: [JBoss-user] jboss-4.0.0DR2 Fails to Startup Undex XP > So what error do you get now? > Posting things like "It doesn't work" won't get you many answers. > > Also including "vir*s" in an e-mail is automatically filtered into my > junk folder. Turn off your cleaning response. Spam is bad enough > without making it worse by responding to it. > > Regards, > Adrian > > On Sat, 2003-08-30 at 22:17, rjh wrote: > > Hi, > > > > Still doesn't work after changing JVM memory size to 512, other problems. > > Seems the > > JNDI name still isn't registered and no 'local' JNDI context exists for > > testImport27.ear > > local interface EJBs (all have local interfaces). > > > > Thanks, > > Bob > > > > P.S. The last jboss email-list send had a virus cleaned by my newsreader. > > > > - Original Message - > > From: "Adrian Brock" <[EMAIL PROTECTED]> > > To: "rjh" <[EMAIL PROTECTED]> > > Cc: <[EMAIL PROTECTED]> > > Sent: Saturday, August 30, 2003 2:53 PM > > Subject: Re: [JBoss-user] jboss-4.0.0DR2 Fails to Startup Undex XP > > > > > > > You are only using the default 64M heap, > > > from your original post: > > > > > > > JAVA_OPTS: -server -Dprogram.name=run.bat > > > > > > Add -Xmx512M or whatever size you want. > > > > > > The memory footprint of JBoss4 is a known issue > > > that should be resolved by DR3 > > > > > > Regards, > > > Adrian > > > > > > On Sat, 2003-08-30 at 19:45, rjh wrote: > > > > > On Sat, 2003-08-30 at 18:25, rjh wrote: > > > > > > Adrain, > > > > > > > > > > I am not A drain :-) > > > > > > > > Sorry, you're actually quite helpful. > > > > > > > > >> [...] > > > > > > > > > > I can see jboss's ejbs starting. > > > > > > > > Attached are the console and logs when hot dropping testImport27.ear. > > > > > > > > This is from the console, it shows out of memory but only 372MB out of > > 1.5GB > > > > are used and I run very large programs all the time. > > > > > > > > Console > > > > === > > > > > > > > 13:21:44,578 INFO [Engine] StandardHost[localhost]: MAPPING > > configuration > > > > error for request URI / jmx-console > > > > 14:34:20,438 INFO [MainDeployer] Starting deployment of package: > > > > file:/F:/jboss/jboss-4.0.0DR2/server/all/deploy/testImport27.ear > > > > 14:34:20,563 INFO [EARDeployer] Init J2EE application: > > > > file:/F:/jboss/jboss-4.0.0DR2/server/all/deploy/testImport27.ear > > > > 14:34:23,813 INFO [MainDeployer] Starting deployment of package: > > > > > > file:/F:/jboss/jboss-4.0.0DR2/server/all/tmp/deploy/server/all/deploy/testImport27.ear/66.testImport27.ear-contents/Utilities.jar > > > > 14:34:24,329 INFO [MainDeployer] Deployed package: > > > > > > file:/F:/jboss/jboss-4.0.0DR2/server/all/tmp/deploy/server/all/deploy/testImport27.ear/66.testImport27.ear-contents/Utilities.jar > > > > 14:34:24,329 INFO [MainDeployer] Package: > > > > > > file:/F:/jboss/jboss-4.0.0DR2/server/all/tmp/deploy/server/all/deploy/testImport27.ear/66.testImport27.ear-contents/Utilities.jar > > > > is already deployed > > > > 14:34:28,344 ERROR [STDERR] java.lang.OutOfMemoryError > > > > > > > > Thanks again, > > > > Bob F:\jboss\jboss-4.0.0DR2\bin>run -c all === . JBoss Bootstrap Environment . JBOSS_HOME: F:\jboss\jboss-4.0.0DR2\bin\\.. . JAVA: C:\j2sdk1.4.1_02\\bin\java . JAVA_OPTS: -server -Xmx512M -Dprogram.name=run.bat . CLASSPATH: ;C:\j2sdk1.4.1_02\\lib\to
Re: [JBoss-user] jboss-4.0.0DR2 Fails to Startup Undex XP
> On Sat, 2003-08-30 at 18:25, rjh wrote: > > Adrain, > > I am not A drain :-) Sorry, you're actually quite helpful. >> [...] > > I can see jboss's ejbs starting. Attached are the console and logs when hot dropping testImport27.ear. This is from the console, it shows out of memory but only 372MB out of 1.5GB are used and I run very large programs all the time. Console === 13:21:44,578 INFO [Engine] StandardHost[localhost]: MAPPING configuration error for request URI / jmx-console 14:34:20,438 INFO [MainDeployer] Starting deployment of package: file:/F:/jboss/jboss-4.0.0DR2/server/all/deploy/testImport27.ear 14:34:20,563 INFO [EARDeployer] Init J2EE application: file:/F:/jboss/jboss-4.0.0DR2/server/all/deploy/testImport27.ear 14:34:23,813 INFO [MainDeployer] Starting deployment of package: file:/F:/jboss/jboss-4.0.0DR2/server/all/tmp/deploy/server/all/deploy/testImport27.ear/66.testImport27.ear-contents/Utilities.jar 14:34:24,329 INFO [MainDeployer] Deployed package: file:/F:/jboss/jboss-4.0.0DR2/server/all/tmp/deploy/server/all/deploy/testImport27.ear/66.testImport27.ear-contents/Utilities.jar 14:34:24,329 INFO [MainDeployer] Package: file:/F:/jboss/jboss-4.0.0DR2/server/all/tmp/deploy/server/all/deploy/testImport27.ear/66.testImport27.ear-contents/Utilities.jar is already deployed 14:34:28,344 ERROR [STDERR] java.lang.OutOfMemoryError Thanks again, Bob Logs0830.zip Description: Zip compressed data
Re: [JBoss-user] jboss-4.0.0DR2 Fails to Startup Undex XP
Adrain, Thanks for the comment, but the reason I'm writing is because my EAR with EJB doesn't work on the V4 release although it runs on all other releases on Tomcat and Jetty. I print the JNDI env from the ear and the EJBs aren't listed, which I assume is the first part of the problem, I can see when the ear is loaded that the EJBs are not registering. Again, the EJBs aren't running in V4 and the Ear file fails, this is not a hypothetical look at log files. My goal is to allow my ear to run, then I can add AOP examples and potentially begin the switch from EJB to AOP. EJBDeployer state is started, but again to be clear the ystem doesn't work and EJBs are not being loaded given an EJB ear file that runs under all aother Tomcat and Jetty versions. Thanks, Bob - Original Message - From: "Adrian Brock" <[EMAIL PROTECTED]> To: "rjh" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, August 30, 2003 2:08 AM Subject: Re: [JBoss-user] jboss-4.0.0DR2 Fails to Startup Undex XP > It is noise. > > The URI resolver is after the URL scanner in jboss-service.xml > When the scanner finishes it dumps not yet started mbeans. > I guess this is because whoever added it, couldn't work out the > dependencies. > > The URI resolver hasn't started yet (because it is listed afterwards. > If you look at the console you will see it starting after the > "incomplete" message followed by W2EE then the EJB deployer, etc. > > You can check it on the jmx-console, if you go to the MainDeployer > and click on the incompletely deployed mbeans operation. > It should show nothing. > Also if you look at the EJBDeployer it will be have state "Started" > > Regards, > Adrian > > On Sat, 2003-08-30 at 06:18, rjh wrote: > > Hi, > > > > I'm still having trouble locating the actual problem, I've attached the > > zipped server log. > > > > Thanks & Best Regards, > > Bob > > > > - Original Message - > > From: "Adrian Brock" <[EMAIL PROTECTED]> > > To: "rjh" <[EMAIL PROTECTED]> > > Cc: <[EMAIL PROTECTED]> > > Sent: Saturday, August 30, 2003 12:59 AM > > Subject: Re: [JBoss-user] jboss-4.0.0DR2 Fails to Startup Undex XP > > > > > > > You are too early in the log. > > > Look for the start phase of the DeploymentInfoURIResolver. > > > It creates all MBeans first, then starts them. > > > > > > The exceptions you show are just noise. > > > > > > Regards, > > > Adrian > > > > > > On Sat, 2003-08-30 at 05:29, rjh wrote: > > > > > The DeploymentInfoURIResolver failed to start for some reason. > > > > > > > > > > { objectName: jboss.system:service=DeploymentInfoURIResolver > > > > > state: CREATED > > > > > Waiting for me: > > > > > jboss.net:service=WS4EEDeployer state: CREATED > > > > > } [EMAIL PROTECTED], > > > > > > > > > > check server/all/log/server.log for any debug exception traces. > > > > > > > > > > Regards, > > > > > Adrian > > > > > > > > Thanks, there are exceptions but I can't make sense of them, perhaps > > > > this will help > > > > diagnose the problem, these are at the top of the file, first mention > > > > of DeploymentInfoURIResolver, > > > > and then the exceptions shortly afterwards: > > > > > > > > > > > > 2003-08-29 20:29:49,375 DEBUG [org.jboss.system.ServiceController] > > > > Creating dependent components for: > > > > jboss.deployment:type=DeploymentScanner,flavor=URL dependents are: [] > > > > > > > > 2003-08-29 20:29:49,375 DEBUG > > > > [org.jboss.management.j2ee.LocalJBossServerDomain] handleNotification: > > > > > > javax.management.Notification[source=jboss.system:service=ServiceDeployer,ty > > pe=org.jboss.deployment.SubDeployer.create,sequenceNumber=17,timeStamp=10622 > > 03389375,message=null,userData={ 'jboss-service.xml' URL: > > 'file:/F:/jboss/jboss-4.0.0DR2/server/all/conf/jboss-service.xml' localURL: > > 'file:/F:/jboss/jboss-4.0.0DR2/server/all/tmp/deploy/server/all/conf/jboss-s > > ervice.xml/1.jboss-service.xml' watching: > > 'file:/F:/jboss/jboss-4.0.0DR2/server/all/conf/jboss-service.xml' > > SubDeployer: [EMAIL PROTECTED] }] > > > > > > > > 2003-08-29 20:29:49,375 DEBUG [org.jboss.system.ServiceController] >
Re: [JBoss-user] jboss-4.0.0DR2 Fails to Startup Undex XP
> The DeploymentInfoURIResolver failed to start for some reason.> > { objectName: jboss.system:service=DeploymentInfoURIResolver> state: CREATED> Waiting for me:> jboss.net:service=WS4EEDeployer state: CREATED> } [EMAIL PROTECTED],> > check server/all/log/server.log for any debug exception traces.> > Regards,> Adrian Thanks, there are exceptions but I can't make sense of them, perhaps this will help diagnose the problem, these are at the top of the file, first mention of DeploymentInfoURIResolver, and then the exceptions shortly afterwards: 2003-08-29 20:29:49,375 DEBUG [org.jboss.system.ServiceController] Creating dependent components for: jboss.deployment:type=DeploymentScanner,flavor=URL dependents are: [] 2003-08-29 20:29:49,375 DEBUG [org.jboss.management.j2ee.LocalJBossServerDomain] handleNotification: javax.management.Notification[source=jboss.system:service=ServiceDeployer,type=org.jboss.deployment.SubDeployer.create,sequenceNumber=17,timeStamp=1062203389375,message=null,userData={ 'jboss-service.xml' URL: 'file:/F:/jboss/jboss-4.0.0DR2/server/all/conf/jboss-service.xml' localURL: 'file:/F:/jboss/jboss-4.0.0DR2/server/all/tmp/deploy/server/all/conf/jboss-service.xml/1.jboss-service.xml' watching: 'file:/F:/jboss/jboss-4.0.0DR2/server/all/conf/jboss-service.xml' SubDeployer: [EMAIL PROTECTED] }] 2003-08-29 20:29:49,375 DEBUG [org.jboss.system.ServiceController] Creating service jboss.system:service=DeploymentInfoURIResolver 2003-08-29 20:29:49,375 DEBUG [org.jboss.management.j2ee.LocalJBossServerDomain] handleNotification: javax.management.Notification[source=jboss.system:service=ServiceController,type= org.jboss.system.ServiceMBean.create,sequenceNumber=18,timeStamp=1062203389375,message=null,userData=jboss.system:service=DeploymentInfoURIResolver] 2003-08-29 20:29:49,375 DEBUG [org.jboss.management.j2ee.factory.DefaultManagedObjectFactoryMap] Failed to find factory for event: javax.management.Notification[source=jboss.system:service=ServiceController,type= org.jboss.system.ServiceMBean.create,sequenceNumber=18,timeStamp=1062203389375,message=null,userData=jboss.system:service=DeploymentInfoURIResolver] 2003-08-29 20:29:49,375 DEBUG [org.jboss.system.ServiceController] Creating dependent components for: jboss.system:service=DeploymentInfoURIResolver dependents are: [] 2003-08-29 20:29:49,390 DEBUG [org.jboss.management.j2ee.LocalJBossServerDomain] handleNotification: javax.management.Notification[source=jboss.system:service=ServiceDeployer,type=org.jboss.deployment.SubDeployer.create,sequenceNumber=18,timeStamp=1062203389390,message=null,userData={ 'jboss-service.xml' URL: 'file:/F:/jboss/jboss-4.0.0DR2/server/all/conf/jboss-service.xml' localURL: 'file:/F:/jboss/jboss-4.0.0DR2/server/all/tmp/deploy/server/all/conf/jboss-service.xml/1.jboss-service.xml' watching: 'file:/F:/jboss/jboss-4.0.0DR2/server/all/conf/jboss-service.xml' SubDeployer: [EMAIL PROTECTED] }] 2003-08-29 20:29:49,390 DEBUG [org.jboss.management.j2ee.LocalJBossServerDomain] handleNotification: javax.management.Notification[source=jboss.system:service=ServiceController,type= org.jboss.system.ServiceMBean.create,sequenceNumber=19,timeStamp=1062203389390,message=null,userData=jboss.deployment:name=file%3a/F%3a/jboss/jboss-4.0.0DR2/server/all/conf/jboss-service.xml,service=DeploymentInfo] === 2003-08-29 20:29:49,531 DEBUG [org.jboss.management.j2ee.MBean] postRegister(), parent: jboss.management.local:J2EEServer=Local,j2eeType=ServiceModule,name=jboss-service.xml2003-08-29 20:29:49,546 DEBUG [org.jboss.management.j2ee.MBean] Failed to initialze state from: jboss.rmi:type=RMIClassLoaderjava.lang.IllegalArgumentException: Unable to find operation getState() at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:133) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:544) at org.jboss.mx.util.JMXInvocationHandler.invoke(JMXInvocationHandler.java:272) at $Proxy13.getState(Unknown Source) at org.jboss.management.j2ee.MBean.postCreation(MBean.java:156) at org.jboss.management.j2ee.J2EEManagedObject.postRegister(J2EEManagedObject.java:250) at org.jboss.mx.server.AbstractMBeanInvoker.invokePostRegister(AbstractMBeanInvoker.java:660) at org.jboss.mx.modelmbean.ModelMBeanInvoker.postRegister(ModelMBeanInvoker.java:342) at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:323) at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:72) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:45) at org.jboss.mx.server.Invocation.invoke(Invocation.java:70) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:155
[JBoss-user] 103 Java Processes under JBOSS-3.2.1
There are 103 Java processes running after my system has been up for about 12 hours. Where are all these coming from, I though JBOSS ran all in a single JVM for efficiency. I'm running jboss-3.2.1, dev under XP then onto Red Hat Linux. 1473 ? S 0:00 /bin/sh ./run.sh -c all 1490 ? S 0:00 /usr/java/j2sdk1.4.0/bin/java -server -Dprogram.name=run.sh -classpath /home/admin/ 1491 ? S 0:00 /usr/java/j2sdk1.4.0/bin/java -server -Dprogram.name=run.sh -classpath /home/admin/ 1492 ? S 3:38 /usr/java/j2sdk1.4.0/bin/java -server -Dprogram.name=run.sh -classpath /home/admin/ 1493 ? S 0:00 /usr/java/j2sdk1.4.0/bin/java -server -Dprogram.name=run.sh -classpath /home/admin/ 1494 ? S 0:00 /usr/java/j2sdk1.4.0/bin/java -server -Dprogram.name=run.sh -classpath /home/admin/ 1495 ? S 0:00 /usr/java/j2sdk1.4.0/bin/java -server -Dprogram.name=run.sh -classpath /home/admin/ 1496 ? S 0:00 /usr/java/j2sdk1.4.0/bin/java -server -Dprogram.name=run.sh -classpath /home/admin/ 1497 ? S 0:00 /usr/java/j2sdk1.4.0/bin/java -server -Dprogram.name=run.sh -classpath /home/admin/ 1498 ? S 0:00 /usr/java/j2sdk1.4.0/bin/java -server -Dprogram.name=run.sh -classpath /home/admin/ 1499 ? S 0:34 /usr/java/j2sdk1.4.0/bin/java -server -Dprogram.name=run.sh -classpath /home/admin/ 1502 ? S 0:00 /usr/java/j2sdk1.4.0/bin/java -server -Dprogram.name=run.sh -classpath /home/admin/ 1503 ? S 0:25 /usr/java/j2sdk1.4.0/bin/java -server -Dprogram.name=run.sh -classpath /home/admin/ 1504 ? S 0:00 /usr/java/j2sdk1.4.0/bin/java -server -Dprogram.name=run.sh -classpath /home/admin/ 1505 ? S 0:00 /usr/java/j2sdk1.4.0/bin/java -server -Dprogram.name=run.sh -classpath /home/admin/ 1506 ? S 0:00 /usr/java/j2sdk1.4.0/bin/java -server -Dprogram.name=run.sh -classpath /home/admin/ 1507 ? S 0:00 /usr/java/j2sdk1.4.0/bin/java -server -Dprogram.name=run.sh -classpath /home/admin/ 1508 ? S 0:00 /usr/java/j2sdk1.4.0/bin/java -server -Dprogram.name=run.sh -classpath /home/admin/ 1509 ? S 0:00 /usr/java/j2sdk1.4.0/bin/java -server -Dprogram.name=run.sh -classpath /home/admin/ 1510 ? S 0:00 /usr/java/j2sdk1.4.0/bin/java -server -Dprogram.name=run.sh -classpath /home/admin/ 1511 ? S 0:00 /usr/java/j2sdk1.4.0/bin/java -server -Dprogram.name=run.sh -classpath /home/admin/ 1512 ? S 0:00 /usr/java/j2sdk1.4.0/bin/java -server -Dprogram.name=run.sh -classpath /home/admin/ 1513 ? S 0:00 /usr/java/j2sdk1.4.0/bin/java -server -Dprogram.name=run.sh -classpath /home/admin/ 1514 ? S 0:00 /usr/java/j2sdk1.4.0/bin/java -server -Dprogram.name=run.sh -classpath /home/admin/ 1515 ? S 0:00 /usr/java/j2sdk1.4.0/bin/java -server -Dprogram.name=run.sh -classpath /home/admin/ 1516 ? S 0:00 /usr/java/j2sdk1.4.0/bin/java -server -Dprogram.name=run.sh -classpath /home/admin/ 1517 ? S 0:00 /usr/java/j2sdk1.4.0/bin/java -server -Dprogram.name=run.sh -classpath /home/admin/ 1518 ? S 0:00 /usr/java/j2sdk1.4.0/bin/java -server -Dprogram.name=run.sh -classpath /home/admin/ 1519 ? S 0:01 /usr/java/j2sdk1.4.0/bin/java -server -Dprogram.name=run.sh -classpath /home/admin/ 1520 ? S 0:03 /usr/java/j2sdk1.4.0/bin/java -server -Dprogram.name=run.sh -classpath /home/admin/ 1521 ? S 0:02 /usr/java/j2sdk1.4.0/bin/java -server -Dprogram.name=run.sh -classpath /home/admin/ 1522 ? S 0:01 /usr/java/j2sdk1.4.0/bin/java -server -Dprogram.name=run.sh -classpath /home/admin/ 1523 ? S 0:04 /usr/java/j2sdk1.4.0/bin/java -server -Dprogram.name=run.sh -classpath /home/admin/ 1524 ? S 0:06 /usr/java/j2sdk1.4.0/bin/java -server -Dprogram.name=run.sh -classpath /home/admin/ 1525 ? S 0:00 /usr/java/j2sdk1.4.0/bin/java -server -Dprogram.name=run.sh -classpath /home/admin/ 1526 ? S 0:00 /usr/java/j2sdk1.4.0/bin/java -server -Dprogram.name=run.sh -classpath /home/admin/ 1527 ? S 0:00 /usr/java/j2sdk1.4.0/bin/java -server -Dprogram.name=run.sh -classpath /home/admin/ 1528 ? S 0:00 /usr/java/j2sdk1.4.0/bin/java -server -Dprogram.name=run.sh -classpath /home/admin/ 1529 ? S 0:00 /usr/java/j2sdk1.4.0/bin/java -server -Dprogram.name=run.sh -classpath /home/admin/ 1530 ? S 0:00 /usr/java/j2sdk1.4.0/bin/java -server -Dprogram.name=run.sh -classpath /home/admin/ 1531 ? S 0:00 /usr/java/j2sdk1.4.0/bin/java -server -Dprogram.name=run.sh -classpath /home/admin/ 1532 ? S 0:00 /usr/java/j2sdk1.4.0/bin/java -server -Dprogram.name=run.sh -classpath /home/admin/ 1533 ? S 0:00 /usr/java/j2sdk1.4.0/bin/java -server -Dprogram.name=run.sh -
[JBoss-user] jboss-4.0.0DR2 Fails to Startup Undex XP
After downloading jboss-4.0.0DR2, it won't startup out of the box without errors. Specifically, EJB fails. I'd hesitate to move to version 4 without the ability to run my existing systems. I'd like to run AOP examples and prepare to move my EJBs. Thanks, Bob [{ 'ClusteredHttpSessionEB.jar' URL: 'file:/F:/jboss/jboss-4.0.0DR2/server/all/tmp/deploy/server/all/deploy/jbossha-httpsession.sar/14.jbolURL: 'file:/F:/jboss/jboss-4.0.0DR2/server/all/tmp/deploy/server/all/deploy/jbossha-httpsession.sar/14.jbossha-httpsession.sar-contents/C.0DR2/server/all/tmp/deploy/server/all/deploy/jbossha-httpsession.sar/14.jbossha-httpsession.sar-contents/ClusteredHttpSessionEB.jar' SubDboss-4.0.0DR2/server/all/deploy/ejb-management.jar' localURL: 'file:/F:/jboss/jboss-4.0.0DR2/server/all/tmp/deploy/server/all/deploy/ejb-m/jboss-4.0.0DR2/server/all/deploy/ejb-management.jar' SubDeployer: null }, { 'jmx-ejb-adaptor.jar' URL: 'file:/F:/jboss/jboss-4.0.0DR2/serjboss-4.0.0DR2/server/all/tmp/deploy/server/all/deploy/jmx-ejb-adaptor.jar/64.jmx-ejb-adaptor.jar' watching: 'file:/F:/jboss/jboss-4.0.0DRIncompletely deployed packages:[{ 'ejb-management.jar' URL: 'file:/F:/jboss/jboss-4.0.0DR2/server/all/deploy/ejb-management.jar' localURL: 'file:/F:/jboss/jboss-4.0.0DR2.ejb-management.jar' watching: 'file:/F:/jboss/jboss-4.0.0DR2/server/all/deploy/ejb-management.jar' SubDeployer: null }, { 'jmx-ejb-adaptomx-ejb-adaptor.jar' localURL: 'file:/F:/jboss/jboss-4.0.0DR2/server/all/tmp/deploy/server/all/deploy/jmx-ejb-adaptor.jar/64.jmx-ejb-adaptoloy/jmx-ejb-adaptor.jar' SubDeployer: null }]MBeans waiting for classes: MBeans waiting for other MBeans: { objectName: jboss.system:service=DeploymentInfoURIResolver state: CREATED Waiting for me: jboss.net:service=WS4EEDeployer state: CREATED} [EMAIL PROTECTED], { objectName: jboss.net:service=WS4EEDeployer state: CREATED I am waiting for: jboss.net:service=WebServiceEntityResolver state: RUNNING, jboss.system:service=DeploymentInfoURIResolver state: CREATED, jboss.net:service=Axis state: RUNNING Waiting for me: jboss.ejb:service=EJBDeployer state: CREATED} [EMAIL PROTECTED], { objectName: jboss:service=ClusteredHttpSession state: CONFIGURED I am waiting for: jboss.j2ee:service=EJB,jndiName=clustering/HTTPSession state: NOTYETINSTALLED} [EMAIL PROTECTED], { objectName: jboss.ejb:service=EJBDeployer state: CREATED I am waiting for: jboss.net:service=WS4EEDeployer state: CREATED, jboss:service=WebService state: RUNNING, jboss.tm:service=TransactionManagerService state: RUNNING Waiting for me: jboss:service=FarmMember,partition=DefaultPartition state: CREATED, jboss.ejb:service=ActivationSpecDeployer state: CREATED} [EMAIL PROTECTED], { objectName: jboss.ejb:service=ActivationSpecDeployer state: CREATED I am waiting for: jboss.ejb:service=EJBEntityResolver state: RUNNING, jboss.jca:service=RaURIResolver state: RUNNING, jboss.ejb:service=EJBDeployer state: CREATED} [EMAIL PROTECTED], { objectName: jboss:service=FarmMember,partition=DefaultPartition state: CREATED I am waiting for: jboss.web:service=WebServer state: RUNNING, jboss.system:service=MainDeployer state: RUNNING, jboss:service=DefaultPartition state: RUNNING, jboss.ejb:service=EJBDeployer state: CREATED} [EMAIL PROTECTED], Cause: Incomplete Deployment listing:Packages waiting for a deployer:[{ 'ClusteredHttpSessionEB.jar' URL: 'file:/F:/jboss/jboss-4.0.0DR2/server/all/tmp/deploy/server/all/deploy/jbossha-httpsession.sar/14.jbolURL: 'file:/F:/jboss/jboss-4.0.0DR2/server/all/tmp/deploy/server/all/deploy/jbossha-httpsession.sar/14.jbossha-httpsession.sar-contents/C.0DR2/server/all/tmp/deploy/server/all/deploy/jbossha-httpsession.sar/14.jbossha-httpsession.sar-contents/ClusteredHttpSessionEB.jar' SubDboss-4.0.0DR2/server/all/deploy/ejb-management.jar' localURL: 'file:/F:/jboss/jboss-4.0.0DR2/server/all/tmp/deploy/server/all/deploy/ejb-m/jboss-4.0.0DR2/server/all/deploy/ejb-management.jar' SubDeployer: null }, { 'jmx-ejb-adaptor.jar' URL: 'file:/F:/jboss/jboss-4.0.0DR2/serjboss-4.0.0DR2/server/all/tmp/deploy/server/all/deploy/jmx-ejb-adaptor.jar/64.jmx-ejb-adaptor.jar' watching: 'file:/F:/jboss/jboss-4.0.0DRIncompletely deployed packages:[{ 'ejb-management.jar' URL: 'file:/F:/jboss/jboss-4.0.0DR2/server/all/deploy/ejb-management.jar' localURL: 'file:/F:/jboss/jboss-4.0.0DR2.ejb-management.jar' watching: 'file:/F:/jboss/jboss-4.0.0DR2/server/all/deploy/ejb-management.jar' SubDeployer: null }, { 'jmx-ejb-adaptomx-ejb-adaptor.jar' localURL: 'file:/F:/jboss/jboss-4.0.0DR2/server/all/tmp/deploy/server/all/deploy/jmx-ejb-adaptor.jar/64.jmx-ejb-adaptoloy/jmx-ejb-adaptor.jar' SubDeployer: null }]MBeans waiting for classes: MBeans waiting for other MBeans: { objectName: jboss.system:service=DeploymentInfoURIResolver state: CREATED Waiting for me: jboss.net