1 tomcat server - many apps

We want to run one instance of tomcat on our servers, is it possible to get this serving servoy clients as well as our other web pages?

Simon

This is currently hardly possible, we are considering (for a future version of Servoy) to make servoy a (web)app for a standard j2ee server.

Tip: you might considering making a forwarding servlet in your own tomcat to forward all request to the servoy tomcat on another port.

Jan,

Is it possible to modify the server.xml file to allow binding of tomcat to a different IP address on our server? I have added the new IP address, but I still this error when starting servoy:

java.rmi.server.ExportException: Port already in use: 1099; nested exception is:
java.net.BindException: Address already in use

Tomcat starts on both IP addresses assigned to the server.

Any ideas?

simon:
…binding of tomcat to a different IP address…

I have really no idea how to use other IP when having multiple on one host, maybe google can help you out.

simon:
java.net.BindException: Address already in use

Its easy to alter the port used by Servoy, see the admin page

This is currently hardly possible, we are considering (for a future version of Servoy) to make servoy a (web)app for a standard j2ee server.

Any word on this?

I’m trying to run some servlets inside Servoy’s Tomcat, but cannot get them to work. If I install the Servlets inside a “normal” Tomcat installation, they work fine.

Paul

No plans so far, J2EE servers are difficult to install/configure and no one requested something like this…

What is your problem with servlets? the Servoy tomcat is a standard tomcat server…nothing special (only started differently)

I’m trying to install Axis inside the Servoy Tomcat installation.

From the Axis installation description, I read that the only thing to do is copy the Axis webapp directory to the webapps dir of the Tomcat installation.

And so I did. I then get to the index.html of Axis. When I hit the validation link on there, it tells me some jars cannot be found. I move some jars around to get Axis validating correctly.

I then go back to the Axis index.html and click one of the links that should start a servlet. When I do, I get redirected to Servoys index.html.

I tried looking in the Server logs, but nothing there indicates as to what the problem might be.

When I do the same prodedure described above in a stardard tomcat install, it works fine (there I do not have to move the needed jars from the following directory: ..\server\webapps\ROOT\axis\WEB-INF\lib) to ..\server\lib

Should this work? Any idea what might go wrong? Any place I have to look to get some debug info?

Paul

pbakker:
I tried looking in the Server logs, but nothing there indicates as to what the problem might be.

tomcat issues are logged in the tomcat log, found in server/logs dir.

Those are the server logs I looked at, but they don’t show any errors…

Any other thoughts?

Paul

We only use tomcat to be able to start a Servoy client as webstart app. for issues using tomcat as a product I whould suggest you search on the web.
TIP: You also could start another (more recent version of) tomcat on a different http port…

Allready searched the web, offcourse, but I’ll continue…

You say you only use it to be able to start clients, but aren’t the Admin pages running inside Tomcat as well?

As for setting up another TomCat: I prefer not to, but…

BTW: I also noticed there are much newer version that that Servoy uses. Any reason for that?

Paul

I’ve scoured resources on the web, and have a correctly configured webapp that runs in a standard tomcat install, but will not in a Servoy tomcat instance - even with different HOSTs and CONTEXTs configured many different ways.

Is Servoy’s tomcat installation handicapped by configuration or within the tomcat jars themselves?

No not at all, there is nothing special about it, we only might start it differently related to classloaders, since we do not have the same directory structure as normal tomcat install.

Ok.

Thanks for the reply :slight_smile:

For now, I just put a tomcat environment on a different machine for testing, but I’ll look into it more and post here a configuration that works if I can get to that point.

Thanks!

NCM

I don’t know if the subject is of interest anymore, but I had to bind tomcat to a different IP on a multiple IP machine and I did that by adding the address tag in the {servoy_install_folder}/application_server/server/conf/server.xml

 <Connector port="8080" address="aaa.bbb.ccc.ddd"
...

Gabriel - Iulian Dumbrava