- This topic has 3 replies, 2 voices, and was last updated 18 years, 4 months ago by Riyad Kalla.
-
AuthorPosts
-
dirkdigglerMemberI am attempting to deploy the StrutsDemoLogin. I followed all the steps and it all seems right to me until I deploy. I do not see the INFO note that the /StrutsLoginDemo has been installed. Not surprisingly, I get a “page cannot be displayed” message when I try to test it. I check the stuts-config and all of the mappings seem to match my project (see below).
Also, I look in the webapps directory of my Apache install and I see the application and the files in the directories I expect. The only change that I made in Apache that I recall is that I changed the port from 8080 to 80. I’ve tried all combinations but can not seem to connect. I’ve also included the console display after I deploy the app and start it. This has to be something silly I’ve done. Does anyone have any ideas?
Travis
<struts-config> <data-sources /> <form-beans > <form-bean name="userLoginForm" type="com.yourcompany.struts.form.UserLoginForm" /> </form-beans> <global-exceptions /> <global-forwards /> <action-mappings > <action attribute="userLoginForm" input="/userLogin.jsp" name="userLoginForm" path="/userLogin" scope="request" type="com.yourcompany.struts.action.UserLoginAction"> <forward name="success" path="/userLoginSuccess.jsp" /> <forward name="failure" path="/userLogin.jsp" /> </action> </action-mappings> <message-resources parameter="com.yourcompany.struts.ApplicationResources" /> </struts-config>
Jul 1, 2006 12:37:15 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent 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\jdk1.5.0_07\bin;C:\Program Files\apache-tomcat-5.5.17\bin Jul 1, 2006 12:37:15 PM org.apache.coyote.http11.Http11BaseProtocol init INFO: Initializing Coyote HTTP/1.1 on http-80 Jul 1, 2006 12:37:15 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1000 ms Jul 1, 2006 12:37:15 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Jul 1, 2006 12:37:15 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.17 Jul 1, 2006 12:37:15 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Jul 1, 2006 12:37:17 PM org.apache.catalina.core.ApplicationContext log INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]] Jul 1, 2006 12:37:17 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Jul 1, 2006 12:37:17 PM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Jul 1, 2006 12:37:17 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Jul 1, 2006 12:37:17 PM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Jul 1, 2006 12:37:18 PM org.apache.struts.util.PropertyMessageResources <init> INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true Jul 1, 2006 12:37:18 PM org.apache.struts.util.PropertyMessageResources <init> INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true Jul 1, 2006 12:37:18 PM org.apache.struts.util.PropertyMessageResources <init> INFO: Initializing, config='com.yourcompany.struts.ApplicationResources', returnNull=true Jul 1, 2006 12:37:18 PM org.apache.coyote.http11.Http11BaseProtocol start INFO: Starting Coyote HTTP/1.1 on http-80 Jul 1, 2006 12:37:19 PM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 Jul 1, 2006 12:37:19 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/47 config=null Jul 1, 2006 12:37:19 PM org.apache.catalina.storeconfig.StoreLoader load INFO: Find registry server-registry.xml at classpath resource Jul 1, 2006 12:37:19 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 4094 ms
Riyad KallaMemberIf you go into your Tomcat /webapps directory, do you see your StrutsLoginDemo web application listed? Can you access it with either of these URLs while Tomcat is running?
http://localhost/StrutsLoginDemo
OR
http://localhost:8080/StrutsLoginDemo
dirkdigglerMemberThanks for the reply. I actually was able to get it operational by …./quickRegistration.do. I’m not sure what I was trying before but I thought I’d tried everything. It is working now, though, and I really appreciate you replying. I have been very impressed with MyEclipse so far.
Travis
Riyad KallaMemberGlad to hear it’s working.
-
AuthorPosts