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>
On 4/16/07, David Dreggors <[EMAIL PROTECTED]> wrote:
> 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?
>
> >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.
> >
> >
> >-----Original Message-----
> >From: Dylan Schorer [mailto:[EMAIL PROTECTED]
> >Sent: Sunday, May 15, 2005 12:48 AM
> >To: JRun-Talk
> >Subject: Jrun to parse .html files
> >
> >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
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create Web Applications With ColdFusion MX7 & Flex 2.
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS
Archive:
http://www.houseoffusion.com/groups/JRun-Talk/message.cfm/messageid:5796
Subscription: http://www.houseoffusion.com/groups/JRun-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.8