Entries Tagged as "jrun"

Ses Url on railo and coldfusion on Jrun 4

Going on working with my new multiserver installation I falled into an issue that took me a bit of time to go throught.

I could normaly run my application using cf, railo and openbd but all the application was failing trying to call a ses url like:

<code class="coldfusion">http://railo/index.cfm/mypage/
</code>

The server is simply not able to find the .cfm mapping and just do not invoke any cfm engine like .cfm mapping was not in the url.... what made me think is that this happen only with the instances I added to jrun but not to the main cfusion server ( the ones that I installed jrun with ; in my case cf8 ).

I started look around and especially in the web.xml ( placed under the web-inf folder of any server instance ) file where mapping and settings for the jrun server instance are placed ( In my case file is here : C:\JRun4\servers\cf7\cfusion.ear\cfusion.war\WEB-INF\web.xml) . With my surprise I found that in any cf instance added to Jrun this code is commented by default:

<code class="coldfusion"><!--Start Ses
  <servlet-mapping id="coldfusion_mapping_6">
     <servlet-name>CfmServlet</servlet-name>
     <url-pattern>*.cfml/*</url-pattern>
  </servlet-mapping>
  <servlet-mapping id="coldfusion_mapping_7">
    <servlet-name>CfmServlet</servlet-name>
    <url-pattern>*.cfm/*</url-pattern>
  </servlet-mapping>
  <servlet-mapping id="coldfusion_mapping_8">
    <servlet-name>CFCServlet</servlet-name>
    <url-pattern>*.cfc/*</url-pattern>
  </servlet-mapping>
  End Ses -->
</code>

Basically if you uncomment this code and restart the server also a mapping like : .cfm/page make the server invoking the coldfusion engine while before the jrun server simply was not able to recognize the mapping and was answering that no application was setted up to answer to the request.

While I solved the cf issue I found more problems to set up railo mapping cause as we all know jrun is not the railo "first choice" and settings are a bit different as in the default railo installation under Resin .... After some testing I added this code to C:\JRun4\servers\railo\WEB-INF\web.xml , restared the server and also railo started to respond correctly...

<code class="coldfusion"><!--Start Ses -->
  <servlet-mapping>
     <servlet-name>CFMLServlet</servlet-name>
     <url-pattern>*.cfml/*</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>CFMLServlet</servlet-name>
    <url-pattern>*.cfm/*</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>CFMLServlet</servlet-name>
    <url-pattern>*.cfc/*</url-pattern>
  </servlet-mapping>
  <!--End Ses -->   
</code>

Please note that I need to restart completely Jrun and not only the railo instance to make chanhges being recognized. I am not sure wht ( probbaly some kind of main config cache ) but after restarting jrun also Railo instance started to work fine with ses url.

I have not yet solved the matter with openBd but I plan to look into it soon.

No Comments

Xml parsing issue on railo and openbd.

RailoOpen bluedragon

 

 

As per my previous post I have installed Railo and Open BlueDragon on Jrun 4 as instances of a multiserver installation that also support cf8 and cf7.

Starting my tests I noted that both Railo and OpenBd in this particular configuration shows issues performing xml parse operations.

I got errors on both servers running code like:

<code class="coldfusion">
var xml = xmlParse(xml);
result = xmlSearch(xml,'/items/');
</code>

Googling around I discovered that Jrun miss some classes/configurations that both Railo and OpenBd native installtion provide.

I added this line in the java.config file as java.args ( I cut it for making it readable  but you must add it all in one line with no spaces ).

<code class="coldfusion">
-Djavax.xml.parsers.DocumentBuilderFactory=
com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
</code>

Restart the server and the xml functionalities will be regulary available.

No Comments

Installing Railo and Open BlueDragon with ColdFusion 8 Multiserver on JRUN4

RailoIn the last meeting of the Italian CFUG we got a very interesting speach about the ability to install coldfusion as multiserver ( Jrun 4 platform )  and the convenience to deploy under it more instances of coldfusion or  of any other JAVA J2EE Web or Enterprise Application. I so started my tests for setting up my personal test environment with Adobe cf, Railo and Openbd all deployed under the same multiserver installation.

Read more...

6 Comments