1. The ---- characters are making the script fail: this is a major
problem. I haven't anyone complain about that before, which worries
me. I don't know why your environment would not recognize such
comments. You will need to remove those comments, or replaced them
with the '#' style. (I imagine you have done this already.)
2. I have run into this problem as well. There is something wonky with
the encoding. It seems to get altered during file transfer or
something. (Sorry about that. I need to fix that.) The workaround is
to remove or comment out all of the statements that use the weird
characters, that is, all of the statements that start with :
INSERT INTO Translation (....)
The app will still function, except items will not be translated into
French (for user's with French language preferences).
3. There is a setting in web.xml named RedirectWelcomeFile. It is used
to redirect directory requests to a specific Action. This is a very
specific sort of setting, sensitive to your setup. Your setup has the
client and the server on separate machines - which is of course
perfectly fine.
However, for 'development mode', when starting to build an app, many
developers prefer to be running both the client and the server on
their local machine. Hence, the default setting for
RedirectWelcomeFile uses the 'localhost' style. You can simply change
the RedirectWelcomeFile setting in web.xml to use the IP address
instead of localhost, restart the server, and your client will work
fine.
4. User name 'testeD', password 'testtest'. Not being able to login is
the single most common problem when getting started. The most likely
issue is the Tomact file which configures the application's context -
the 'fish.xml' file. If this file is not exactly right, you will not
be able to login. You need to double check each entry. Have you
updated it to reflect the 'real' user name and password for accessing
your MySQL database? Have you pointed the docBase attribute to your
app's root directory? Again, the style shown in the example fish.xml
file is for 'development mode' - having the client and server being on
the same machine. If you need to separate the client and the server,
then your settings will be slightly different.
Regards,
John O'Hanley
> On my client I opened the browser athttp://
192.168.1.75:8080/fish/. I
> got the response "Unable to connect ... Firefox can't establish a
> connection to the server at localhost:8080".
>
> And in the address bar it read:
http://localhost:8080/fish/main/home/HomePageAction.show
>
> As my client (localhost) does not have Tomcat I guess this is why, as
> to why it happened, I guess it had tried to redirect to an 'absolute'
> URL rather than a relative one?
>
> When I ran this on my server it ran fine. The URL ended up athttp://localhost:8080/fish/main/home/HomePageAction.show.