Re: Digest for list users@dwr.java.net

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Digest for list users@dwr.java.net

rmsubscribes
What is the process to unsubscribe from this mailing list?




On Mon, Jan 16, 2012 at 12:31 AM, <[hidden email]> wrote:
Table of contents:

1. [dwr-users] Re: Simple Demo for DWR. Error Class Undefined - vishal <[hidden email]>
2. [dwr-users] Re: failed to add struts creator error when upgrading from DWR v2 to v3 - Yabing Chen <[hidden email]>



---------- Forwarded message ----------
From: vishal <[hidden email]>
To: [hidden email]
Cc: 
Date: Sat, 14 Jan 2012 21:29:52 -0800 (PST)
Subject: [dwr-users] Re: Simple Demo for DWR. Error Class Undefined
Hi David,

Thanks for your quick reply.

I guess Demo.js is the file that is been created automatically. when we have written something like this in dwr.xml



<dwr>
  <allow>
    <create creator="new" javascript="JDate">
      <param name="class" value="java.util.Date"/>
    </create>
    <create creator="new" javascript="Demo">
      <param name="class" value="com.atos.dwr.TestDWR"/>
      <include method="getDWR" />
    </create>
  </allow>
</dwr>


Well thanks though I have tried after TestDWR.js and it worked.

thanks a lot for giving the solution.

looking forward to same help from you.


regards,
vishal






On 14 January 2012 18:45, [hidden email] [via DWR] <[hidden email]> wrote:
<script type='text/javascript'
src='/TestDWR/dwr/interface/Demo.js'></script>

Should be:

<script type='text/javascript'
src='/TestDWR/dwr/interface/TestDWR.js'></script>

assuming the rest of your configuration is correct.

We have a good troubleshooting page that you should look at for further
issues:
http://directwebremoting.org/dwr/support/common_problems.html

On 01/14/2012 12:56 AM, vishal wrote:

> I am new to DWR.
>
> want to user it in simpe JSP-Servlet example.
> I am using it as pwe The quick start for DWR.
>
> My jsp pages script is:
>
>
>
>
>
>
>
> I am calling the test function like this:
> <input type="button" value="submit" onclick="test()"/>
>
> Java class is:
> package com.atos.dwr;
>
> public class TestDWR {
>
>
> public String getDWR(int data){
>
> String d=data+" from class";
> System.out.println("---in class----");
> return d;
> }
>
> }
>
>
> everything worked fine for the DWR test page as per the instructions on
> quick start to dwr.
> But when running the jsp.
> it isa saying TestDWR class is underfined and nothing happening.
>
> Please help me to solve this simple issue.
> I am using everything in eclipse.
>
> --
> View this message in context: http://dwr.2114559.n2.nabble.com/Simple-Demo-for-DWR-Error-Class-Undefined-tp7186986p7186986.html
> Sent from the DWR - Users mailing list archive at Nabble.com.
>



If you reply to this email, your message will be added to the discussion below:
http://dwr.2114559.n2.nabble.com/Simple-Demo-for-DWR-Error-Class-Undefined-tp7186986p7187547.html
To unsubscribe from Simple Demo for DWR. Error Class Undefined, click here.
NAML



View this message in context: Re: Simple Demo for DWR. Error Class Undefined
Sent from the DWR - Users mailing list archive at Nabble.com.


---------- Forwarded message ----------
From: Yabing Chen <[hidden email]>
To: [hidden email]
Cc: 
Date: Mon, 16 Jan 2012 09:39:19 +0800
Subject: [dwr-users] Re: failed to add struts creator error when upgrading from DWR v2 to v3
Hi Mike,

Thanks. I have deployed using the latest jar file. attached please find the error log file. looks like it is the same error as before. but now there is a bit more information that shows it is caused by a nullpointexception from StrutsCreator.getType (line 93).



The sample dwr.xml is:

<!DOCTYPE dwr PUBLIC
    "-//GetAhead Limited//DTD Direct Web Remoting 3.0//EN"
    "http://getahead.org/dwr/dwr30.dtd">

<dwr>
  <allow>
          <create creator="struts" javascript="PortfolioBuilderForm">
            <param name="formBean" value="portfolioBuilderForm"/>
            <include method="formatAndCalculateTmpPercentage"/>
            <include method="getStrTmpTotalMix"/>
            <include method="getSubTotalOfTmpTargetMix"/>
            <include method="formatPercentage"/>
          </create>
          <create creator="struts" javascript="PortfolioRebalancerForm">
            <param name="formBean" value="portfolioRebalancerForm"/>
            <include method="setAndFormatSwitchAmount"/>            
          </create>
   </allow>
...
</dwr>

and the dwr config in web.xml:

<servlet>
                <servlet-name>dwr-invoker</servlet-name>
                <servlet-class>
                        org.directwebremoting.servlet.DwrServlet
                </servlet-class>
                <init-param>
                        <param-name>debug</param-name>
                        <param-value>true</param-value>
                </init-param>
                <init-param>
                        <param-name>crossDomainSessionSecurity</param-name>
                        <param-value>true</param-value>
                </init-param>
                <load-on-startup>99</load-on-startup>
</servlet>


"Mike Wilson" <[hidden email]>

01/13/2012 08:18 PM

Please respond to
[hidden email]

To
<[hidden email]>
cc
Subject
[dwr-users] Re: failed to add struts creator error when upgrading from DWR v2 to v3





I see. I've improved the logging in StrutsCreator; download and run with the updated dwr.jar from here:
http://directwebremoting.org/bamboo/browse/DWRTRUNK-ALL-382/artifact
and tell us what you get in the exception stacktrace.
 
Best regards
Mike
 
Yabing Chen wrote:
Hi Mike,

Thanks for the suggestion. However this error was caught when WebSphere was deploying the application. So I am not sure how to set the Websphere deployment into debug mode. Normally we debug the application only after the deployment is completed. pls advise if you have any idea on this. we are using eclipse as the IDE.


Btw, an example of the full stack trace of the error is:


00000028 startup       E org.directwebremoting.impl.DwrXmlConfigurator loadCreate Failed to add creator: type=struts, javascript=PortfolioBuilderForm

     java.lang.IllegalArgumentException

       at org.directwebremoting.struts.StrutsCreator.getType(StrutsCreator.java:100)

       at org.directwebremoting.extend.AbstractCreator.getJavascript(AbstractCreator.java:45)

       at org.directwebremoting.impl.DefaultCreatorManager.addCreator(DefaultCreatorManager.java:87)

       at org.directwebremoting.impl.DefaultCreatorManager.addCreator(DefaultCreatorManager.java:78)

       at org.directwebremoting.impl.DwrXmlConfigurator.loadCreate(DwrXmlConfigurator.java:269)

       at org.directwebremoting.impl.DwrXmlConfigurator.loadAllows(DwrXmlConfigurator.java:219)

       at org.directwebremoting.impl.DwrXmlConfigurator.configure(DwrXmlConfigurator.java:165)

       at org.directwebremoting.impl.StartupUtil.configureFromDefaultDwrXml(StartupUtil.java:612)

       at org.directwebremoting.impl.StartupUtil.configureContainerFully(StartupUtil.java:726)

       at org.directwebremoting.servlet.DwrServlet.configureContainer(DwrServlet.java:109)

       at org.directwebremoting.servlet.DwrServlet.init(DwrServlet.java:68)

       at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:329)

       at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.init(ServletWrapperImpl.java:168)

       at com.ibm.ws.webcontainer.servlet.ServletWrapper.loadOnStartupCheck(ServletWrapper.java:1274)

       at com.ibm.ws.webcontainer.webapp.WebApp.doLoadOnStartupActions(WebApp.java:586)

       at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinally(WebApp.java:557)

       at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:421)

       at com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:88)

       at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:169)

       at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:748)

       at com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:633)

       at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:422)

       at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:714)

       at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1134)

       at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1369)

       at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:638)

       at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:967)

       at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:730)

       at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplicationDynamically(ApplicationMgrImpl.java:1328)

       at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2126)

       at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:445)

       at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)

       at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:388)

       at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$500(CompositionUnitMgrImpl.java:116)

       at com.ibm.ws.runtime.component.CompositionUnitMgrImpl$1.run(CompositionUnitMgrImpl.java:663)

       at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:5367)

       at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:5493)

       at com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:255)

       at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:677)

       at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:621)

       at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1220)

       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)

       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)

       at java.lang.reflect.Method.invoke(Method.java:611)

       at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:49)

       at sun.reflect.GeneratedMethodAccessor92.invoke(Unknown Source)

       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)

       at java.lang.reflect.Method.invoke(Method.java:611)

       at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:256)

       at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1085)

       at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:966)

       at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:848)

       at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:773)

       at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1334)

       at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)

       at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:1227)

       at com.ibm.ws.management.connector.AdminServiceDelegator.invoke(AdminServiceDelegator.java:181)

       at com.ibm.ws.management.connector.ipc.CallRouter.route(CallRouter.java:247)

       at com.ibm.ws.management.connector.ipc.IPCConnectorInboundLink.doWork(IPCConnectorInboundLink.java:353)

       at com.ibm.ws.management.connector.ipc.IPCConnectorInboundLink$IPCConnectorReadCallback.complete(IPCConnectorInboundLink.java:595)

       at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1784)

       at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)

       at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)

       at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)

       at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)

       at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)

       at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)

       at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)

       at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1648)


And the reason why we tried to upgrade to DWR v3 is because the WebSphere v8 gave a session error pop up when the application using DWR v2, which is related to the CSRF prevention in dwr configuration below. I searched the forum and understand the fix is in DWR v3.
<param-name>crossDomainSessionSecurity</param-name>
<param-value>true</param-value>


Or probably you can suggest any other way to fix this pop up session error?


Thanks



"Mike Wilson" <[hidden email]>

01/13/2012 06:11 PM

Please respond to
[hidden email]


To
<[hidden email]>
cc
Subject
[dwr-users] Re: failed to add struts creator error when upgrading from DWR v2 to v3







Hi cyb,

It'd be great if you can aid us in debugging this. Download and set up
the source code if you haven't got it already, and put a breakpoint at
org.directwebremoting.struts.StrutsCreator.java:100
and then tell us what exception (variable "ex") is caught here?

Best regards
Mike Wilson

cyb wrote:
> We are upgrading DWR v2 to v3 for our application that is deployed in
> websphere v8. before upgrading all struts creator are working
> fine. after
> upgrading the DWR jar file, when deploying the application we got the
> "failed to add struts creator error" and all struts creator
> are not able to
> be created. The DWT test page also return a blank page, that means no
> creator at all.
>
> For this upgrade, we didn't change anything else except the
> dwr.jar upgrade.
>
> Please help to look at what went wrong. thanks.
>
> The dwr.xml is as below:
> <!DOCTYPE dwr PUBLIC
>     &quot;-//GetAhead Limited//DTD Direct Web Remoting 3.0//EN&quot;
>     &quot;
http://getahead.org/dwr/dwr30.dtd&quot;>
>
> <dwr>
>   <allow>                
>                      <convert converter="bean"
> match="com.form.ViewClientProfileForm"/>
>                    <create creator="struts" javascript="ViewClientProfileForm">
>                                          
>                      <include method="getTransactionAccessListAjax"/>
>                    </create>                  
>   </allow>
> </dwr>
>
> in web.xml, the dwr configure:
> <servlet>
>                                   <servlet-name>dwr-invoker</servlet-name>
>                                   <servlet-class>
>                                                    org.directwebremoting.servlet.DwrServlet
>                                   </servlet-class>
>                                   <init-param>
>                                                    <param-name>debug</param-name>
>                                                    <param-value>true</param-value>
>                                   </init-param>
>                                   <init-param>
>                                                    
> <param-name>crossDomainSessionSecurity</param-name>
>                                                    <param-value>true</param-value>
>                                   </init-param>
>                                   <load-on-startup>99</load-on-startup>
>                  </servlet>
>
> the struts config: <servlet>
>         <servlet-name>action</servlet-name>
>        
> <servlet-class>com.aviva.framework.struts.ExtendedActionServle
> t</servlet-class>
>         <init-param>
>             <param-name>application</param-name>
>             <param-value>/firiumconfig/IplanResources</param-value>
>         </init-param>
>         <init-param>
>             <param-name>config</param-name>
>             <param-value>                                  
>                                                                     /WEB-INF/struts-config-aa.xml,                
>                                                    
>                                                    </param-value>
>         </init-param>
>         <init-param>
>             <param-name>debug</param-name>
>             <param-value>3</param-value>
>         </init-param>
>         <init-param>
>             <param-name>detail</param-name>
>             <param-value>3</param-value>
>         </init-param>
>         <init-param>
>             <param-name>validate</param-name>
>             <param-value>true</param-value>
>         </init-param>
>         <load-on-startup>2</load-on-startup>
>     </servlet>
>
> The struts config:
> <form-bean name="viewClientProfileForm"
> type="com.form.ViewClientProfileForm"/>
>
>
> the error:
>  org.directwebremoting.impl.DwrXmlConfigurator loadCreate
> Failed to add
> creator: type=struts, javascript=ViewClientProfileForm
>                                  java.lang.IllegalArgumentException
>         at
> org.directwebremoting.struts.StrutsCreator.getType(StrutsCreat
> or.java:100)
>         at
> org.directwebremoting.extend.AbstractCreator.getJavascript(Abs
> tractCreator.java:45)
>         at
> org.directwebremoting.impl.DefaultCreatorManager.addCreator(De
> faultCreatorManager.java:87)
>         at
> org.directwebremoting.impl.DefaultCreatorManager.addCreator(De
> faultCreatorManager.java:78)
>         at
> org.directwebremoting.impl.DwrXmlConfigurator.loadCreate(DwrXm
> lConfigurator.java:269)
>         at
> org.directwebremoting.impl.DwrXmlConfigurator.loadAllows(DwrXm
> lConfigurator.java:219)
>         at
> org.directwebremoting.impl.DwrXmlConfigurator.configure(DwrXml
> Configurator.java:165)
>         at
> org.directwebremoting.impl.StartupUtil.configureFromDefaultDwr
> Xml(StartupUtil.java:612)
>         at
> org.directwebremoting.impl.StartupUtil.configureContainerFully
> (StartupUtil.java:726)
>         at
> org.directwebremoting.servlet.DwrServlet.configureContainer(Dw
> rServlet.java:109)
>         at
> org.directwebremoting.servlet.DwrServlet.init(DwrServlet.java:68)
>         at
> com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWra
> pper.java:329)
>         at
> com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.init(Servle
> tWrapperImpl.java:168)
>         at
> com.ibm.ws.webcontainer.servlet.ServletWrapper.loadOnStartupCh
> eck(ServletWrapper.java:1274)
>         at
> com.ibm.ws.webcontainer.webapp.WebApp.doLoadOnStartupActions(W
> ebApp.java:586)
>         at
> com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFina
> lly(WebApp.java:557)
>         at
> com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImp
> l.java:421)
>         at
> com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(
> WebGroupImpl.java:88)
>         at
> com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(Virt
> ualHostImpl.java:169)
>         at
> com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContaine
> r.java:748)
>         at
> com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWeb
> Container.java:633)
>         at
> com.ibm.ws.webcontainer.component.WebContainerImpl.install(Web
> ContainerImpl.java:422)
>         at
> com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebCo
> ntainerImpl.java:714)
>         at
> com.ibm.ws.runtime.component.ApplicationMgrImpl.start(Applicat
> ionMgrImpl.java:1134)
>         at
> com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeplo
> yedObjectStart(DeployedApplicationImpl.java:1369)
>         at
> com.ibm.ws.runtime.component.DeployedModuleImpl.start(Deployed
> ModuleImpl.java:638)
>         at
> com.ibm.ws.runtime.component.DeployedApplicationImpl.start(Dep
> loyedApplicationImpl.java:967)
>         at
> com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplicati
> on(ApplicationMgrImpl.java:730)
>         at
> com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplicati
> onDynamically(ApplicationMgrImpl.java:1328)
>         at
> com.ibm.ws.runtime.component.ApplicationMgrImpl.start(Applicat
> ionMgrImpl.java:2126)
>         at
> com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(Comp
> ositionUnitMgrImpl.java:445)
>         at
> com.ibm.ws.runtime.component.CompositionUnitImpl.start(Composi
> tionUnitImpl.java:123)
>         at
> com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(Comp
> ositionUnitMgrImpl.java:388)
>         at
> com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$500
(CompositionUnitMgrImpl.java:116)
>         at
> com.ibm.ws.runtime.component.CompositionUnitMgrImpl$1.run(Comp
> ositionUnitMgrImpl.java:663)
>         at
> com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManag
> erImpl.java:5367)
>         at
> com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(Contex
> tManagerImpl.java:5493)
>         at
> com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityC
> ontext.java:255)
>         at
> com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompo
> sitionUnit(CompositionUnitMgrImpl.java:677)
>         at
> com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompo
> sitionUnit(CompositionUnitMgrImpl.java:621)
>         at
> com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplicati
> on(ApplicationMgrImpl.java:1220)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> orImpl.java:60)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> odAccessorImpl.java:37)
>         at java.lang.reflect.Method.invoke(Method.java:611)
>         at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:49)
>         at
> sun.reflect.GeneratedMethodAccessor74.invoke(Unknown Source)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> odAccessorImpl.java:37)
>         at java.lang.reflect.Method.invoke(Method.java:611)
>         at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:256)
>         at
> javax.management.modelmbean.RequiredModelMBean.invokeMethod(Re
> quiredModelMBean.java:1085)
>         at
> javax.management.modelmbean.RequiredModelMBean.invoke(Required
> ModelMBean.java:966)
>         at
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(D
> efaultMBeanServerInterceptor.java:848)
>         at
> com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:773)
>         at
> com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.
> java:1334)
>         at
> com.ibm.ws.security.util.AccessController.doPrivileged(AccessC
> ontroller.java:118)
>         at
> com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl
> .java:1227)
>         at
> com.ibm.ws.management.connector.AdminServiceDelegator.invoke(A
> dminServiceDelegator.java:181)
>         at
> com.ibm.ws.management.connector.ipc.CallRouter.route(CallRoute
> r.java:247)
>         at
> com.ibm.ws.management.connector.ipc.IPCConnectorInboundLink.do
> Work(IPCConnectorInboundLink.java:353)
>         at
> com.ibm.ws.management.connector.ipc.IPCConnectorInboundLink$IP
CConnectorReadCallback.complete(IPCConnectorInboundLink.java:595)
>         at
> com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompl
etedCallback.complete(SSLReadServiceContext.java:1784)
>         at
> com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCo
> mpleted(AioReadCompletionListener.java:165)
>         at
> com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAs
> yncFuture.java:217)
>         at
> com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(Asyn
> cChannelFuture.java:161)
>         at
> com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
>         at
> com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
>         at
> com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHa
> ndler.java:775)
>         at
> com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
>         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1648)
>
> --
> View this message in context:
>
http://dwr.2114559.n2.nabble.com/failed-to-add-struts-creator-
> error-when-upgrading-from-DWR-v2-to-v3-tp7182483p7182483.html
> Sent from the DWR - Users mailing list archive at Nabble.com.



