ma inizialmente tu dici che ti è stato detto di usare tomcat con soap. Sei sicuro che la specifica sia "usare il framework SOAP" e non "usare il protocollo SOAP per lo scambio di messaggi"
hihiih si forse sono cretino io...
mannaggia queste cose ancora mi sanno ostiche.. non va bene! in effetti il progetto richiede "JAVA/SOAP su piattaforma a scelta".. Il fatto che in aula abbiamo usato proprio il SOAP 2.3 mi ha tratto in inganno..
cmq ora riporto l'errore che ad esempio mi da se clicco su LIST. (non ho messo lo stacktrace intero che era parecchio lungo.. mi sono limitato a ciò che mi compare sul browser)
se riesco a risolverlo bene... cmq comincio a provare altro anche se ora mi stavo abituando all'idea del SOAP.. meglio AXIS o l'altro JaxWs.. dovrò mettermi a cercare informazioni di nuovo.. avete link interessanti per caso?
errore che mi si presenta:
codice:
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: Unable to compile class for JSP:
An error occurred at line: 7 in the generated java file Only a type can be imported. org.apache.soap.Constants resolves to a package
An error occurred at line: 6 in the jsp file: /admin/list.jsp Constants.CONFIGFILENAME cannot be resolved to a type
3: <h1>Service Listing</h1>
4:
5: <%
6: String configFilename = config.getInitParameter(Constants.CONFIGFILENAME);
7: if (configFilename == null)
8: configFilename = application.getInitParameter(Constants.CONFIGFILENAME);
9:
An error occurred at line: 8 in the jsp file: /admin/list.jsp Constants.CONFIGFILENAME cannot be resolved to a type
5: <%
6: String configFilename = config.getInitParameter(Constants.CONFIGFILENAME);
7: if (configFilename == null)
8: configFilename = application.getInitParameter(Constants.CONFIGFILENAME);
9:
10: ServiceManager serviceManager =
11:
org.apache.soap.server.http.ServerHTTPUtils.getServiceManagerFromContext(application, configFilename);
An error occurred at line: 10 in the jsp file: /admin/list.jsp ServiceManager cannot be resolved to a type
7: if (configFilename == null)
8: configFilename = application.getInitParameter(Constants.CONFIGFILENAME);
9:
10: ServiceManager serviceManager =
11: org.apache.soap.server.http.ServerHTTPUtils.getServiceManagerFromContext(application, configFilename);
12:
13: String[] serviceNames = serviceManager.list ();
An error occurred at line: 11 in the jsp file: /admin/list.jsp org.apache.soap.server.http.ServerHTTPUtils cannot be resolved to a type
8: configFilename = application.getInitParameter(Constants.CONFIGFILENAME);
9:
10: ServiceManager serviceManager =
11: org.apache.soap.server.http.ServerHTTPUtils.getServiceManagerFromContext(application, configFilename);
12:
13: String[] serviceNames = serviceManager.list ();
14: if (serviceNames.length == 0) {
Stacktrace: org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:93)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
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:729)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.27 logs.