[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index] [Home]

[jcvs] Problem with WinNT


Dear People,

I have a running cvs-server on my WinNT machine.
With JCVSII I have no problems and also with the jCVSlet v0.9.5 I have only
one special problem.

I run the jCVSlet with the Sun Java Webserver 2.1.
After starting the jCVSlet, it is checkout my projects correctly from the
repositoy into the local directory. The CVSROOT directory is "C:\repository"
and there is the problem! If I want to use the log-option or the update
function, the servlet create a new CVSROOT string
"\repository/C:\repository".

In the method com.ice.jcvslet.JCVSletEntry.getFileLogData:152 was done that.
	request.setRootRepository
		( project.getRootDirectory() + "/" + project.getRepository() );
At other places the same construction is used.

Does anyone know why this construction is used or why the methods
project.getRootDirectory() and project.getRepository() return the wrong
value?

In my_project.properties I use the following definitions:
...
JCVSlet.project.root=C:\\repository
or JCVSlet.project.root=C:/repository
JCVSlet.project.module=my_project
JCVSlet.project.local=C:/Inetpub/java_server/webpages/WEB-INF/servlets/JCVSl
et
JCVSlet.project.path=my_project
...
and the checkout process is working well!

Must I change the source-code or does I have the possibility to use a other
definition?

Thanks and best regards,
Bye Dominik Kalb

P.S. The following exception is everytime thrown.

java.io.IOException: CVS Request failed: : protocol error: directory
'\repository/C:\repository' not within root 'C:\repository'

** The command completed with an error status.
	at com.ice.jcvslet.JCVSletEntry.getFileLogData(JCVSletEntry.java:197)
	at com.ice.jcvslet.JCVSletEntry.getEntryLog(JCVSletEntry.java:111)
	at com.ice.jcvslet.DefaultOutput.sendFileLog(DefaultOutput.java:1146)
	at com.ice.jcvslet.DefaultOutput.sendFileLogPage(DefaultOutput.java:1116)
	at com.ice.jcvslet.JCVSlet.processGet(JCVSlet.java:380)
	at com.ice.jcvslet.JCVSlet.doGet(JCVSlet.java:266)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:715)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
	at com.sun.web.core.ServletWrapper.handleRequest(ServletWrapper.java:140)
	at com.sun.web.core.InvokerServlet.service(InvokerServlet.java:169)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
	at com.sun.web.core.ServletWrapper.handleRequest(ServletWrapper.java:140)
	at com.sun.web.core.Context.handleRequest(Context.java:375)
	at com.sun.web.server.ConnectionHandler.run(ConnectionHandler.java:135)