End of digest for list [hidden email] - Mon, 16 Jan 2012


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Digest for list users@dwr.java.net

Mike Wilson
Administrator
where several options for subscribing/unsubscribing are mentioned.
 
Best regards
Mike Wilson
 
What is the process to unsubscribe from this mailing list?




On Mon, Jan 16, 2012 at 12:31 AM, <[hidden email]> wrote:
Table of contents:

1. [dwr-users] Re: Simple Demo for DWR. Error Class Undefined - vishal <[hidden email]>
2. [dwr-users] Re: failed to add struts creator error when upgrading from DWR v2 to v3 - Yabing Chen <[hidden email]>



---------- Forwarded message ----------
From: vishal <[hidden email]>
To: [hidden email]
Cc: 
Date: Sat, 14 Jan 2012 21:29:52 -0800 (PST)
Subject: [dwr-users] Re: Simple Demo for DWR. Error Class Undefined
Hi David,

Thanks for your quick reply.

I guess Demo.js is the file that is been created automatically. when we have written something like this in dwr.xml



<dwr>
  <allow>
    <create creator="new" javascript="JDate">
      <param name="class" value="java.util.Date"/>
    </create>
    <create creator="new" javascript="Demo">
      <param name="class" value="com.atos.dwr.TestDWR"/>
      <include method="getDWR" />
    </create>
  </allow>
