[Installation, Configuration & Deployment] - Having problem with the redhat service
by davidmate
I've installed the jbossas-4.0.4GA rpm on RedHat ES 4. Since we want to deploy EJB3 on it, I've copied the "default" profile (under /var/lib/jbossas/server and /etc/jbossas), and changed the relevant symbolic links. when I try to start jboss using service jbossas start I get "FAILED" as response, allthough the jboss is running (via ps and "service --status-all"). I have removed two xml definitions from the deploy, since they threw exceptions, even tough I've added jboss-cache .jar to the lib directory: ejb3-clustered-sfsbcache-service.xml and ejb3-entity-cache-service.xml.
The log is as following:
| =========================================================================
|
| JBoss Bootstrap Environment
|
| JBOSS_HOME: /var/lib/jbossas
|
| JAVA: /usr/java/current/bin/java
|
| JAVA_OPTS: -Djboss.partition.udpGroup=228.1.2.3 -Djboss.partition.udpPort=45566 -Djboss.partition.udpGroupHS=230.1.2.7 -Djboss.partition.udpPortHS=45577 -Dprogram.name=run.sh
|
| CLASSPATH: /var/lib/jbossas/bin/run.jar:/usr/java/current/lib/tools.jar
|
| =========================================================================
|
| 16:44:34,876 INFO [Server] Starting JBoss (MX MicroKernel)...
| 16:44:34,884 INFO [Server] Release ID: JBoss [Zion] 4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)
| 16:44:34,889 INFO [Server] Home Dir: /var/lib/jbossas
| 16:44:34,890 INFO [Server] Home URL: file:/var/lib/jbossas/
| 16:44:34,894 INFO [Server] Patch URL: null
| 16:44:34,895 INFO [Server] Server Name: ejb3d
| 16:44:34,895 INFO [Server] Server Home Dir: /var/lib/jbossas/server/ejb3d
| 16:44:34,896 INFO [Server] Server Home URL: file:/var/lib/jbossas/server/ejb3d/
| 16:44:34,897 INFO [Server] Server Log Dir: /var/lib/jbossas/server/ejb3d/log
| 16:44:34,898 INFO [Server] Server Temp Dir: /var/lib/jbossas/server/ejb3d/tmp
| 16:44:34,899 INFO [Server] Root Deployment Filename: jboss-service.xml
| 16:44:36,732 INFO [ServerInfo] Java version: 1.5.0_09,Sun Microsystems Inc.
| 16:44:36,733 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0_09-b01,Sun Microsystems Inc.
| 16:44:36,733 INFO [ServerInfo] OS-System: Linux 2.6.9-42.EL,i386
| 16:44:38,697 INFO [Server] Core system initialized
| 16:44:48,135 INFO [WebService] Using RMI server codebase: http://homer:8083/
| 16:44:48,236 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
| 16:44:49,660 INFO [NamingService] JNDI bootstrap JNP=/0.0.0.0:1099, RMI=/0.0.0.0:1098, backlog=50, no client SocketFactory, Server SocketFactory=class org.jboss.net.sockets.DefaultSocketFactory
| 16:44:57,021 INFO [SocketServerInvoker] Invoker started for locator: InvokerLocator [socket://127.0.0.1:3873/]
| 16:45:00,708 INFO [AspectDeployer] Deployed AOP: file:/var/lib/jbossas/server/ejb3d/deploy/ejb3-interceptors-aop.xml
| 16:45:07,023 INFO [Embedded] Catalina naming disabled
| 16:45:07,370 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
| 16:45:07,392 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
| 16:45:09,048 INFO [Http11BaseProtocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
| 16:45:09,060 INFO [Catalina] Initialization processed in 1666 ms
| 16:45:09,062 INFO [StandardService] Starting service jboss.web
| 16:45:09,086 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5.17
| 16:45:09,266 INFO [StandardHost] XML validation disabled
| 16:45:09,409 INFO [Catalina] Server startup in 348 ms
| 16:45:10,040 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
| 16:45:12,089 INFO [WebappLoader] Dual registration of jndi stream handler: factory already defined
| 16:45:14,662 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jbossweb-tomcat55.sar/ROOT.war/
| 16:45:17,503 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../tmp/deploy/tmp43463jbossws.sar-contents/jbossws-exp.war/
| 16:45:18,269 INFO [SubscriptionManager] Bound event dispatcher to java:/EventDispatcher
| 16:45:18,698 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
| 16:45:27,300 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
| 16:45:32,578 INFO [MailService] Mail Service bound to java:/Mail
| 16:45:33,560 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
| 16:45:33,818 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
| 16:45:33,950 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
| 16:45:34,162 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
| 16:45:34,533 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
| 16:45:34,727 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
| 16:45:34,976 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/quartz-ra.rar
| 16:45:35,027 INFO [QuartzResourceAdapter] start quartz!!!
| 16:45:35,461 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main
| 16:45:35,656 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
| 16:45:35,665 INFO [RAMJobStore] RAMJobStore initialized.
| 16:45:35,668 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
| 16:45:35,669 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
| 16:45:35,672 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
| 16:45:38,893 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
| 16:45:41,499 INFO [A] Bound to JNDI name: queue/A
| 16:45:41,516 INFO [B] Bound to JNDI name: queue/B
| 16:45:41,535 INFO [C] Bound to JNDI name: queue/C
| 16:45:41,550 INFO [D] Bound to JNDI name: queue/D
| 16:45:41,568 INFO [ex] Bound to JNDI name: queue/ex
| 16:45:41,661 INFO [testTopic] Bound to JNDI name: topic/testTopic
| 16:45:41,669 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
| 16:45:41,677 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
| 16:45:41,691 INFO [testQueue] Bound to JNDI name: queue/testQueue
| 16:45:41,998 INFO [UILServerILService] JBossMQ UIL service available at : /0.0.0.0:8093
| 16:45:42,240 INFO [DLQ] Bound to JNDI name: queue/DLQ
| 16:45:43,005 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
| 16:45:43,219 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
| 16:45:44,767 INFO [Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
| 16:45:45,572 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
| 16:45:45,658 INFO [JkMain] Jk running ID=0 time=0/238 config=null
| 16:45:45,730 INFO [Server] JBoss (MX MicroKernel) [4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)] Started in 1m:10s:819ms
|
David
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3983791#3983791
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3983791
19Â years, 6Â months
[JBoss Portal] - Re: Personalization Features in 2.4?
by thomas.heuteï¼ jboss.com
I think he can change the current theme. (To verify)
The user can set preference for every portlet of predefined pages. Pages and their compositions can vary from one role to the other. But a single user cannot change the pages or the portlet just for him.
If you are still at the evalutation process, i would encourage you to start with 2.4, you can get professional support for it.
All your portlets will work in 2.6 and we provide a migration application. 2.6 final is due early next year and support will be available for it. Once you will move to 2.6 you will then benefit from the pages composition if it is key for your business.
Another option is to start right on 2.6 thanks to the early release (Snapshot) that we released.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3983790#3983790
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3983790
19Â years, 6Â months
[JBossWS] - Re: Problem with SAAJ Client for Webservice that receives at
by RomeuFigueira
Ok, further info.
This is from a very similar webservice, only difference in this one is that it deals with JPEGs.
These are TCPmon captures.
My Client (attachment output ommited):
POST /MediationAttachPic HTTP/1.1
| Accept: text/xml, text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
| Content-Type: multipart/related;
| type="text/xml";
| boundary="----=_Part_1_17933220.1162911613951"
| Content-Length: 4228
| SOAPAction: ""
| Cache-Control: no-cache
| Pragma: no-cache
| User-Agent: Java/1.5.0_08
| Host: 127.0.0.1:8081
| Connection: keep-alive
|
| ------=_Part_1_17933220.1162911613951
| Content-Type: text/xml; charset=utf-8
|
| <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:com.mediation">
| <SOAP-ENV:Body>
| <urn:depositAttach>
| <id_lote>1</id_lote>
| <file_name>xml-pic</file_name>
| </urn:depositAttach>
| </SOAP-ENV:Body></SOAP-ENV:Envelope>
| ------=_Part_1_17933220.1162911613951
| Content-Type: image/jpeg
| Content-ID: <imgpart=5e62851c:10ec2ef030e:-8000@example.com>
SOAPui (attachment output ommited):
POST /MediationAttachPic HTTP/1.1
| SOAPAction: ""
| Content-Type: multipart/related;
| type="text/xml";
| start="<rootpart(a)soapui.org>";
| boundary="----=_Part_0_26490427.1162911728786"
| MIME-Version: 1.0
| User-Agent: Jakarta Commons-HttpClient/3.0.1
| Host: 127.0.0.1:8081
| Content-Length: 4381
|
|
| ------=_Part_0_26490427.1162911728786
| Content-Type: text/xml; charset=UTF-8
| Content-Transfer-Encoding: 8bit
| Content-ID: <rootpart(a)soapui.org>
| <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:com.mediation">
| <soapenv:Header/>
| <soapenv:Body>
| <urn:depositAttach>
| <id_lote>2</id_lote>
| <file_name>xml_pic</file_name>
| </urn:depositAttach>
| </soapenv:Body>
| </soapenv:Envelope>
| ------=_Part_0_26490427.1162911728786
| Content-Type: image/jpeg
| Content-Transfer-Encoding: binary
| Content-ID:
| <imgpart=15912942847484(a)soapui.org>
The main difference to me is this line, which I believe is the one causing errors:
start="<rootpart(a)soapui.org>";
How can I define this in my client?
SAAJ_ATTACH_CLIENT
| public class SAAJ_Attach_Client
| {
| public static final String NAMESPACE_URI = "com.mediation";
| public static final String PREFIX = "urn";
| public static final String METHOD = "depositAttach";
| public static final File attach = new File("xml-pic.jpg");
| public static final String WS_URI = "http://localhost:8081/MediationAttachPic";
|
| public static void main(String[] args)
| {
|
| try
| {
| MessageFactory msgFactory = MessageFactory.newInstance();
| SOAPMessage msg = msgFactory.createMessage();
| SOAPPart soapPart = msg.getSOAPPart();
| SOAPEnvelope soapEnvelope = soapPart.getEnvelope();
|
| soapEnvelope.addNamespaceDeclaration(PREFIX,PREFIX+":"+NAMESPACE_URI);
|
| // for this tutorial web service, we don't have any headers,
| // so detach the one we get for "free":
| SOAPHeader soapHeader = soapEnvelope.getHeader();
| soapHeader.detachNode();
|
| // to the body, add the document we want to send to the
| // profile update web service:
| SOAPBody body = msg.getSOAPBody();
| SOAPFactory soapFactory = SOAPFactory.newInstance();
| Name bodyName = soapFactory.createName(METHOD,PREFIX, "");
| SOAPBodyElement bodyElement = body.addBodyElement(bodyName);
|
| // add the "profileID" element:
| Name profileIDParamName = soapFactory.createName("id_lote");
| SOAPElement profileID = bodyElement.addChildElement(profileIDParamName);
| profileID.addTextNode("1");
|
| // add the "profilePhotoRef" reference to the photo we will attach:
| Name profilePhotoRefParamName = soapFactory.createName("file_name");
| SOAPElement profilePhotoRef = bodyElement.addChildElement(profilePhotoRefParamName);
|
| profilePhotoRef.addTextNode("xml-pic");
|
| // get the image file and attach it:
| AttachmentPart binaryAttachPart = null;
|
| FileDataSource binaryFds = new FileDataSource(attach);
| DataHandler binaryFileHandler = new DataHandler(binaryFds);
| binaryAttachPart = msg.createAttachmentPart(binaryFileHandler);
| binaryAttachPart.setContentType("image/jpeg");
|
| binaryAttachPart.setContentId("<imgpart="+ (new java.rmi.server.UID()).toString() + "@example.com>");
| msg.addAttachmentPart(binaryAttachPart);
|
| if (msg.saveRequired())
| {
| msg.saveChanges();
| }
|
| // echo the document first:
| System.out.println("\nAbout to send the following SOAPMessage:\n");
| msg.writeTo(System.out);
| System.out.println("\nto endpoint URL " + WS_URI + "\n");
|
| // ...then send it, and echo the response:
| SOAPConnectionFactory soapConnFactory = SOAPConnectionFactory.newInstance();
| SOAPConnection soapConn = soapConnFactory.createConnection();
| SOAPMessage responseMsg = soapConn.call(msg, WS_URI);
| System.out.println("\nGot the following SOAPMessage in response:\n");
| responseMsg.writeTo(System.out);
|
| // in real life, declare outside of block and close in finally
| soapConn.close();
| }
| catch (IOException ioe)
| {
| System.err.println("IOException writing SOAPMessage: '" + ioe.getMessage() + "'");
| }
| catch (SOAPException se)
| {
| System.err.println("SOAPException: '" + se.getMessage() + "'");
| System.err.println(" Cause: '" + se.getCause().getClass().getName() + "': " + se.getCause().getMessage());
| }
|
| }
|
| public SAAJ_Attach_Client()
| {
| }
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3983789#3983789
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3983789
19Â years, 6Â months
[JBoss Seam] - Re: javax.servlet.ServletException: Error calling action met
by JoviJojo
"petemuir" wrote : You're going to have to post the full stacktrace from the logs. Please use the [ code ] tags
-------------------
thanks for your reply, the problem is actually that: once i press the confirm button, the booking information should be inserted into database, but its not!
-----------------------
2006-11-07 15:14:02,843 INFO [org.hibernate.tool.hbm2ddl.SchemaExport] Executing import script: /import.sql
2006-11-07 15:14:02,843 DEBUG [org.hibernate.tool.hbm2ddl.SchemaExport] insert into tUser (username, password, name, employeeno, email) values ('gavin', 'foobar', 'Gavin King', '6123456', 'jojo(a)hotmail.com')
2006-11-07 15:14:02,859 DEBUG [org.hibernate.tool.hbm2ddl.SchemaExport] insert into tUser (username, password, name, employeeno, email) values ('jovix', 'jboss', 'Jovi X', '6123456', 'jojo(a)hotmail.com')
2006-11-07 15:14:02,859 DEBUG [org.hibernate.tool.hbm2ddl.SchemaExport] insert into tHotel (name, description) values ('GrandGårdarna Liten Lindvallen', 'There are four cottages in this area: Övre Gårdsvägen 11A 2500sek per weekend;Övre Gårdsvägen 11B 2500sek per weekend;Övre Gårdsvägen 5A; Övre Gårdsvägen 5B')
2006-11-07 15:14:02,875 DEBUG [org.hibernate.tool.hbm2ddl.SchemaExport] insert into tHotel (name, description) values ('GrandGårdarna Stor Lindvallen', 'Very nice area with two cottages: Vrilvägen 13A and 13B. 2500sek for a weekend')
2006-11-07 15:14:02,875 DEBUG [org.hibernate.tool.hbm2ddl.SchemaExport] insert into tHotel (name, description) values ('Åre Fjällby 6+1 bädd', 'Lgh 2, nr 641 2500sek for a weekend and lgn 567 no price set yet')
2006-11-07 15:14:02,875 DEBUG [org.hibernate.tool.hbm2ddl.SchemaExport] insert into Booking (weeks,choice, user, hotel) values ('week2', '2', 'jovix', '1')
2006-11-07 15:14:02,906 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] schema export unsuccessful
org.hibernate.JDBCException: Error during import script execution
at org.hibernate.tool.hbm2ddl.SchemaExport.importScript(SchemaExport.java:256)
at org.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.java:190)
at org.hibernate.tool.hbm2ddl.SchemaExport.create(SchemaExport.java:131)
at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:308)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1213)
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:631)
at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:760)
at org.hibernate.ejb.Ejb3Configuration.createContainerEntityManagerFactory(Ejb3Configuration.java:350)
at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:119)
at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:264)
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.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:99)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy54.start(Unknown Source)
at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:82)
at org.jboss.ejb3.Ejb3Deployment.startPersistenceUnits(Ejb3Deployment.java:626)
at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:475)
at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:139)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy36.start(Unknown Source)
at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:449)
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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
at org.jboss.ws.server.WebServiceDeployer.start(WebServiceDeployer.java:117)
at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy37.start(Unknown Source)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:997)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy6.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy4.start(Unknown Source)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3983788#3983788
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3983788
19Â years, 6Â months
[EJB 3.0] - Problems deploying a service under JBoss
by konstantin.ermakov
Hello, I wrote the following service :
| public interface ServiceI {
|
| }
|
| public interface ServiceManagementI {
|
| public void start();
|
| public void stop() throws Exception;
|
| }
|
|
| public class Service implements ServiceManagementI, ServiceI {
|
| public void start() {
| System.out.println("I am here!");
| }
|
| public void stop() throws Exception {
| System.out.println("Something...");
| }
|
| }
|
The ejb-jar.xml is as following:
| <jboss>
| <enterprise-beans>
| <service>
| <ejb-class>mypackage.Service</ejb-class>
| <remote>mypackage.ServiceI</remote>
| <management>mypackage.ServiceManagementI</management>
| <jndi-name>myapp/services/Service</jndi-name>
| </service>
| </enterprise-beans>
| </jboss>
|
I receive the following error:
| 15:46:07,458 WARN [ServiceController] Problem starting service jboss.j2ee:jar=myapp5.jar,name=null,service=EJB3
| java.lang.RuntimeException: An exception occurred initialising interceptors for class mypackage.Service.stop
| at org.jboss.ejb3.interceptor.EJB3InterceptorsFactory.createPerJoinpoint(EJB3InterceptorsFactory.java:106)
| at org.jboss.aop.advice.AspectFactoryDelegator.createPerJoinpoint(AspectFactoryDelegator.java:119)
| at org.jboss.aop.advice.ScopedInterceptorFactory.create(ScopedInterceptorFactory.java:113)
| at org.jboss.aop.Advisor.createInterceptorChain(Advisor.java:612)
| at org.jboss.aop.Advisor.pointcutResolved(Advisor.java:882)
| at org.jboss.aop.Advisor.resolveMethodPointcut(Advisor.java:644)
| at org.jboss.aop.ClassContainer.createInterceptorChains(ClassContainer.java:246)
| at org.jboss.aop.ClassContainer.rebuildInterceptors(ClassContainer.java:113)
| at org.jboss.aop.ClassContainer.initializeClassContainer(ClassContainer.java:56)
| at org.jboss.ejb3.EJBContainer.start(EJBContainer.java:453)
| at org.jboss.ejb3.SessionContainer.start(SessionContainer.java:121)
| at org.jboss.ejb3.service.ServiceContainer.start(ServiceContainer.java:134)
| 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.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:102)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy138.start(Unknown Source)
| at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:96)
| at org.jboss.ejb3.Ejb3Deployment.registerEJBContainer(Ejb3Deployment.java:281)
| at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:328)
| at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:91)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy36.start(Unknown Source)
| at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:449)
| 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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
| at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
| at org.jboss.ws.integration.jboss.DeployerInterceptor.start(DeployerInterceptor.java:92)
| at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
| at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy37.start(Unknown Source)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy6.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
|
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
| Caused by: java.lang.NullPointerException
| at java.util.concurrent.ConcurrentHashMap.hash(ConcurrentHashMap.java:157)
| at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:730)
| at org.jboss.ejb3.interceptor.InterceptorInfoRepository.getOrInitialiseFromAnnotations(InterceptorInfoRepository.java:455)
| at org.jboss.ejb3.interceptor.InterceptorInfoRepository.getBeanClassInterceptors(InterceptorInfoRepository.java:159)
| at org.jboss.ejb3.interceptor.InterceptorInfoRepository.getBeanClassAroundInvokes(InterceptorInfoRepository.java:134)
| at org.jboss.ejb3.interceptor.EJB3InterceptorsFactory.createPerJoinpoint(EJB3InterceptorsFactory.java:99)
| ... 107 more
|
|
can somebody help me with this problem? (If I remove throws Exception from stop() method it does not work as well)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3983782#3983782
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3983782
19Â years, 6Â months