File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes how to download org.apache.commons.logging API as it is not present in struts-doc.war Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to download org.apache.commons.logging API as it is not present in struts-doc.war" Watch "how to download org.apache.commons.logging API as it is not present in struts-doc.war" New topic
Author

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

sai prasanna
Ranch Hand

Joined: May 02, 2005
Posts: 167
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

Joined: Feb 15, 2005
Posts: 4864
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.


Merrill
Consultant, Sima Solutions
naraharirao mocherla
Ranch Hand

Joined: Aug 16, 2005
Posts: 45
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

Joined: Feb 15, 2005
Posts: 4864
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to download org.apache.commons.logging API as it is not present in struts-doc.war