• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to download org.apache.commons.logging API as it is not present in struts-doc.war

 
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hai All
with my struts binary zip i had struts-documentation.war file in this documentaion there is no org.apache.commons? How to get this API

Thanks in Advance
saiprasanna
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As I look at my copy of the Struts 1.2.7 download, I see that commons-logging.jar is definitely in the struts-documentation.war. It's also in the lib directory. Just make sure commons-logging.jar is in your classpath.
 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I'm getting these two errors.
1.
-------------------------------
java uses or overrides a deprecated API.
Note: Recompile with -deprecation for details.
-------------------------------code:

2.
---------------------------------------------
package org.apache.commons.logging does not exist
import org.apache.commons.logging.Log;
-----------------------------------------------



I've downloaded commons-logging API and copied commoms-logging-1.1.jar to the Tomcat 5.0/common/lib.
But when compliling my .java file I'm getting this error that package org.apache.commons.logging.Log.does not exist.



thanks,
narahari
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1. This deprecation message is a warning. Your code will still compile even though it may use deprecated API. If you want to get rid of them as a matter of style, do what the message says and compile with -deprecation to get the details of which method calls are deprecated and then change them.

2. The compile-time class path and the run-time classpath are two entirely separate things. By putting the commons.jar in your Tomcat common/lib directory, you are adding it to the run-time environment, but not necessarily the compile-time environment. You must modify the class path used at compile time in order to make sure this jar file is included.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic