當從GlassFish的警告我從GlassFish的這個惱人的警告和錯誤basicly(3.1):「修復您的應用程序」部署戰爭
"http://localhost:4848/management/domain/applications/application/websrvice-test-1.0" created successfully. WARNING: Command _deploy did not complete successfully on server instance TodoAppWBConnection: remote failure: Failed to load the application on instance TodoAppWBConnection. The application will not run properly. Please fix your application and redeploy.
重複兩次......
這是我添加的代碼今天,昨天.war的部署進展順利,今天我添加了這麼一小段代碼,現在又出現了錯誤。
@WebMethod
public @WebResult(name="TaskUpdated")boolean updateTaskWithId(@WebParam(name="Username")String username,@WebParam(name="Id")String id,@WebParam(name="category")String category,@WebParam(name="completion_dtm")Date completion_dtm,@WebParam(name="desc")String desc,@WebParam(name="duedate")Date duedate,@WebParam(name="notification_duedate")String notification_duedate,@WebParam(name="notification_one")String notification_one,@WebParam(name="notification_two")String notification_two,@WebParam(name="priority")int priority,@WebParam(name="reminder_one")Date reminder_one,@WebParam(name="reminder_two")Date reminder_two,@WebParam(name="title")String title,@WebParam(name="timestamp")Date timestamp)
{
//String sql = "REPLACE INTO tasks VALUES('" + category + "','" + completion_dtm + "','" + desc + "','" + duedate + "','" + notification_duedate + "','" + notification_one + "','" + notification_two + "'," + priority + ",'" + reminder_one + "','" + reminder_two + "','" + timestamp + "','" + title + "','" + username + "','" + id + "')";
String sql = "UPDATE tasks VALUES('" + category + "','" + completion_dtm + "','" + desc + "','" + duedate + "','" + notification_duedate + "','" + notification_one + "','" + notification_two + "'," + priority + ",'" + reminder_one + "','" + reminder_two + "','" + timestamp + "','" + title + "','" + username + "','" + id + "') WHERE id = '"+ id + "'";
Connection connection = getConnection();
PreparedStatement ps;
try
{
ps = connection.prepareStatement(sql);
ps.executeUpdate();
return true;
}
catch(Exception preperationError)
{
//System.out.println(preperationError);
return false;
}
finally
{
closeConnection(connection);
}
}
我使用eclipse和Maven插件,我清理我的項目並安裝它來生成戰爭文件。然後將其部署到我在glassfish中創建的獨立實例中。昨天它工作正常,直到我添加了上面的代碼片。任何幫助?提前致謝。請告訴我是否應該發佈更多信息。
再次,謝謝!
編輯:有一個瘋狂的文字量的,傾斜過去的這一切,但他們都basicly下手
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.IllegalArgumentException: javax.servlet.ServletException: com.sun.enterprise.container.common.spi.util.InjectionException: Error creating managed object for class: class org.glassfish.webservices.WSServletContextListener java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.IllegalArgumentException: javax.servlet.ServletException: com.sun.enterprise.container.common.spi.util.InjectionException: Error creating managed object for class: class org.glassfish.webservices.WSServletContextListener at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:921) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:901) at
EDIT2:
288 SEVERE Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: or... (details) javax.enterprise.system.tools.admin.org.glassfish.deployment.admin Feb 27, 2012 14:20:19.179 _ThreadID=19;_ThreadName=Thread-4;
287 SEVERE Exception while loading the app(details) javax.enterprise.system.core.com.sun.enterprise.v3.server Feb 27, 2012 14:20:19.166 _ThreadID=19;_ThreadName=Thread-4;
286 SEVERE Exception while invoking class com.sun.enterprise.web.WebApplication start method java.lang.Exceptio... (details) javax.enterprise.system.tools.admin.org.glassfish.deployment.admin Feb 27, 2012 14:20:19.148 _ThreadID=19;_ThreadName=Thread-4;
285 WARNING java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleExcepti... (details) javax.enterprise.system.container.web.com.sun.enterprise.web Feb 27, 2012 14:20:19.148 _ThreadID=19;_ThreadName=Thread-4;
284 SEVERE ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.IllegalArgumentExc... (details) org.apache.catalina.core.ContainerBase Feb 27, 2012 14:20:19.145 _ThreadID=19;_ThreadName=Thread-4;
283 INFO WS-TX Services successfully started.(details)
EDIT3: 嘗試在安裝GF 3.0.1從更新工具安裝了不同更新的不同端口,它部署成功但它不生成WSDL鏈接或文件,OI無法使用它...
編輯4: 更新gf從3.0.1到3.1(官方)打破了它,做一個手動卸載並重新安裝。
server.log中還有更多東西嗎?拋出任何異常? – TPete 2012-02-27 11:53:40
檢查日誌。那裏有更多細節。 – 2012-02-27 11:53:52
@TPete提供 – 2012-02-27 12:26:15