</dwr>


Well thanks though I have tried after TestDWR.js and it worked.

thanks a lot for giving the solution.

looking forward to same help from you.


regards,
vishal






On 14 January 2012 18:45, [hidden email] [via DWR] <[hidden email]> wrote:
<script type='text/javascript'
src='/TestDWR/dwr/interface/Demo.js'></script>

Should be:

<script type='text/javascript'
src='/TestDWR/dwr/interface/TestDWR.js'></script>

assuming the rest of your configuration is correct.

We have a good troubleshooting page that you should look at for further
issues:
http://directwebremoting.org/dwr/support/common_problems.html

On 01/14/2012 12:56 AM, vishal wrote:

> I am new to DWR.
>
> want to user it in simpe JSP-Servlet example.
> I am using it as pwe The quick start for DWR.
>
> My jsp pages script is:
>
>
>
>
>
>
>
> I am calling the test function like this:
> <input type="button" value="submit" onclick="test()"/>
>
> Java class is:
> package com.atos.dwr;
>
> public class TestDWR {
>
>
> public String getDWR(int data){
>
> String d=data+" from class";
> System.out.println("---in class----");
> return d;
> }
>
> }
>
>
> everything worked fine for the DWR test page as per the instructions on
> quick start to dwr.
> But when running the jsp.
> it isa saying TestDWR class is underfined and nothing happening.
>
> Please help me to solve this simple issue.
> I am using everything in eclipse.
>
> --
> View this message in context: http://dwr.2114559.n2.nabble.com/Simple-Demo-for-DWR-Error-Class-Undefined-tp7186986p7186986.html
> Sent from the DWR - Users mailing list archive at Nabble.com.
>



If you reply to this email, your message will be added to the discussion below:
http://dwr.2114559.n2.nabble.com/Simple-Demo-for-DWR-Error-Class-Undefined-tp7186986p7187547.html
To unsubscribe from Simple Demo for DWR. Error Class Undefined, click here.
NAML



View this message in context: Re: Simple Demo for DWR. Error Class Undefined
Sent from the DWR - Users mailing list archive at Nabble.com.


---------- Forwarded message ----------
From: Yabing Chen <[hidden email]>
To: [hidden email]
Cc: 
Date: Mon, 16 Jan 2012 09:39:19 +0800
Subject: [dwr-users] Re: failed to add struts creator error when upgrading from DWR v2 to v3
Hi Mike,

Thanks. I have deployed using the latest jar file. attached please find the error log file. looks like it is the same error as before. but now there is a bit more information that shows it is caused by a nullpointexception from StrutsCreator.getType (line 93).



The sample dwr.xml is:

<!DOCTYPE dwr PUBLIC
    "-//GetAhead Limited//DTD Direct Web Remoting 3.0//EN"
    "http://getahead.org/dwr/dwr30.dtd">

<dwr>
  <allow>
          <create creator="struts" javascript="PortfolioBuilderForm">
            <param name="formBean" value="portfolioBuilderForm"/>
            <include method="formatAndCalculateTmpPercentage"/>
            <include method="getStrTmpTotalMix"/>
            <include method="getSubTotalOfTmpTargetMix"/>
            <include method="formatPercentage"/>
          </create>
          <create creator="struts" javascript="PortfolioRebalancerForm">
            <param name="formBean" value="portfolioRebalancerForm"/>
            <include method="setAndFormatSwitchAmount"/>            
          </create>
   </allow>
...
</dwr>

and the dwr config in web.xml:

