Hello all,
I've used Java and Eclipse for years but I'm a web-technology
newbie, trying to set up Wicket so I can learn some skills.
I hit a snag setting up.
I'm trying to follow setup and configuration instructions given at
http://agileskills2.org/EWDW/Chapters1-2.pdf
These instructions are a little out of date, but I was able to figure
out everything until (on page 30 of the text at that url, about 40%
down the web-page) it said:
Next, modify the web.xml file in src/main/webapp/WEB-INF with the
following
content. This file is called the "deployment descriptor":
<web-app ...>
<display-name>Archetype Created Web Application</display-name>
<filter>
<filter-name>WicketFilter</filter-name>
<filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class>
<init-param>
<param-name>applicationClassName</param-name>
<param-value>com.foo.myapp.MyApp</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>WicketFilter</filter-name>
<url-pattern>/app/*</url-pattern>
</filter-mapping>
</web-app>
FIRST PROBLEM:
The instructions seem to assume that some previous step
would already have created /webapp/WEB-INF/web.xml under
src/main, but there is nothing under src/main except /java.
Nor do I find anything like web.xml anywhere in the project tree.
So I created the directories and the web.xml file by hand, using the text
above except I just left out the "..." in the first tag.
SECOND PROBLEM:
The next instruction is to right-click the Tomcat instance in the Eclipse
"servers" view, and choose "Add/Remove" to add your app to the server
instance. The instructions show a screenshot in which the "Add/Remove"
command raises a dialog box with myapp listed among the choices.
For me, the command just produces an alert saying there are no resources
that can be added or removed from the server.
Any idea what I'm doing wrong?
Any idea what previous step was supposed to have created
src/main/webapp/WEB-INF ?
Does that location look exactly right to you?
And what is the Add/Remove command is really trying to do? i.e. especially,
where is it trying to read and write?
Thanks for any help
Jim
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]