jar file sin WEB-INF/lib soft linked and error
"Narahari 'n' Savitha" <[email protected]> Thu, 1 Feb 2018 16:22:37 -0500
| Newsgroups | gmane.org.user-groups.ajug.members |
|---|---|
| Message-ID | <CALCrukjT83rh=RJVfWkkBNDpc_4rWYGNfNAPh=UvYdioUrb=HA@mail.gmail.com> |
--===============1511094306669476221== Content-Type: multipart/alternative; boundary="94eb2c0c606cf073d405642d31f6" --94eb2c0c606cf073d405642d31f6 Content-Type: text/plain; charset="UTF-8" Friends: I am sure the experts here have stumbled on this. So please help. I have an app where I have myapp |_WEB-INF/lib/gson-2.3.1.jar When I start tomcat it works fine. NOw I do this cd webapps/myapp/WEB-INF/lib ln -s ../../../thejars/gson-2.3.1.jar gson-2.3.1.jar I then restart tomcat and the error comes up like this java.io.IOException: Failed to access resource /WEB-INF/lib/gson-2.3.1.jar so if I do a SOFT link in linux the app wont start. On the other hand if I do a HARD link the app comes up fine. Any ideas ? -N --94eb2c0c606cf073d405642d31f6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Friends:<div><br></div><div>I am sure the experts here hav= e stumbled on this.=C2=A0 So please help.</div><div><br></div><div>I have a= n app where I have</div><div><br></div><div>myapp</div><div>=C2=A0 =C2=A0|_= WEB-INF/lib/<span style=3D"color:rgb(34,34,34);font-family:arial,sans-serif= ;font-size:small;font-style:normal;font-variant-ligatures:normal;font-varia= nt-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-= indent:0px;text-transform:none;white-space:normal;word-spacing:0px;backgrou= nd-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-col= or:initial;float:none;display:inline">gson-2.3.1.jar</span></div><div><br><= /div><div>When I start tomcat it works fine.</div><div><br></div><div>NOw I= do this</div><div><br></div><div>cd=C2=A0 webapps/myapp/WEB-INF/lib</div><= div><br></div><div>ln -s ../../../thejars/<span style=3D"color:rgb(34,34,34= );font-family:arial,sans-serif;font-size:small;font-style:normal;font-varia= nt-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing= :normal;text-align:start;text-indent:0px;text-transform:none;white-space:no= rmal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-sty= le:initial;text-decoration-color:initial;float:none;display:inline">gson-2.= 3.1.jar=C2=A0<span style=3D"color:rgb(34,34,34);font-family:arial,sans-seri= f;font-size:small;font-style:normal;font-variant-ligatures:normal;font-vari= ant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text= -indent:0px;text-transform:none;white-space:normal;word-spacing:0px;backgro= und-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-co= lor:initial;float:none;display:inline">gson-2.3.1.jar</span></span></div><d= iv><br></div><div>I then restart tomcat and the error comes up like this</d= iv><div><br></div><div>java.io.IOException: Failed to access resource /WEB-= INF/lib/gson-2.3.1.jar<br></div><div><br></div><div>so if I do a SOFT link = in linux the app wont start.</div><div><br></div><div>On the other hand if = I do a HARD link the app comes up fine.</div><div><br></div><div>Any ideas = ?</div><div><br></div><div>-N</div></div> --94eb2c0c606cf073d405642d31f6-- --===============1511094306669476221== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KYWp1Zy1tZW1i ZXJzIG1haWxpbmcgbGlzdAphanVnLW1lbWJlcnNAbGlzdHMuYWp1Zy5vcmcKTWFuYWdlIHlvdXIg c3Vic2NyaXB0aW9uIGFuZCB1bnN1YnNjcmliZSBodHRwOi8vbGlzdHMuYWp1Zy5vcmcvbWFpbG1h bi9saXN0aW5mby9hanVnLW1lbWJlcnM= --===============1511094306669476221==--