<servlet>
                <servlet-name>dwr-invoker</servlet-name>
                <servlet-class>
                        org.directwebremoting.servlet.DwrServlet
                </servlet-class>
                <init-param>
                        <param-name>debug</param-name>
                        <param-value>true</param-value>
                </init-param>
                <init-param>
                        <param-name>crossDomainSessionSecurity</param-name>
                        <param-value>true</param-value>
                </init-param>
                <load-on-startup>99</load-on-startup>
</servlet>


"Mike Wilson" <[hidden email]>

01/13/2012 08:18 PM

Please respond to
[hidden email]

To
<[hidden email]>
cc
Subject
[dwr-users] Re: failed to add struts creator error when upgrading from DWR v2 to v3





I see. I've improved the logging in StrutsCreator; download and run with the updated dwr.jar from here:
http://directwebremoting.org/bamboo/browse/DWRTRUNK-ALL-382/artifact
and tell us what you get in the exception stacktrace.
 
Best regards
Mike
 
Yabing Chen wrote:
Hi Mike,

Thanks for the suggestion. However this error was caught when WebSphere was deploying the application. So I am not sure how to set the Websphere deployment into debug mode. Normally we debug the application only after the deployment is completed. pls advise if you have any idea on this. we are using eclipse as the IDE.


Btw, an example of the full stack trace of the error is:


00000028 startup       E org.directwebremoting.impl.DwrXmlConfigurator loadCreate Failed to add creator: type=struts, javascript=PortfolioBuilderForm

     java.lang.IllegalArgumentException

       at org.directwebremoting.struts.StrutsCreator.getType(StrutsCreator.java:100)

       at org.directwebremoting.extend.AbstractCreator.getJavascript(AbstractCreator.java:45)

       at org.directwebremoting.impl.DefaultCreatorManager.addCreator(DefaultCreatorManager.java:87)

       at org.directwebremoting.impl.DefaultCreatorManager.addCreator(DefaultCreatorManager.java:78)

       at org.directwebremoting.impl.DwrXmlConfigurator.loadCreate(DwrXmlConfigurator.java:269)

       at org.directwebremoting.impl.DwrXmlConfigurator.loadAllows(DwrXmlConfigurator.java:219)

       at org.directwebremoting.impl.DwrXmlConfigurator.configure(DwrXmlConfigurator.java:165)

       at org.directwebremoting.impl.StartupUtil.configureFromDefaultDwrXml(StartupUtil.java:612)

       at org.directwebremoting.impl.StartupUtil.configureContainerFully(StartupUtil.java:726)

       at org.directwebremoting.servlet.DwrServlet.configureContainer(DwrServlet.java:109)

       at org.directwebremoting.servlet.DwrServlet.init(DwrServlet.java:68)

       at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:329)

       at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.init(ServletWrapperImpl.java:168)

       at com.ibm.ws.webcontainer.servlet.ServletWrapper.loadOnStartupCheck(ServletWrapper.java:1274)

       at com.ibm.ws.webcontainer.webapp.WebApp.doLoadOnStartupActions(WebApp.java:586)

       at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinally(WebApp.java:557)

       at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:421)

       at com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:88)

       at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:169)

       at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:748)

       at com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:633)

       at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:422)

       at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:714)

       at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1134)

       at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1369)

       at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:638)

       at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:967)

       at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:730)

       at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplicationDynamically(ApplicationMgrImpl.java:1328)

       at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2126)

       at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:445)

       at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)

       at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:388)

       at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$500(CompositionUnitMgrImpl.java:116)

       at com.ibm.ws.runtime.component.CompositionUnitMgrImpl$1.run(CompositionUnitMgrImpl.java:663)

       at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:5367)

       at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:5493)

       at com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:255)

       at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:677)

       at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:621)

       at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1220)

       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)

       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)

       at java.lang.reflect.Method.invoke(Method.java:611)

       at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:49)

       at sun.reflect.GeneratedMethodAccessor92.invoke(Unknown Source)

       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)

       at java.lang.reflect.Method.invoke(Method.java:611)

       at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:256)

       at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1085)

       at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:966)

       at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:848)

       at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:773)

       at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1334)

       at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)

       at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:1227)

       at com.ibm.ws.management.connector.AdminServiceDelegator.invoke(AdminServiceDelegator.java:181)

       at com.ibm.ws.management.connector.ipc.CallRouter.route(CallRouter.java:247)

       at com.ibm.ws.management.connector.ipc.IPCConnectorInboundLink.doWork(IPCConnectorInboundLink.java:353)

       at com.ibm.ws.management.connector.ipc.IPCConnectorInboundLink$IPCConnectorReadCallback.complete(IPCConnectorInboundLink.java:595)

       at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1784)

       at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)

       at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)

       at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)

       at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)

       at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)

       at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)

       at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)

       at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1648)


And the reason why we tried to upgrade to DWR v3 is because the WebSphere v8 gave a session error pop up when the application using DWR v2, which is related to the CSRF prevention in dwr configuration below. I searched the forum and understand the fix is in DWR v3.
<param-name>crossDomainSessionSecurity</param-name>
<param-value>true</param-value>


Or probably you can suggest any other way to fix this pop up session error?


