wood burning stoves*
The moose likes Servlets and the fly likes about war file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "about war file" Watch "about war file" New topic
Author

about war file

ravindra patil
Ranch Hand

Joined: Sep 01, 2006
Posts: 228
i am creating war file using jar command jar -cvf applicationroot.war *

it is working properly in tomacat but not on weblogic why this
kindly reply
[ October 17, 2006: Message edited by: ravindra patil ]
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

What is "wab logig"?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Carol Enderlin
drifter
Ranch Hand

Joined: Oct 10, 2000
Posts: 1364
TellTheDetails...

What isn't working? What version of tomcat and WebLogic Server are you using?
Lijo Jacob
Greenhorn

Joined: Sep 02, 2004
Posts: 5
jar command is independent of the server. It comes with the JDK.


Lijo Jacob<br />SCJP, SCWCD, SCBCD
Jignesh Patel
Ranch Hand

Joined: Nov 03, 2001
Posts: 626

define java_home/bin your sytem path.

It has nothing to do with Server.
D Rog
Ranch Hand

Joined: Feb 07, 2004
Posts: 472

more likely web.xml has problems


Retire your iPod and start with HD Android music player Kamerton | Minimal J2EE container is here | Light weight full J2EE stack | and build tool | Co-author of "Windows programming in Turbo Pascal"
ravindra patil
Ranch Hand

Joined: Sep 01, 2006
Posts: 228
Originally posted by ravindra patil:
[QB]i am creating war file using jar command jar -cvf applicationroot.war *

it is working properly in tomacat but not on weblogic why this
kindly reply

tomacat version is 5.X and web logic server version is 6.1

but when i creates war file by eclipse then it works there is no problem with my web.xml file
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9915
    
158

What exactly does "its not working properly" mean? What difference are you seeing in the behavior on weblogic? Any exceptions or anything else? Please provide more specific details.


[My Blog] [JavaRanch Journal]
ravindra patil
Ranch Hand

Joined: Sep 01, 2006
Posts: 228
Originally posted by ravindra patil:
[QB]i am creating war file using jar command jar -cvf applicationroot.war *

it is working properly in tomacat but not on weblogic why this
kindly reply

it is giving NullPinterException but remember it is working fine on tomacat 5.X
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9915
    
158

Ravindra,

Its not easy for anyone to guess why you are observing a NullpointerException in your application, unless you post the exception stacktrace that you are seeing and also the information about the usecase, when you are seeing this exception. So please provide these details and people here will be glad to help you.
(Remember to use the Code button, to wrap the exception stacktrace in a code block, while posting the stacktrace).
Carol Enderlin
drifter
Ranch Hand

Joined: Oct 10, 2000
Posts: 1364
Kindly provide stack trace and any other details. Without a stack trace or other details we really cannot help you.

Exactly which versions of tomcat does it work on? 5.0 or 5.5?

Why WebLogic Server 6.1? That's really old!
 
wood burning stoves
 
subject: about war file
 
Similar Threads
difference btn Jar, War and Ear File
project dependencies ?
difference between jar and war file
servlets
.war