Failure extracting WAR classes
Hi,
I am not sure whether this is the right forum... but I guess somebody here should be able to answer my question. I am deploying a war file on Weblogic 6.1 on Solaris. But when I start Weblogic after deploying the application, I get the error :
<Sep 16, 2002 6:31:52 AM GMT-05:00> <Error> <HTTP> <WebAppServletContext(100251,certificate,/certificate)] failure extracting WAR classes
java.io.IOException: Permission denied
I tried changing the permissions on the war file... even that did not help... Can anybody please help me?
Thanks in advance...
Nish
Hey even i am getting the same error in Solaris 8 and
weblogic 6.1.
Can anyone tell why i am getting this error.It is
urgent .
Thanks in advance.
You likely started Weblogic as another user at one point (perhaps root).
Change ownership of all files in $WL_HOME/server/bin/myserver/.wlnotdelte to the user you would like to start weblogic and try again.
Similar Messages
-
Failure extracting WAR classes when starting weblogic server
I installed weblogic6.1 app server on Solaris box. It works fine at first. Then
I moved the unix box to anther place which means it has different IP. Then I have
following exception when I try to start the weblogic server:(I haven't deployed
any thing in the server yet, so it's just a newly installed weblogic server)
Starting WebLogic Server ....
<Mar 8, 2002 10:40:26 AM PST> <Notice> <Management> <Loading configuration file
./config/mydomain/config.xml ...>
<Mar 8, 2002 10:40:35 AM PST> <Notice> <WebLogicServer> <Starting WebLogic Admin
Server "privoserver" for domain "privodomain">
<Mar 8, 2002 10:40:45 AM PST> <Error> <HTTP> <[WebAppServletContext(604746,wl_management_internal2,/wl_management_internal2)]
failure extracting WAR classes
java.io.IOException: Permission denied
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.checkAndCreate(File.java:1162)
at java.io.File.createTempFile(File.java:1247)
at weblogic.servlet.internal.WebAppHelper.extractClassFiles(WebAppHelper.java:71)
Thanks in advance for your reply!
LindenHi
This is a Unix problem, you may check if you have all the permissions.
I suspect that some of the files which may be owned by someone other than user-value and therefore preventing the writting to the
files.
Can you check the files owership under /usr/local/bea/wlserver6.1/config/mydomain/applications/.wlnotdelete to see if any of the
files or subdirectories are owned by someone else, such as 'root' or even under different group?"
Hope this help
JFG
Linden Lu wrote:
I installed weblogic6.1 app server on Solaris box. It works fine at first. Then
I moved the unix box to anther place which means it has different IP. Then I have
following exception when I try to start the weblogic server:(I haven't deployed
any thing in the server yet, so it's just a newly installed weblogic server)
Starting WebLogic Server ....
<Mar 8, 2002 10:40:26 AM PST> <Notice> <Management> <Loading configuration file
/config/mydomain/config.xml ...>
<Mar 8, 2002 10:40:35 AM PST> <Notice> <WebLogicServer> <Starting WebLogic Admin
Server "privoserver" for domain "privodomain">
<Mar 8, 2002 10:40:45 AM PST> <Error> <HTTP> <[WebAppServletContext(604746,wl_management_internal2,/wl_management_internal2)]
failure extracting WAR classes
java.io.IOException: Permission denied
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.checkAndCreate(File.java:1162)
at java.io.File.createTempFile(File.java:1247)
at weblogic.servlet.internal.WebAppHelper.extractClassFiles(WebAppHelper.java:71)
Thanks in advance for your reply!
Linden -
Starting Weblogic 6.1 failure extracting WAR classes
Hi there,
I'm getting several error-messages when starting my weblogic 6.1 saying:
<Jan 10, 2002 9:07:32 AM CET> <Error> <HTTP> <[WebAppServletContext(4057696,cert
ificate,/certificate)] failure extracting WAR classes java.io.IOException: Permission
denied
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.checkAndCreate(File.java:1162)
etc...
but the server is running and the applications work fine. Should I just ignore
the error-messages or how can I avoid them?
Any help is appreciated
thanx
AlexHi.
Not sure what could be the cause. Are you running the latest service pack (sp2)? If not
please upgrade and try again. You might also check rwx permissions on the war file and
the directories.
Regards,
Michael
Alex wrote:
Hi there,
I'm getting several error-messages when starting my weblogic 6.1 saying:
<Jan 10, 2002 9:07:32 AM CET> <Error> <HTTP> <[WebAppServletContext(4057696,cert
ificate,/certificate)] failure extracting WAR classes java.io.IOException: Permission
denied
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.checkAndCreate(File.java:1162)
etc...
but the server is running and the applications work fine. Should I just ignore
the error-messages or how can I avoid them?
Any help is appreciated
thanx
Alex--
Michael Young
Developer Relations Engineer
BEA Support -
Starting Weblogic 6.1 failure extracting WAR classes file access denied
When I start Weblogic I get following error
<[WebAppServletContext(4057696,cert ificate,/certificate)] failure extracting WAR classes java.io.IOException: Permission denied at java.io.UnixFileSystem.createFileExclusively(Native Method) at java.
When I am shutting down weblogic with following command
java weblogic.Admin -url 10.170.80.140:7001 SHUTDOWN -username system -password mydomainIt is not shutting down properly
It does not show following message
E:\bea\wlserver6.1>goto finish
E:\bea\wlserver6.1>cd config\mydomain
E:\bea\wlserver6.1\config\mydomain>ENDLOCAL
which normally it should.Hi.
Not sure what could be the cause. Are you running the latest service pack (sp2)? If not
please upgrade and try again. You might also check rwx permissions on the war file and
the directories.
Regards,
Michael
Alex wrote:
Hi there,
I'm getting several error-messages when starting my weblogic 6.1 saying:
<Jan 10, 2002 9:07:32 AM CET> <Error> <HTTP> <[WebAppServletContext(4057696,cert
ificate,/certificate)] failure extracting WAR classes java.io.IOException: Permission
denied
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.checkAndCreate(File.java:1162)
etc...
but the server is running and the applications work fine. Should I just ignore
the error-messages or how can I avoid them?
Any help is appreciated
thanx
Alex--
Michael Young
Developer Relations Engineer
BEA Support -
how to extract war file? explain technoloby behind in war
hi
go to your dir :
jar xvf filename.warhelp, simply type jar, above baluc mention is right, jar/war/ear is like a zip file contains *.classes, images, xml , etc....
jar i hope it will help u -
Cannot extract .war file in linux
Hello,
I had a problem in extracting .war file.
I got a .war file to deploy in weblogic application server.
I want to extract this file and look inside it (need to edit) but i couldn't.
I use this commnand and got following error.
[sarad.mk@inek2 sampleapp]$ ls
orgtestApp.war testApp.war
[sarad.mk@inek2 sampleapp]$ jar -xvf orgtestApp.war
bash: jar: command not found
Can anyone please help me out quick. I am in real difficult.
Thanks in advance,rocky777 wrote:
Hello,
I had a problem in extracting .war file.
I got a .war file to deploy in weblogic application server.
I want to extract this file and look inside it (need to edit) but i couldn't.
I use this commnand and got following error.
[sarad.mk@inek2 sampleapp]$ ls
orgtestApp.war testApp.war
[sarad.mk@inek2 sampleapp]$ jar -xvf orgtestApp.war
bash: jar: command not found
Can anyone please help me out quick. I am in real difficult.
Thanks in advance,Re: jar -xvf orgtestApp.war
This means you have not been able to locate the 'jar' command on your local path:
( echo $PATH ).
The solution is to locate the full path to a jar command. These are likely to be in a java sdk bin directory; if you have one on your machine. You should then be able to work by adding that directory to your path or perhaps specifying the full path to the jar file.
Some other utilities are able to do this also: in checking my memory on this i seen the following thread on java coderanch: http://www.coderanch.com/t/91536/java/edit-war-file-JSP -
Manually extract WAR file?
I have a completed JSP/servlet website that I'm trying to deploy on a webhosting site but I'm having some problems. The root directory is apparantly /html and then there's a /web-inf folder in that that containts a /classes and /lib folder. I've tried placing the war file in the /html and the /web-inf folder and having them restart tomcat, but it won't automatically uncompress the war file. I don't have access to any of the server configuration files. Is there a line of code I can use to telnet in and manually extract the war file?
Easy enough,
*.jar, *.war, and *.ear files are really zip files. What you can do is use the jar command "jar -xf file.jar" since your extention is war you might want to do "mv blah.war blah.jar". I am not sure if jar will spit errors cause of the extention. So just rename the war file if it does.
You can also do "mv blah.war blah.zip" followed by "unzip blah.zip"
I hope this helps.
-Richard Burton -
Accessing war classes from ejb-jar
Hi,
I've a.ear with b.war and c.jar. c.jar contains ejbs.
I've some classes in b.war which i need to access from the ejbs.
How may I achieve it? what do i need to configure in the app server or the ejb deployment descriptor?
tx in adv
Kejalare you absolute sure that the needed jar / class is
in the classpath?Yes, there is no question about that. Because I can run the same app (unjarred version) with a command such as
java MyApp
without specifying classpath explicitly. And I also double checked that the postgresql.jar is listed in the CLASSPATH of my Windows box.
Is the Class.forName the line where the ClassNotFound
Exception is thrown?Yes, I caught the exception exactly at that line.
I use the same for cloudscape�
Object driver =
Class.forName("com.ibm.db2.jcc.DB2Driver").newInstance
();and it works fine!Probably your app is not a jarred one, or is it?
By the way, I have written JDBC codes hundreds of times, each time without any trouble. This is my first time I happened to run a JDBC app as an executable jar. And it failed. So I guess there must be other ways to load the class in this case. -
hello, How can i create or extract a war file
If you are using the command line and the $JAVA_HOME/bin directory is in your path environment variable (where $JAVA_HOME is the location of your base Java installation directory), use the following command:
jar cvf webapp.war ./webapp/The jar tool (short for Java ARchive) behaves similarly to the Unix tar tool (short for Tape ARchive) except that it works with .zip .jar or .war instead of .tar files (war is short for Web ARchive).
To update an existing webapp, use something like:
jar uvf ExistingWebApp.war newFile.classIf your using Microsoft Windows XP and don't have access to a good command line, or don't have access to a java installation, you can just highlight the files you want to be in the archive, right click on them, and select "Send To" > "Compressed (zipped) Folder". The file will be created with a .zip extension and you can just rename it with a .jar extension. -
Extract WAR file while deploying
hi
Is there any way or option which we need to give in deployment descripter to
extract the war file while deploying.
Any one can suggest me how to proceed in this aspact.
Thanks and Regards
Anand MohanAnand,
Can you give a context for this question? Are you packaging your J2EE modules
into an ear file and need to extract the war file? What is the use case for
the scenario you are describing?
Chuck Nelson
DRE
BEA Technical Support -
Any option to extract WAR file at the time of deployement?
hi
Is there any attribute to extract the WAR file at the time of deployment.Please
Help me if any one know about this one.
Regards
Anand MOhan
On Wed, 04 Dec 2002 00:30:57 +0000, Anand wrote:
>
> hi
> Is there any attribute to extract the WAR file at the time of deployment.Please
> Help me if any one know about this one.
>
> Regards
> Anand MOhan
Not quite sure what you are asking. Are you saying to extract the files
inside the WAR file during deployment? To do deployment, either with
packaged or exploited view deployment only.
Thank you,
Neo Gigs
"Follow the white rabbit..."
-
SQLJ compile failure in derived class
I have successfully comiled and run the "SimpleExample" defined
in the Help Topics "Developing Applications Using SQLJ" page.
However, if I make a simple modification to make the class
derived from another class (DoNothing class shown below is the
simplest case I've tried) I get compilation errors:
Error (52) Illegal INTO ... bind variables list: illegal
expression..
Error (0) SQLJ translation aborted.
Error (0) sqlj.framework.TranslationException. Error occured in
SQLJ translation.
Modified SimpleExample looks like:
public class SimpleExample extends DoNothing {
......as before
where DoNothing is defined as:
package RDBInterface; // My SimpleExample is in same package
public class DoNothing {
public DoNothing() {
Any ideas about this?
nullAndy,
I got the answer to that in another thread,
cheers Jon
Re: SQLJ-Problem with JDeveloper 2.0
From: Chris Stead (guest)
Email: [email protected]
Date: Tue Feb 02 13:07 CST 1999
Markus Rosenkranz (guest) wrote:
: Hi,
: I tried to rebuild an SQLJ-file with the new JDev. 2.0.
Whenever
: there is an iterator definition in a derived class compilation
: failed. By removing the extends clause in the class definition
: the compilation error could be avoided. It seems that the
: iterator definition is ignored. With JDev. 1.1 everthing
worked
: fine. How can this problem be solved.
: TIA Markus
Hi Markus,
Your question seems similar to the one that was just resolved.
Here are the specifics:
I'm using the production SQLJ and getting a frustrating error
of:
-- "Left hand side of assignment does not have a Java type."
I've reduced my testcase down to the absolute
minimum, but maybe I'm missing something obvious...
package oracle.xml.website;
import java.sql.SQLException;
import javax.servlet.http.*;
#sql iterator empiter ( String empname );
public class WebXSL extends HttpServlet {
public void foo() throws SQLException {
empiter myEmps = null;
#sql myEmps = {SELECT ename empname from EMP order by sal
desc };
Hi,
Could you please check whether the class HttpServlet is
available
in your CLASSPATH? The type resolver could be failing to find
this class in the process of looking for the definition of
'empiter', which is the type of your iterator variable myEmps.
The error message is somewhat obscure, we will be working on
improving it..
The SQLJ translator does a full type resolution of Java
variables
and expressions used in #sql statements, following JLS rules of
scoping and precedence for class and interface hierarchies. It
looks for classes in the CLASSPATH, as well as in the .sqlj and
.java source files specified on the sqlj command-line. So, if
you have .sqlj and .java files that are mutually dependent, you
could do:
sqlj Foo.sqlj Bar.java
Please let us know if your problem persists.. and see also bug
801780 for a related discussion.
- Julie
Julie,
Your suggestion helped! Thanks.
With 20/20 hindsight now, it would have been much more
helpful if the SQLJ translator reported an error message like:
-> Left hand side of assignment is not a Java type.
-> Unable to resolve class "HttpServlet". Check CLASSPATH
That would have keyed me into the problem many hours ago :-)
You suggestion lead me to test sqlj-ing my testcase
both outside and inside the JDeveloper environment.
Outside the environment, if I make sure J:\lib\jsdk.jar is
in my classpath, then all is well.
Inside the environment, I had included the named
library for "JavaWebServer" in my project libraries
and its classpath info was properly set to J:\lib\jsdk.jar,
but it appears that somehow JDev is not properly passing
this project-level classpath info to the SQLJ translator.
I was able to solve my problem (a hack!) by adding
J:\lib\jsdk.jar
to the:
IDEClasspath=
setting in the J:\bin\jdeveloper.ini file which I shouldn't
have to do. I filed Bug 813116 for the JDev team.
null -
Random failure to load classes
I am working for a client and we are playing with two versions
of Oracle Portal. One is running on Windows 2000 and its version
1.0.2.2 and the other is prior to this version and was supplied
to us by the client. The client supplied machine is running
Solaris. Unfortunately the version supplied to us by the client
and the version that we are forced to use appears to randomly
not load classes in the classpath defined by the
jserv.properties.
It even goes so far as to load SOME classes in a given package
but not all of them. It is very bizarre. There are no
dependencies on JDK versions not being used by Portal. I need to
be able to locate this problem and fix it. Does anyone know of
any .jar files that might contain the updated classloaders from
the newer version of portal that I could replace on the older
version.
All of these classes load correctly under 1.0.2.2. It is very
bizarre. Additionally does anyone know if it is possible upgrade
Portal without reinstalling Portal?
Thanks in advance,
Gabriel Harrison
[email protected]Did you solve this problem?
I have the same issue....
Fabio -
Load Failures extracting from R/3 System. Failures in R/3.
Hi,
The BW job starts the R/3 job and this R/3 job keep failing with the dump.TSV_TNEW_PAGE_ALLOC_FAILED.
the job is currently running with package size = 2.000 records.
Thanks & regards,
AnitaHi Anita,
This error msg has nothing to do with the Hard Disk space. So, it doesn't matter if you are loading thru PSA or directly into Target. Please check the OSS notes suggested and check if you are using any Huge Internal tables.
Also, in the Shortdump you will get infomation abt the Source Code where it failed. It might give you information abt the Internal Tables that are used, if in case the dump occurred in the custom code.
Regards,
Sree -
Unable to deploy a war file: could path length in a war file be an issue on WIN2K?
Hi all,
I am unable to auto deploy a web app as a war file but has no problem to auto deploy it as an exploded directory that I drop under the
$PortalHome/config/mydomain/applications directory of the WebLogic Server installation.
Portal Server runs under W2K.
I noticed that the generated war file located under $PortalHome/config/mydomain/applications.wlnotdelete contains files which path is 10 level deep and may be over
255 char.
Could this be a problem?
The error I got is:
####<Dec 27, 2001 3:29:13 PM PST> <Info> <HTTP> <EBRIDONNEAU> <portalServer> <main> <system> <> <101059> <[portalServer] Loading efs40 from WAR file:
D:\Bea\wlportal4.0\.\config\portalDomain\applications\.wlnotdelete\wl_comp19136.war>
####<Dec 27, 2001 3:29:13 PM PST> <Info> <HTTP> <EBRIDONNEAU> <portalServer> <main> <system> <> <101031> <[WebAppServletContext
(23419224,personalizedPortal,/personalizedPortal)] extracting classfiles to D:\Bea\wlportal4.0\config\portalDomain\applications\.wlnotdelete\WEB-INF
\_tmp_war_portalServer_portalServer_personalizedPortal:>
####<Dec 27, 2001 3:29:20 PM PST> <Error> <HTTP> <EBRIDONNEAU> <portalServer> <main> <system> <> <101034> <[WebAppServletContext
(23419224,personalizedPortal,/personalizedPortal)] failure extracting WAR classes>
java.io.IOException: The system cannot find the path specified
at java.io.Win32FileSystem.createFileExclusively(Native Method)
at java.io.File.checkAndCreate(File.java:1162)
at java.io.File.createTempFile(File.java:1247)
at weblogic.servlet.internal.WebAppHelper.extractClassFiles(WebAppHelper.java:95)
at weblogic.servlet.internal.WebAppServletContext.extractClassFiles(WebAppServletContext.java:3359)
at weblogic.servlet.internal.WebAppServletContext.setDocroot(WebAppServletContext.java:3330)
at weblogic.servlet.internal.WebAppServletContext.init(WebAppServletContext.java:854)
<snip>
Thanks for any input.Puthanampatti, thanks for responding.
What is the complete command line to deploy the war to a managed server, not Admin Server ?
Our thinking is to deploy an exploded war directory but copy the descriptor files first.
What do you think ?
Maybe you are looking for
-
Hello, I have the following problem. Delta loads are working for pricing conditions but not for free goods. The initial load is working fine, free goods table are filled, but no delta messages are generated in CRM. Nothing appears in SMW01, SMQ1 or S
-
[SOLVED!]I'd like to add a dedicated Gnome-Shell session entry to GDM.
Edit: Well, thanks for all your help guys, I really did appreciate it all. However I've remembered something I used to use in Ubuntu. I added a Gnome-Shell .desktop file into my /home/myname/.config/autostart folder like this [Desktop Entry] Type=App
-
I NEED TO KNOW HOW TO RUN IN PL THE STATEMENT select case when ... thanks
-
Which runtime systems do i need to configure in CMS
Hi, We have development,Test,Production systems in the system landscape. So What runtime systems do i need to configure in CMS I am assuming it should be Development-Development Consolidation-Test Test-? Production-Production Which runtime system do
-
Open URL Website from WHEN BUTTON PRESSED
I need to open an internal website when a button is pressed on Forms 9i, which is the best and simplist way to go about it, using the available inbuilt forms 9i functions. Any ideas?????