急啊!!关于HTTP Status 503 - This application is not currently available

moonfigo 2010-07-09 01:42:47
这个问题困扰了我好久了,求各位大虾们帮忙解决啊!


HTTP Status 503 - This application is not currently available

--------------------------------------------------------------------------------

type Status report

message This application is not currently available

description The requested service (This application is not currently available) is not currently available.


要看什么代码我在上传吧,thx!!
...全文
4292 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
hoojo 2010-07-09
  • 打赏
  • 举报
回复
这个和你的配置文件有关系,检查下你配置
moonfigo 2010-07-09
  • 打赏
  • 举报
回复
问题是在我发布成功,进入注册页面,填完后,点注册,出现的这个问题
moonfigo 2010-07-09
  • 打赏
  • 举报
回复
这个是Cimemauser.java

package user;

/**
* Cimemauser generated by MyEclipse Persistence Tools
*/

public class Cimemauser implements java.io.Serializable {

// Fields

private String username;

private String password1;

private String name;

private String phone;

private String password2;

// Constructors

/** default constructor */
public Cimemauser() {
}

/** full constructor */
public Cimemauser(String username, String password1, String name,
String phone, String password2) {
this.username = username;
this.password1 = password1;
this.name = name;
this.phone = phone;
this.password2 = password2;
}

// Property accessors

public String getUsername() {
return this.username;
}

public void setUsername(String username) {
this.username = username;
}

public String getPassword1() {
return this.password1;
}

public void setPassword1(String password1) {
this.password1 = password1;
}

public String getName() {
return this.name;
}

public void setName(String name) {
this.name = name;
}

public String getPhone() {
return this.phone;
}

public void setPhone(String phone) {
this.phone = phone;
}

public String getPassword2() {
return this.password2;
}

public void setPassword2(String password2) {
this.password2 = password2;
}

}
moonfigo 2010-07-09
  • 打赏
  • 举报
回复
这个是RegisterAction.java

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd">

<struts-config>
<data-sources />
<form-beans >
<form-bean name="registerForm" type="com.yourcompany.struts.form.RegisterForm" />

</form-beans>

<global-exceptions />
<global-forwards />
<action-mappings >
<action
attribute="registerForm"
input="/form/register.jsp"
name="registerForm"
path="/register"
scope="request"
type="org.springframework.web.struts.DelegatingActionProxy">
<forward name="success" path="/success.jsp" />

</action>

</action-mappings>

<message-resources parameter="com.yourcompany.struts.ApplicationResources" />

<plug-in className="org.springframework.web.struts.ContextLoaderPlugIn">
<set-property property="contextConfigLocation" value="/WEB-INF/classes/applicationContext.xml" />
</plug-in>

</struts-config>

JavPer 2010-07-09
  • 打赏
  • 举报
回复
你是在启动项目时出的问题,还是在访问数据时出的问题,或是页面出的问题,你就贴出个这?
wanding_ 2010-07-09
  • 打赏
  • 举报
回复
重新部署项目,你可能改了jave类,你使用的java(Servlet)代码,传上来。
贴这么点代码,具体原因就回答不了。
moonfigo 2010-07-09
  • 打赏
  • 举报
回复
这个是 struct confi-xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd">

<struts-config>
<data-sources />
<form-beans >
<form-bean name="registerForm" type="com.yourcompany.struts.form.RegisterForm" />

</form-beans>

<global-exceptions />
<global-forwards />
<action-mappings >
<action
attribute="registerForm"
input="/form/register.jsp"
name="registerForm"
path="/register"
scope="request"
type="org.springframework.web.struts.DelegatingActionProxy">
<forward name="success" path="/success.jsp" />

</action>

</action-mappings>

<message-resources parameter="com.yourcompany.struts.ApplicationResources" />

<plug-in className="org.springframework.web.struts.ContextLoaderPlugIn">
<set-property property="contextConfigLocation" value="/WEB-INF/classes/applicationContext.xml" />
</plug-in>

</struts-config>

moonfigo 2010-07-09
  • 打赏
  • 举报
回复
就是一个简单的注册页面,用ssh框架来做的
moonfigo 2010-07-09
  • 打赏
  • 举报
回复
?xml version="1.0" encoding="UTF-8"?>
<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">

<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="configLocation"
value="classpath:hibernate.cfg.xml">
</property>
</bean>


<bean name="/register" class="com.yourcompany.struts.action.RegisterAction">
<property name="dao">
<ref bean="CimemauserDAOProxy"></ref>
</property>
</bean>



<bean id="CimemauserDAO" class="user.CimemauserDAO">
<property name="sessionFactory">
<ref bean="sessionFactory" />
</property>
</bean>

<!-- 声明一个 Hibernate 3 的 事务管理器供代理类自动管理事务用 -->
<bean id="transactionManager"
class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory">
<ref local="sessionFactory" />
</property>
</bean>


<bean id="CimemauserDAOProxy"
class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">

<!-- 注意这个属性, 详细意义请参考文章开头的参考资料, 必须为 true 使用CGLIB才不用强制编写DAO接口 -->
<property name="proxyTargetClass">
<value>true</value>
</property>

<property name="transactionManager">
<ref bean="transactionManager" />
</property>
<property name="target">
<ref local="CimemauserDAO" />
</property>
<property name="transactionAttributes">
<props>
<!-- 这里的方法签名可以精确到方法, 先懒惰一下全配置上 -->
<prop key="*">PROPAGATION_REQUIRED</prop>
</props>
</property>
</bean>

</beans>
Java技术栈 2010-07-09
  • 打赏
  • 举报
回复
This application is not currently available
这个应用当前无效。。

你要把出问题的东西贴出来啊

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