Tag Info

Hot answers tagged

4

I figured it out -- the package doesn't quite work right with Sun's latest Java6 package, sun-java6-jdk; the fix is fairly straightforward when you find it: Once I found the daemon.log, I found the errors listed in my edit on the question, but those are just a side-effect of this error: jsvc.exec[18819]: Could not load Logmanager ...


4

I found the following information, guess this should help you. Try this, Each application must use its own log4j. You can achieve this by placing log4j.jar in WEB-INF/lib of each application. In each log4j's configuration file (default location is WEB-INF/classes), specify the log file name, e.g. log4j.appender.AppLog.File=${catalina.home}/logs/app1.log. ...


3

You need a virtual host name alias. <Host name="www.mydomain.com" ...> ... <Alias>mydomain.com</Alias> ... </Host>


2

in addiotion to the previous answers, you should also take PermGen into account. PermGen is not part of the heapspace. with your current configuration your java process could sum up to 1792mb which is the total amount of your machine.


2

After much Googling, here's what we found: First, ensure that your JAVA_HOME environmental variable is set: WRKENVVAR LEVEL(*SYS) WRKENVVAR LEVEL(*JOB) If JAVA_HOME isn't set, add an environmental variable that points to your Java path. In my case: JAVA_HOME = '/QOpenSys/QIBM/ProdData/JavaVM/jdk60/32bit' If you've got your own cert already, use it; ...


2

Manually install it in /opt, change server.xml to your needs (port). Do not forget to add a start/stop script in case a reboot is needed. Be sure you have enough memory for both. Depending on the application, you will need several gigs of RAM.


2

Tomcat runs under one single JVM. This means that there can be one (and only one) process per single Tomcat instance. If you deploy multiple apps into the same Tomcat, they will run within the same JVM and will share the same address space. There will be different classloaders for each webapp though. If you need multiple processes, you need to run multiple ...


1

The address directive applies to which IP will the server be listening to, not which IPs can connect to it. If you want to limit the access to your tomcat server, you can put an iptables rule in place that checks the source IP.


1

In my case, I accidently delete 'temp' direcrtory under Tomcat root directory and it poses this error message. Maybe you can check if temp exists or not. If yes, then check if the ownership of the account that starts Tomcat.


1

JavaMelody can do this -- add it to your tomcat instance.


1

For some weired reason the script was not working after reboot and it turns out that Tomcat needs JAVA_HOME variable to be able to start itself.This variable I had defined in .bashrc but this script was still not able to work.So when I defined JAVA_HOME in the above script also then it did worked.


1

scp is best way to deploy even you can use http://localhost:8080/manager/html browse deploy.war


1

Latest 5.5 rollout on centOS is missing the /usr/share/tomcatcat/webapps/root directory, You can either create this, and remove the 400 error, or edit /etc/tomcat5/server.xml to change appBase="webapps" to appBase="yournewfolder" ...


1

If you don't use LDAP support for anything, you can comment out every module mentioning LDAP. If you don't use WebDAV, feel free to comment out mod_dav. If you don't use Apache's caching abilities for storing stuff from your Tomcat, comment out all the cache modules. If you don't use suexec for any CGI scripts, comment out that one. If you don't use Server ...


1

If you would like say, things under the path http://localhost/static/* to be served up from Apache, then you can set a RewriteCond before your rule to capture everything that doesn't have the URI as /static/* and forward on the Tomcat via AJP, essentially leaving /static/* alone to be served out from DocRoot or an Alias, etc. For example: RewriteCond ...


1

As long as they are bound to different ports (80 for IIS and 8080 for tomcat) as you state, that will work.


1

I know there's already an answer chosen, but still, here goes my explanation. First of all, in the commandline you use, you already reserve 1536 megabyte for the Java heap (-Xmx1536m) and 256 megabyte for the PermGen (-XX:MaxPermSize=256m). The PermGen is allocated separately from the Java heap and is used for storing the Java classes loaded in the JVM. ...


1

While I haven't run any JRuby apps on Tomcat, I have run ColdFusion apps on varied J2EE app servers, and I also have had similar issues. In these FAQs, you'll see that SOracle says that on 32-bit Windows, you'll be limited to a max heap size of 1.4 to 1.6 GB. I never was able to get it stable that high, and I suspect you're running a similar configuration. ...


1

Part of your problem is that you are probably starving all other processes for ram. My general rule of thumb for -Xms and -Xmx are as follows: -Xms : <System_Memory>*.5 -Xmx : <System_Memeory>*.75 So on a 4GB systems it would be: -Xms2048m -Xmx3072m, and in your case I would go with -Xms896m -Xmx1344


1

Check the logs directory, look at your catalina.out log. This will provide you with some more information. You might be running out of either heap or permgen space. Typically when my apps won't start it is due to some configuration error (bad file system path that the app is depending on ) or some memory issue. The log should give you some more insight.


1

Try to add ProxyPassReverse / http://localhost:8080/jira


1

So I needed to set TOMCAT5_SECURITY=no in the /etc/init.d/tomcat55 file. In face I had done this, but I also noticed in etc/default/tomcat55 that I had uncommented out the TOMCAT5_SECURITY=yes, so it was being set. This causes file perm issues when jira is trying to load


1

I ended up getting this to work but I had to re-install Tomcat fresh and re-configure the mod_jk ISAPI plugin exactly as it's specified here. I accepted tptechs answer because if I followed those directions I would have been done in about 1/2 the time :D


1

If I understand your request correctly, you want to have 1 server with 1 ip address have 2 webserver processes each use port 80 for HTTP traffic, redirecting requests to different virtual web sites by means of their host headers. In my view this cannot be done, because the processes (iis6 and tomcat) will each try to set up their services on TCP port 80, ...



Only top voted, non community-wiki answers of a minimum length are eligible