Hi Jim, Yes, sorry. I was very busy yesterday and didn't have much time for responding.
The reason why it's not possible to just drop the application into an existing OpenLaszlo web application is the Java back-end system of LZProject. For a Java web application every servlet has to be mapped to a URL within the folder /WEB-INF/web.xml. Here's an example mapping: > <servlet> > <servlet-name>UserRest</servlet-name> > <display-name>REST web service for user data</display-name> > <servlet-class> > org.openlaszlo.lzproject.rest.UserRestController</servlet-class> > > <load-on-startup>1</load-on-startup> > </servlet> > > <servlet-mapping> > <servlet-name>UserRest</servlet-name> > <url-pattern>/lzproject/rest/user/*</url-pattern> > </servlet-mapping> And the Java classes have to be added the WEB-INF/classes folder. Java JAR library files have to be added to the WEB-INF/lib folder. And many more changes would need to made which would require that you open config files with text editors, add content to them, copy files around. That is A LOT MORE complicated then deploying a Java web application and - trust me - professional Java developers would never accept such an approach. Besides that the SOLO version of LZProject shows that you can deploy OpenLaszlo applications without running an OpenLaszlo server using a Java back-end. LZProject was made to show Java developers how to integrate Java applications with OpenLaszlo. If you are for example a PHP developer the tutorials published by IBM should be very helpful. http://www.donhopkins.com/drupal/node/125 If you have an OpenLaszlo server running on your system (probably using the one-click Windows installer) Tomcat is already installed with OpenLaszlo running in it. Tomcat contains a manager application making it easy to deploy WARs. Here are the docs: http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html#Deploy%20A%20New% 20Application%20from%20a%20Local%20Path Best regards, Raju > Von: Jim <[EMAIL PROTECTED]> > Datum: Thu, 25 Oct 2007 08:07:47 -0700 > An: Raju Bitter <[EMAIL PROTECTED]> > Betreff: Re: [Laszlo-dev] LZProject - Request for installation/configuration > clarification > > Hi Raju, > > Raju Bitter wrote: >> You are welcome, Jim. Does it work now? If not, just get back to me. >> > > I would very much be interested in hearing your comments on the rest of > my e-mail (that was in-line). > > Jim > >> Cheers, >> Raju >> >> >>> Von: Jim <[EMAIL PROTECTED]> >>> Datum: Wed, 24 Oct 2007 16:32:46 -0700 >>> An: Raju Bitter <[EMAIL PROTECTED]> >>> Betreff: Re: [Laszlo-dev] LZProject - Request for installation/configuration >>> clarification >>> >>> Hi Raju, >>> >>> Thank you for your response. >>> >>> >>> Raju Bitter wrote: >>> >>>> Hi Jim, >>>> >>>> I just downloaded the WAR file using the same link and deployed it locally >>>> on my Tomcat server. You don't need to extract the application, if you have >>>> a default installation of Tomcat - dropping the file in the >>>> $CATALINA_HOME/webapps folder and restarting Tomcat should deploy the >>>> application. >>>> >>>> >>> I extracted the .war components so that I could study the source code. >>> >>> I was under the impression that I could run the application as one >>> normally would any application under >>> >>> http://127.0.0.1:8080/lps-4.0.5/my-apps/... >>> >>> I find that studying existing "best-practice" applications with a "What >>> happens if I change this...?" orientation aids greatly in flattening the >>> learning curve. >>> >>> I am inclined to think at this point that my environment is not suited >>> to deploying a .war file. I am not a Java person, so it is quite >>> possible that I am missing something totally obvious to you. >>> >>> Currently, my development environment is >>> >>> Windows XP >>> Apache 2.2.4 >>> java version "1.6.0_02" >>> Java(TM) SE Runtime Environment (build 1.6.0_02-b06) >>> >>> >>> Please find attached what I see if I go to >>> >>> http://127.0.0.1:8080/lps-4.0.5/my-apps/.../LZProject-SWF.html >>> >>> Your advise and time is greatly appreciated. I look forward to studying >>> the best practices as provided by your LZProject. >>> >>> Jim >>> >>> >>>> I loaded the login-page and everything worked flawless for me. If you open >>>> the HTML file from the file browser, that won't work. You have to deploy >>>> the >>>> web application in a Java servlet container like Apache Tomcat. If you open >>>> the HTML pages by double clicking in your file browser (Finder on OS X or >>>> Windows Explorer) you'll get the error messages you are describing. >>>> >>>> I attached a screen shot of the login screen as I saw it on my machine, >>>> using the following URL: >>>> http://localhost:8080/lzproject-solo/lzproject/LZProject-DHTML.html >>>> Or >>>> http://localhost:8080/lzproject-solo/lzproject/LZProject-SWF.html >>>> >>>> You don't need a crossdomain.xml for LZProject as the OpenLaszlo >>>> application >>>> doesn't make any requests to remote domains. >>>> >>>> Best, >>>> Raju Bitter >>>> >>>> OpenLaszlo Community Manager >>>> >>>> >>>> >>>> >>>>> Von: Jim <[EMAIL PROTECTED]> >>>>> Datum: Wed, 24 Oct 2007 08:37:00 -0700 >>>>> An: Laszlo-dev mailing list <[email protected]> >>>>> Betreff: [Laszlo-dev] LZProject - Request for installation/configuration >>>>> clarification >>>>> >>>>> Core dev team: >>>>> >>>>> I would like to study the best-practice examples as provided by your >>>>> LZProject. However, I have apparently misunderstood the installation >>>>> and/or configuration procedures. I would greatly appreciate someone >>>>> providing some configuration. >>>>> >>>>> I followed these steps: >>>>> >>>>> 1) Downloaded lzproject-solo.war from >>>>> http://labs.openlaszlo.org/lzproject/ >>>>> >>>>> 2) Extracted it. Top-level directory structure looks like: >>>>> >>>>> index-files/ >>>>> lps/ >>>>> lzproject/ >>>>> META-INF/ >>>>> WEB-INF/ >>>>> index.jsp >>>>> >>>>> 3) From my browser, going to either LZProject-SWF.html or >>>>> LZProject-DHTML.html in the lzproject directory both produce the login >>>>> screen, but no submit button. >>>>> >>>>> 4) I turned the debugger on in the source file, recompiled, and I am >>>>> seeing these error messages in the debugger at the login screen: >>>>> >>>>> WARNING: LzLoadQueue.XMLOnDataHandler load failed from URL >>>>> 'rest/application/i18n?__lzbc__=1191023754984', no data received. >>>>> WARNING: Failure to load data in serverless apps may be caused by Flash >>>>> player security policies. Check your data server crossdomain.xml file >>>>> ERROR: Error calling REST web service i18n >>>>> >>>>> >>>>> My crossdomain.xml is a straight copy from >>>>> http://labs.openlaszlo.org/wafflecone-nightly/docs/developers/proxied.html >>>>> #d >>>>> 0e >>>>> 59705 >>>>> >>>>> <?xml version="1.0"?> >>>>> <!DOCTYPE cross-domain-policy >>>>> SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd"> >>>>> <cross-domain-policy> >>>>> <allow-access-from domain="*" /> >>>>> </cross-domain-policy> >>>>> >>>>> >>>>> What have I overlooked? and where in the docs do I need to revisit? >>>>> >>>>> Thank you for your time! >>>>> >>>>> Jim >>>>> >>>>> >>>> >>>> >>>> ------------------------------------------------------------------------ >>>> >>>> >> >> >> >> >> >> >
