[jBPM Development] - Mail template for custom MailProducer
by Kevin Moodley
Kevin Moodley [http://community.jboss.org/people/kevinmoodley] created the discussion
"Mail template for custom MailProducer"
To view the discussion, visit: http://community.jboss.org/message/538195#538195
--------------------------------------------------------------
How do I get the mail template from the jpdl set on my custom MailProducer?
This is what I have so far:
public class CustomMailProducer extends MailProducerImpl {
..
public Collection<Message> produce(Execution execution) {
MailTemplate template = super.getTemplate();
...
}
In the JPDL I have :
<task assignee="kmoodley" g="210,250,92,52" name="User Review">
<description>User Review Task Description</description>
<notification class="com.kevinmoodley.bpm.mail.CustomMailProducer" template="test-template"/>
</notification>
<transition g="-42,-18" name="CANCEL" to="end1"/>
<transition g="-42,-18" name="RESTART" to="end2"/>
</task>
Here is the jbpm.mail.templates.xml
<?xml version="1.0" encoding="UTF-8"?>
<jbpm-configuration>
<process-engine-context>
<mail-template name="test_template">
<to addresses=" mailto:kevinmoodley@gmail.com kevinmoodley(a)gmail.com" />
<subject>Test Email via Notification</subject>
<text>
This is a test email sent by the notification tag in a Human Task
</text>
</mail-template>
</process-engine-context>
</jbpm-configuration>
But super.getTemplate() always returns null.
Note: same jbpm.mail.templates.xml works fine when the custom MailProducer is not used.
What else do I need to do to get this CustomMailProducer to pick up the template?
Thanks
Kevin
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/538195#538195]
Start a new discussion in jBPM Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
16 years, 2 months
[JBoss Web Services] - Jboss Metro - SOAP/JMS Address Not Supported
by Sagar Sahasrabudhe
Sagar Sahasrabudhe [http://community.jboss.org/people/sagarps] created the discussion
"Jboss Metro - SOAP/JMS Address Not Supported"
To view the discussion, visit: http://community.jboss.org/message/538188#538188
--------------------------------------------------------------
Hi All,
I was trying SOAP/JMS. I was setting the endpoint as jms:jndi:jms/SagarQ?jndiConnectionFactoryName=jms/SagarQF
When i set this as my soap endpoint it throws following exception. I am not able to find out what the endpoint should be.
22:33:38,917 ERROR [STDERR] javax.xml.ws.WebServiceException: Unsupported endpoint address: jms:jndi:jms/SagarQ?jndiConnectionFactoryName=jms/SagarQF
22:33:38,917 ERROR [STDERR] at com.sun.xml.ws.api.pipe.TransportTubeFactory.create(TransportTubeFactory.java:144)
22:33:38,917 ERROR [STDERR] at com.sun.xml.ws.transport.DeferredTransportPipe.processRequest(DeferredTransportPipe.java:112)
22:33:38,917 ERROR [STDERR] at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:598)
22:33:38,917 ERROR [STDERR] at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:557)
22:33:38,917 ERROR [STDERR] at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:542)
22:33:38,917 ERROR [STDERR] at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:439)
22:33:38,917 ERROR [STDERR] at com.sun.xml.ws.api.pipe.helper.AbstractTubeImpl.process(AbstractTubeImpl.java:112)
22:33:38,917 ERROR [STDERR] at com.sun.xml.xwss.XWSSClientPipe.process(XWSSClientPipe.java:154)
22:33:38,917 ERROR [STDERR] at com.sun.xml.ws.api.pipe.helper.PipeAdapter.processRequest(PipeAdapter.java:115)
22:33:38,917 ERROR [STDERR] at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:598)
22:33:38,917 ERROR [STDERR] at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:557)
22:33:38,917 ERROR [STDERR] at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:542)
22:33:38,917 ERROR [STDERR] at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:439)
22:33:38,917 ERROR [STDERR] at com.sun.xml.ws.client.Stub.process(Stub.java:222)
22:33:38,917 ERROR [STDERR] at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:135)
22:33:38,917 ERROR [STDERR] at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:109)
22:33:38,917 ERROR [STDERR] at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:89)
22:33:38,917 ERROR [STDERR] at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:118)
22:33:38,917 ERROR [STDERR] at $Proxy341.createPropRatePlan(Unknown Source)
22:33:38,917 ERROR [STDERR] at com.test.valhalla.rates.availclient.AvailabilityClient.processRequest(AvailabilityClient.java:83)
22:33:38,917 ERROR [STDERR] at com.test.valhalla.rates.availclient.AvailabilityClient.doGet(AvailabilityClient.java:203)
22:33:38,933 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
22:33:38,933 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
22:33:38,933 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
22:33:38,933 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
22:33:38,933 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
22:33:38,933 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
22:33:38,933 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
22:33:38,933 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
22:33:38,933 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
22:33:38,933 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
22:33:38,933 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
22:33:38,933 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
22:33:38,933 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
22:33:38,933 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
22:33:38,933 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
22:33:38,933 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
22:33:38,933 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
22:33:38,933 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
22:33:38,933 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
22:33:38,933 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
22:33:38,933 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
22:33:38,933 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/538188#538188]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
16 years, 2 months
[JBoss Portal] - Jboss portal 2.7.2 portlet ClassCast Exception
by Debopam Poddar
Debopam Poddar [http://community.jboss.org/people/dpoddar] created the discussion
"Jboss portal 2.7.2 portlet ClassCast Exception"
To view the discussion, visit: http://community.jboss.org/message/538183#538183
--------------------------------------------------------------
I am new to portlet developmet. I was trying to develop and deploy simple portlet in Jboss portal 2.7.2 and Jboss AS 4.2.3/
Following is the code
Portlet extending GenericPortlet
> package com.sampleportlet;
>
> import java.io.IOException;
>
> import javax.portlet.ActionRequest;
> import javax.portlet.ActionResponse;
> import javax.portlet.GenericPortlet;
> import javax.portlet.PortletConfig;
> import javax.portlet.PortletException;
> import javax.portlet.PortletRequestDispatcher;
> import javax.portlet.RenderRequest;
> import javax.portlet.RenderResponse;
> import javax.portlet.UnavailableException;
>
>
>
> public class First extends GenericPortlet {
>
>
>
> public void init(PortletConfig portletConfig) throws UnavailableException,
> PortletException {
> super.init(portletConfig);
> }
>
> /**
> * Helper method to serve up the mandatory view mode.
> */
> protected void doHelp(RenderRequest request, RenderResponse response)
> throws PortletException, IOException {
> response.setContentType("text/html");
> PortletRequestDispatcher dispatcher = getPortletContext()
> .getRequestDispatcher("/WEB-INF/jsp/First_help.jsp");
> dispatcher.include(request, response);
> }
>
> /**
> * Helper method to serve up the mandatory view mode.
> */
> protected void doEdit(RenderRequest request, RenderResponse response)
> throws PortletException, IOException {
> response.setContentType("text/html");
> PortletRequestDispatcher dispatcher = getPortletContext()
> .getRequestDispatcher("/WEB-INF/jsp/First_edit.jsp");
> dispatcher.include(request, response);
> }
>
> /**
> * Helper method to serve up the mandatory view mode.
> */
> protected void doView(RenderRequest request, RenderResponse response)
> throws PortletException, IOException {
> response.setContentType("text/html");
>
> String name = (String) request.getParameter("name");
>
> if (name != null) {
> PortletRequestDispatcher reqDispatcher = getPortletContext()
> .getRequestDispatcher("/WEB-INF/jsp/First_view.jsp");
> request.setAttribute("name", name);
> reqDispatcher.include(request, response);
> } else {
> PortletRequestDispatcher reqDispatcher = getPortletContext()
> .getRequestDispatcher("/WEB-INF/jsp/First_edit.jsp");
> reqDispatcher.include(request, response);
> }
> }
>
> public void processAction(ActionRequest actionRequest,
> ActionResponse actionResponse) throws PortletException,
> IOException, UnavailableException {
> String name = (String) actionRequest.getParameter("name");
>
> // send name back to view
> actionResponse.setRenderParameter("name", name);
> }
>
>
WEB-INF/portlet.xml
> <?xml version="1.0" encoding="UTF-8"?>
> <portlet-app xmlns=" http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
> xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation=" http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
> version="2.0">
> <portlet>
> <portlet-name>FirstJspPortlet</portlet-name>
> <display-name>First Portlet</display-name>
> <portlet-class>com.sampleportlet.First</portlet-class>
> <supports>
> <mime-type>text/html</mime-type>
> <portlet-mode>VIEW</portlet-mode>
> <portlet-mode>EDIT</portlet-mode>
> <portlet-mode>HELP</portlet-mode>
> </supports>
> <portlet-info>
> <title>First Portlet</title>
> </portlet-info>
> </portlet>
>
> </portlet-app>
WEB-INF/portlet-instances.xml
> <?xml version="1.0" standalone="yes"?>
> <deployments>
> <deployment>
> <instance>
> <instance-id>FirstPortletInstance</instance-id>
> <portlet-ref>FirstJspPortlet</portlet-ref>
> </instance>
> </deployment>
> </deployments>
WEB-INF/firstjspportlet-object.xml
> <?xml version="1.0" encoding="UTF-8"?>
> <deployments>
> <deployment>
> <if-exists>overwrite</if-exists>
> <parent-ref>default.default</parent-ref>
> <window>
> <window-name>FirstPortletWindow</window-name>
> <content>
> <content-type>portlet</content-type>
> <content-uri>FirstPortletInstance</content-uri>
> </content>
> <region>center</region>
> <height>1</height>
> </window>
> </deployment>
> </deployments>
WEB-INF/Jboss-portlet.xml
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE portlet-app PUBLIC "-//JBoss Portal//DTD JBoss Portlet 2.6//EN"
> " http://www.jboss.org/portal/dtd/jboss-portlet_2_6.dtd http://www.jboss.org/portal/dtd/jboss-portlet_2_6.dtd">
>
> <portlet-app>
> <remotable>true</remotable>
> <portlet>
> <portlet-name>FirstJspPortlet</portlet-name>
> </portlet>
> </portlet-app>
Error I am getting is
> 2010-04-18 22:09:22,953 DEBUG [org.jboss.portal.portlet.container.com_sampleportlet_First] Loading portlet class com.sampleportlet.First
> 2010-04-18 22:09:22,958 DEBUG [org.jboss.portal.portlet.container.com_sampleportlet_First] Creating portlet object com.sampleportlet.First
> 2010-04-18 22:09:22,962 ERROR [org.jboss.portal.portlet.impl.container.LifeCycle] Cannot start object
> org.jboss.portal.portlet.container.PortletInitializationException: The portlet FirstJspPortlet threw a runtime exception during init
> at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.start(PortletContainerImpl.java:288)
> at org.jboss.portal.portlet.impl.container.PortletContainerLifeCycle.invokeStart(PortletContainerLifeCycle.java:76)
> at org.jboss.portal.portlet.impl.container.LifeCycle.managedStart(LifeCycle.java:92)
> at org.jboss.portal.portlet.impl.container.PortletApplicationLifeCycle.startDependents(PortletApplicationLifeCycle.java:351)
> at org.jboss.portal.portlet.impl.container.LifeCycle.managedStart(LifeCycle.java:128)
> at org.jboss.portal.portlet.deployment.jboss.PortletAppDeployment.start(PortletAppDeployment.java:226)
> at org.jboss.portal.core.deployment.jboss.PortletAppDeployment.start(PortletAppDeployment.java:94)
> at org.jboss.portal.server.deployment.jboss.DeploymentContext.start(DeploymentContext.java:99)
> at org.jboss.portal.server.deployment.jboss.PortalDeploymentInfoContext.start(PortalDeploymentInfoContext.java:220)
> at org.jboss.portal.server.deployment.jboss.ServerDeployer.start(ServerDeployer.java:217)
> at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
> at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
> at sun.reflect.GeneratedMethodAccessor212.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 $Proxy222.deploy(Unknown Source)
> at org.jboss.portal.server.deployment.jboss.ServerDeployer.deploy(ServerDeployer.java:259)
> at org.jboss.portal.server.deployment.WebAppAdapter.deploy(WebAppAdapter.java:53)
> at org.jboss.portal.server.deployment.WebAppIntercepter.handleNotification(WebAppIntercepter.java:159)
> 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.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:153)
> at $Proxy224.handleNotification(Unknown Source)
> at org.jboss.mx.util.JBossNotificationBroadcasterSupport.handleNotification(JBossNotificationBroadcasterSupport.java:127)
> at org.jboss.mx.util.JBossNotificationBroadcasterSupport.sendNotification(JBossNotificationBroadcasterSupport.java:108)
> at org.jboss.deployment.SubDeployerSupport.emitNotification(SubDeployerSupport.java:340)
> at org.jboss.deployment.SubDeployerSupport.start(SubDeployerSupport.java:308)
> at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:482)
> at sun.reflect.GeneratedMethodAccessor105.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.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
> at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
> at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)
> 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 $Proxy202.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.GeneratedMethodAccessor26.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 $Proxy9.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.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.GeneratedMethodAccessor9.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 $Proxy4.start(Unknown Source)
> at org.jboss.deployment.SARDeployer.start(SARDeployer.java:304)
> 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 org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
> 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.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 $Proxy5.deploy(Unknown Source)
> at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
> at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
> at org.jboss.Main.boot(Main.java:200)
> at org.jboss.Main$1.run(Main.java:508)
> at java.lang.Thread.run(Thread.java:613)
> Caused by: java.lang.ClassCastException: com.sampleportlet.First
> at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.start(PortletContainerImpl.java:254)
Please let me know what needs to be changed.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/538183#538183]
Start a new discussion in JBoss Portal at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
16 years, 2 months