Thanks



"Mike Wilson" <[hidden email]>

01/13/2012 06:11 PM

Please respond to
[hidden email]


To
<[hidden email]>
cc
Subject
[dwr-users] Re: failed to add struts creator error when upgrading from DWR v2 to v3







Hi cyb,

It'd be great if you can aid us in debugging this. Download and set up
the source code if you haven't got it already, and put a breakpoint at
org.directwebremoting.struts.StrutsCreator.java:100
and then tell us what exception (variable "ex") is caught here?

Best regards
Mike Wilson

cyb wrote:

> We are upgrading DWR v2 to v3 for our application that is deployed in
> websphere v8. before upgrading all struts creator are working
> fine. after
> upgrading the DWR jar file, when deploying the application we got the
> "failed to add struts creator error" and all struts creator
> are not able to
> be created. The DWT test page also return a blank page, that means no
> creator at all.
>
> For this upgrade, we didn't change anything else except the
> dwr.jar upgrade.
>
> Please help to look at what went wrong. thanks.
>
> The dwr.xml is as below:
> <!DOCTYPE dwr PUBLIC
>     &quot;-//GetAhead Limited//DTD Direct Web Remoting 3.0//EN&quot;
>     &quot;
http://getahead.org/dwr/dwr30.dtd&quot;>
>
> <dwr>
>   <allow>                
>                      <convert converter="bean"
> match="com.form.ViewClientProfileForm"/>
>                    <create creator="struts" javascript="ViewClientProfileForm">
>                                          
>                      <include method="getTransactionAccessListAjax"/>
>                    </create>                  
>   </allow>
> </dwr>
>
> in web.xml, the dwr configure:
> <servlet>
>                                   <servlet-name>dwr-invoker</servlet-name>
>                                   <servlet-class>
>                                                    org.directwebremoting.servlet.DwrServlet
>                                   </servlet-class>
>                                   <init-param>
>                                                    <param-name>debug</param-name>
>                                                    <param-value>true</param-value>
>                                   </init-param>
>                                   <init-param>
>                                                    
> <param-name>crossDomainSessionSecurity</param-name>
>                                                    <param-value>true</param-value>
>                                   </init-param>
>                                   <load-on-startup>99</load-on-startup>
>                  </servlet>
>
> the struts config: <servlet>
>         <servlet-name>action</servlet-name>
>        
> <servlet-class>com.aviva.framework.struts.ExtendedActionServle
> t</servlet-class>
>         <init-param>
>             <param-name>application</param-name>
>             <param-value>/firiumconfig/IplanResources</param-value>
>         </init-param>
>         <init-param>
>             <param-name>config</param-name>
>             <param-value>                                  
>                                                                     /WEB-INF/struts-config-aa.xml,                
>                                                    
>                                                    </param-value>
>         </init-param>
>         <init-param>
>             <param-name>debug</param-name>
>             <param-value>3</param-value>
>         </init-param>
>         <init-param>
>             <param-name>detail</param-name>
>             <param-value>3</param-value>
>         </init-param>
>         <init-param>
>             <param-name>validate</param-name>
>             <param-value>true</param-value>
>         </init-param>
>         <load-on-startup>2</load-on-startup>
>     </servlet>
>
> The struts config:
> <form-bean name="viewClientProfileForm"
> type="com.form.ViewClientProfileForm"/>
>
>
> the error:
>  org.directwebremoting.impl.DwrXmlConfigurator loadCreate
> Failed to add
> creator: type=struts, javascript=ViewClientProfileForm
>                                  java.lang.IllegalArgumentException
>         at
> org.directwebremoting.struts.StrutsCreator.getType(StrutsCreat
> or.java:100)
>         at
> org.directwebremoting.extend.AbstractCreator.getJavascript(Abs
> tractCreator.java:45)
>         at
> org.directwebremoting.impl.DefaultCreatorManager.addCreator(De
> faultCreatorManager.java:87)
>         at
> org.directwebremoting.impl.DefaultCreatorManager.addCreator(De
> faultCreatorManager.java:78)
>         at
> org.directwebremoting.impl.DwrXmlConfigurator.loadCreate(DwrXm
> lConfigurator.java:269)
>         at
> org.directwebremoting.impl.DwrXmlConfigurator.loadAllows(DwrXm
> lConfigurator.java:219)
>         at
> org.directwebremoting.impl.DwrXmlConfigurator.configure(DwrXml
> Configurator.java:165)
>         at
> org.directwebremoting.impl.StartupUtil.configureFromDefaultDwr
> Xml(StartupUtil.java:612)
>         at
> org.directwebremoting.impl.StartupUtil.configureContainerFully
> (StartupUtil.java:726)
>         at
> org.directwebremoting.servlet.DwrServlet.configureContainer(Dw
> rServlet.java:109)
>         at
> org.directwebremoting.servlet.DwrServlet.init(DwrServlet.java:68)
>         at
> com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWra
> pper.java:329)
>         at
> com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.init(Servle
> tWrapperImpl.java:168)
>         at
> com.ibm.ws.webcontainer.servlet.ServletWrapper.loadOnStartupCh
> eck(ServletWrapper.java:1274)
>         at
> com.ibm.ws.webcontainer.webapp.WebApp.doLoadOnStartupActions(W
> ebApp.java:586)
>         at
> com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFina
> lly(WebApp.java:557)
>         at
> com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImp
> l.java:421)
>         at
> com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(
> WebGroupImpl.java:88)
>         at
> com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(Virt
> ualHostImpl.java:169)
>         at
> com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContaine
> r.java:748)
>         at
> com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWeb
> Container.java:633)
>         at
> com.ibm.ws.webcontainer.component.WebContainerImpl.install(Web
> ContainerImpl.java:422)
>         at
> com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebCo
> ntainerImpl.java:714)
>         at
> com.ibm.ws.runtime.component.ApplicationMgrImpl.start(Applicat
> ionMgrImpl.java:1134)
>         at
> com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeplo
> yedObjectStart(DeployedApplicationImpl.java:1369)
>         at
> com.ibm.ws.runtime.component.DeployedModuleImpl.start(Deployed
> ModuleImpl.java:638)
>         at
> com.ibm.ws.runtime.component.DeployedApplicationImpl.start(Dep
> loyedApplicationImpl.java:967)
>         at
> com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplicati
> on(ApplicationMgrImpl.java:730)
>         at
> com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplicati
> onDynamically(ApplicationMgrImpl.java:1328)
>         at
> com.ibm.ws.runtime.component.ApplicationMgrImpl.start(Applicat
> ionMgrImpl.java:2126)
>         at
> com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(Comp
> ositionUnitMgrImpl.java:445)
>         at
> com.ibm.ws.runtime.component.CompositionUnitImpl.start(Composi
> tionUnitImpl.java:123)
>         at
> com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(Comp
> ositionUnitMgrImpl.java:388)
>         at
> com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$500
(CompositionUnitMgrImpl.java:116)

