Hallo iedereen.
Ik heb lokaal een jsp applicatie ontwikkeld gebruik makend van de resin webserver. Nu heb ik een hosting account genomen met jsp ondersteuning. Wanneer ik mijn site upload kan hij de java class die ik gemaakt heb niet vinden.
Ik heb een jsp file gemaakt waar volgende lijn code in staat:
Ik het een bestand Style.java in mijn WEB-INF/classes folder staan. In mijn java file staat momenteel het volgende:
Wanneer ik mijn jsp file probeer te parsen krijg ik volgende foutmelding:
Volgens de site van tomcat staat mijn jsp file in de juiste dir http://tomcat.apache.org/...oc/appdev/deployment.html
Ik zie waarschijnlijk iets dom over het hoofd maar ik vind niet wat...
Ik heb lokaal een jsp applicatie ontwikkeld gebruik makend van de resin webserver. Nu heb ik een hosting account genomen met jsp ondersteuning. Wanneer ik mijn site upload kan hij de java class die ik gemaakt heb niet vinden.
Ik heb een jsp file gemaakt waar volgende lijn code in staat:
code:
1
| Style s = new Style(new File(application.getRealPath("xml/config.xml"))); |
Ik het een bestand Style.java in mijn WEB-INF/classes folder staan. In mijn java file staat momenteel het volgende:
code:
1
2
3
4
5
6
7
8
9
10
11
12
| public class Style {
private File file;
private String style, titel, mail, voetnoot;
public Style(File f) {
this.file = f;
}
} |
Wanneer ik mijn jsp file probeer te parsen krijg ik volgende foutmelding:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
| 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: Unable to compile class for JSP
An error occurred at line: 2 in the jsp file: /portfolio/web/buynsell/index.jsp
Generated servlet error:
[javac] Compiling 1 source file
/usr/local/psa/home/vhosts/***/tomcat/work/Standalone/localhost/_/portfolio/web/buynsell/index_jsp.java:48: cannot resolve symbol
symbol : class Style
location: class org.apache.jsp.index_jsp
Style s = new Style(new File(application.getRealPath("xml/config.xml")));
^
An error occurred at line: 2 in the jsp file: /portfolio/web/buynsell/index.jsp
Generated servlet error:
/usr/local/psa/home/vhosts/***/tomcat/work/Standalone/localhost/_/portfolio/web/buynsell/index_jsp.java:48: cannot resolve symbol
symbol : class Style
location: class org.apache.jsp.index_jsp
Style s = new Style(new File(application.getRealPath("xml/config.xml")));
^
2 errors |
Volgens de site van tomcat staat mijn jsp file in de juiste dir http://tomcat.apache.org/...oc/appdev/deployment.html
Ik zie waarschijnlijk iets dom over het hoofd maar ik vind niet wat...