• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts Application (WAR) file deploy

 
Poorna Nandam
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Poorna Nandam
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 489
Eclipse IDE Java Postgres Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can change port for tomcat server in TomcatHome\conf\server.xml..

CMIIW

Regards,
W
 
Poorna Nandam
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 489
Eclipse IDE Java Postgres Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<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
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, really, this belongs in a server or IDE forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic