House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  JRun-Talk

Jrun to parse html files

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Dylan Schorer
05/15/2005 03:49 AM

How can I get Jrun to parse html files? I've the .html to the handler setting in httpd.conf:      AddHandler jrun-handler .jsp .jws .cfm .cfml .cfc .html And, I've added the servlet mapping in the server instance's default-web.xml, and tried adding it to my app's web.xml:     <servlet-mapping>       <servlet-name>JSPServlet</servlet-name>        <url-pattern>*.html</url-pattern>      </servlet-mapping> Though, the app always generates the error "JRun will not accept request.  Check JRun web server configuration and JRun mappings on JRun server.". It seems that anything I add to the servlet mappings in default-web.xml doesn't get recognized. Any thoughts? I found some docs on how to get ColdFusion to parse.html files, but I wan't Jrun4 to parse them. Thanks

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Jeffrey Anderson
05/15/2005 01:02 PM

This may sound like a dumb question, but do you want the Jrun web server to simply serve html files?  If that's the case I believe it already does.  Try it by placing them in the default-war/ directory of your Jrun server, and then browse to http://<server-domain>/:<port>/<web_page.html> If that's not the case then WHY do you want the server to PARSE the html files?  That piece of information doesn't seem to be registering to the reader of your question. How can I get Jrun to parse html files? I've the .html to the handler setting in httpd.conf:      AddHandler jrun-handler .jsp .jws .cfm .cfml .cfc .html And, I've added the servlet mapping in the server instance's default-web.xml, and tried adding it to my app's web.xml:     <servlet-mapping>       <servlet-name>JSPServlet</servlet-name>        <url-pattern>*.html</url-pattern>      </servlet-mapping> Though, the app always generates the error "JRun will not accept request. Check JRun web server configuration and JRun mappings on JRun server.". It seems that anything I add to the servlet mappings in default-web.xml doesn't get recognized. Any thoughts? I found some docs on how to get ColdFusion to parse.html files, but I wan't Jrun4 to parse them. Thanks

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
David Dreggors
04/16/2007 01:49 PM

I am curious about this as well. I have a servlet/webapp (ported from tomcat) that handles files with the extension of .dbml, which I have deployed in my server instance. I added .dbml to the addhandler for JRun in apache. This servlet loads fine and even in the logs it gives no errors. Yet, when I browse to .dbml files I get a 500 Internel Server Error and the apache error logs show this: JRun will not accept request.  Check JRun web server configuration and JRun mappings on JRun server. I have not heard before to add this to the default-web.xml, is this how this would be accomplished? If not how then do I tell JRun to hand the files of type dbml to my servlet for processing the way it hands cfm/cfml to coldfusion? ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Wendy Baur
04/16/2007 03:30 PM

I recently did this you need to add the application needs to be added to JRUN in the form of a .war file.  Once you have created the .war file go into the JRUN admin and add the web application to the server instance. Web applications have a specific directory structure mine looks like this: *.jsp files JavaScript Styles WEB-INF     web.xml (I don't know where you are getting default-web.xml)     lib     classes          *.java files go here in proper java pack directory structure I used ajax so my javascript url was:      var url = "demoservlet?xmlstring" + xmlstring; my java package: umdd java class demoString my web.xml file looks like this: <web-app>      <servlet>            <servlet-name>demoString</servlet-name>            <servlet-class>umdd.demoString</servlet-class>      </servlet>      <servlet-mapping>            <servlet-name>demoString</servlet-name>            <url-pattern>/ demostring</url-pattern>      </servlet-mapping> </web-app> ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
David Dreggors
04/16/2007 03:40 PM

I thank you for your reply, in fact you are mostly correct. I have already fixed this issue. I had already set all that up, including the *.dbml extension mapping in the web.xml file. However, in my case the problem was in the apache connector. I had added the .dbml to the addhandler portion of the JRun connector but I did not set Apialloc to "true". Apialloc tells JRun to use either Apache's reserved memory or the system memory and since my webapp is a bit memory intensive... JRun needed more memory to serve it up. Once I set this to true all was fine! ----- Excess quoted text cut - see Original Post for more -----


<< Previous Thread Today's Threads Next Thread >>

Search jrun-talk

May 19, 2013

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31   

Designer, Developer and mobile workflow conference