Re: Problem with updating and checkout under Tomcat 4

[email protected]
Newsgroups gmane.comp.java.netbeans.modules.javacvs.devel
Message-ID <[email protected]>
> 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 {
>             //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?

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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.