>         at
> com.ibm.ws.runtime.component.CompositionUnitMgrImpl$1.run(Comp
> ositionUnitMgrImpl.java:663)
>         at
> com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManag
> erImpl.java:5367)
>         at
> com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(Contex
> tManagerImpl.java:5493)
>         at
> com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityC
> ontext.java:255)
>         at
> com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompo
> sitionUnit(CompositionUnitMgrImpl.java:677)
>         at
> com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompo
> sitionUnit(CompositionUnitMgrImpl.java:621)
>         at
> com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplicati
> on(ApplicationMgrImpl.java:1220)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> orImpl.java:60)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> odAccessorImpl.java:37)
>         at java.lang.reflect.Method.invoke(Method.java:611)
>         at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:49)
>         at
> sun.reflect.GeneratedMethodAccessor74.invoke(Unknown Source)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> odAccessorImpl.java:37)
>         at java.lang.reflect.Method.invoke(Method.java:611)
>         at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:256)
>         at
> javax.management.modelmbean.RequiredModelMBean.invokeMethod(Re
> quiredModelMBean.java:1085)
>         at
> javax.management.modelmbean.RequiredModelMBean.invoke(Required
> ModelMBean.java:966)
>         at
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(D
> efaultMBeanServerInterceptor.java:848)
>         at
> com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:773)
>         at
> com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.
> java:1334)
>         at
> com.ibm.ws.security.util.AccessController.doPrivileged(AccessC
> ontroller.java:118)
>         at
> com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl
> .java:1227)
>         at
> com.ibm.ws.management.connector.AdminServiceDelegator.invoke(A
> dminServiceDelegator.java:181)
>         at
> com.ibm.ws.management.connector.ipc.CallRouter.route(CallRoute
> r.java:247)
>         at
> com.ibm.ws.management.connector.ipc.IPCConnectorInboundLink.do
> Work(IPCConnectorInboundLink.java:353)
>         at
> com.ibm.ws.management.connector.ipc.IPCConnectorInboundLink$IP
CConnectorReadCallback.complete(IPCConnectorInboundLink.java:595)
>         at
> com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompl
etedCallback.complete(SSLReadServiceContext.java:1784)

>         at
> com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCo
> mpleted(AioReadCompletionListener.java:165)
>         at
> com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAs
> yncFuture.java:217)
>         at
> com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(Asyn
> cChannelFuture.java:161)
>         at
> com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
>         at
> com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
>         at
> com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHa
> ndler.java:775)
>         at
> com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
>         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1648)
>
> --
> View this message in context:
>
http://dwr.2114559.n2.nabble.com/failed-to-add-struts-creator-
> error-when-upgrading-from-DWR-v2-to-v3-tp7182483p7182483.html
> Sent from the DWR - Users mailing list archive at Nabble.com.



End of digest for list [hidden email] - Mon, 16 Jan 2012


Loading...