File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes issue while using  struts-core-1.3.5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "issue while using  struts-core-1.3.5" Watch "issue while using  struts-core-1.3.5" New topic
Author

issue while using struts-core-1.3.5

Amitosh Mishra
Ranch Hand

Joined: Feb 11, 2010
Posts: 49
Hi,

I’m facing issue while using velocity engine 1.6.2 and tools-1.3 and struts-core-1.3.5 with tomcat/6.0.14 but every thing is working fine when i'm using struts.
following error


Feb 12, 2010 12:17:01 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The 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\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jre1.6.0_05/bin/client;C:/Program Files/Java/jre1.6.0_05/bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Windows Imaging\;C:\PROGRA~1\IBM\SQLLIB\BIN;C:\PROGRA~1\IBM\SQLLIB\FUNCTION;C:\PROGRA~1\IBM\SQLLIB\SAMPLES\REPL;C:\Program Files\IBM\Installation Manager\eclipse\lib;C:\Program Files\Borland\StarTeam SDK 10.0\Lib;C:\Program Files\Borland\StarTeam SDK 10.0\Bin;C:\Program Files\IBM\Trace Facility;C:\Program Files\Personal Communications
Feb 12, 2010 12:17:01 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Feb 12, 2010 12:17:01 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 359 ms
Feb 12, 2010 12:17:01 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Feb 12, 2010 12:17:01 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.14
log4j:WARN No appenders could be found for logger (org.apache.struts.util.PropertyMessageResources).
log4j:WARN Please initialize the log4j system properly.
Feb 12, 2010 12:17:02 AM org.apache.catalina.core.ApplicationContext log
INFO: Marking servlet action as unavailable
Feb 12, 2010 12:17:02 AM org.apache.catalina.core.StandardContext loadOnStartup
SEVERE: Servlet /struts-velocity threw load() exception
javax.servlet.UnavailableException: java.net.ConnectException: Connection refused: connect

