Error in simple struts application
Hi friends,
Happy to meet again. Please help me out from this situation which kills me for the past 1 week. While i try to deploy my first struts application through eclipse 3.2 with jdk1.5 and tomcat 5.5.25 and struts 2.0.9 i'm getting this error. what is this regarding.
FYI
I'm just using two text boxes and trying to get those in next page....
The error goes like this
exception
org.apache.jasper.JasperException: Failed to load or instantiate TagExtraInfo class: org.apache.struts.taglib.html.MessagesTei
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:51)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:281)
org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:423)
org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:249)
org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:163)
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:424)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:493)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1557)
org.apache.jasper.compiler.Parser.parse(Parser.java:127)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:212)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:156)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:296)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
root cause
java.lang.ClassNotFoundException: org.apache.struts.taglib.html.MessagesTei
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1362)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1208)
org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:420)
org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:249)
org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:163)
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:424)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:493)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1557)
org.apache.jasper.compiler.Parser.parse(Parser.java:127)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:212)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:156)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:296)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
See http://forum.java.sun.com/thread.jspa?messageID=3866745&tstart=0
Similar Messages
-
Java.lang.ClassCastException in simple struts application. please help me!
I have a simple struts application, it only have a login form. however, it's alway throw java.lang.ClassCastException when I submit the form. Here is full stack trace:
14-03-2007 17:04:50 org.apache.struts.chain.ComposableRequestProcessor init
INFO: Initializing composable request processor for module prefix ''
14-03-2007 17:04:50 org.apache.struts.chain.commands.servlet.CreateAction getAction
INFO: Initialize action of type: ndlinh.struts.lab.RegistrationForm
14-03-2007 17:04:50 org.apache.struts.chain.commands.AbstractExceptionHandler execute
WARNING: Unhandled exception
java.lang.ClassCastException: ndlinh.struts.lab.RegistrationForm
at org.apache.struts.chain.commands.servlet.CreateAction.getAction(CreateAction.java:66)
at org.apache.struts.chain.commands.AbstractCreateAction.execute(AbstractCreateAction.java:82)
at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:48)
at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304)
at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:280)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1858)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:459)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
14-03-2007 17:04:50 org.apache.struts.chain.commands.ExceptionCatcher postprocess
WARNING: Exception from exceptionCommand 'servlet-exception'
java.lang.ClassCastException: ndlinh.struts.lab.RegistrationForm
at org.apache.struts.chain.commands.servlet.CreateAction.getAction(CreateAction.java:66)
at org.apache.struts.chain.commands.AbstractCreateAction.execute(AbstractCreateAction.java:82)
at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:48)
at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304)
at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:280)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1858)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:459)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Here is my code:
package ndlinh.struts.lab;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
public class RegistrationForm extends ActionForm {
private String userid = null;
private String password = null;
private String password2 = null;
public RegistrationForm() {
System.out.println("************ Registration Form created *************");
* @return the password
public String getPassword() {
return password;
* @param password the password to set
public void setPassword(String password) {
this.password = password;
* @return the password2
public String getPassword2() {
return password2;
* @param password2 the password2 to set
public void setPassword2(String password2) {
this.password2 = password2;
* @return the userid
public String getUserid() {
return userid;
* @param userid the userid to set
public void setUserid(String userid) {
this.userid = userid;
public void reset(ActionMapping arg0, HttpServletRequest arg1) {
userid = "";
password = "";
password2 = "";
package ndlinh.struts.lab;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
public final class RegistrationAction extends Action {
public ActionForward execute(ActionMapping mapping, ActionForm actionForm,
HttpServletRequest request, HttpServletResponse response)
try {
System.out.println("*******************" + actionForm.toString() + "*******************");
RegistrationForm form = (RegistrationForm)actionForm;
String username = form.getUserid();
String password = form.getPassword();
System.out.println(username);
// simple login checking.
// if userid equals password, user can login to system
if ( username.equalsIgnoreCase(password)) {
return mapping.findForward("success");
} else {
return mapping.findForward("failure");
} catch (Exception e) {
e.printStackTrace();
return mapping.findForward("failure");
}registration.jsp
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<html:form action="/register">
Username: <html:text property="userid" /> <br />
Password: <html:password property="password" /> <br />
Re-type: <html:password property="password2" />
<html:submit value="Register" />
</html:form>
</body>
</html>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>
<form-beans>
<form-bean name="registrationForm" type="ndlinh.struts.lab.RegistrationForm" />
</form-beans>
<action-mappings>
<action path="/register"
type="ndlinh.struts.lab.RegistrationForm"
name="registrationForm"
validate="false"
scope="request"
input="registration.jsp" >
<forward name="success" path="/jsp/success.jsp" />
<forward name="failure" path="/jsp/failure.jsp" />
</action>
</action-mappings>
</struts-config>web.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
</web-app>System information:
Tomcat 5.5.20
Struts 1.3.5
JDK1.5.08struts-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>
<form-beans>
<form-bean name="registrationForm" type="ndlinh.struts.lab.RegistrationForm" />
</form-beans>
<action-mappings>
<action path="/register"
type="ndlinh.struts.lab.RegistrationAction" // action class
name="registrationForm" // form bean name
validate="false"
scope="request"
input="registration.jsp" >
<forward name="success" path="/jsp/success.jsp" />
<forward name="failure" path="/jsp/failure.jsp" />
</action>
</action-mappings>
</struts-config>HTH -
Error while deploying struts application in tomcat
Hi,
I'm getting the following error when I start Tomcat using while auto-deploying a struts application.
2005-09-21 15:28:17 - ContextManager: Adding DEFAULT:/cna
2005-09-21 15:28:18 - Ctx(/cna) : Validating web.xml
2005-09-21 15:28:18 - Ctx(/cna) : Class not found: org.apache.struts.action.Acti
onServlet
2005-09-21 15:28:18 - Ctx(/cna) : Class not found: org.apache.axis.transport.htt
p.AdminServlet
In case anyone is aware how to resolve this issue, please help.
Thanks,
RoselineHi,
1] Remove following from server.xml
<Context path="/SEA" docBase="SEA" debug="0"/>
2] Paste SEA.WAR (test WAR file) into /webapps of TOMCAT
3] Start Tomcat Server - This will create SEA folder under webapps
4] Stop server.
5] Add following to server.xml
<Context path="/SEA" docBase="SEA" debug="0"/>
6] Start Tomcat Server
7] Access the URL.
This will work. Somehow Tomcat does not extract war file contents which are mentioned in server.xml.
I have Apache Tomcat 4.0.3 and faced this problem. The above solution works for it.
Regards,
Sandesh
hi.
I have put my SEA.WAR (test WAR file) into /webapps of
TOMCAT.
I checked the server.xml and put:
<Context path="/SEA" docBase="SEA" debug="0"/>
I restarted TOMCAT and tried to execute the file:
http://localhost:8080/SEA/index.jsp
But I got error message:
Apache Tomcat/4.0.3 - HTTP Status 404 -
/SEA/index.jsp
What was happenning?
Anyone can help me?
Thank you. -
Error while deploying struts application
Hi every body,
I am new for struts application. While i deploying my application, the following error is comming any body give a remedy to me...
Apache Tomcat/4.0.4 - HTTP Status 500 - Internal Server Error
type Exception report
message Internal Server Error
description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: File "/WEB-INF/struts-html.tld" not found
at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:214)
at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:174)
at org.apache.jasper.compiler.JspParseEventListener.processTaglibDirective(JspParseEventListener.java:1170)
at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java:765)
at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:125)
at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:255)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1145)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1103)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1099)
at org.apache.jasper.compiler.ParserController.parse(ParserController.java:214)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:210)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:534)
--------------------------------------------------------------------------------Hi every body,
I am new for struts application. While i deploying my
application, the following error is comming any body
give a remedy to me...
Apache Tomcat/4.0.4 - HTTP Status 500 - Internal
Server Error
type Exception report
message Internal Server Error
description The server encountered an internal error
(Internal Server Error) that prevented it from
fulfilling this request.
exception
org.apache.jasper.JasperException: File
"/WEB-INF/struts-html.tld" not found
at
t
org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibr
aryInfoImpl.java:214)
at
t
org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibr
aryInfoImpl.java:174)
at
t
org.apache.jasper.compiler.JspParseEventListener.proce
ssTaglibDirective(JspParseEventListener.java:1170)
at
t
org.apache.jasper.compiler.JspParseEventListener.handl
eDirective(JspParseEventListener.java:765)
at
t
org.apache.jasper.compiler.DelegatingListener.handleDi
rective(DelegatingListener.java:125)
at
t
org.apache.jasper.compiler.Parser$Directive.accept(Par
ser.java:255)
at
t
org.apache.jasper.compiler.Parser.parse(Parser.java:11
45)
at
t
org.apache.jasper.compiler.Parser.parse(Parser.java:11
03)
at
t
org.apache.jasper.compiler.Parser.parse(Parser.java:10
99)
at
t
org.apache.jasper.compiler.ParserController.parse(Pars
erController.java:214)
at
t
org.apache.jasper.compiler.Compiler.compile(Compiler.j
ava:210)
at
t
org.apache.jasper.servlet.JspServlet.loadJSP(JspServle
t.java:548)
at
t
org.apache.jasper.servlet.JspServlet$JspServletWrapper
.loadIfNecessary(JspServlet.java:176)
at
t
org.apache.jasper.servlet.JspServlet$JspServletWrapper
.service(JspServlet.java:188)
at
t
org.apache.jasper.servlet.JspServlet.serviceJspFile(Js
pServlet.java:381)
at
t
org.apache.jasper.servlet.JspServlet.service(JspServle
t.java:473)
at
t
javax.servlet.http.HttpServlet.service(HttpServlet.jav
a:853)
at
t
org.apache.catalina.core.ApplicationFilterChain.intern
alDoFilter(ApplicationFilterChain.java:247)
at
t
org.apache.catalina.core.ApplicationFilterChain.doFilt
er(ApplicationFilterChain.java:193)
at
t
org.apache.catalina.core.StandardWrapperValve.invoke(S
tandardWrapperValve.java:243)
at
t
org.apache.catalina.core.StandardPipeline.invokeNext(S
tandardPipeline.java:566)
at
t
org.apache.catalina.core.StandardPipeline.invoke(Stand
ardPipeline.java:472)
at
t
org.apache.catalina.core.ContainerBase.invoke(Containe
rBase.java:943)
at
t
org.apache.catalina.core.StandardContextValve.invoke(S
tandardContextValve.java:190)
at
t
org.apache.catalina.core.StandardPipeline.invokeNext(S
tandardPipeline.java:566)
at
t
org.apache.catalina.valves.CertificatesValve.invoke(Ce
rtificatesValve.java:246)
at
t
org.apache.catalina.core.StandardPipeline.invokeNext(S
tandardPipeline.java:564)
at
t
org.apache.catalina.core.StandardPipeline.invoke(Stand
ardPipeline.java:472)
at
t
org.apache.catalina.core.ContainerBase.invoke(Containe
rBase.java:943)
at
t
org.apache.catalina.core.StandardContext.invoke(Standa
rdContext.java:2347)
at
t
org.apache.catalina.core.StandardHostValve.invoke(Stan
dardHostValve.java:180)
at
t
org.apache.catalina.core.StandardPipeline.invokeNext(S
tandardPipeline.java:566)
at
t
org.apache.catalina.valves.ErrorDispatcherValve.invoke
(ErrorDispatcherValve.java:170)
at
t
org.apache.catalina.core.StandardPipeline.invokeNext(S
tandardPipeline.java:564)
at
t
org.apache.catalina.valves.ErrorReportValve.invoke(Err
orReportValve.java:170)
at
t
org.apache.catalina.core.StandardPipeline.invokeNext(S
tandardPipeline.java:564)
at
t
org.apache.catalina.valves.AccessLogValve.invoke(Acces
sLogValve.java:468)
at
t
org.apache.catalina.core.StandardPipeline.invokeNext(S
tandardPipeline.java:564)
at
t
org.apache.catalina.core.StandardPipeline.invoke(Stand
ardPipeline.java:472)
at
t
org.apache.catalina.core.ContainerBase.invoke(Containe
rBase.java:943)
at
t
org.apache.catalina.core.StandardEngineValve.invoke(St
andardEngineValve.java:174)
at
t
org.apache.catalina.core.StandardPipeline.invokeNext(S
tandardPipeline.java:566)
at
t
org.apache.catalina.core.StandardPipeline.invoke(Stand
ardPipeline.java:472)
at
t
org.apache.catalina.core.ContainerBase.invoke(Containe
rBase.java:943)
at
t
org.apache.catalina.connector.http.HttpProcessor.proce
ss(HttpProcessor.java:1027)
at
t
org.apache.catalina.connector.http.HttpProcessor.run(H
ttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:534)
--------------------------i am try to run struts application. but it shows following error
org.apache.jasper.JasperException: File "/WEB-INF/struts-html.tld" not found
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802) -
Error when running struts application
I get this error when i try to run my struts application.
org.apache.jasper.JasperException: /JSP/Login.jsp(13,0) Attribute name invalid for tag form according to TLD
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:236)
org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1200)
org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:821)
org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1512)
Can anybody tell me why this is happening :-(org.apache.jasper.JasperException: /JSP/Login.jsp(13,0) Attribute name invalid for tag form according to TLDIt means the attribute(s) you have specified in the Custom tag(<html:form/> in your case) is an invalid one. Check here for valid attributes name.
[http://struts.apache.org/1.2.x/userGuide/struts-html.html#form|http://struts.apache.org/1.2.x/userGuide/struts-html.html#form] -
500 Internal Server Error when deploying struts application on OAS 10.1.3
I've installed the Oracle Application Server several times, this time with 10.1.3 our application doesn't run and we get the error shown below.
Any ideas? It looks to be something with struts or tiles. struts.jar and tiles.jar is included in our deployed j2ee application WEBI-INF/lib dir. The application was built with jdeveloper 10.1.2 and compiled with java 1.4.
We load a custom log4j.properties, and nothing is even getting logged except for the log4j init stuff, nor is this NoSuchMethod error showing up in any other of the many different log files. (That I can find anyway)
500 Internal Server Error
java.lang.NoSuchMethodError: org.apache.struts.tiles.DefinitionsUtil.populateDefinitionsFactoryConfig(Lorg/apache/struts/tiles/DefinitionsFactoryConfig;Ljavax/servlet/ServletConfig;)V
at org.apache.struts.tiles.TilesPlugin.readFactoryConfig(TilesPlugin.java:267)
at org.apache.struts.tiles.TilesPlugin.init(TilesPlugin.java:159)
at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1158)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpApplication.loadServlet(HttpApplication.java:2231)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpApplication.findServlet(HttpApplication.java:4617)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpApplication.findServlet(HttpApplication.java:4541)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2821)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:740)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:299)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:187)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)Figures, I've been fighting with this for the past day and a half and I figure it out shortly after I post the question.
It turns out the tiles.jar that was in our WEB-INF/lib directory was an old one. It looks like the newer struts.jar (from jdeveloper) we're using includes the tiles information. Once I removed tiles.jar, commons-dbcp, pool, resources, and services, it works now.
It looks like jdeveloper overwrites most of those files with it's built in struts integration, and we've just been lucky before that struts.jar was being loaded before tiles.jar and something with oas 10.1.3 is loading the jars in a different order--but I'm just guessing here. -
Error in mapping Struts application OC4J OAS 9.0.4.3
Hello , i have a struts app that runs fine in OC4J OAS 9.0.4.2 version
but recentrly i upgrade the Application server to 9.0.4.3 version
and the mappings are not working in the application
for example : the success page dont show up after a successfull login
but if i type the success.jsp page on the url it does appear.
as a result the redirect politics of struts struts-config.xml are not working
thanks for any help
German LuisHi,
Can u please say the procedure for upgrading OC4j 9.0.4 (stand alone) to 9.0.4.3.
Thanks in advance.
Ashokkumar.N -
Error whit simple position application
Hi,
i'm tring to make a siple location based app.
If in the code i insert this:
providerState = provider.getState();
the app don't start on my phone(wave s8500). It say: "java format file not valid". In the emulator the app works.
Why??
Edited by: 862423 on 30-mag-2011 8.43
Edited by: 862423 on 30-mag-2011 8.54Search for deploying midlets on Samsung's phones. It's a hard task and here might be the problem. Try also another device of different producer to verify if it works correctly.
-
Error in Struts Application, Form Submit
I've developed a simple struts application which allows user to key in inputs thru a form(registration.jsp), submit n display e inputs keyed in in another page(details.jsp).
i'd succesfully integrate e pdk-struts application to portal, but wen i click on 'Submit', my action r not performed, not directed to my details.jsp, neither do it shows any error.
However, one thing i realised is tat wen integrated to portal, e codes for my action r changed:
registration.jsp
<html:form action="/register" focus="name">
after integrated wit Portal, it was translated to:
<form name="registerForm" method="post" action="http://smeagel:7778/portal/page">
<INPUT TYPE="hidden" name="_pageid" value="6,3,6_22" />
<INPUT TYPE="hidden" name="_dad" value="portal" />
<INPUT TYPE="hidden" name="_schema" value="PORTAL" />
<INPUT TYPE="hidden" name="_piref6_108279_6_3_22.strutsAction" value="register.do" />
After Submit button was clicked, i was directed to a new URL, http://smeagel:7778/portal/page
Any solutions??provider.xml
<?xml version = '1.0' encoding = 'UTF-8' standalone='yes'?>
<?providerDefinition version="3.1"?>
<provider class="oracle.portal.provider.v2.DefaultProviderDefinition">
<session>true</session>
<passAllUrlParams>true</passAllUrlParams>
<portlet class="oracle.portal.provider.v2.DefaultPortletDefinition">
<id>1</id>
<name>MyPortlet</name>
<title>- Registration Form -</title>
<description>My Portlet Description</description>
<timeout>40</timeout>
<showEditToPublic>false</showEditToPublic>
<hasAbout>false</hasAbout>
<showEdit>false</showEdit>
<hasHelp>false</hasHelp>
<showEditDefault>false</showEditDefault>
<showDetails>false</showDetails>
<inputParameter class="oracle.portal.provider.v2.DefaultParameterDefinition">
<name>MyParam</name>
<displayName>My Portlet Parameter</displayName>
</inputParameter>
<renderer class="oracle.portal.provider.v2.render.RenderManager">
<renderContainer>true</renderContainer>
<renderCustomize>true</renderCustomize>
<autoRedirect>true</autoRedirect>
<contentType>text/html</contentType>
<showPage>/registration.jsp</showPage>
<showPage class="oracle.portal.provider.v2.render.http.StrutsRenderer">/register.do</showPage>
</renderer>
</portlet>
</provider>
I'd saw some example, which using <defaultAction>, however, wen i put in <defaultAction>/register.do</defaultAction>
i'll have error in my Provider Test Page. Validation Unsuccessful.
Error: Class oracle.portal.provider.v2.render.http.StrutsRenderer has no set or add method for tag "defaultAction"
Is <defaultAction> a necessary tag? Is tat e reason y my application isnt running? -
Compilation error in java for struts application.
Hello,
I'm a newbie in java and struts, i was trying a simple struts application given in "struts complete reference".This is my code of its Controller class(Action class):-
package com.jamesholmes.struts;
import java.util.ArrayList;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
public final class SearchAction extends Action
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
throws Exception
EmployeeSearchService service = new EmployeeSearchService();
ArrayList results;
SearchForm searchForm = (SearchForm) form;
//Perform employee search based on what criteria was entered.
String name = searchForm.getName();
if(name != null && name.trim().length() > 0)
results = service.searchByName(name);
else
results = service.searchBySsNum(searchForm.getSsNum().trim());
//place search results in SearchForm for access by jsp.
searchForm.setResults(results);
//Forward control to this Action's input page.
return mapping.getInputForward();
Now problem is when i'm compiling this java file i'm getting error"can not resolve symbol" for the instances i'm creating for SearchForm(view class) and EmployeeSearchService(model class).can any one help me how to resolve this error. I've tried importing those classes explicitly also, but error gets increased this way.Tht problem is solved, it was a mistake frm my side in compilation precedure.Anyway, now the real error-After i compiled and created the war file of application, i was running it in tomcat and got this Error, it is i guess a server sprcific error which i am unable to understand., can any one now help me solving this out?????Error is this :-
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
java.lang.NullPointerException
org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:521)
org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:436)
org.apache.struts.taglib.html.LinkTag.calculateURL(LinkTag.java:495)
org.apache.struts.taglib.html.LinkTag.doStartTag(LinkTag.java:353)
org.apache.jsp.index_jsp._jspx_meth_html_link_0(index_jsp.java:96)
org.apache.jsp.index_jsp._jspService(index_jsp.java:69)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.0.27 logs.
Apache Tomcat/5.0.27 -
Error on Deploy - simple Struts + SLSB + PostGreSQL DS
Hi,
I'm completly new to SOAS and J2EE, so I hope someone can help me on this.
I get the following error when I deploy my (first ever :P) .ear-file:
Deployment Error -- Error while running ejbc -- Fatal Error from EJB Compiler -- -- Failed to load deployment descriptor for: kvnet cause: Error converting J2EE-specific ejb xml to object representation: kvnet-ejbs.jar app_kvnet Test This bean has no resource reference by the name of [jdbc/QSMS-DB] jdbc/QSMS-DBjdbc/QSMS-DB
My EAR consists of two archives: a .war and kvnet-ejbs.jar with a session bean.
Description of Application:
I created a very simple Struts webapp (one servlet login filter and some .jsp`s) and already deployed the .war successfully (and run it). Now I want to add the EJB side to my application. I made a simple stateless Sessionbean which should simply connect to a PostGreSQL database through a connection pool (because after that I want to use cmp entity beans with this pool).
In my server.xml:
<resources>
<jdbc-resource enabled="true" pool-name="QSMSPool" jndi-name="jdbc/QSMS-DS">
<description>JDBC Resource des QSMS (zum Zugriff per JNDI)</description>
</jdbc-resource>
<jdbc-connection-pool steady-pool-size="8" max-pool-size="32" max-wait-time-in-millis="60000" pool-resize-quantity="2" idle-timeout-in-seconds="300" is-isolation-level-guaranteed="false" is-connection-validation-required="false" connection-validation-method="auto-commit" fail-all-connections="false" datasource-classname="org.postgresql.jdbc3.Jdbc3PoolingDataSource" name="QSMSPool">
<description>Connection Pool des QSMS der PostGreSQL DB</description>
<property value="bdrserv.quasa.org" name="serverName"/>
<property value="5432" name="portNumber"/>
<property value="appserver" name="user"/>
<property value="jS7v6X" name="password"/>
<property value="kvnet" name="databaseName"/>
</jdbc-connection-pool>
</resources>
My ejb-jar.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN' 'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>
<ejb-jar>
<description>stateless session bean, mit dem die db-connection getestet werden soll</description>
<display-name>Test</display-name>
<enterprise-beans>
<session>
<description>test ejb fuer db-conn-test (postgresql)</description>
<display-name>TestEJB</display-name>
<ejb-name>TestEJB</ejb-name>
<local-home>de.quasa.kvnet.ejb.test.TestLocalHome</local-home>
<local>de.quasa.kvnet.ejb.test.TestLocal</local>
<ejb-class>de.quasa.kvnet.ejb.test.TestEJB</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Bean</transaction-type>
<ejb-local-ref>
<ejb-ref-name>ejb/Test</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>de.quasa.kvnet.ejb.test.TestLocalHome</local-home>
<local>de.quasa.kvnet.ejb.test.TestLocal</local>
<ejb-link>kvnet-ejbs.jar#TestEJB</ejb-link>
</ejb-local-ref>
<security-identity>
<description></description>
<use-caller-identity></use-caller-identity>
</security-identity>
<resource-ref>
<res-ref-name>QSMS-DS</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
</session>
</enterprise-beans>
<assembly-descriptor>
<method-permission>
<unchecked />
<method>
<ejb-name>TestEJB</ejb-name>
<method-intf>LocalHome</method-intf>
<method-name>remove</method-name>
<method-params>
<method-param>java.lang.Object</method-param>
</method-params>
</method>
<method>
<ejb-name>TestEJB</ejb-name>
<method-intf>LocalHome</method-intf>
<method-name>create</method-name>
<method-params />
</method>
<method>
<ejb-name>TestEJB</ejb-name>
<method-intf>Local</method-intf>
<method-name>testConnection</method-name>
<method-params />
</method>
<method>
<ejb-name>TestEJB</ejb-name>
<method-intf>Local</method-intf>
<method-name>isIdentical</method-name>
<method-params>
<method-param>javax.ejb.EJBLocalObject</method-param>
</method-params>
</method>
<method>
<ejb-name>TestEJB</ejb-name>
<method-intf>Local</method-intf>
<method-name>getPrimaryKey</method-name>
<method-params />
</method>
<method>
<ejb-name>TestEJB</ejb-name>
<method-intf>Local</method-intf>
<method-name>remove</method-name>
<method-params />
</method>
<method>
<ejb-name>TestEJB</ejb-name>
<method-intf>Local</method-intf>
<method-name>getEJBLocalHome</method-name>
<method-params />
</method>
</method-permission>
</assembly-descriptor>
</ejb-jar>
My sun-ejb-jar.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sun-ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Sun ONE Application Server 7.0 EJB 2.0//EN" "http://www.sun.com/software/sunone/appserver/dtds/sun-ejb-jar_2_0-0.dtd">
<sun-ejb-jar>
<enterprise-beans>
<name>kvnet-ejbs.jar</name>
<ejb>
<ejb-name>TestEJB</ejb-name>
<jndi-name>ejb/Test</jndi-name>
<resource-ref>
<res-ref-name>jdbc/QSMS-DB</res-ref-name>
<jndi-name>jdbc/QSMS-DB</jndi-name>
</resource-ref>
<gen-classes/>
</ejb>
</enterprise-beans>
</sun-ejb-jar>
My application.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application PUBLIC '-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN' 'http://java.sun.com/dtd/application_1_3.dtd'>
<application>
<display-name>kvnetapp</display-name>
<description>KVNetApp - Application description</description>
<module>
<ejb>kvnet-ejbs.jar</ejb>
</module>
<module>
<web>
<web-uri>kvnet.war</web-uri>
<context-root>web-app2</context-root>
</web>
</module>
</application>
My web.xml:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<display-name>QSMS Application</display-name>
<!-- servletfilter and struts definitions are left out for better readability -->
<ejb-local-ref>
<description>TestEJB local ref</description>
<ejb-ref-name>ejb/Test</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>de.quasa.kvnet.ejb.test.TestLocalHome</local-home>
<local>de.quasa.kvnet.ejb.test.TestLocal</local>
<ejb-link>TestEJB</ejb-link>
</ejb-local-ref>
</web-app>
My SLSB code:
public class TestEJB implements SessionBean {
public boolean testConnection() {
Connection con = null;
try {
InitialContext ctx = new InitialContext();
DataSource source = (DataSource)ctx.lookup("java:comp/env/jdbc/QSMS-DS");
con = source.getConnection();
// use connection
if (con == null) {
System.out.println("CONNECTION IS NULL!!!");
} catch (SQLException e) {
// log error
System.out.println("SQLException abgefangen: "+e.getMessage());
} catch (NamingException e) {
// DataSource wasn't found in JNDI
System.out.println("NamingException abgefangen: "+e.getMessage());
} finally {
if (con != null) {
try { con.close(); } catch (SQLException e) {}
return true;
public void ejbCreate() {}
public void ejbRemove() {}
public void ejbActivate() {}
public void ejbPassivate() {}
public void setSessionContext(SessionContext ctx) {}
public interface TestLocal extends EJBLocalObject {
public boolean testConnection();
public interface TestLocalHome extends EJBLocalHome {
TestLocal create() throws CreateException;
I hope I made myself clear. :-)
Thanks for your help.
Regards,
Steffen GransowI have a little more information. I noticed that the stderr from the server apparently had the stack trace of the exception, which follows this. In addition, I'll include the application's "application.xml" file (not Oracle-specific).
---application.xml---
<?xml version="1.0"?>
<!DOCTYPE application PUBLIC
"-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN"
"http://java.sun.com/dtd/application_1_3.dtd">
<application>
<display-name>FELIX</display-name>
<!--
<module>
<ejb>felix-ejb.jar</ejb>
</module>
-->
<module>
<web>
<web-uri>felix-web.war</web-uri>
<context-root>/felix</context-root>
</web>
</module>
</application>
---application.xml---
---server stderr---
ApplicationServer: appName = Felix
java.lang.NullPointerException: application reference's config was null
at com.evermind.server.ApplicationServer.getApplication(ApplicationServer.java:1976)
at com.evermind.server.XMLApplicationServerConfig.initHttp(XMLApplicationServerConfig.java:1365)
at com.evermind.server.ApplicationServer.doCheckForUpdates(ApplicationServer.java:2308)
at com.evermind.server.ApplicationServer.checkForUpdates(ApplicationServer.java:2117)
at com.evermind.server.ApplicationServerTask.run(ApplicationServerTask.java:46)
at com.evermind.util.TaskManager.run(TaskManager.java:133)
at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:66)
---server stderr--- -
BPM Simple Sample Application Error!!!
hi,
i have some problems with the bpm simple sample applications on our local sap nw ce system (7.1 ehp1 sp0)?
on the esworkplace i have download the *.sca file and have import this file into my nwds.
i following the simple sample documentation an define and configure the ERP and ERP_META Destinations on the nwds and our local sap nw ce system.
also i do the future steps which was described (service registry, proxy settings, ...).
on page 16 of the simple sample documetation is defined which Sofware Component has dependencies to other SC´s.
the SC "BPEM_BUILDT" depends on the SC "ESMP_BUILDT" and "COMP_BUILDT", the SC "COMP_BUILT" doesnt exist on my nwds (7.1 ehp1 sp0).
has everybody any idea why the SC "COMP_BUILT" not exist on my nwds???
still this absent SC i can deploy the bpm simple sample successful to our sap nw ce system.
now i do the post deployment steps for the bpm samples.
after this i call the simple sample application on my sap nw ce portal and can execute the "Initiate Equipment Phase In Process".
now i can see a new entry on my uwl, i open the uwl task.
at step 1, 2, 3 i change no data an click next, after step 3 (create equipment) i get the following error:
com.sap.esi.esp.service.server.query.discovery.ExtendedServiceException: no endpoints found for interface <br>
IndividualMaterialERPCreateRequestConfirmation_In_V1 <br>
<br>
detailed error message: <br>
com.sap.tc.webdynpro.model.webservice.exception.WSModelRuntimeException: Exception on creation of service metadata for WS metadata <br>
destination 'ERP_META' and WS interface 'IndividualMaterialERPCreateRequestConfirmation_In_V1'. One possible reason is that
Caused by: com.sap.esi.esp.service.server.query.discovery.ExtendedServiceException: no endpoints found for interface
IndividualMaterialERPCreateRequestConfirmation_In_V1
at com.sap.esi.esp.service.server.query.discovery.DestinationsHelperImplSoa.getEndpointConfigurations(DestinationsHelperImplSoa.java:1184)
at com.sap.esi.esp.service.server.query.discovery.DestinationsHelperImplSoa.getWSDLUrl(DestinationsHelperImplSoa.java:847)
at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.getWSDLUrl(GenericServiceFactory.java:547)
at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService_NewInstance(GenericServiceFactory.java:377)
at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService(GenericServiceFactory.java:230)
at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService(GenericServiceFactory.java:195)
at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getOrCreateWsrService(WSModelInfo.java:529)
... 82 more
after this error i test the endpoint manually. i call the service registry (sr.esworkplace.sap.com) an search the service:
IndividualMaterialERPCreateRequestConfirmation_In_V1
now i test the endpoint with the following data:
MaintenancePlanningPlantID: 0001
WorkCentreID: TECH.SER
CategoryCode: M
the return is the following:
TypeID:005(PLM_SE_EAM_SC)
SeverityCode:1
Note:Individual Material 000000000010006703 is created
i think the return from the service was successful.
i hope somebody can help me!!!
thanks,
FabianHi Arafat,
the destinations for the services are already configured::
at destination template management > destination templates the following is defined:
- Tab: General
Destination Name: ERP
Destination Type: Service Registry
System: ABAP
System Name: HU2
Hostname: iwdf2379
Installation Nr.: 0120003411
Client: 800
- Tab: Security
Authentication: HTTP Authentication, User ID/Password (Basic)
User ID: <es workplace user (suser)>
pw: ******
and
- Tab: General
Destination Name: ERP_META
Destination Type: Service Registry
System: ABAP
System Name: HU2
Hostname: iwdf2379
Installation Nr.: 0120003411
Client: 800
- Tab: Security
Authentication: HTTP Authentication, User ID/Password (Basic)
User ID: <es workplace user (suser)>
pw: ******
also i have configured the same destination on my nwds.
i think this is correct?
futher ideas, why this doesnt work?
thanks,
fabian -
Error when running the struts application
Hi
i am getting this error when i run my struts application. Do i need to install the xerces parcer and should my local have the ANT. If so how should i confingure ANT
/JSP/Login.jsp(12,0) Attribute name invalid for tag form according to TLD
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:236)
org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1200)
org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:821)
org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1512)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2343)
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2393)
org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2399)
org.apache.jasper.compiler.Node$Root.accept(Node.java:489)Ya I guess everything is right in both the files. Let me paste the contents :-
WEB.XML
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<display-name>My Inventory</display-name>
<!-- Standard Action Servlet Configuration -->
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
<!-- Standard Action Servlet Mapping -->
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<!-- The Usual Welcome File List -->
<welcome-file-list>
<welcome-file>Login.jsp</welcome-file>
</welcome-file-list>
<taglib>
<taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-html.TLD</taglib-location>
</taglib>
</web-app>
STRUTS-CONFIG.xml
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
"http://struts.apache.org/dtds/struts-config_1_3.dtd">
<!--
Default configuration file for examples application.
Each module also has its own struts-config under: /WEB-INF/$MODULE/
@version $Revision: 1.9 $ $Date: 2006-12-03 11:32:52 -0600 (Sun, 03 Dec 2006) $
-->
<struts-config>
<form-beans>
<form-bean name="Loginform" type = "com.myInventory.Loginform"></form-bean>
</form-beans>
<global-exceptions/>
<global-forwards
<!-- utilize a custom ActionForward as an example only -->
</global-forwards>
<action path="/Login" type="com.myInventory.actions.Loginaction" name="Loginform" input="/Login.jsp">
<forward name="login_target_success" path="/success.jsp"/>
<forward name="login_target_failure" path="/login.jsp"/>
</action>
</action-mappings>
<message-resources parameter="MessageResources"/>
</struts-config> -
Common errors that occur when doing struts application
hello friends,
I am attending an interview, can any one help me in giving common errors that occurs in struts application.hello friends,
I am attending an interview, can any one help me in giving common errors that occurs in struts application. -
Console error while deploying a struts application..
I am getting following exception while deploying a struts application:-
javax.servlet.ServletException: org/apache/commons/logging/LogFactory
at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:884)
at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:848)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:787)
at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:3252)
at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:3197)
at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:3174)
at weblogic.servlet.internal.WebAppServletContext.setStarted(WebAppServletContext.java:5647)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:869)
at weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationContainer.java:2022)
at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2063)
at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.activateContainer(SlaveDeployer.java:2592)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit(SlaveDeployer.java:2515)
at weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeployer.java:2317)
at weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(SlaveDeployer.java:2399)
at weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDeployer.java:2311)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2479)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:798)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:507)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:465)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
please help me out.The ServletException is just a wrapper exception which informs about an underlying failure. When interpreting stacktraces,the bottommost root cause parts is the most important part. I assume that it's just a java.lang.ClassNotFoundException on org/apache/commons/logging/LogFactory. In that case, the exception is self-explaining enough. The mentioned class is missing in the classpath. The solution is also obvious: add the mentioned class (or at least, the JAR file with the mentioned class) to the classpath and you're fine. As the package name already hints, you can download it at [http://commons.apache.org/logging].
For future java.lang.* exceptions please consult 'New to Java' forum. This is unrelated to Java Servlet.
Maybe you are looking for
-
IMovie 6 HD Plugin Incompatibility
I have been using iMovie HD 6.0.3 (267.2) for a while and have found it a very untrustworthy and unreliable application. Apart from the regular crashes, one day my iMovie refused to open so I reinstalled it from iLife 05 and updated it from the apple
-
Training and Event Management - Sales Organization
In <b>Create Billing / Allocation Info (IT1037</b>), Billing Section, there is a field for <b>Sales Organization</b>. Is this Sales Organization to be defined (by Sales Team) in S & D and to be assigned in this Infotype for billing purpose? I presume
-
Release strategy tab is not coming in SES
Hi All, I am facing a issue where I have created an SES, and release strategy is assigned to this SES. Problem is somehow the user is not able to see the release tab when he go wants to release the SES. The release tab is missing from the SES. Am s
-
I need a menu!!+other stuff
You see, I'm realy, realy new (like 2 months) and I need some standerd edition java ONLY sorce code for this: ( "..." means a color/font choser) ( " ||===||[then the contents] " means a toolbar-movable) |File| |Edit| |Tools| |Help| ==================
-
in CCMS, if processing time more than threshold time we 'll get alert, so avoiding the alert we reduce the processing time, how we'll do this reply sap gurus, waiting for ur replies.....