Re: Problem with updating and checkout under Tomcat 4
Jeff Cantin <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.javacvs.devel |
|---|---|
| Message-ID | <[email protected]> |
I think you're gonna get an npe with that client.getEventManager() block. You also might want to write your own cvslistener for web responses instead of using the default system.out one (basiclistener). Jeff --- Dariusz Drezno <[email protected]> wrote: > Hello, > > I use javacvs to create application for cvs web browsing. My jsp > page use > bean in which I have: > > CheckoutCommand cc = new CheckoutCommand(); > cc.setModule(p_module); > > if (client.getEventManager() == null) { > client.getEventManager().addCVSListener(new > BasicListener()); > } > try { > client.executeCommand(cc, globalOption); > } catch (CommandException ce) { > ce.printStackTrace(); > } > > and it works well under Tomcat 3.3 and doesnt work under Tomcat > 4.0.3 :-(. > There is the same problem with LogCommand. > I have got an exception: > > java.io.IOException: No such file or directory > at java.io.UnixFileSystem.createFileExclusively(Native > Method) > at java.io.File.checkAndCreate(File.java:1294) > at java.io.File.createTempFile(File.java:1382) > at java.io.File.createTempFile(File.java:1419) > at > org.netbeans.lib.cvsclient.file.DefaultFileHandler.writeTextFile(DefaultFile > Handler.java:253) > at > org.netbeans.lib.cvsclient.response.UpdatedResponse.process(UpdatedResponse. > java:146) > at > org.netbeans.lib.cvsclient.Client.handleResponse(Client.java:478) > at > org.netbeans.lib.cvsclient.Client.processRequests(Client.java:442) > at > org.netbeans.lib.cvsclient.command.checkout.CheckoutCommand.postExpansionExe > cute(CheckoutCommand.java:365) > at > org.netbeans.lib.cvsclient.command.checkout.CheckoutCommand.execute(Checkout > Command.java:280) > at > org.netbeans.lib.cvsclient.Client.executeCommand(Client.java:521) > > Maybe it is question to another mail-group (which?), but I hope > somebody > will be able to help me. > > Best regards, > DD > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > __________________________________________________ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com