Problems with SSH integration
Start Tomcat error message unable to load configuration. -Action-file:/Your Engineering catalogue
Specifically as follows
Nable to load configuration. -Action-file:/d:/tomcat6/webapps/hikum/web-inf/classes/struts.xml:5:44
At Org.apache.struts2.dispatcher.Dispatcher.init (dispatcher.java:431)
At Org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher (initoperations.java:69)
At Org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init ( STRUTSPREPAREANDEXECUTEFILTER.JAVA:51)
At Org.apache.catalina.core.ApplicationFilterConfig.getFilter (applicationfilterconfig.java:275)
At Org.apache.catalina.core.ApplicationFilterConfig.setFilterDef (applicationfilterconfig.java:397)
At Org.apache.catalina.core.applicationfilterconfig.<init> (applicationfilterconfig.java:108)
At Org.apache.catalina.core.StandardContext.filterStart (standardcontext.java:3800)
At Org.apache.catalina.core.StandardContext.start (standardcontext.java:4450)
At Org.apache.catalina.core.ContainerBase.addChildInternal (containerbase.java:791)
At Org.apache.catalina.core.ContainerBase.addChild (containerbase.java:771)
At Org.apache.catalina.core.StandardHost.addChild (standardhost.java:526)
At Org.apache.catalina.startup.HostConfig.deployDirectory (hostconfig.java:987)
At Org.apache.catalina.startup.HostConfig.deployDirectories (hostconfig.java:909)
At Org.apache.catalina.startup.HostConfig.deployApps (hostconfig.java:495)
At Org.apache.catalina.startup.HostConfig.start (hostconfig.java:1206)
At Org.apache.catalina.startup.HostConfig.lifecycleEvent (hostconfig.java:314)
At Org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent (lifecyclesupport.java:119)
At Org.apache.catalina.core.ContainerBase.start (containerbase.java:1053)
At Org.apache.catalina.core.StandardHost.start (standardhost.java:722)
At Org.apache.catalina.core.ContainerBase.start (containerbase.java:1045)
At Org.apache.catalina.core.StandardEngine.start (standardengine.java:443)
At Org.apache.catalina.core.StandardService.start (standardservice.java:516)
At Org.apache.catalina.core.StandardServer.start (standardserver.java:710)
At Org.apache.catalina.startup.Catalina.start (catalina.java:583)
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:597)
At Org.apache.catalina.startup.Bootstrap.start (bootstrap.java:288)
At Org.apache.catalina.startup.Bootstrap.main (bootstrap.java:413)
caused By:unable to load configuration. -Action-file:/d:/tomcat6/webapps/hikum/web-inf/classes/struts.xml:5:44
At Com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration (configurationmanager.java:58)
At Org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration (dispatcher.java:374)
At Org.apache.struts2.dispatcher.Dispatcher.init (dispatcher.java:418)
... More
caused By:action class [loginaction] not Found-action-file:/d:/tomcat6/webapps/hikum/web-inf/classes/struts.xml : 5:44
At Com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyAction (Xmlconfigurationprovider.java : 409)
At Com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction (Xmlconfigurationprovider.java : 354)
At Com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage (Xmlconfigurationprovider.java : 468)
At Com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages (Xmlconfigurationprovider.java : 264)
At Org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages (Strutsxmlconfigurationprovider.java : 111)
At Com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer (defaultconfiguration.java:193)
At Com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration (configurationmanager.java:55)
... More
Reason is missing jar package: Struts2-spring-plugin-2.1.8.jar
The
action class created by the original struts is given to spring creation. There is a struts-plugin.xml in the struts2-spring-plugin . Jar that declares that the action class was created by the Spring factory. In the Struts2 plug-in document, this reads "The Spring Plugin works by overriding the Struts objectfactory to enhance the creation of core Framewor K Objects. "This plugin rewrites the object factory of struts, and when you create an action class, it matches the value of the class attribute of the struts profile to the value of the id attribute in the spring configuration file." If it does not match, it will be created as if it had not been used before, and then automatically assembled by spring.