を展開するとき、私はGlassFishのからこの迷惑な警告とbasiclyエラー(3.1)を得るのGlassFishからの警告「あなたのアプリケーションを修正」:これは私が追加されたコードである戦争
"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);
}
}
私はMavenプラグインでEclipseを使用しています。プロジェクトをクリーンにしてインストールして、warファイルを生成します。その後、私がglassfishで作ったStandaloneインスタンスに展開します。昨日、上のコードを追加するまでうまくいきました。どんな助け?前もって感謝します。もっと情報を投稿する必要があるかどうか教えてください。
もう一度、ありがとう!
EDIT:ありテキストの非常識な量、それはすべて過去のカントだが、それらはすべて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をインストールしようとしましたアップデートツールから別のアップデートがインストールされている別のポートを使用していますが、それはseccessfullyをデプロイしますが、WSDLリンクまたはファイルを生成しません。
EDIT4: gfを3.0.1から3.1(公式)に更新して、手作業でアンインストールして再インストールしました。
さらにserver.logに何かがありますか?例外はスローされますか? – TPete
ログを確認してください。詳細はこちら。 –
@TPete提供 –