Solaris:Tomcat-Failed to access resource /WEB-INF/lib/One.jar


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris:Tomcat-Failed to access resource /WEB-INF/lib/One.jar
# 1  
Old 07-14-2010
MySQL Solaris:Tomcat-Failed to access resource /WEB-INF/lib/One.jar

Hi All,

I have configured the tomcat 6.0.26 and it is working fine in Solaris.
Testing JSP and SERVLET program I ensured tomcat is configured properly (My guess).
-------------------
Now I placed my Servlet and JSP code under /users/kalai/sample.
I have created a soft link to sample (/users/kalai/sample) under tomcat/webapps.
Sample has index.html which load the another file.

When I try to access my page like (https:\\<server ip>:8443\sample) . I am getting an error as given below.

HTTP Status 404 -
--------------------------------------------------------------------------------
type Status report
message
description The requested resource () is not available.
--------------------------------------------------------------------------------
Apache Tomcat/6.0.26


When I start the tomcat it was fail to access some jars from my location. But it started successfully.
--------------------------------
Catalina.out:

AM org.apache.catalina.loader.WebappLoader start
SEVERE: LifecycleException
java.io.IOException: Failed to access resource /WEB-INF/lib/One.jar
at org.apache.catalina.loader.WebappLoader.setRepositories(WebappLoader.java:1022)
at org.apache.catalina.loader.WebappLoader.start(WebappLoader.java:653)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4341)
------------------------------------

Also One.jar is softlink to another location. Because this jar is needed for running another application too.
To avoid duplicate I created a soft link to One.jar too.


But instead of creating a softlink under webapps, when I place my code under tomcat/webapps/sample and when I try to access through web page it was working fine. It was loading my sample page.

In apache tomcat 6.0.16 it was working fine when I create a soft link too.
I do remember I made the same configuration for both the version.

I am using JDK 1.6.

Please help me to solve this problem. I need to create a soft link and have to access my page.

Thanks,
Kalai
# 2  
Old 07-15-2010
MySQL

Hi All,

I got the solution on further study.
I have added the below tags into server.xml

<Context path="/sample" docBase="sample" override="true" allowLinking="true">
</Context>

This need to be added before </Host>.

This will over ride the tomcat property to allow linking for sample directory oly.

Thanks,
Kalai
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Red Hat

Apache Tomcat(403 Access Denied)

Good evening, i've got a problem. I fail to enter "Manager App" in Apache Tomcat/9.0.0.M9 on server, it says "403 Access Denied». for example, server address is 192.168.1.4, when I type 'localhost ' in the browser and press "Manager App", then everything is ok. but if I enter 192.168.1.4 and press... (0 Replies)
Discussion started by: v.k.l.chr.by
0 Replies

2. Proxy Server

How to use Squid on Linux to control certain IP to access Web Server and certain IP cannot access?

Dear all experts here, :) I would like to install a proxy server on Linux server to perform solely to control the access of Web server. In this case, some of my vendor asked me to try Squid and I have installed it onto my Linux server. I would like know how can I set the configuration to... (1 Reply)
Discussion started by: kwliew999
1 Replies

3. UNIX for Advanced & Expert Users

lvm swapon failed Device or resource busy

Is there a trick to mounting swap in n a lvm? I can't get it to work. # swapon -va swapon on /dev/mapper/VG-lv_swap swapon: /dev/mapper/VG-lv_swap: found swap signature: version 1, page-size 4, same byte order swapon: /dev/mapper/VG-lv_swap: pagesize=4096, swapsize=4294967296,... (1 Reply)
Discussion started by: cokedude
1 Replies

4. HP-UX

why uptime display "load average: inf, inf, inf"

Hi, Does anyone seem this kind of output from uptime and top where "load average: inf, inf, inf" is this possible problem with the processor? Cpu states: CPU LOAD USER NICE SYS IDLE BLOCK SWAIT INTR SSYS 0 0.10 5.4% 0.0% 4.0% 90.6% 0.0% 0.0% 0.0% 0.0%... (1 Reply)
Discussion started by: robertngo
1 Replies

5. Solaris

what is the difference between http & Tomcat web server

I do not know the difference between the apache-http and the apche-Tomcat.Is they are differentiated on their version or on their features.:confused: (2 Replies)
Discussion started by: jayaprakash
2 Replies

6. Web Development

How to restict close access in tomcat /opencms

There are solaris10+(apache+tomcat). Tomcat serve .war file from opencms. Opencms has admin console www.domain.ru/system/login/. Apache role is mod_proxy for opencms: Attempt close access at path www.domain.ru/system/login/ using .httpacess doesn't solve it. Please help!:confused: (0 Replies)
Discussion started by: sotich82
0 Replies

7. AIX

Getting Symbol resolution failed for ../../../lib/libc.a Error

Hi I have compiled a binary on AIX 5.3.0.0 but when i run i get following error Could not load program ACE_wrappers/bin/gperf: Symbol resolution failed for ../../../lib/libc.a(posix_aio.o) because: Symbol _posix_kaio_rdwr (number 2) is not exported from dependent module... (0 Replies)
Discussion started by: khan_nayeem
0 Replies

8. UNIX for Dummies Questions & Answers

TomCat access in an Remote Linux Server

Hi all, I Installed Tomcat in an remote linux server (/usr/tomcat)and start service, using ./startup.sh (and tried with ./catalina.sh too). //----------------------------------------------------------------// # ./startup.sh Using CATALINA_BASE: /usr/tomcat/apache-tomcat-6.0.16/ Using... (1 Reply)
Discussion started by: gothama
1 Replies

9. UNIX for Dummies Questions & Answers

Setting up FTP access to my Tomcat Dir

Hi Guys, Im trying to set up FTP to my Apache Tomcat dir on my server so my web designer can FTP in and look at things in a live environment. However at first I couldn't write to the dir, so i change some permissions, and now I cant access it at all! Here is my LS -all output: ... (4 Replies)
Discussion started by: boarderstu
4 Replies
Login or Register to Ask a Question