9

I am trying to configure my path to include javax.servlet with WebLogic. WebLogic has split out the Jar files, so which one contains javax.servlet?

Pascal Thivent
  • 562,542
  • 136
  • 1,062
  • 1,124
bkoch
  • 540
  • 2
  • 4
  • 12

3 Answers3

23

Starting with WebLogic 10, BEA externalized the implementation of API specs from weblogic.jar into various "modules". They now bundle a new api.jar in {BEA_HOME}/wlsever_10.3/server/lib/ that contains just a MANIFEST.MF which points to {BEA_HOME}/modules/*.jar.

These modules include all API specifications as well as features provided BEA/ORACLE.

So, for Servlet API 2.5, indeed include {BEA_HOME}/modules/javax.servlet_1.0.0.0_2-5.jar.

Pascal Thivent
  • 562,542
  • 136
  • 1,062
  • 1,124
  • Not does this answer my question but clarifies the api.jar. I had seen it referenced but didn't under stand it since it is empty and why it didn't work in my dev environment. Thanks – bkoch Dec 06 '09 at 15:51
2

I found them. For those that need answer they are located here:
$BEA_HOME/modules/javax.servlet_1.0.0.0_2-5.jar

bkoch
  • 540
  • 2
  • 4
  • 12
1

I don't do weblogic, so I can't point the exact location, but I can at least hint that JAR files are basically ZIP files which adhere a special folder structure and have a different extension. Knowing that fact, you should be able to use any ZIP tool to your taste to open/extract them and take a look in the folder/file structure yourself. To ease the job, you can also grab WinRAR which has a Search function with which you can search for folders and files in JAR files.

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
  • I am doing development on Linux so I don't have WinRAR. But your approach was excellent and gave me a good idea. So I threw this bash command-line to accomplish the same thing. for f in *.jar; do if jar -tf $f | grep -q javax.servlet; then echo $f; fi; done – bkoch Dec 04 '09 at 20:01