Re: Problem with updating and checkout under Tomcat 4
"Dariusz Drezno" <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.javacvs.devel |
|---|---|
| Message-ID | <00b101c1f744$9d341ec0$5907840a@pcdrezno> |
> > And here is my new code (works under Tomcat too!):
> >
> > CheckoutCommand cc = new CheckoutCommand();
> > cc.setModule(p_module);
> > if (client.getEventManager() == null) {
> > client.getEventManager().addCVSListener(new
BasicListener());
> > }
> > try {
> > file://client.executeCommand(cc, globalOption);
> > f = new File(client.getLocalPath() "dsds" );
> > tempFile = File.createTempFile("cvsCRLF", "tmp",
> > f.getParentFile());
> > } catch (/*Command*/Exception ce) {
> > ce.printStackTrace();
> > }
>
> So are you saying this doesn't work on Tomcat 4 either? It might be java
security policy issues - Tomcat 4 is more strict. Have you checked whether
it is a java security issue?
>
That ^ code _works_ under Tomcat (client.execute... is behind commentary).
Code below doesnt work:
CheckoutCommand cc = new CheckoutCommand();
cc.setModule(p_module);
if (client.getEventManager() != null)
<-----thanks :), my, typing error
client.getEventManager().addCVSListener(new
BasicListener());
}
try {
client.executeCommand(cc, globalOption);
} catch (CommandException ce) {
ce.printStackTrace();
}
I suppose, if it were security policy exception, I wouldn't get "no such
file or directory", but i.e. "permission denied".
Am I right?
Regards,
DD
> Also, do you *really* mean this:
>
> if (client.getEventManager() == null) {
> > client.getEventManager().addCVSListener(new
BasicListener());
>
>
> This must be wrong because as has been pointed out by someone else this
will either do nothing or cause a NullPointerException to be thrown. It
cannot add a listener. Can you see this?
>
> RG
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>