Announcement Announcement Module
Collapse
No announcement yet.
spring integration problem with struts2 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • spring integration problem with struts2

    Sep 14, 2010 10:46:16 AM org.apache.catalina.core.AprLifecycleListener init
    INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre1.6.0_05\bin;.;C:\WINDOWS\Sun\Java\b in;C:\WINDOWS\system32;C:\WINDOWS;C:/Program Files/Java/jdk1.6.0_05/bin/../jre/bin/client;C:/Program Files/Java/jdk1.6.0_05/bin/../jre/bin;C:/Program Files/Java/jdk1.6.0_05/bin/../jre/lib/i386;D:\ant-1.7.0\bin;C:\Program Files\Java\jdk1.6.0_05\bin
    Sep 14, 2010 10:46:19 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
    WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:Struts2Example' did not find a matching property.
    Sep 14, 2010 10:46:21 AM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 6552 ms
    Sep 14, 2010 10:46:21 AM org.apache.catalina.core.StandardService startInternal
    INFO: Starting service Catalina
    Sep 14, 2010 10:46:21 AM org.apache.catalina.core.StandardEngine startInternal
    INFO: Starting Servlet Engine: Apache Tomcat/7.0.0
    Sep 14, 2010 10:46:31 AM org.apache.catalina.core.ApplicationContext log
    INFO: Initializing Spring root WebApplicationContext
    log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
    log4j:WARN Please initialize the log4j system properly.
    Sep 14, 2010 10:46:39 AM org.apache.catalina.core.StandardContext filterStart
    SEVERE: Exception starting filter struts2
    Class: org.apache.struts2.osgi.OsgiConfigurationProvider
    File: OsgiConfigurationProvider.java
    Method: init
    Line: 70 - org/apache/struts2/osgi/OsgiConfigurationProvider.java:70:-1
    at org.apache.struts2.dispatcher.Dispatcher.init(Disp atcher.java:431)
    at org.apache.struts2.dispatcher.ng.InitOperations.in itDispatcher(InitOperations.java:69)
    at org.apache.struts2.dispatcher.ng.filter.StrutsPrep areAndExecuteFilter.init(StrutsPrepareAndExecuteFi lter.java:51)
    at org.apache.catalina.core.ApplicationFilterConfig.i nitFilter(ApplicationFilterConfig.java:269)
    at org.apache.catalina.core.ApplicationFilterConfig.g etFilter(ApplicationFilterConfig.java:250)
    at org.apache.catalina.core.ApplicationFilterConfig.s etFilterDef(ApplicationFilterConfig.java:368)
    at org.apache.catalina.core.ApplicationFilterConfig.< init>(ApplicationFilterConfig.java:98)
    at org.apache.catalina.core.StandardContext.filterSta rt(StandardContext.java:4193)
    at org.apache.catalina.core.StandardContext.startInte rnal(StandardContext.java:4792)
    at org.apache.catalina.util.LifecycleBase.start(Lifec ycleBase.java:138)
    at org.apache.catalina.core.ContainerBase.startIntern al(ContainerBase.java:990)
    at org.apache.catalina.core.StandardHost.startInterna l(StandardHost.java:772)
    at org.apache.catalina.util.LifecycleBase.start(Lifec ycleBase.java:138)
    at org.apache.catalina.core.ContainerBase.startIntern al(ContainerBase.java:990)
    at org.apache.catalina.core.StandardEngine.startInter nal(StandardEngine.java:275)
    at org.apache.catalina.util.LifecycleBase.start(Lifec ycleBase.java:138)
    at org.apache.catalina.core.StandardService.startInte rnal(StandardService.java:424)
    at org.apache.catalina.util.LifecycleBase.start(Lifec ycleBase.java:138)
    at org.apache.catalina.core.StandardServer.startInter nal(StandardServer.java:648)
    at org.apache.catalina.util.LifecycleBase.start(Lifec ycleBase.java:138)
    at org.apache.catalina.startup.Catalina.start(Catalin a.java:576)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:288)
    at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:415)
    Caused by: java.lang.NullPointerException
    at org.apache.struts2.osgi.OsgiConfigurationProvider. init(OsgiConfigurationProvider.java:70)
    at com.opensymphony.xwork2.config.impl.DefaultConfigu ration.reloadContainer(DefaultConfiguration.java:2 03)
    at com.opensymphony.xwork2.config.ConfigurationManage r.getConfiguration(ConfigurationManager.java:55)
    at org.apache.struts2.dispatcher.Dispatcher.init_Prel oadConfiguration(Dispatcher.java:374)
    at org.apache.struts2.dispatcher.Dispatcher.init(Disp atcher.java:418)
    ... 26 more
    Sep 14, 2010 10:46:39 AM org.apache.catalina.core.StandardContext startInternal
    SEVERE: Error filterStart
    Sep 14, 2010 10:46:39 AM org.apache.catalina.core.StandardContext startInternal
    SEVERE: Context [/Struts2Example] startup failed due to previous errors
    Sep 14, 2010 10:46:39 AM org.apache.catalina.core.ApplicationContext log
    INFO: Closing Spring root WebApplicationContext
    Sep 14, 2010 10:46:39 AM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
    SEVERE: The web application [/Struts2Example] registered the JBDC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
    Sep 14, 2010 10:46:39 AM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
    SEVERE: The web application [/Struts2Example] created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@13 9d115]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@cdba53]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
    Sep 14, 2010 10:46:39 AM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
    SEVERE: The web application [/Struts2Example] created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@83 de21]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@16c75ed]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.

  • #2
    I have the same question, help me! thanks!!

    me too! please expert give the answer! thanks!


    Originally posted by rajivjackz View Post
    Sep 14, 2010 10:46:16 AM org.apache.catalina.core.AprLifecycleListener init
    INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre1.6.0_05\bin;.;C:\WINDOWS\Sun\Java\b in;C:\WINDOWS\system32;C:\WINDOWS;C:/Program Files/Java/jdk1.6.0_05/bin/../jre/bin/client;C:/Program Files/Java/jdk1.6.0_05/bin/../jre/bin;C:/Program Files/Java/jdk1.6.0_05/bin/../jre/lib/i386;D:\ant-1.7.0\bin;C:\Program Files\Java\jdk1.6.0_05\bin
    Sep 14, 2010 10:46:19 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
    WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:Struts2Example' did not find a matching property.
    Sep 14, 2010 10:46:21 AM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 6552 ms
    Sep 14, 2010 10:46:21 AM org.apache.catalina.core.StandardService startInternal
    INFO: Starting service Catalina
    Sep 14, 2010 10:46:21 AM org.apache.catalina.core.StandardEngine startInternal
    INFO: Starting Servlet Engine: Apache Tomcat/7.0.0
    Sep 14, 2010 10:46:31 AM org.apache.catalina.core.ApplicationContext log
    INFO: Initializing Spring root WebApplicationContext
    log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
    log4j:WARN Please initialize the log4j system properly.
    Sep 14, 2010 10:46:39 AM org.apache.catalina.core.StandardContext filterStart
    SEVERE: Exception starting filter struts2
    Class: org.apache.struts2.osgi.OsgiConfigurationProvider
    File: OsgiConfigurationProvider.java
    Method: init
    Line: 70 - org/apache/struts2/osgi/OsgiConfigurationProvider.java:70:-1
    at org.apache.struts2.dispatcher.Dispatcher.init(Disp atcher.java:431)
    at org.apache.struts2.dispatcher.ng.InitOperations.in itDispatcher(InitOperations.java:69)
    at org.apache.struts2.dispatcher.ng.filter.StrutsPrep areAndExecuteFilter.init(StrutsPrepareAndExecuteFi lter.java:51)
    at org.apache.catalina.core.ApplicationFilterConfig.i nitFilter(ApplicationFilterConfig.java:269)
    at org.apache.catalina.core.ApplicationFilterConfig.g etFilter(ApplicationFilterConfig.java:250)
    at org.apache.catalina.core.ApplicationFilterConfig.s etFilterDef(ApplicationFilterConfig.java:368)
    at org.apache.catalina.core.ApplicationFilterConfig.< init>(ApplicationFilterConfig.java:98)
    at org.apache.catalina.core.StandardContext.filterSta rt(StandardContext.java:4193)
    at org.apache.catalina.core.StandardContext.startInte rnal(StandardContext.java:4792)
    at org.apache.catalina.util.LifecycleBase.start(Lifec ycleBase.java:138)
    at org.apache.catalina.core.ContainerBase.startIntern al(ContainerBase.java:990)
    at org.apache.catalina.core.StandardHost.startInterna l(StandardHost.java:772)
    at org.apache.catalina.util.LifecycleBase.start(Lifec ycleBase.java:138)
    at org.apache.catalina.core.ContainerBase.startIntern al(ContainerBase.java:990)
    at org.apache.catalina.core.StandardEngine.startInter nal(StandardEngine.java:275)
    at org.apache.catalina.util.LifecycleBase.start(Lifec ycleBase.java:138)
    at org.apache.catalina.core.StandardService.startInte rnal(StandardService.java:424)
    at org.apache.catalina.util.LifecycleBase.start(Lifec ycleBase.java:138)
    at org.apache.catalina.core.StandardServer.startInter nal(StandardServer.java:648)
    at org.apache.catalina.util.LifecycleBase.start(Lifec ycleBase.java:138)
    at org.apache.catalina.startup.Catalina.start(Catalin a.java:576)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:288)
    at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:415)
    Caused by: java.lang.NullPointerException
    at org.apache.struts2.osgi.OsgiConfigurationProvider. init(OsgiConfigurationProvider.java:70)
    at com.opensymphony.xwork2.config.impl.DefaultConfigu ration.reloadContainer(DefaultConfiguration.java:2 03)
    at com.opensymphony.xwork2.config.ConfigurationManage r.getConfiguration(ConfigurationManager.java:55)
    at org.apache.struts2.dispatcher.Dispatcher.init_Prel oadConfiguration(Dispatcher.java:374)
    at org.apache.struts2.dispatcher.Dispatcher.init(Disp atcher.java:418)
    ... 26 more
    Sep 14, 2010 10:46:39 AM org.apache.catalina.core.StandardContext startInternal
    SEVERE: Error filterStart
    Sep 14, 2010 10:46:39 AM org.apache.catalina.core.StandardContext startInternal
    SEVERE: Context [/Struts2Example] startup failed due to previous errors
    Sep 14, 2010 10:46:39 AM org.apache.catalina.core.ApplicationContext log
    INFO: Closing Spring root WebApplicationContext
    Sep 14, 2010 10:46:39 AM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
    SEVERE: The web application [/Struts2Example] registered the JBDC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
    Sep 14, 2010 10:46:39 AM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
    SEVERE: The web application [/Struts2Example] created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@13 9d115]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@cdba53]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
    Sep 14, 2010 10:46:39 AM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
    SEVERE: The web application [/Struts2Example] created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@83 de21]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@16c75ed]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.

    Comment


    • #3
      overcome required jar files will obvious makes problem solved

      try to provide exact version of spring and hibernate and struts in which application was developed.
      i used spring 3 , struts 2 and hibernate 3. everything to be latest. since some packages may missing it might throws exception right away.

      Comment

      Working...
      X