File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Jrun 4 & installing app Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Jrun 4 & installing app" Watch "Jrun 4 & installing app" New topic

Jrun 4 & installing app

Michael Palka

Joined: Jun 14, 2002
Posts: 14
Is it possible to deploy an application that is not packed with a jar archive in Jrun 4 ? i want to depeploy the entire app tree without using a war, jar, ear.... -files ..
maybe create a context in some way ?
chanoch wiggers
Ranch Hand

Joined: May 24, 2001
Posts: 245
have to had any time to learn the admin app? If you start the default server and then select it (J2EE components should open by default, if not choose that option). You can then deploy Enterprise apps, web applications and EJBs
if yo select Add here you can deploy an expanded web app = i.e. not packaged as a war file

chanoch<p><a href="" target="_blank" rel="nofollow">Author of Professional Apache Tomcat</a></p>
Michael Palka

Joined: Jun 14, 2002
Posts: 14
I know that but, Enterprise apps are ear files, web apps are war files, and javabeans are jar files. I want to deploy the application without using any of theese. I have to deploy it as it is, the entire tree without packing it first with a jar archive
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
You can do that from the admin server - Define your application - under the default application server is simplest.
Then under the servlets item on the application list you can edit the associated web.xml with the appropriate information. Then you copy the class files etc into place and restart.
Michael Palka

Joined: Jun 14, 2002
Posts: 14
Are you relly talking about Jrun 4 ?
sounds to me more like WebSphere?
when you say "admin server" do you mean "Jrun Management Console" ?
Im sorry but this doesnt make any sence cause the objects you describe are not in Jruns management console.
Anthony Villanueva
Ranch Hand

Joined: Mar 22, 2002
Posts: 1055
1. Start the admin server and go to the JMC.
2. Start the JRun server that you want your webapp to be deployed to.
3. Click on that JRun server.
4. In "Web Applications" click Add.
5. In deployment files browse to your webapp root directory and click deploy.
6. Select the general settings for your web application, and click apply.
Sometimes an error will appear: [1] ObjectName: Invalid value -> demo-app?server etc etc. This is a benign bug. Ignore this.
Owee Nicolas
Ranch Hand

Joined: Jun 16, 2002
Posts: 49
You can also use the autodeploy feature of JRun 4. Simply, start your JRun Server and place your expanded directory on the autodeploy directory. JRun automatically deploys a module when it detects a module archive file or an expanded module directory in a deploy directory.
By default, this functionality is combined with hot deploy, which automatically deploys a module copied to a deploy directory of a running JRun server.
The default deploy directory is jrun_root/servers/jrun_server, but you can create additional deploy directories, and modify or remove existing ones through the JMC or by manually adding or removing deployDirectory attributes to the DeployerService section of the JRun server's jrun_root/servers/server_name/SERVER-INF/jrun.xml file. For example, to configure the directory c:/my_deployments as a deploy directory, you would add the following entry to the jrun.xml file:
<attribute name="deployDirectory">c:/my_deployments</attribute>.
You may want to refer to Dynamic module deployment of the JRun 4.0 Documentation for details.
[ July 09, 2002: Message edited by: Owee Nicolas ]

Owee<br />SCJP 1.4
Michael Palka

Joined: Jun 14, 2002
Posts: 14
Thanx alot guys, the thing is when u try to add an web application it asks you for a war file, thats why I got confused, It was true though, you can point it to the root of that directory. Thanx alot works perfectly
I agree. Here's the link:
subject: Jrun 4 & installing app
It's not a secret anymore!