This content has been marked as final. Show 6 replies
You'll need to check the WLS configuration for a docroot and place it there.
I had this problem because I was not familiar with the syntax of the JAR command.
In the documentation the command is shown as: jar –cvf0 <temp directory>\i.war –C <apex directory>\images .
I took the period at the end to be punctuation but it is in fact a necessary part of the JAR syntax. If it is not included the .WAR is compiled with absolute paths i.e "C:\APEX\..." which is not valid in a .WAR structure.
Your reply was not clear to me. Can u post what the exact syntax should be, if the syntax in document is wrong?
The syntax in the document is correct. I misinterpreted it.
The ' . ' at the end of the line is part of the command syntax. Omitting it makes the WAR file unusable.
I still have the problem and cannot load the i.war file in WLS server.
This was a bit of a problem for me as well... You might get some useful information from my thread at:
Images not showing - Weblogic 10.3.3 - APEX 4.0
The key to solving my problem seemed to include using an updated version of Java to create the i.war file and to use short pathnames in my commands for doing so.
Try upgrading Java to the latest version of Sun Java and use it to create your i.war file.
It looks like you might have an issue with pathnames which could have resulted from how you created the i.war, so the following might help. If you use the one with the periond at the end, I would suggest keeping the pathnames short:
As I understand it, if you use the full paths, don't forget the "." at the end of the command since it looks like punctuation but it is actually needed. The final period argument instructs jar to archive all the contents of that directory, but not the directory itself. I used something like this:
jar -cvf0 /u01/war/i.war -C /u01/images401 .
which in my case corresponds to:
jar –cvf0 <temp directory>\i.war –C <apex directory>\images .
If you are in the directory where the images are stored, then I think that you could also just run the commands:
cd <apex directory>\images
or from my example above
jar -cvf i.war *
I had copied my <apex directory>\images to a directory on my WebLogic server where I had installed the latest version of Sun Java. You can determine the version of Java you are using as follows:
will produce output like:
java version "1.6.0_21"
Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
Java HotSpot(TM) 64-Bit Server VM (build 17.0-b16, mixed mode)
Hope this helps!