Hi Celeste,
I may have steered you in the wrong direction. Anyway just tested two applications
that I had defined for JRun 4 and applied them to JRun 3.1 and it worked. Here's what
I did.
Two applications:
inetpub\wwwroot\web1
inetpub\wwwroot\web2
Created the J2EE structure and made sure I had a valid web.xml file for each
application. In the WEB-INF/jrun-web.xml file added the <context-root> element for
each application.
<context-root>/web1</context-root>
<context-root>/web2</context-root>
>From the JMC in JRun 4 I added the two web applications browsing to the root of
>inetpub\wwwroot\web1 and inetpub\wwwroot\web2 for the appropriate applications. I
>had created two separate web sites on IIS for each application. Then ran the
>connector for each application. You actually shouldn't need the virtual mappings in
>the jrun-web.xml file as I described previously.
Next in the local.properties file of my JRun 3.1 server added the following
definitions:
web1-app.rootdir=C:\\inetpub\\wwwroot\\web1
web1-app.class={webapp.service-class}
webapp.mapping./web1=web1-app
web2-app.rootdir=C:\\inetpub\\wwwroot\\web2
web2-app.class={webapp.service-class}
webapp.mapping./web2=web2-app
The only problem I saw was a class dependency issue which was resolved by removing the
cached files from the WEB-INF/jsp folder.
HTH
Ted Zimmerman
-----Original Message-----
From: Haseltine, Celeste [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 03, 2002 6:17 PM
To: JRun-Talk
Subject: Configuring JRUN 4.0 to work on a Test server with mult
existing web applications running under JRUN 3.1
OK, I am getting closer to finding a solution to this problem. Ted, my
thanks for your response earlier today. Your suggestion did not work for
the Default JRUN server, but it did work for a server of my own creation(see
next paragraph). Even modifying the jrun-web.xml file as you suggested, and
configuring the Default server to work with IIS, the Default server still
could not see any of my existing JRUN 3.1 applications under the
Inetpub/wwwroot subdirectory. BUT, I did find another way that has gotten
me closer to what I need, but I still have one glitch, I can't "see/find"
any of my *.class files under each of my existing web applications
WEB-INF\classes subdirectories. So if anyone has any further
recommendations/suggestions, I am all ears.
I created a new server in JRUN 4 called Test1. I then configured Test1 to
work with IIS. In the process, I had to delete the IIS configuration with
the Default server (I don't know why, but I could not get Test1 to see any
of our existing JRUN 3.1 apps under Inetpub/wwwroot without deleting the IIS
configuration for the Default server first, and then adding it back in for
the Test1 server). I then modified the jrun-web.xml file for Test1, adding
the following lines for our currently existing apps on the server:
<virtual-mapping>
<resource-path>/Continental/*</resource-path>
<system-path>C:\Inetpub\wwwroot\Continental</system-path>
</virtual-mapping>
<virtual-mapping>
<resource-path>/American/*</resource-path>
<system-path>C:\Inetpub\wwwroot\American</system-path>
</virtual-mapping>
<virtual-mapping>
<resource-path>/USWest/*</resource-path>
<system-path>C:\Inetpub\wwwroot\USWest</system-path>
</virtual-mapping>
So far so good. When I am running Test1 as my JRUN 4.0 server, I can use
directory browsing inside of IE 6.0 to drill down to each of these
applications, and run the Main.jsp for each.
My problem is that the compiled JSP pages are being put under the test1
servers WEB-INF subdirectory structure (i.e.
C:\Inetpub\wwwroot\test1\default-ear\default-war\WEB-INF\jsp), instead of
each web applications own WEB-INF\jsp directory. And of course, whenever I
try to run any of the above three web applications, they bomb because they
cannot find their respective class files in the <application directory
name>\WEB-INF\classes folder, since the JRUN 4.0 test1 server is looking for
the class files under
C:\Inetpub\wwwroot\test1\default-ear\default-war\WEB-INF\classes.
I tried adding the a mapping for the WEB-INF directory of each web
application to the jrun-web.xml file (see ex below), and restarting test1.
I didn't have much hope that this would work, and it didn't. JRUN 4.0 still
cannot find each web applications class files, where they reside under each
web applications WEB-INF/classes folder (for example
C:\Inetpub\wwwroot\Continental\WEB-INF\classes).
<virtual-mapping>
<resource-path>/Continental/*</resource-path>
<system-path>C:\Inetpub\wwwroot\Continental</system-path>
</virtual-mapping>
<virtual-mapping>
<resource-path>/Continental/WEB-INF/*</resource-path>
<system-path>C:\Inetpub\wwwroot\Continental\WEB-INF</system-path>
</virtual-mapping>
Anyone have any suggestions? I really need to get both JRUN 3.1 and JRUN
4.0 working together on the same sever, so I can evaluate whether or not to
port our apps over. But I can't begin this process until I can get JRUN 4.0
working with my existing web application directory structure on the test
server.
Thanks in advance for any advice/assistance.
Celeste Haseltine, PE
MTL, Inc
______________________________________________________________________
Get the JRun Web Application Construction Kit - the only book written specifically for
JRun developers.
http://www.amazon.com/exec/obidos/ASIN/0789726009/houseoffusion
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists