Hi Jose,
Wow, This is great. Thanks you so much. We will wait to hear from you.
Judy
Jose Noheda wrote:
> IWebMvc uses Spring 2.5.5 & Spring Security 2 and deploys fine to
> Glassfish v2. I'm right now coding some extensions to Spring Security
> (for WebSphere) so during the day I'll try to modify a little this
> project and deploy it to Glassfish. I'll let you know
>
> On Thu, Aug 7, 2008 at 7:48 AM, Judy Tang <Judy.J.Tang_at_sun.com
> <mailto:Judy.J.Tang_at_sun.com>> wrote:
>
> Thanks Edson. Your reply is very helpful. I post it back to the
> community.
>
> "Probably this results from some kind of difference from Tomcat
> and Glassfish classloaders", looks like some thing
> we should look into further. I have logged the following bug to
> keep track on this issue.
>
> User used SpringSide3 sample mini-web . It may be found under
> SpringSide3:www.springside.org.cn/ <http://www.springside.org.cn/>
>
> https://glassfish.dev.java.net/issues/show_bug.cgi?id=5441
>
> Thanks,
> Judy
>
> Edson Richter wrote:
>
>> This change in web.xml looks reasonable...
>>
>> Also, there is additional information "from the source":
>>
>> http://static.springframework.org/spring-security/site/reference/html/ns-config.html
>>
>> Since the error comes from the "loadWebModule", appears for me
>> the problem reported here:
>>
>> http://forum.springframework.org/showthread.php?t=53972
>>
>> Probably this results from some kind of difference from Tomcat
>> and Glassfish classloaders, but I'm not able to speak about it
>> (needs further investigation).
>>
>>
>> Kind regards,
>>
>> Edson.
>>
>>
>>
>> > Date: Wed, 6 Aug 2008 13:05:32 -0700
>> > From: Judy.J.Tang_at_Sun.COM <mailto:Judy.J.Tang_at_Sun.COM>
>> > To: quality_at_glassfish.dev.java.net
>> <mailto:quality_at_glassfish.dev.java.net>
>> > Subject: glassfishV2 can't deploy Spring2.5.5 app using Eclipse
>> 3.4, the same app works fine in Tomcat5.5 (translation)
>> >
>> > Hi All,
>> >
>> > I am translating this community post. It is about glassfishV2
>> can't
>> > deploy Spring2.5.5 app using Eclipse 3.4,
>> > but the same app works fine in Tomcat5.5. Here is the stack
>> trace user
>> > got. One community member suggested
>> > to add the following into web.xml. Would like to ask if this
>> suggestion
>> > would work. Also would like to know
>> > is we should file a bug to fix this so GlassFish can support apps
>> > running with Tomcat without any change ?
>> >
>> > web.xml
>> > <filter>
>> > <filter-name>springSecurityFilterChain</filter-name>
>> >
>> <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
>>
>> >
>> > </filter>
>> >
>> > Stack trace:
>> >
>> >
>> [#|2008-08-01T21:37:51.109+0800|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=18;_ThreadName=httpWorkerThread-4848-1;_RequestID=bd397043-f526-4fb5-b357-c3fc26358e77;|WebModule[/mini-web]PWC1270:
>>
>> > Exception starting filter springSecurityFilterChain
>> >
>> org.springframework.beans.factory.NoSuchBeanDefinitionException:
>> No bean
>> > named 'springSecurityFilterChain' is defined
>> > at
>> >
>> org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:387)
>>
>> >
>> > at
>> >
>> org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:968)
>>
>> >
>> > at
>> >
>> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:246)
>>
>> >
>> > at
>> >
>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
>>
>> >
>> > at
>> >
>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:168)
>>
>> >
>> > at
>> >
>> org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:885)
>>
>> >
>> > at
>> >
>> org.springframework.web.filter.DelegatingFilterProxy.initDelegate(DelegatingFilterProxy.java:216)
>>
>> >
>> > at
>> >
>> org.springframework.web.filter.DelegatingFilterProxy.initFilterBean(DelegatingFilterProxy.java:145)
>>
>> >
>> > at
>> >
>> org.springframework.web.filter.GenericFilterBean.init(GenericFilterBean.java:179)
>>
>> >
>> > at
>> >
>> org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:257)
>>
>> >
>> > at
>> >
>> org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:369)
>>
>> >
>> > at
>> >
>> org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:103)
>>
>> >
>> > at
>> >
>> org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4389)
>>
>> >
>> > at
>> >
>> org.apache.catalina.core.StandardContext.start(StandardContext.java:5189)
>> > at com.sun.enterprise.web.WebModule.start(WebModule.java:326)
>> > at
>> >
>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:973)
>>
>> >
>> > at
>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:957)
>> > at
>> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:688)
>> > at
>> >
>> com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1584)
>> > at
>> >
>> com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1222)
>> > at
>> >
>> com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:182)
>>
>> >
>> > at
>> >
>> com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:278)
>>
>> >
>> > at
>> >
>> com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:974)
>>
>> >
>> > at
>> >
>> com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:961)
>>
>> >
>> > at
>> >
>> com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:464)
>>
>> >
>> > at
>> >
>> com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:176)
>>
>> >
>> > at
>> >
>> com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:308)
>>
>> >
>> > at
>> >
>> com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:226)
>>
>> >
>> > at
>> >
>> com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:298)
>>
>> >
>> > at
>> >
>> com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(ApplicationStartPhase.java:132)
>>
>> >
>> > at
>> >
>> com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
>>
>> >
>> > at
>> >
>> com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919)
>>
>> >
>> > at
>> >
>> com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:591)
>>
>> >
>> > at
>> >
>> com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:635)
>>
>> >
>> > at
>> >
>> com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:744)
>>
>> >
>> > 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
>> >
>> com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:375)
>>
>> >
>> > at
>> >
>> com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:358)
>>
>> >
>> > at
>> >
>> com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:464)
>>
>> >
>> > at
>> >
>> com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
>>
>> >
>> > at
>> com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
>> > at
>> >
>> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
>>
>> >
>> > at
>> com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
>> > 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
>> >
>> com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:90)
>> > at $Proxy1.invoke(Unknown Source)
>> > at
>> >
>> com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:304)
>>
>> >
>> > at
>> >
>> com.sun.enterprise.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:174)
>>
>> >
>> > at
>> >
>> com.sun.enterprise.admin.jmx.remote.server.callers.InvokeCaller.call(InvokeCaller.java:69)
>>
>> >
>> > at
>> >
>> com.sun.enterprise.admin.jmx.remote.server.MBeanServerRequestHandler.handle(MBeanServerRequestHandler.java:155)
>>
>> >
>> > at
>> >
>> com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.processRequest(RemoteJmxConnectorServlet.java:122)
>>
>> >
>> > at
>> >
>> com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.doPost(RemoteJmxConnectorServlet.java:193)
>>
>> >
>> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
>> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
>> > at
>> >
>> org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
>>
>> >
>> > at
>> >
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:290)
>>
>> >
>> > at
>> >
>> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
>>
>> >
>> > at
>> >
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
>>
>> >
>> > at
>> >
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
>>
>> >
>> > at
>> >
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
>>
>> >
>> > at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
>> > at
>> >
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
>>
>> >
>> > at
>> >
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
>>
>> >
>> > at
>> >
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
>>
>> >
>> > at
>> >
>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
>> > at
>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
>> > at
>> >
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
>>
>> >
>> > at
>> >
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
>>
>> >
>> > at
>> >
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
>>
>> >
>> > at
>> >
>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
>> > at
>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
>> > at
>> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)
>> > at
>> >
>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
>>
>> >
>> > at
>> >
>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
>>
>> >
>> > at
>> >
>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
>>
>> >
>> > at
>> >
>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
>>
>> >
>> > at
>> >
>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
>>
>> >
>> > at
>> >
>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
>>
>> >
>> > at
>> com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
>> > at
>> >
>> com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:116)
>>
>> >
>> > |#]
>> >
>> >
>> >
>> ---------------------------------------------------------------------
>> > To unsubscribe, e-mail:
>> quality-unsubscribe_at_glassfish.dev.java.net
>> <mailto:quality-unsubscribe_at_glassfish.dev.java.net>
>> > For additional commands, e-mail:
>> quality-help_at_glassfish.dev.java.net
>> <mailto:quality-help_at_glassfish.dev.java.net>
>> >
>>
>> ------------------------------------------------------------------------
>> Instale a Barra de Ferramentas com Desktop Search e ganhe
>> EMOTICONS para o Messenger! É GRÁTIS!
>> <http://www.msn.com.br/emoticonpack>
>
>
>