- This topic has 9 replies, 2 voices, and was last updated 17 years, 5 months ago by Riyad Kalla.
-
AuthorPosts
-
rickmschaferMemberI have a new installation of MyEclipse 5.5 Version: 5.5.0 Milestone 2 Build id: 20070409-5.5.0-Milestone2 with Apache Tomcat . I have a working struts solution that someone else deployed. I have, what appears to be a working set of code. When I use MyEclipse to execute the default.jsp I get the following message:
HTTP Status 503 – Servlet action is currently unavailable
——————————————————————————–
type Status reportmessage Servlet action is currently unavailable
description The requested service (Servlet action is currently unavailable) is not currently available.
——————————————————————————–
Apache Tomcat/5.5.17Maybe I don’t have something configured right. Is there a sample struts app – bare bones, that I can use to test my configuration? My project is a java project with web project and struts enabled.
This is very frustrating since it is in production and working, I just can’t set up the site on my laptop. here is my default.jsp
<%@ page language=”java” contentType=”text/html” %>
<%@ taglib uri=”http://java.sun.com/jstl/core” prefix=”c” %>
<c:redirect url=”home.do”/>here is my struts-config.xml
<?xml version=”1.0″ encoding=”UTF-8″?>
<!DOCTYPE struts-config PUBLIC
“-//Apache Software Foundation//DTD Struts Configuration 1.1//EN”
“http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd”><struts-config>
<!– ==================== Database ==================== –><data-sources>
<data-source type=”org.apache.commons.dbcp.BasicDataSource”>
<set-property property=”driverClassName”
value=”org.postgresql.Driver”/>
<set-property property=”url”
value=”jdbc:postgresql://localhost:5432/douglas”/>
<set-property property=”username”
value=”postgres”/>
<set-property property=”password”
value=”postgres”/>
<set-property property=”defaultAutoCommit”
value=”true”/>
<set-property property=”defaultReadOnly”
value=”false”/>
<set-property property=”maxActive”
value=”100″/>
<set-property property=”maxWait”
value=”5000″/>
</data-source>
</data-sources><!– ==================== Form Beans ==================== –>
<form-beans type=”org.apache.struts.action.ActionFormBean”>
<form-bean name=”formContractTitle”
type=”com.mwhglobal.project.forms.FormContractTitle”/><form-bean name=”formDocument”
type=”com.mwhglobal.project.forms.FormDocument”/><form-bean name=”formEmail”
type=”com.mwhglobal.project.forms.FormEmail”/><form-bean name=”formGroup”
type=”com.mwhglobal.project.forms.FormGroup”/><form-bean name=”formHome”
type=”com.mwhglobal.project.forms.FormHome”/><form-bean name=”formLog”
type=”com.mwhglobal.project.forms.FormLog”/><form-bean name=”formOrganization”
type=”com.mwhglobal.project.forms.FormOrganization”/><form-bean name=”formPasswordReset”
type=”com.mwhglobal.project.forms.FormPasswordReset”/><form-bean name=”formRecentDownload”
type=”com.mwhglobal.project.forms.FormRecentDownload”/><form-bean name=”formProjectRole”
type=”com.mwhglobal.project.forms.FormProjectRole”/><form-bean name=”formRole”
type=”com.mwhglobal.project.forms.FormRole”/><form-bean name=”formSection”
type=”com.mwhglobal.project.forms.FormSection”/><form-bean name=”formUpdate”
type=”com.mwhglobal.project.forms.FormUpdate”/><form-bean name=”formUser”
type=”com.mwhglobal.project.forms.FormUser”/><form-bean name=”formWorkgroup”
type=”com.mwhglobal.project.forms.FormWorkgroup”/><form-bean name=”formCheckedOut”
type=”com.mwhglobal.project.forms.FormCheckedOut”/></form-beans>
<!– ==================== Exception Handler ==================== –>
<!–
<global-exceptions>
<exception handler=”com.mwhglobal.project.exceptions.ICExceptionHandler”
key=”java.error.message”
path=”tile.error”
scope=”request”
type=”java.lang.Exception”/>
</global-exceptions>
–><!– ==================== Global Forwards ==================== –>
<global-forwards>
<forward name=”home”
path=”/home.do”
redirect=”true”/><forward name=”error”
path=”tile.error”/><forward name=”myInfo”
path=”/myinfo.do”
redirect=”true”/><forward name=”downloadContacts”
path=”/downloadContacts”
redirect=”false”/></global-forwards>
<!– ==================== Action Mappings ==================== –>
<action-mappings type=”org.apache.struts.action.ActionMapping”>
<action
attribute=”formHome”
name=”formHome”
path=”/home”
roles=”member”
type=”com.mwhglobal.project.actions.ActionHome”
unknown=”true”>
<forward name=”generalFeatures” path=”tile.home.generalFeatures” />
<forward name=”gettingStarted” path=”tile.home.gettingStarted” />
<forward name=”rules” path=”tile.home.rules” />
<forward name=”siteUpdates” path=”tile.home.siteUpdates” />
<forward name=”relatedLinks” path=”tile.home.relatedLinks” />
<forward name=”home” path=”tile.home” />
<forward name=”help” path=”tile.home.help” />
</action><action path=”/login”
type=”org.apache.struts.actions.ForwardAction”
parameter=”tile.login”/><action path=”/logout”
type=”com.mwhglobal.project.actions.ActionLogout”/><action path=”/error”
type=”org.apache.struts.actions.ForwardAction”
parameter=”tile.error”/><action path=”/reset”
type=”com.mwhglobal.project.actions.ActionPasswordReset”
name=”formPasswordReset”
scope=”request” >
<forward name=”tokenSentAdmin”
path=”tile.reset.sent.admin”
redirect=”false”/>
<forward name=”tokenSentUser”
path=”tile.reset.sent.user”
redirect=”false”/>
<forward name=”formUserName”
path=”tile.reset.form.username”
redirect=”false”/>
<forward name=”formPassword”
path=”tile.reset.form.password”
redirect=”false”/>
</action><action path=”/user”
type=”com.mwhglobal.project.actions.ActionUser”
name=”formUser”
scope=”request”
validate=”false”
roles=”admin”>
<forward name=”browse”
path=”tile.user.browse”
redirect=”false”/>
<forward name=”new”
path=”tile.user.new”
redirect=”false”/>
<forward name=”edit”
path=”tile.user.edit”
redirect=”false”/>
<forward name=”display”
path=”tile.user.display”
redirect=”false”/>
</action><action path=”/role”
type=”com.mwhglobal.project.actions.ActionRole”
name=”formRole”
scope=”request”
validate=”false”
roles=”admin”>
<forward name=”browse”
path=”tile.role.browse”
redirect=”false”/>
<forward name=”new”
path=”tile.role.new”
redirect=”false”/>
<forward name=”edit”
path=”tile.role.edit”
redirect=”false”/>
</action><action path=”/update”
type=”com.mwhglobal.project.actions.ActionUpdate”
name=”formUpdate”
scope=”request”
validate=”false”
roles=”admin”>
<forward name=”browse”
path=”tile.update.browse”
redirect=”false”/>
<forward name=”new”
path=”tile.update.new”
redirect=”false”/>
<forward name=”edit”
path=”tile.update.edit”
redirect=”false”/>
</action><action path=”/recentDownload”
type=”com.mwhglobal.project.actions.ActionRecentDownload”
name=”formRecentDownload”
scope=”request”
validate=”false”
roles=”member”>
<forward name=”recentDownload_first”
path=”tile.recentDownload.first”
redirect=”false”/>
<forward name=”recentDownload”
path=”tile.recentDownload.recentDownload”
redirect=”false”/>
</action><action path=”/projectrole”
type=”com.mwhglobal.project.actions.ActionProjectRole”
name=”formProjectRole”
scope=”request”
validate=”false”
roles=”project”>
<forward name=”browse”
path=”tile.projectrole.browse”
redirect=”false”/>
<forward name=”new”
path=”tile.projectrole.new”
redirect=”false”/>
<forward name=”edit”
path=”tile.projectrole.edit”
redirect=”false”/>
</action><action path=”/contracttitle”
type=”com.mwhglobal.project.actions.ActionContractTitle”
name=”formContractTitle”
scope=”request”
validate=”false”
roles=”project”>
<forward name=”browse”
path=”tile.contracttitle.browse”
redirect=”false”/>
<forward name=”new”
path=”tile.contracttitle.new”
redirect=”false”/>
<forward name=”edit”
path=”tile.contracttitle.edit”
redirect=”false”/>
</action><action path=”/log”
type=”com.mwhglobal.project.actions.ActionLog”
name=”formLog”
validate=”false”
scope=”request”
roles=”log”>
<forward name=”list”
path=”tile.log.list”
redirect=”false”/>
<forward name=”users”
path=”tile.log.users”
redirect=”false”/>
<forward name=”path”
path=”tile.log.path”
redirect=”false”/>
<forward name=”date”
path=”tile.log.date”
redirect=”false”/>
</action><action path=”/contact”
type=”com.mwhglobal.project.actions.ActionContact”
name=”formUser”
validate=”false”
scope=”request”
roles=”member”>
<forward name=”browse”
path=”tile.contact.list”
redirect=”false”/>
<forward name=”new”
path=”tile.contact.new”
redirect=”false”/>
<forward name=”edit”
path=”tile.contact.edit”
redirect=”false”/>
<forward name=”display”
path=”tile.contact.display”
redirect=”false”/>
<forward name=”search”
path=”tile.contact.search”
redirect=”false”/>
<forward name=”listProjectInfo”
path=”tile.contact.projectInfoList”
redirect=”false”/>
</action><action path=”/group”
type=”com.mwhglobal.project.actions.ActionGroup”
name=”formGroup”
validate=”false”
scope=”request”
roles=”member”>
<forward name=”browse”
path=”tile.group.browse”
redirect=”false”/>
<forward name=”new”
path=”tile.group.new”
redirect=”false”/>
<forward name=”edit”
path=”tile.group.edit”
redirect=”false”/>
<forward name=”add”
path=”tile.group.add”
redirect=”false”/>
</action><action path=”/myinfo”
type=”com.mwhglobal.project.actions.ActionMyInfo”
name=”formUser”
validate=”false”
scope=”request”
roles=”member”>
<forward name=”edit”
path=”tile.contact.myinfo”
redirect=”false”/>
<forward name=”display”
path=”tile.contact.display”
redirect=”false”/>
</action><action path=”/organization”
type=”com.mwhglobal.project.actions.ActionOrganization”
name=”formOrganization”
validate=”false”
scope=”request”
roles=”member”>
<forward name=”browse”
path=”tile.organization.browse”
redirect=”false”/>
<forward name=”new”
path=”tile.organization.new”
redirect=”false”/>
<forward name=”edit”
path=”tile.organization.edit”
redirect=”false”/>
</action><action path=”/workgroup”
type=”com.mwhglobal.project.actions.ActionWorkgroup”
name=”formWorkgroup”
validate=”false”
scope=”request”
roles=”member”>
<forward name=”browseWorkgroup”
path=”tile.workgroup.browse”
redirect=”false”/>
<forward name=”browseDocument”
path=”tile.workgroup.document.browse”
redirect=”false”/>
<forward name=”newWorkgroup”
path=”tile.workgroup.new”
redirect=”false”/>
<forward name=”editWorkgroup”
path=”tile.workgroup.edit”
redirect=”false”/>
<forward name=”newStudyplan”
path=”tile.studyplan.new”
redirect=”false”/>
<forward name=”editStudyplan”
path=”tile.studyplan.edit”
redirect=”false”/>
<forward name=”newTaskorder”
path=”tile.taskorder.new”
redirect=”false”/>
<forward name=”editTaskorder”
path=”tile.taskorder.edit”
redirect=”false”/>
<forward name=”newDocument”
path=”tile.workgroup.document.new”
redirect=”false”/>
<forward name=”editDocument”
path=”tile.workgroup.document.edit”
redirect=”false”/>
</action><action path=”/email”
type=”com.mwhglobal.project.actions.ActionEmail”
name=”formEmail”
validate=”false”
scope=”request”
roles=”member”>
<forward name=”emailForm”
path=”tile.email.form”
redirect=”false”/>
<forward name=”emailSent”
path=”tile.email.sent”
redirect=”false”/>
</action><action path=”/document”
type=”com.mwhglobal.project.actions.ActionDocument”
name=”formDocument”
validate=”false”
scope=”request”
roles=”member”>
<forward name=”browse”
path=”tile.document.browse”
redirect=”false”/>
<forward name=”new”
path=”tile.document.folder.new”
redirect=”false”/>
<forward name=”editFolder”
path=”tile.document.folder.edit”
redirect=”false”/>
<forward name=”editFile”
path=”tile.document.file.edit”
redirect=”false”/>
<forward name=”editVersion”
path=”tile.document.version.edit”
redirect=”false”/>
<forward name=”upload”
path=”tile.document.file.upload”
redirect=”false”/>
<forward name=”download”
path=”/download”
redirect=”false”/>
<forward name=”display”
path=”tile.document.file.display”
redirect=”false”/>
<forward name=”search”
path=”tile.document.search”
redirect=”false”/>
<forward name=”list”
path=”tile.document.list”
redirect=”false”/>
<forward name=”recent”
path=”tile.document.recent”
redirect=”false”/>
</action><action path=”/section”
type=”com.mwhglobal.project.actions.ActionSection”
name=”formSection”
validate=”false”
scope=”request”
roles=”member”>
<forward name=”browse”
path=”tile.section.browse”
redirect=”false”/>
<forward name=”files”
path=”tile.section.files”
redirect=”false”/>
<forward name=”participants”
path=”tile.section.participants”
redirect=”false”/>
<forward name=”status”
path=”tile.section.status”
redirect=”false”/>
<forward name=”statusPrintable”
path=”tile.section.statusPrintable”
redirect=”false”/>
<forward name=”newSection”
path=”tile.section.new”
redirect=”false”/>
<forward name=”editSection”
path=”tile.section.edit”
redirect=”false”/>
<forward name=”editFile”
path=”tile.section.file.edit”
redirect=”false”/>
<forward name=”editVersion”
path=”tile.section.version.edit”
redirect=”false”/>
<forward name=”upload”
path=”tile.section.file.upload”
redirect=”false”/>
<forward name=”download”
path=”/download”
redirect=”false”/>
<forward name=”display”
path=”tile.section.file.display”
redirect=”false”/>
<forward name=”newParticipant”
path=”tile.section.participant.new”
redirect=”false”/>
<forward name=”editParticipant”
path=”tile.section.participant.edit”
redirect=”false”/>
<forward name=”emailSent”
path=”tile.section.email.sent”
redirect=”false”/>
</action><action path=”/checkedout”
type=”com.mwhglobal.project.actions.ActionCheckedOut”
name=”formCheckedOut”
scope=”request”
validate=”false”
roles=”member”>
<forward name=”checkedout_first”
path=”tile.checkedout.first”
redirect=”false”/>
<forward name=”checkedout”
path=”tile.checkedout.checkedout”
redirect=”false”/>
<forward name=”mycheckedout_first”
path=”tile.mycheckedout.first”
redirect=”false”/>
<forward name=”mycheckedout”
path=”tile.mycheckedout.checkedout”
redirect=”false”/>
</action></action-mappings>
<!– ==================== Plug-ins ==================== –>
<plug-in className=”org.apache.struts.tiles.TilesPlugin”>
<set-property property=”definitions-config”
value=”/WEB-INF/tiles-defs.xml”/>
<set-property property=”definitions-debug”
value=”0″/>
<set-property property=”definitions-parser-details”
value=”0″/>
<set-property property=”definitions-parser-validate”
value=”true”/>
</plug-in><plug-in className=”org.apache.struts.validator.ValidatorPlugIn”>
<set-property property=”pathnames”
value=”/WEB-INF/validator-rules.xml, /WEB-INF/validator.xml”/>
</plug-in><!–
<plug-in className=”com.mwhglobal.project.ArchivePlugin”/><plug-in className=”com.mwhglobal.project.DocIndexPlugin”/>
–></struts-config>
could this be a TOmcat issue? I am running tomcat from MyEclipse. I also have a postgres DB running.
Any help would be greatly appreciated. Thanks.
Riyad KallaMemberWhat URL are you accessing your JSP with?
Does the Tomcat log, during startup, show any failures or errors?
rickmschaferMembermy URL is http://localhost/douglas which goes to default.jsp and then displays the redirect url of http://localhost/douglas/home.do;jsessionid=F2DEBF4D92FBDCB6DAA1F5C806BA3904
here is the apache log when I started it within MyEclipse. It looks the same after I get the 503 error.
May 8, 2007 9:55:53 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:\Java\jdk1.5.0_08\bin;.;C:\Windows\system32;C:\Windows;c:\Java\jdk1.5.0_08\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\ATI Technologies\ATI.ACE;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\9.0\DLLShared\;c:\Program Files\Microsoft SQL Server\90\Tools\binn\
May 8, 2007 9:55:53 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-80
May 8, 2007 9:55:53 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1427 ms
May 8, 2007 9:55:54 PM org.apache.catalina.core.StandardService start
INFO: Starting service Tomcat
May 8, 2007 9:55:54 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.17
May 8, 2007 9:55:54 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax).
log4j:WARN Please initialize the log4j system properly.
May 8, 2007 9:55:57 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-80
May 8, 2007 9:55:57 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
May 8, 2007 9:55:57 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/195 config=null
May 8, 2007 9:55:57 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
May 8, 2007 9:55:57 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 3977 msmaybe I am using the wrong version of struts?
Riyad KallaMemberDo me a favor. Shut down Tomcat inside of MyEclipse, and restart it from the command line and see if it gives you the same behavior, that will nail down what we should try trouble shooting next atleast.
rickmschaferMembersame error.
HTTP Status 503 – Servlet action is currently unavailable
——————————————————————————–type Status report
message Servlet action is currently unavailable
description The requested service (Servlet action is currently unavailable) is not currently available.
——————————————————————————–
Apache Tomcat/5.5.17
Riyad KallaMemberwell atleast it’s not a MyEclipse issue.
To rule out any squirrely Tomcat issues, go grab Tomcat 5.5.23 from the Tomcat site, in ZIP form, unzip it somewhere new, update your connector settings in MyEclipse, remove your old deployment for your app and redeploy it to the new Tomcat… then fire it back up.
Does it work?
rickmschaferMemberNo, the same results. I noticed your comment about “deployment” and I am not deploying the app but rather using it from within my c:\Home\douglas directory. I have an entry in my server.xml file for this. I also created this project as a Java J2EE Web Project and added struts capabilities to it, even though the original project was not a MyEclipse project – it did use struts though. Maybe I should zip a copy of what I have and email it to you.
Riyad KallaMemberI would suggest stop pointing Tomcat over at the project directory, and instead use an exploded deployment in MyEclipse out to Tomcat. It gives you the same effect and keeps things clean.
See if that helps.
rickmschaferMemberInteresting you say that. I just copied my webroot directory to a directory under my apaache webapps directory and I still get the same error. I am also pointed to the correct aebapps directory in my server.xml file. Its as though I have a configuration issue with my config files. should I zip up my eclipse project directory for you to try? If I am deploying this wrong please let me know how I should deploy this different.
Riyad KallaMemberSure we can do that. You can use FIle > Export > Archive to export your project to a ZIP and then send it to support@genuitec.com ATTN Riyad, with a link to this thread for reference.
-
AuthorPosts