History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: LPP-1912
Type: Bug Bug
Status: Resolved Resolved
Resolution: Duplicate
Priority: -- --
Assignee: Unassigned
Reporter: Jeff Schiller
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
OpenLaszlo

Errors In Command-Line batch scripts

Created: 31/Mar/06 09:10 AM   Updated: 26/Jun/06 09:38 PM
Component/s: Installer
Affects Version/s: 3.2 (Sage)
Fix Version/s: None

Time Tracking:
Not Specified

Environment: Windows XP SP1, Java 1.5.0

Severity: Major
Runtime: N/A
Flags: External
Fix in hand: False


 Description  « Hide
This is my first time using OpenLaszlo.

I installed OpenLaszlo 3.2 today on a Windows XP system. I installed it in a non-default location (i.e. not at D:\Program Files\OpenLaszlo Server 3.2).

I started reading the documentation and decided that I wanted to run the compiler from the command-line. I found the compiler invocation batch script at <install_path>\Server\lps-3.2\WEB-INF\lps\server\bin\lzc.bat

Running "lzc.bat --help" gave me two identical errors:

The system cannot find the path specified.
The system cannot find the path specified.

Problem 1: The lzc.bat has the following line:

call "%LPS_HOME%\WEB-INF\lps\server\bin\lzenv.bat"

However, the environment varible LPS_HOME is not set in the current environment. In fact, this is one of the things set by lzenv.bat!

Problem 2: The lzenv.bat has the following line:

set LPS_HOME=c:\Program Files\Laszlo Presentation Server 3.0b2\Server\lps-3.0b2

This hard-codes LPS_HOME to the (apparently) Beta 2 default location for Laszlo 3.0, which I (obviously) did not install to. Even for users that install to the default location this would cause a problem.

I recommend that the installer set the LPS_HOME environment variable in the Windows environment so that this is always present in any invoked shell (fixes Problem 1). You can then remove the offending line from lzenv.bat (fixes Problem 2).

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Jeff Schiller - 31/Mar/06 09:21 AM
Problem 3: The lzenv.bat has the following line:

set LZCP=%LPS_HOME%\WEB-INF\lps\server\build

actually this should be

set LZCP=%LPS_HOME%\WEB-INF\lps\server\bin


Jeff Schiller - 31/Mar/06 09:34 AM
When I finally made the above changes and added %LPS_HOME%\WEB-INF\lps\server\bin to my PATH variable, running lzc gives the following error:

Exception in thread "main" java.lang.NoClassDefFoundError: org/openlaszlo/compiler/Main

My classpath (%LZP%) is:

D:\Program Files\OpenLaszlo Server 3.2\Server\lps-3.2\WEB-INF\lps\server\bin;D:\PROGRA~1\OPENLA~1.2\Server\lps-3.2\3RD-PA~1\jars\dev\SERVLE~1.JAR;D:\PROGRA~1\OPENLA~1.2\Server\lps-3.2\WEB-INF\lib\ACTIVA~1.JAR;D:\PROGRA~1\OPENLA~1.2\Server\lps-3.2\WEB-INF\lib\axis.jar;D:\PROGRA~1\OPENLA~1.2\Server\lps-3.2\WEB-INF\lib\BATIK-~1.JAR;D:\PROGRA~1\OPENLA~1.2\Server\lps-3.2\WEB-INF\lib\BATIK-~2.JAR;D:\PROGRA~1\OPENLA~1.2\Server\lps-3.2\WEB-INF\lib\BATIK-~3.JAR;D:\PROGRA~1\OPENLA~1.2\Server\lps-3.2\WEB-INF\lib\COMMON~1.JAR;D:\PROGRA~1\OPENLA~1.2\Server\lps-3.2\WEB-INF\lib\COMMON~2.JAR;D:\PROGRA~1\OPENLA~1.2\Server\lps-3.2\WEB-INF\lib\COMMON~3.JAR;D:\PROGRA~1\OPENLA~1.2\Server\lps-3.2\WEB-INF\lib\COMMON~4.JAR;D:\PROGRA~1\OPENLA~1.2\Server\lps-3.2\WEB-INF\lib\CO6683~1.JAR;D:\PROGRA~1\OPENLA~1.2\Server\lps-3.2\WEB-INF\lib\COECE9~1.JAR;D:\PROGRA~1\OPENLA~1.2\Server\lps-3.2\WEB-INF\lib\ftp.jar;D:\PROGRA~1\OPENLA~1.2\Server\lps-3.2\WEB-INF\lib\ISO-RE~1.JAR;D:\PROGRA~1\OPENLA~1.2\Server\lps-3.2\WEB-INF\lib\JAKART~1.JAR;D:\PROGRA~1\OPENLA~1.2\Server\lps-3.2\WEB-INF\lib\jaxrpc.jar;D:\PROGRA~1\OPENLA~1.2\Server\lps-3.2\WEB-INF\lib\jdom.jar;D:\PROGRA~1\OPENLA~1.2\Server\lps-3.2\WEB-INF\lib\jing.jar;D:\PROGRA~1\OPENLA~1.2\Server\lps-3.2\WEB-INF\lib\jython.jar;D:\PROGRA~1\OPENLA~1.2\Server\lps-3.2\WEB-INF\lib\LOG4J-~1.JAR;D:\PROGRA~1\OPENLA~1.2\Server\lps-3.2\WEB-INF\lib\LPS-32~1.JARps-3.2.jar;D:\PROGRA~1\OPENLA~1.2\Server\lps-3.2\WEB-INF\lib\saaj.jar;D:\PROGRA~1\OPENLA~1.2\Server\lps-3.2\WEB-INF\lib\sac.jar;D:\PROGRA~1\OPENLA~1.2\Server\lps-3.2\WEB-INF\lib\SAXON-~1.JAR;D:\PROGRA~1\OPENLA~1.2\Server\lps-3.2\WEB-INF\lib\swflib.jar;D:\PROGRA~1\OPENLA~1.2\Server\lps-3.2\WEB-INF\lib\wsdl4j.jar;D:\PROGRA~1\OPENLA~1.2\Server\lps-3.2\WEB-INF\lib\XMLRPC~1.JAR;D:\PROGRA~1\OPENLA~1.2\Server\lps-3.2\WEB-INF\lib\XPP3-1~1.JAR;\lib\junit.jar;D:\Program Files\OpenLaszlo Server 3.2\Server\lps-3.2\WEB-INF\classes

Jim Grandy - 31/Mar/06 12:11 PM
Duplicate of LPP-1428.

Mark Davis - 31/Mar/06 02:57 PM
I should be able to fix this shortly. There are two issues surfaced here, one is that the script is being generated with a bad assumption and this other is an instalklation processing problem.

Thanks!