at org.apache.struts.action.ActionServlet.init(ActionServlet.java:399)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4045)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4351)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
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:566)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Feb 12, 2010 12:17:02 AM org.apache.catalina.core.ApplicationContext log
INFO: Velocity [debug] VelocityViewServlet: Looking for custom properties at '/WEB-INF/velocity.properties'
Feb 12, 2010 12:17:02 AM org.apache.catalina.core.ApplicationContext log
INFO: Velocity [debug] VelocityViewServlet: No custom properties found. Using default Velocity configuration.
Feb 12, 2010 12:17:02 AM org.apache.catalina.core.ApplicationContext log
INFO: Velocity : *******************************************************************
Feb 12, 2010 12:17:02 AM org.apache.catalina.core.ApplicationContext log
INFO: Velocity [debug] Starting Apache Velocity v1.6.2 (compiled: 2009-02-19 16:29:46)
Feb 12, 2010 12:17:02 AM org.apache.catalina.core.ApplicationContext log
INFO: Velocity : RuntimeInstance initializing.
Feb 12, 2010 12:17:02 AM org.apache.catalina.core.ApplicationContext log
INFO: Velocity [debug] Default Properties File: org\apache\velocity\runtime\defaults\velocity.properties
Feb 12, 2010 12:17:02 AM org.apache.catalina.core.ApplicationContext log
INFO: Velocity [debug] Trying to use logger class org.apache.velocity.tools.view.servlet.ServletLogger
Feb 12, 2010 12:17:02 AM org.apache.catalina.core.ApplicationContext log
INFO: Velocity [debug] LogSystem has been deprecated. Please use a LogChute implementation.
Feb 12, 2010 12:17:02 AM org.apache.catalina.core.ApplicationContext log
INFO: Velocity : Default ResourceManager initializing. (class org.apache.velocity.runtime.resource.ResourceManagerImpl)
Feb 12, 2010 12:17:02 AM org.apache.catalina.core.ApplicationContext log
INFO: Velocity [debug] ResourceLoader instantiated: org.apache.velocity.tools.view.servlet.WebappLoader
Feb 12, 2010 12:17:02 AM org.apache.catalina.core.ApplicationContext log
INFO: Velocity [debug] WebappLoader : initialization starting.
Feb 12, 2010 12:17:02 AM org.apache.catalina.core.ApplicationContext log
INFO: Velocity [debug] WebappLoader : initialization complete.
Feb 12, 2010 12:17:02 AM org.apache.catalina.core.ApplicationContext log
INFO: Velocity [debug] ResourceCache: initialized (class org.apache.velocity.runtime.resource.ResourceCacheImpl) with class java.util.Collections$SynchronizedMap cache map.
Feb 12, 2010 12:17:02 AM org.apache.catalina.core.ApplicationContext log
INFO: Velocity : Default ResourceManager initialization complete.
Feb 12, 2010 12:17:02 AM org.apache.catalina.core.ApplicationContext log
INFO: Velocity [debug] Loaded System Directive: org.apache.velocity.runtime.directive.Define
Feb 12, 2010 12:17:02 AM org.apache.catalina.core.ApplicationContext log
INFO: Velocity [debug] Loaded System Directive: org.apache.velocity.runtime.directive.Break
Feb 12, 2010 12:17:02 AM org.apache.catalina.core.ApplicationContext log
INFO: Velocity [debug] Loaded System Directive: org.apache.velocity.runtime.directive.Evaluate
Feb 12, 2010 12:17:02 AM org.apache.catalina.core.ApplicationContext log
INFO: Velocity [debug] Loaded System Directive: org.apache.velocity.runtime.directive.Literal
Feb 12, 2010 12:17:02 AM org.apache.catalina.core.ApplicationContext log
INFO: Velocity [debug] Loaded System Directive: org.apache.velocity.runtime.directive.Macro
Feb 12, 2010 12:17:02 AM org.apache.catalina.core.ApplicationContext log
INFO: Velocity [debug] Loaded System Directive: org.apache.velocity.runtime.directive.Parse
Feb 12, 2010 12:17:02 AM org.apache.catalina.core.ApplicationContext log
INFO: Velocity [debug] Loaded System Directive: org.apache.velocity.runtime.directive.Include
Feb 12, 2010 12:17:02 AM org.apache.catalina.core.ApplicationContext log
INFO: Velocity [debug] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach
Feb 12, 2010 12:17:02 AM org.apache.catalina.core.ApplicationContext log
INFO: Velocity [debug] Created '20' parsers.
Feb 12, 2010 12:17:02 AM org.apache.catalina.core.ApplicationContext log
INFO: Velocity : Velocimacro : initialization starting.
Feb 12, 2010 12:17:02 AM org.apache.catalina.core.ApplicationContext log
INFO: Velocity [debug] Velocimacro : "velocimacro.library" is not set. Trying default library: VM_global_library.vm
Feb 12, 2010 12:17:02 AM org.apache.catalina.core.ApplicationContext log
INFO: Velocity [debug] Could not load resource 'VM_global_library.vm' from ResourceLoader org.apache.velocity.tools.view.servlet.WebappLoader:
Feb 12, 2010 12:17:02 AM org.apache.catalina.core.ApplicationContext log
INFO: Velocity [debug] org.apache.velocity.exception.ResourceNotFoundException: WebappLoader : Resource 'VM_global_library.vm' not found.
Feb 12, 2010 12:17:02 AM org.apache.catalina.core.ApplicationContext log
INFO: Velocity [debug] Velocimacro : Default library not found.
Feb 12, 2010 12:17:02 AM org.apache.catalina.core.ApplicationContext log
INFO: Velocity [debug] Velocimacro : allowInline = true : VMs can be defined inline in templates
Feb 12, 2010 12:17:02 AM org.apache.catalina.core.ApplicationContext log
INFO: Velocity [debug] Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions
Feb 12, 2010 12:17:02 AM org.apache.catalina.core.ApplicationContext log
INFO: Velocity [debug] Velocimacro : allowInlineLocal = false : VMs defined inline will be global in scope if allowed.
Feb 12, 2010 12:17:02 AM org.apache.catalina.core.ApplicationContext log
INFO: Velocity [debug] Velocimacro : autoload off : VM system will not automatically reload global library macros
Feb 12, 2010 12:17:02 AM org.apache.catalina.core.ApplicationContext log
INFO: Velocity : Velocimacro : Velocimacro : initialization complete.
Feb 12, 2010 12:17:02 AM org.apache.catalina.core.ApplicationContext log
INFO: Velocity : RuntimeInstance successfully initialized.
Feb 12, 2010 12:17:03 AM org.apache.catalina.core.ApplicationContext log
INFO: Velocity [info] VelocityViewServlet: Default content-type is: text/html
Feb 12, 2010 12:17:03 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Feb 12, 2010 12:17:03 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Feb 12, 2010 12:17:03 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/25 config=null
Feb 12, 2010 12:17:03 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1825 ms
Feb 12, 2010 12:17:04 AM org.apache.catalina.core.StandardWrapperValve invoke
INFO: Servlet action is currently unavailable


Any ideas?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: issue while using struts-core-1.3.5