|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
Problem with file paths when deploying to virtual hostHi, all.
I'm having a lot of trouble with setting up ProgramD on a shared host. I have a shared Red Hat server where my home directory is /home/r/rascal. I'm trying to deploy to Tomcat 5.0.25 with JDK 1.5. The problem is that the default directories in CoreSettings.java, core.xml, and the other files are all written to assume you have access to the root directory and everything below it. So I've had to do a lot of rearranging since, for example, /var/programd/ffm does not exist and is not accessible to me. I've had to modify build.xml to put things like the conf directory and aiml directories into the war file, so they get deployed to my web host, and then point everything to them properly, so that it's all consistent with the new layout. So, my first question is, have I missed something? This seems like an awful lot of work, and I'm just wondering if there's some easier way to get ProgramD running on a web host where you don't own everything from the root directory down. Why is ProgramD written in such a way that conf, aiml, and var are decoupled from the rest of the deployment? Now, I've made a lot of progress, but I've gotten stuck. The problem comes during start-up and relates to creating the SampleBot directory for the FlatFileMultiplexor. The issue is that the URL of the web host seems to be getting turned into a file path in such a way that I'm once again stuck because I don't own the entire filesystem from / on down. The stacktrace is this: org.aitools.programd.util.UserError: Could not create FlatFileMultiplexor predicates file directory "/www.private.rascal.com/programd/WEB-INF/var/ffm/SampleBot/89B22BB43D819CF05198FA0638B6E0A8.predicates". org.aitools.programd.util.FileManager.checkOrCreate(FileManager.java:281) org.aitools.programd.multiplexor.FlatFileMultiplexor.loadPredicates(FlatFileMultiplexor.java:176) org.aitools.programd.multiplexor.FlatFileMultiplexor.loadPredicate(FlatFileMultiplexor.java:150) org.aitools.programd.multiplexor.PredicateMaster.get(PredicateMaster.java:216) org.aitools.programd.server.tags.Get.doTag(Get.java:49) org.apache.jsp.pages.TalkToBot_jspx._jspx_meth_aiml_get_0(TalkToBot_jspx.java:253) org.apache.jsp.pages.TalkToBot_jspx._jspService(TalkToBot_jspx.java:102) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:298) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) org.aitools.programd.server.servlet.TalkToBotServlet.forward(TalkToBotServlet.java:203) org.aitools.programd.server.servlet.TalkToBotServlet.setupBot(TalkToBotServlet.java:198) org.aitools.programd.server.servlet.TalkToBotServlet.doGet(TalkToBotServlet.java:78) javax.servlet.http.HttpServlet.service(HttpServlet.java:697) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) As you can see, I've managed to relocate the /var/ffm/SampleBot directory to within my personal filespace, but the URL of my domain has made its way into the file path, and I don't know how to get it out of there. If this were a relative path, I'd be in good shape, but somehow it's added the "/www.private.rascal.com" part from the URL to the beginning of the path, so it's absolute. I've traced this back to FileManager, FlatFileMultiplexor, and URLTools, but I just don't see the fix. The problem already exists when it gets to the FlatFileMultiplexor constructor. In the constructor, I'm printing out this.ffmDirName, and it's set to "/www.private.rascal.com/programd/WEB-INF/var/ffm". I don't see what to do to make this relative, other than some risky repairs on ffmDirName. Is there a way to get this value set properly in the first place, so that it's relative to the current Tomcat directory, or something like that? It seems like that was successfully done to locate core.! xml, so why not here? Any help (and advice on what the easy way to do this would have been ;) would be greatly appreciated! Sorry for being too wordy. I'm just trying to be clear. Cheers, Rascal _______________________________________________ programd mailing list programd@... http://aitools.org/mailman/listinfo/programd |
|
|
Re: Problem with file paths when deploying to virtual host--- codger4110@... wrote:
> I'm having a lot of trouble with setting up ProgramD on a shared > host. I have a shared Red Hat server where my home directory is > /home/r/rascal. I'm trying to deploy to Tomcat 5.0.25 with JDK 1.5. After spending many frustrating hours trying to get a Java CMS to work with shared hosting, I gave up and looked for something else. Here is what I found: http://eapps.com/ManagedHosting/VirtualPrivateServer.jsp http://eapps.com/Docs/VPSStandardPrices.jsp -- David Wallace Croft / (214) 636-3790 m http://www.CroftSoft.com/people/david/ _______________________________________________ programd mailing list programd@... http://aitools.org/mailman/listinfo/programd |
|
|
|
|
|
Re: Problem with file paths when deploying to virtual hostRascal,
Paths are the bane of my existence, and I seem to be continually reworking how they get handled, to deal with more and more subtleties. I also don't really understand the most desirable way to package the app. I guess my idea was that people would want a .war file they could just deploy without having to rebuild everytime they change AIML files or other configuration. As I've been told, the proper way to handle all of this is for everything to be in a database. But I have done a fair amount of twiddling since the 4.6 release, and if you are adventurous enough to try out CVS HEAD, you may get better results with some of the problems you've mentioned. I have had nice experiences with eApps, by the way. But I understand your desire not to change hosts. Please let me know if the stuff in cvs works any better for you, and/or if you can suggest a better way of arranging things. I really don't know what the norm is out there for deployment of Program D as a web app, or if there even is a norm. I know of several different deployments that have taken quite different approaches, all depending on the type of environment/enterprise that they're in with. Noel codger4110@... wrote: > I'd really rather get the software working than go through changing hosts. :-) > > Thanks, anyway! > > > -----Original Message----- >> From: David Wallace Croft <david_wallace_croft@...> >> Sent: Nov 14, 2006 5:55 PM >> To: Program D <programd@...> >> Subject: Re: [programd] Problem with file paths when deploying to virtual host >> >> --- codger4110@... wrote: >>> I'm having a lot of trouble with setting up ProgramD on a shared >>> host. I have a shared Red Hat server where my home directory is >>> /home/r/rascal. I'm trying to deploy to Tomcat 5.0.25 with JDK 1.5. >> >> >> After spending many frustrating hours trying to get a Java CMS to work >> with shared hosting, I gave up and looked for something else. Here is >> what I found: >> http://eapps.com/ManagedHosting/VirtualPrivateServer.jsp >> http://eapps.com/Docs/VPSStandardPrices.jsp >> >> -- >> David Wallace Croft / (214) 636-3790 m >> http://www.CroftSoft.com/people/david/ >> _______________________________________________ >> programd mailing list >> programd@... >> http://aitools.org/mailman/listinfo/programd > > > > _______________________________________________ > programd mailing list > programd@... > http://aitools.org/mailman/listinfo/programd programd mailing list programd@... http://aitools.org/mailman/listinfo/programd |
|
|
|
|
|
|
|
|
database questionI read in the documentation that predicates can be stored in a database
and I found some of the Java/SQL code for that. Is the plan to permit storing properties in the database sometime in the future too? How about categories? -- David Wallace Croft / (214) 636-3790 m http://www.CroftSoft.com/people/david/ _______________________________________________ programd mailing list programd@... http://aitools.org/mailman/listinfo/programd |
| Free Forum Powered by Nabble | Forum Help |