[Installation, Configuration & DEPLOYMENT] - Weird problem: can't start JBoss AS
by SmokingAPipe
I'm sure this is some minor system config issue, but I'm puzzled. I unzipped JBoss AS 4.2.1 and run it and it fails with this exception:
17:17:14,000 WARN [BasicMBeanRegistry] javax.management.MBeanRegistrationException: preRegister() failed: [ObjectName='jboss.remoting:service=NetworkRegistry', Class=org.jboss.remoting.network.NetworkRegistry (org.jboss.remoting.network.NetworkRegistry@126f827)]
| 17:17:14,021 ERROR [MainDeployer] Could not create deployment: file:/tmp/jboss-4.2.1.GA/server/default/conf/jboss-service.xml
| org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect.InvocationTargetException)
| at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
| at org.jboss.system.ServiceController.install(ServiceController.java:226)
|
This is on Linux, with Java 6. Huh? Any ideas on this?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066509#4066509
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066509
18Â years, 9Â months
[JBoss Seam] - onMessage method not called with MailListener MDB
by wiberto
I have a MailListener MDB that is not being called. It looks like everything is setup fine because I can see in the debug log that the email is being retrieved and deleted, but my method is never called.
Here's the class:
| import javax.ejb.ActivationConfigProperty;
| import javax.ejb.MessageDriven;
| import javax.mail.Message;
|
| import org.jboss.annotation.ejb.ResourceAdapter;
| import org.jboss.resource.adapter.mail.inflow.MailListener;
| import org.jboss.seam.annotations.In;
| import org.jboss.seam.annotations.Logger;
| import org.jboss.seam.annotations.Name;
| import org.jboss.seam.log.Log;
|
|
| @MessageDriven(activationConfig={
| @ActivationConfigProperty(propertyName="mailServer", propertyValue="host"),
| @ActivationConfigProperty(propertyName="userName", propertyValue="user"),
| @ActivationConfigProperty(propertyName="password", propertyValue="pass"),
| @ActivationConfigProperty(propertyName="storeProtocol", propertyValue="pop3"),
| @ActivationConfigProperty(propertyName = "mailFolder", propertyValue = "INBOX"),
| @ActivationConfigProperty(propertyName = "debug", propertyValue = "true"),
| @ActivationConfigProperty(propertyName = "flush", propertyValue = "true")
| })
|
| @ResourceAdapter("mail-ra.rar")
| @Name("emailRetrieverMDB")
| public class EmailRetrieverMDB implements MailListener {
|
| @In(create=true)
| private OrderEmailProcessor orderEmailProcessor;
|
| @Logger private Log log;
|
| public void onMessage(Message message) {
| // Process the message
| log.info("onMessage being called", (Object[])null);
| System.out.println("on Message");
|
| orderEmailProcessor.process(message);
| }
|
| }
|
Here's what I have in my components.xml:
| <mail:mail-session session-jndi-name="java:/Mail">
| </mail:mail-session>
|
And here's the log output:
| 18:53:57,654 INFO [STDOUT] DEBUG: JavaMail version 1.4ea
| 18:53:57,659 INFO [STDOUT] DEBUG: java.io.FileNotFoundException: C:\dev\jdk1.6.0\jre\lib\javamail.providers (The system cannot find the file specified)
| 18:53:57,662 INFO [STDOUT] DEBUG: !anyLoaded
| 18:53:57,662 INFO [STDOUT] DEBUG: not loading resource: /META-INF/javamail.providers
| 18:53:57,664 INFO [STDOUT] DEBUG: successfully loaded resource: /META-INF/javamail.default.providers
| 18:53:57,664 INFO [STDOUT] DEBUG: Tables of loaded providers
| 18:53:57,664 INFO [STDOUT] DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc], com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc]}
| 18:53:57,665 INFO [STDOUT] DEBUG: Providers Listed By Protocol: {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc], pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]}
| 18:53:57,665 INFO [STDOUT] DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map
| 18:53:57,667 INFO [STDOUT] DEBUG: !anyLoaded
| 18:53:57,667 INFO [STDOUT] DEBUG: not loading resource: /META-INF/javamail.address.map
| 18:53:57,667 INFO [STDOUT] DEBUG: java.io.FileNotFoundException: C:\dev\jdk1.6.0\jre\lib\javamail.address.map (The system cannot find the file specified)
| 18:53:57,667 INFO [STDOUT] DEBUG: setDebug: JavaMail version 1.4ea
| 18:53:57,667 INFO [STDOUT] DEBUG: getProvider() returning javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc]
| 18:53:57,668 INFO [STDOUT] DEBUG POP3: connecting to host "host", port 110, isSSL false
| 18:53:57,831 INFO [STDOUT] S: +OK Welcome to MailEnable POP3 Server
| 18:53:57,831 INFO [STDOUT] C: USER user
| 18:53:57,899 INFO [STDOUT] S: +OK
| 18:53:57,899 INFO [STDOUT] C: PASS pass
| 18:53:57,967 INFO [STDOUT] S: +OK
| 18:53:57,968 INFO [STDOUT] C: STAT
| 18:53:58,033 INFO [STDOUT] S: +OK 0 0
| 18:53:58,033 INFO [STDOUT] C: NOOP
| 18:53:58,100 INFO [STDOUT] S: +OK
| 18:53:58,100 INFO [STDOUT] C: NOOP
| 18:53:58,166 INFO [STDOUT] S: +OK
| 18:53:58,166 INFO [STDOUT] C: QUIT
| 18:53:58,233 INFO [STDOUT] S: +OK Goodbye
| 18:53:58,233 INFO [STDOUT] DEBUG POP3: connecting to host "host", port 110, isSSL false
| 18:53:58,375 INFO [STDOUT] S: +OK Welcome to MailEnable POP3 Server
| 18:53:58,375 INFO [STDOUT] C: USER user
| 18:53:58,441 INFO [STDOUT] S: +OK
| 18:53:58,441 INFO [STDOUT] C: PASS pass
| 18:53:58,510 INFO [STDOUT] S: +OK
| 18:53:58,510 INFO [STDOUT] C: QUIT
| 18:53:58,576 INFO [STDOUT] S: +OK Goodbye
|
I'm using Seam 1.2.1 and I copied the mail-ra.rar to my jboss 4.2.0 deployment. The mail-service.xml is empty. As I wanted to make sure that something outside my project wasn't intercepting the message, but it's not.
Anything obvious I'm missing?
Thanks,
Jose
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066508#4066508
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066508
18Â years, 9Â months
[JBoss Tools (users)] - XDoclet broken trying to use JBoss 4.2.1GA and JBoss-IDE Ecl
by markï¼ t4p.com
All,
Using JBoss 4.2.1GA, Eclipse 3.3, and the
JBoss Eclipse IDE plugin 1.6.0.GA, I have tried
to follow the tutorial example, making a Fibo
calculating session bean.
I have XDoclet 1.2.3 and have pointed Eclipse to it
in the Window->Preferences->XDoclet config screen.
But no matter what I do (including re-installing various ways)
when I get to the XDoclet-related steps (chap 5), I get
runtime errors and the XDoclet config page in the properties
dialog is missing most of it's data entry components. A dialog
says "The currently displayed page contains invalid values."
The log attached below shows several exceptions that occurred.
Something is broken and I am stuck since XDoclet is central
to getting the code to run.
Plz advise and thanx in advance,
/Mark
!SESSION 2007-07-22 14:54:30.156 -----------------------------------------------
eclipse.buildId=I20070625-1500
java.version=1.5.0_12
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86
!ENTRY org.eclipse.ui 4 4 2007-07-22 15:24:52.718
!MESSAGE Could not create action delegate for id: org.eclipse.jst.j2ee.ejb.annotations.internal.xdoclet.action.RunXDocletAction
!ENTRY org.eclipse.ui 4 4 2007-07-22 15:24:52.734
!MESSAGE Internal plug-in action delegate error on creation.
!STACK 0
java.lang.NullPointerException
at org.eclipse.jem.workbench.utility.JemProjectUtilities.getJavaProject(JemProjectUtilities.java:201)
at org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities.getSourcePathOrFirst(J2EEProjectUtilities.java:435)
at org.eclipse.jst.j2ee.internal.project.J2EEProjectUtilities.getSourceFolderOrFirst(J2EEProjectUtilities.java:396)
at org.eclipse.jst.j2ee.ejb.annotations.internal.xdoclet.action.XDocletActionDelegate.getFirstSourceFile(XDocletActionDelegate.java:70)
at org.eclipse.jst.j2ee.ejb.annotations.internal.xdoclet.action.RunXDocletAction.selectionChanged(RunXDocletAction.java:60)
at org.eclipse.ui.internal.PluginAction.refreshEnablement(PluginAction.java:211)
at org.eclipse.ui.internal.PluginAction.createDelegate(PluginAction.java:126)
at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:280)
at org.eclipse.ui.internal.PluginAction.(PluginAction.java:112)
at org.eclipse.ui.internal.ObjectPluginAction.(ObjectPluginAction.java:51)
at org.eclipse.ui.internal.ActionDescriptor.createAction(ActionDescriptor.java:266)
at org.eclipse.ui.internal.ActionDescriptor.(ActionDescriptor.java:170)
at org.eclipse.ui.internal.ActionDescriptor.(ActionDescriptor.java:100)
at org.eclipse.ui.internal.ObjectActionContributor.createActionDescriptor(ObjectActionContributor.java:200)
at org.eclipse.ui.internal.PluginActionBuilder.readElement(PluginActionBuilder.java:158)
at org.eclipse.ui.internal.ObjectActionContributor.readElement(ObjectActionContributor.java:279)
at org.eclipse.ui.internal.registry.RegistryReader.readElements(RegistryReader.java:138)
at org.eclipse.ui.internal.registry.RegistryReader.readElementChildren(RegistryReader.java:127)
at org.eclipse.ui.internal.ObjectActionContributor.readConfigElement(ObjectActionContributor.java:250)
at org.eclipse.ui.internal.ObjectActionContributor.isApplicableTo(ObjectActionContributor.java:216)
at org.eclipse.ui.internal.ObjectContributorManager.isApplicableTo(ObjectContributorManager.java:294)
at org.eclipse.ui.internal.ObjectActionContributorManager.contributeObjectActions(ObjectActionContributorManager.java:82)
at org.eclipse.ui.internal.PopupMenuExtender.addObjectActions(PopupMenuExtender.java:261)
at org.eclipse.ui.internal.PopupMenuExtender.menuAboutToShow(PopupMenuExtender.java:337)
at org.eclipse.jface.action.MenuManager.fireAboutToShow(MenuManager.java:290)
at org.eclipse.jface.action.MenuManager.handleAboutToShow(MenuManager.java:395)
at org.eclipse.jface.action.MenuManager.access$1(MenuManager.java:391)
at org.eclipse.jface.action.MenuManager$2.menuShown(MenuManager.java:417)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:962)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:943)
at org.eclipse.swt.widgets.Control.WM_INITMENUPOPUP(Control.java:3981)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3698)
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:291)
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1584)
at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:1753)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4351)
at org.eclipse.swt.internal.win32.OS.TrackPopupMenu(Native Method)
at org.eclipse.swt.widgets.Menu._setVisible(Menu.java:228)
at org.eclipse.swt.widgets.Display.runPopups(Display.java:3708)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3287)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:153)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
!ENTRY org.eclipse.jface 4 2 2007-07-22 15:26:28.171
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface".
!STACK 0
java.lang.NoClassDefFoundError: org/eclipse/jdt/internal/ui/viewsupport/ListContentProvider
at org.jboss.ide.eclipse.xdoclet.run.ui.ConfigurationListViewer.(ConfigurationListViewer.java:115)
at org.jboss.ide.eclipse.xdoclet.run.ui.properties.ConfigurationPropertyPage.createContents(ConfigurationPropertyPage.java:329)
at org.eclipse.jface.preference.PreferencePage.createControl(PreferencePage.java:233)
at org.eclipse.jface.preference.PreferenceDialog.createPageControl(PreferenceDialog.java:1456)
at org.eclipse.jface.preference.PreferenceDialog$13.run(PreferenceDialog.java:1213)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:857)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:46)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:193)
at org.eclipse.jface.preference.PreferenceDialog.showPage(PreferenceDialog.java:1207)
at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.showPage(FilteredPreferenceDialog.java:433)
at org.eclipse.jface.preference.PreferenceDialog$9.selectionChanged(PreferenceDialog.java:698)
at org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredViewer.java:842)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:857)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:46)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:193)
at org.eclipse.jface.viewers.StructuredViewer.firePostSelectionChanged(StructuredViewer.java:840)
at org.eclipse.jface.viewers.StructuredViewer.handlePostSelect(StructuredViewer.java:1153)
at org.eclipse.jface.viewers.StructuredViewer$5.widgetSelected(StructuredViewer.java:1178)
at org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(OpenStrategy.java:250)
at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:244)
at org.eclipse.jface.util.OpenStrategy$3.run(OpenStrategy.java:418)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3659)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3296)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
at org.eclipse.jface.window.Window.open(Window.java:796)
at org.eclipse.ui.dialogs.PropertyDialogAction.run(PropertyDialogAction.java:156)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:545)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:153)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066507#4066507
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066507
18Â years, 9Â months