aspose file tools*
The moose likes Struts and the fly likes Struts Application (WAR) file deploy Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts Application (WAR) file deploy " Watch "Struts Application (WAR) file deploy " New topic
Author

Struts Application (WAR) file deploy

Poorna Nandam
Greenhorn

Joined: Apr 01, 2009
Posts: 20
Hello All,

I have struts WAR file.
I have deployed WAR file successfully into my project hirarchy called Bea workshop.
weblogic server by default configured.

can i run the application using web logic server (or) do i need to run using only Apache Tomcat server.
please help on this.

which server i should use.

Apache tomcat server is not confirured into my workshop.
while i was configuring Apache tomcat server showing error called port is already running by another process.. etc.

please help

Thanks in advance...
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Poorna Nandam wrote:
I have deployed WAR file successfully into my project hirarchy called Bea workshop.
weblogic server by default configured.

If you deploys successfully a war file, then open a browser and type
http://localhost:<PORT_ON_WHICH_BEA_RUNNING>/WAR_FILE_NAME
Poorna Nandam wrote:
can i run the application using web logic server (or) do i need to run using only Apache Tomcat server.
please help on this.

If BEA is servlet container, then it should able to run Struts project.
Poorna Nandam wrote:
Apache tomcat server is not confirured into my workshop.
while i was configuring Apache tomcat server showing error called port is already running by another process.. etc.

Hmm, its because, my guess is, because of the BEA server is already running on that port, Tomcat throws error.
Use c:>netstat -a, to find out the port process.


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Poorna Nandam
Greenhorn

Joined: Apr 01, 2009
Posts: 20
yes you are absolutly right...
port 8080 is already in use.
so now how can i change the port for tomcat server.
please do sugest me.



Thank you
Poorna
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Why are you using Tomcat, if BEA web logic is already configured and you had deployed your war file successfully there. Still If you want, I suggest to change the Tomcat port to something other than 8080, like 8081, while installing Tomcat.
Poorna Nandam
Greenhorn

Joined: Apr 01, 2009
Posts: 20
Thank you very much for the valuable information.

As you said i am using weblogic server only forget abot Tomcat server.
now i am trying to running the application
http://localhost:7001/struts-blank-1.3.10

but 404 Error is coming


can you sugest me


Thank you inadvance.
Poorna
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Did you deploy it? How?

If this is a deployment issue you might want to ask in an IDE/app server forum.
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Check out the logs if its not get deployed correctly. Find out for any exception/error which prevents war from deploying.
Leonardo Carreira
Ranch Hand

Joined: Apr 07, 2009
Posts: 489

You can change port for tomcat server in TomcatHome\conf\server.xml..

CMIIW

Regards,
W


Sorry, perhaps my english language isn't too good.. Prepare for SCJP 6, Please God help me.. ☼
References : [Java.Boot] [JavaChamp] [JavaPrepare]
Poorna Nandam
Greenhorn

Joined: Apr 01, 2009
Posts: 20
sorry for inconvience. can you please tell me where i need to change the port.
There are several ports.
please see the server.xml file and mark me where i need to change.
also one more query do i need to change in any where else other than this server.xml.

Thanks ,
Poorna


Leonardo Carreira
Ranch Hand

Joined: Apr 07, 2009
Posts: 489

<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />

AFAIK at line 67..

please you can change the port 8080 to other port, example : 8081

restart tomcat..
open browser and go to http://localhost:8081

Thank's
(Sorry my english isnt too good)
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

I really do not understand, You said earlier that WebLogic is youe default configured server on your machine, now you want to use Tomcat ? My point is, if you are not able to deploy it into WebLogic, then How the change of server would help you ?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

No, really, this belongs in a server or IDE forum.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts Application (WAR) file deploy
 
Similar Threads
Struts application design using BEA Workshop
How to deploy WAR file in WebSphere Applcation Server 7
JDBC connection in Oracle Application Server 10g
possible to run struts app with weblogic server
Run a web application using JBoss