View Full Version : Tomcat install
lianseng
10-07-2004, 04:11 AM
I downloaded the complete distribution (with Tomcat).
As I already have a Tomcat 5 installation elsewhere, I added a Context Descriptor lps.xml to point it at
<install_dir>\Server\lps2-2
http://localhost:8080/lps/index.html works.
But clicking on any of the examples results in a "file not found" e.g.
Compilation Errors
E:\lps2.2\Server\lps-2.2\examples\components\combobox_example.lzx: The system cannot find the path specified
The thing is that the path indicated is valid and the file exists.
Any ideas what I did wrong ?
Thanks.
Could there be some permissions problem on your directory?
bloch
10-07-2004, 09:22 AM
Can you send along your context descriptor?
You can also look in the tomcat logs to see what LPS thinks is it's "LPS_HOME" directory.
-Eric
lianseng
10-07-2004, 02:08 PM
Tomcat log:-
2004-10-07 20:56:30 StandardContext[/lps]LPS: LPS_HOME is E:\lps2.2\Server\lps-2.2
Seems ok.
My Context descriptor lps.xml:-
<?xml version='1.0' encoding='utf-8'?>
<Context displayName="LPS" docBase="E:/lps2.2/Server/lps-2.2" path="/lps">
</Context>
Thanks for any advice.
bloch
10-07-2004, 02:09 PM
Can you peak at
...\lps-2.2\WEB-INF\lps\work\logs\lps.log and see if there are any ERROR of note ?
-Eric
lianseng
10-07-2004, 02:11 PM
Wierdest thing is that when I clicked "View Source" on the error page, the correct source came up
lianseng
10-07-2004, 02:14 PM
No errors, but combobox example cannot be found :-
08 Oct 2004 06:13:13 () INFO servlets.LZServlet - ------------------------------------
08 Oct 2004 06:13:13 () INFO servlets.LZServlet - Laszlo Presentation Server, 2.2, initialized
08 Oct 2004 06:13:13 () INFO servlets.LZServlet - Running in context:Apache Tomcat/5.0.19
08 Oct 2004 06:13:13 () INFO servlets.LZServlet - Build: lps-2.2-001144-0001
08 Oct 2004 06:13:13 () INFO servlets.LZServlet - Built on: 08:36 PM 04-Oct-2004
08 Oct 2004 06:13:13 () INFO servlets.LZServlet - Running against JRE 1.5.0
08 Oct 2004 06:13:13 () INFO servlets.LZServlet - Running with Java CLASSPATH: E:\java\jdk1.5.0\lib\tools.jar;e:\catalina\bin\boo tstrap.jar
08 Oct 2004 06:13:13 () INFO servlets.LZServlet - Running on Windows XP 5.1
08 Oct 2004 06:13:13 () INFO servlets.LZServlet - Running as user lianseng
08 Oct 2004 06:13:13 () INFO servlets.LZServlet - Max memory: 63.56 MB
08 Oct 2004 06:13:13 () INFO servlets.LZServlet - Total memory: 7.0 MB
08 Oct 2004 06:13:13 () INFO servlets.LZServlet - Available memory: 2.19 MB
08 Oct 2004 06:13:13 () INFO servlets.LZServlet - LPS_HOME is: E:\lps2.2\Server\lps-2.2
08 Oct 2004 06:13:13 () INFO responders.ResponderCompile - application cache is at E:\lps2.2\Server\lps-2.2\WEB-INF\lps\work\cache
08 Oct 2004 06:13:18 () INFO responders.ResponderMEDIA - Media Cache is at E:\lps2.2\Server\lps-2.2\WEB-INF\lps\work\mcache
08 Oct 2004 06:13:19 () INFO data.HTTPDataSource - using connection pool
08 Oct 2004 06:13:19 () INFO data.HTTPDataSource - using HTTP 1.1
08 Oct 2004 06:13:20 () INFO responders.ResponderDATA - Data Cache is at E:\lps2.2\Server\lps-2.2\WEB-INF\lps\work\dcache
08 Oct 2004 06:13:20 () INFO servlets.LZServlet - Default request type is app_console
08 Oct 2004 06:13:20 (127.0.0.1 1) INFO servlets.LZServlet - Request for E:\lps2.2\Server\lps-2.2\examples\components\combobox_example.lzx
08 Oct 2004 06:13:20 (127.0.0.1 1) INFO responders.ResponderCompile - application cache is at E:\lps2.2\Server\lps-2.2\WEB-INF\lps\work\cache
lianseng
10-07-2004, 02:19 PM
Ok I just saw the post about Java 1.5 not supported. Is this it ?
Thanks again
bloch
10-07-2004, 02:26 PM
Yep. 1.5 won't be able to compile any apps.
It will serve up precompiled apps ok. But won't be able to compile.
-Eric
bloch
10-07-2004, 02:28 PM
But it's still strange that you're getting the error you're seeing. With 1.5 beta 2, the compiler generated a stack trace inside jython.
-Eric
lianseng
10-07-2004, 02:36 PM
Cool real time support !
I'm on the jdk 5.0 release.
lianseng
10-07-2004, 02:56 PM
No that wasn't it !
I just switched back to 1.4.2_05.
Tomcat and lps uses that now looking at the logs.
Same error.
bloch
10-07-2004, 02:58 PM
You might also be running out of memory. 64 MB isn't enough, in general, to run the compiler with much frequency.
E
lianseng
10-08-2004, 04:25 AM
Hmm, still on this !
I made changes in catalina.bat to increase the memory. No go.
Is there anyway to increase the level of logging ?
What does it mean when it says "<some path>:The system cannot find the path specified" on the browser ?
The file definitely exists and "view source" shows it.
Thanks.
lianseng
10-08-2004, 05:03 AM
ok final update.
I reinstalled Tomcat 5 and everything is fine now.
I guess I'll never know what was the problem since I had a few other libraries in the old installation.
Thanks all.
wpoziombka
10-13-2004, 02:24 PM
Steps to reproduce:
get core only
untar tomcat
untar lps-2.2-core
move lps-2.2 directory to tomcat webapps directory
start tomcat
browse to LPS app, select demos.
try to run any of the demos.
End up with something like the following message:
Error: D:\Java\jakarta-tomcat-5.0.28\webapps\lps-2.2\demos\dashboard\dashboard.lzx: The system cannot find the path specified
Attached are lps.log and tomcat log files.
lianseng
10-13-2004, 02:34 PM
Not sure if this was one of the things I did to solve my problem.
I zapped the cache directory and deleted the lzo file as well so that the LPS recompiled everything again.
Anyway mine installation has been running fine since I reinstalled and got knows what before that.
The "file not file" message is very misleading, because I'm very sure the file was there.
wpoziombka
10-14-2004, 07:13 AM
Thanks for the suggestions but they didn't help to me.
aprasadh
05-03-2005, 12:49 PM
I had the same problem. As mentioned in some other thread, creating "temp" directory under tomcat root folder solved my problem.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.