Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
sai prasanna
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • 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
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • 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.
 
naraharirao mocherla
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic