Bugs item #1815652, was opened at 2007-10-18 11:32
Message generated for change (Settings changed) made by blucecio
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=586478&aid=1815652&group_id=88385
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
>Category: Setup
>Group: v2.5
>Status: Closed
>Resolution: Works For Me
Priority: 5
Private: No
Submitted By: juliatic (juliatic)
>Assigned to: Alessandro Gasparini (blucecio)
Summary: Unable to create directory (Struts Exception)
Initial Comment:
During Setup, After Loggig, pressing Continue Button, i get this exception:
Problem: Exception in Struts
Details: Unable to Create Directory
Details (Stack trace) :
java.io.IOException: Unable to create directory
org.apache.commons.io.FileUtils.forceMkdir(FileUtils.java:1185)
org.contineo.actions.setup.SaveLoggingAction.execute(SaveLoggingAction.java:48)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.contineo.core.util.UTF8EncodingFilter.doFilter(UTF8EncodingFilter.java:35)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
java.lang.Thread.run(Thread.java:619)
Any suggestion about this bug/problem?
Thanks so much in advance
----------------------------------------------------------------------
Comment By: Sebastian Stein (steinchen)
Date: 2007-10-24 17:44
Message:
Logged In: YES
user_id=79775
Originator: NO
I'm really not sure what is causing this problem for you. If you are
running Tomcat 6 with a JDK 6, it should work. We only know this exception
to happen if Tomcat has no write access to the folders specified.
Sebastian
----------------------------------------------------------------------
Comment By: juliatic (juliatic)
Date: 2007-10-24 10:43
Message:
Logged In: YES
user_id=1914508
Originator: YES
Hello Sebastian.
I've followed the guide, so my path is : c:\contineo\tomcat for the tomcat
server...
----------------------------------------------------------------------
Comment By: Sebastian Stein (steinchen)
Date: 2007-10-23 19:32
Message:
Logged In: YES
user_id=79775
Originator: NO
Have you installed Tomcat in a path with whitespaces like "c:\program
files\tomcat"? If so, move tomcat to a folder without whitespaces. Just
some background information: Contineo has some default paths configured, so
even if you can't reach the setup page to define the paths, it will already
try to allocate files on the default paths.
Sebastian
----------------------------------------------------------------------
Comment By: D. Mark Simms (dmsimms)
Date: 2007-10-23 18:42
Message:
Logged In: YES
user_id=1550574
Originator: NO
We haven't upgraded to the latest Contineo, so I haven't built it using
Maven yet. Maybe someone else can respond with help here?
----------------------------------------------------------------------
Comment By: juliatic (juliatic)
Date: 2007-10-23 18:10
Message:
Logged In: YES
user_id=1914508
Originator: YES
In first place: thank u so much, dmsimms
I've tried to modify the class and at least obtain the fullPath in the
exception message.
I've readen the guide:
http://contineo.sourceforge.net/ide_setup_guide.html
And after modify the .java of source, i've tried to use maven like in the
guide.
After a long time, several error messages:
Missing
1) oracle:oracle:jar:9.0.2.0.0
2) sapdb:sapdbc:jar:7.4.4
3) javax.activation:activation:jar:1.0.2
4) javax.mail:mail:jar:1.3.3
5) db2:db2jcc:jar:7.2
6) javax.transaction:jta:jar:1.0.1
7) sybase:jconnect:jar:5.5
8) db2:db2java:jar:7.2
9) informix:ifxjdbc:jar:4.0.3
9 required artifacts are missing.
for artifact:
contineo:contineo:war:2.5.5
from the specified remote repositories:
contineo (http://contineo.sourceforge.net/maven),
central (http://repo1.maven.org/maven2),
ibiblio (http://www.ibiblio.org/maven2)
I've tried to ignore it and launch the command
mvn -o package
but it throws one "build error" like i was supposing.
I'm more confused again... which are the steps to follow in my
hard-way-of-knowledgment installing/modifyng contineo?
Thanks again
----------------------------------------------------------------------
Comment By: D. Mark Simms (dmsimms)
Date: 2007-10-23 12:30
Message:
Logged In: YES
user_id=1550574
Originator: NO
Oops looks like I wasn't logged in; that was me (dmsimms) making the
response.
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2007-10-23 12:28
Message:
Logged In: NO
From
http://commons.apache.org/io/apidocs/org/apache/commons/io/FileUtils.html#forceMkdir(java.io.File):
public static void forceMkdir(java.io.File directory)
throws java.io.IOException
Make a directory, including any necessary but nonexistent parent
directories. If there already exists a file with specified name or the
directory cannot be created then an exception is thrown.
Parameters:
directory - directory to create, must not be null
Throws:
java.lang.NullPointerException - if the directory is null
java.io.IOException - if the directory cannot be created
Here's the code from Contineo:
// Make directories for the paths
String[] logPaths = new String[] { core, admin, actions, documan,
communication, searchengine };
for (int i = 0; i < logPaths.length; i++) {
String fullPath = FilenameUtils.getFullPath(logPaths[i]);
FileUtils.forceMkdir(new File(fullPath));
}
So check out where you're telling it to create the log files; make sure
Windows is letting you create folders there. Also, if there's anything
there now, delete it and start over. Other than that, I don't know what to
tell you!
----------------------------------------------------------------------
Comment By: juliatic (juliatic)
Date: 2007-10-23 10:14
Message:
Logged In: YES
user_id=1914508
Originator: YES
No answers? :( anybody needs more information about my error? I'm really
desperate.
Any helps would be really appreciated.
Thanks in advance.
----------------------------------------------------------------------
Comment By: juliatic (juliatic)
Date: 2007-10-22 14:03
Message:
Logged In: YES
user_id=1914508
Originator: YES
I also get this error several times in stdout_xxxxx.log from Apache:
"Caused by: java.net.MalformedURLException: no protocol: spring-beans.dtd
..."
and
"org.jdom.JDOMException: Error in building: no protocol: spring-beans.dtd
..."
and
"Caused by: java.net.MalformedURLException: no protocol: log4j.dtd ..."
... but i'm really lost in my first steps with Tomcat and Contineo :'(
----------------------------------------------------------------------
Comment By: juliatic (juliatic)
Date: 2007-10-22 12:55
Message:
Logged In: YES
user_id=1914508
Originator: YES
"check the file permissions on the directory you've configured the logs to
be saved in..."
I haven't reached the setup page of directories!!! :( the exception is
throwed before
----------------------------------------------------------------------
Comment By: juliatic (juliatic)
Date: 2007-10-22 11:53
Message:
Logged In: YES
user_id=1914508
Originator: YES
And it's not installed in a Linux machine. Is in a Windows XP so the
permissions wouldn't be the source of the problem...
Tomcat 6 is the installed server...
----------------------------------------------------------------------
Comment By: juliatic (juliatic)
Date: 2007-10-22 11:52
Message:
Logged In: YES
user_id=1914508
Originator: YES
It looks like the line
FileUtils.forceMkdir(new File(fullPath)); in the SaveLoggingAction class
is the problem... perhaps one Tomcat configuration to allow creating
directory??? i'm not an expert, but i've readed documentation several times
and i've made everything it says... what is wrong? Would like to know more
about how to solve this problem :(
----------------------------------------------------------------------
Comment By: D. Mark Simms (dmsimms)
Date: 2007-10-18 13:58
Message:
Logged In: YES
user_id=1550574
Originator: NO
Are you running on a Linux machine? If so, check the file permissions on
the directory you've configured the logs to be saved in. The error
(java.io.IOException: Unable to create directory) is likely something
related to your machine (security, out of hard disk space, etc.) as opposed
to a bug in Contineo.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=586478&aid=1815652&group_id=88385
|