Re: JWS on Linux
John, Many thanks for replying to my original enquiry, I have since managed to get the server working, however I am still having problems connecting and adding an oracle servlet (using oracle 8.0.5) and adding/registering it to the javaserver. I think mysql databases work fine however I am attempting to use an oracle database. If anyone can help regarding the correct protocols to use and syntax for connecting oracle and an http javawebserver it would be great so that I can use a homepage to query my database. Many thanks Matt > > From: "John N. Alegre" <[EMAIL PROTECTED]> > To: Matt Zagni <[EMAIL PROTECTED]> > Subject: Re: JWS on Linux > Cc: [EMAIL PROTECTED], [EMAIL PROTECTED] > > There is a link at the blackdown site > > http://www.blackdown.org/java-linux/products.html > > Follow the instructions in the "JavaWebServer" section and it all just works. > > john > > On 28-Jul-99 Matt Zagni wrote: > > Adil, > > > > About a week ago I posted my results on installing the JavaWebServer1.1.3 > > it has been done before (My system is running SuSE6.1). > > I installed a very old installationof JWS on Slackware and SuSE5.3 too > > (but that was after a major build of the glib libraries). > > > > I also posted my patched files too, for future reference. > > (you will have to midify it with your location of > > java_home and the jshome too). > > > > Try searching in the archive list for the search words > > of JavaWebServer it will be there. > > > > Good luck > > > > Matt > > > > > > > >> Resent-Date: Wed, 28 Jul 1999 06:54:13 -0500 > >> From: Adil Atilgan <[EMAIL PROTECTED]> > >> To: [EMAIL PROTECTED] > >> Subject: JWS on Linux > >> Date: Wed, 28 Jul 1999 14:42:25 +0300 > >> MIME-Version: 1.0 > >> Resent-Message-ID: <[EMAIL PROTECTED]> > >> Resent-From: [EMAIL PROTECTED] > >> X-Mailing-List: <[EMAIL PROTECTED]> archive/latest/928 > >> X-Loop: [EMAIL PROTECTED] > >> Resent-Sender: [EMAIL PROTECTED] > >> > >> I am trying to Install Java Web Server on redhat 6.0 . > >> There is a jwebs-linux.diff file which lets you to use sparc version of > >> JWS on Linux. > >> > >> When applied jwebs-linux.diff file I got an error message . > >> I am using > >> patch -p0 < jwebs-linux.diff > >> > >> I got an error message of > >> > >> can't find file to patch at input line 3 > >> Perhaps you used the wrong -p or --strip option? > >> The text leading up to this was: > >> -- > >> |--- ../../sparc-S2/bin/startup_wrapper Thu Oct 30 14:42:05 1997 > >> |+++ startup_wrapper Thu Mar 5 00:39:06 1998 > >> -- > >> > >> Does anybody succesfully applied JWS on Linux > >> > >> TIA > >> > >> Adil Atilgan > >> > >> > >> -- > >> To UNSUBSCRIBE, email to [EMAIL PROTECTED] > >> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > >> > > > > > > -- > > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > > -- > E-Mail: John N. Alegre <[EMAIL PROTECTED]> > Date: 02-Aug-99 > Time: 18:44:02 > > This message was sent by XFMail > -- > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: serial communication
On Tue, 3 Aug 1999, R MUTHUSWAMY wrote: > i want to program serial port, what is the api should i get. You should use the Java COMM API together with the rxtx package (for native access to your serial ports). The COMM API will be found on java.sun.com, the rxtx package is on http://www.mit.edu/~mkgray/rxtx Have fun! Magnus -- Magnus Niemann[EMAIL PROTECTED] Wissenschaftlicher Mitarbeiter Fachgebiet Formale Modelle, Fachbereich 13 (Informatik) Logik und Programmierung Technische Universitaet Berlin -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: RMI on Linux
Hi, I am trying RMI and i keep getting this exception. I couldn't understand the problem. Can somebody give some clue!! ComputeEngine exception: access denied (java.net.SocketPermission 192.168.0.206:1099 connect,resolve) java.security.AccessControlException: access denied (java.net.SocketPermission 192.168.0.206:1099 connect,resolve) at java.security.AccessControlContext.checkPermission(Compiled Code) at java.security.AccessController.checkPermission(Compiled Code) at java.lang.SecurityManager.checkPermission(Compiled Code) at java.lang.SecurityManager.checkConnect(Compiled Code) at java.net.Socket.(Compiled Code) at java.net.Socket.(Compiled Code) at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Compiled Code) at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Compiled Code) at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Compiled Code) at sun.rmi.transport.tcp.TCPChannel.createConnection(Compiled Code) at sun.rmi.transport.tcp.TCPChannel.newConnection(Compiled Code) at sun.rmi.server.UnicastRef.newCall(Compiled Code) at sun.rmi.registry.RegistryImpl_Stub.rebind(Compiled Code) at java.rmi.Naming.rebind(Compiled Code) at engine.ComputeEngine.main(Compiled Code) Thanks ..praks -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Calling Same Native method more than once.
Hi all, Thanks for helping me in interfacing C with Java.I am facing a problem in executing my program(java) which calls a 'C' function. I am calling 'C' native method for every 10 secs in my 'java' program , but after first loop, my program(java) exits by giving SIGSEV 11* Segmentation violation . How to call same native method for more than one time ?. Thanks in advance, -- Nagaraj S.B. Bells Softech Ltd,Bells House,1036, 26th Main,4th 'T' Block, Jayanagar, Banglore - 560 041.Ph.No.:6650084/33. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: RMI on Linux
>I am trying RMI and i keep getting this exception. I couldn't understand >the problem. Are you using JDK 1.2? You have to set up a policy file to make it work right. This is an RMI FAQ, hunt around Sun's web site. [EMAIL PROTECTED] . . . .. . . . http://www.media.mit.edu/~nelson/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: serial communication
You have to download the CommAPI from sun: java.sun.com/products/javacomm (get the Sparc x-86 version, bunzip it and copy the file comm.jar to /jre/lib/ext ) You also need the serial driver rxtx from http://www.frii.com/~jarvi/rxtx/ - (, http://www.geocities.com/Hollywood/Set/8660 /|__--__ |\ '__ `.' / `.,_ _ / ||``._.' .' /|Pere Joan Serra Caldentey .'/\ \ ` `,/ /`,\ [EMAIL PROTECTED] .'.' /| ,' / / | - `- -- `-'- --- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Calling Same Native method more than once.
I don't think there is any limitations on the number of calls of C routine. I call my C routine from Java thousand times without any problem. Look for something else - memory problem of threads. Do you call your routine from the main tread or you created separate one? Jacob "Nagaraj S.B" wrote: > Hi all, > Thanks for helping me in interfacing C with Java.I am facing a problem > in executing my program(java) which calls a 'C' function. > I am calling 'C' native method for every 10 secs in my 'java' program , > but after first loop, my program(java) exits by giving > SIGSEV 11* Segmentation violation . > How to call same native method for more than one time ?. > Thanks in advance, > -- > Nagaraj S.B. > Bells Softech Ltd,Bells House,1036, > 26th Main,4th 'T' Block, > Jayanagar, Banglore - 560 041.Ph.No.:6650084/33. > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Calling Same Native method more than once.
I have call the same native method from several threads under several different JDK's and have not had any such problems. I am not sure that Blackdown's 1.2 with native threads is in the list of JDK's I have used. Not, that I think the JDK is the problem I just do not want to imply that I have tested this scenario. Robert Perry Jacob Nikom wrote: > I don't think there is any limitations on the number of calls of C routine. > I call my C routine from Java thousand times without any problem. Look > for something else - memory problem of threads. Do you call your routine > from the main tread or you created separate one? > > Jacob > > "Nagaraj S.B" wrote: > > > Hi all, > > Thanks for helping me in interfacing C with Java.I am facing a problem > > in executing my program(java) which calls a 'C' function. > > I am calling 'C' native method for every 10 secs in my 'java' program , > > but after first loop, my program(java) exits by giving > > SIGSEV 11* Segmentation violation . > > How to call same native method for more than one time ?. > > Thanks in advance, > > -- > > Nagaraj S.B. > > Bells Softech Ltd,Bells House,1036, > > 26th Main,4th 'T' Block, > > Jayanagar, Banglore - 560 041.Ph.No.:6650084/33. > > > > -- > > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
File or class transfer over tcpip
I am in the mist of developing an RMI Update utility for clients. Like most updaters they would download a small 30k(+-) java application that would talk to an RMI server and decide what files (.class) the client needed. It works like a charm but, the typical but word my classes when used by the JVM either through security exceptions or are unreadable. To transfer the class file we are using the following: NOTE: FileDataInterface is just an RemoteInterface that returns the byte array to the client so they may store it in the proper place with the given name. public FileDataInterface getFileData(String packageKey) throws RemoteException { if (m_FileList.containsKey((String)packageKey)) { FileInfo fi = (FileInfo)m_FileList.get((String)packageKey); String loc = fi.getLocation(); System.out.println("Getting file: " + loc); try { DataInputStream di = new DataInputStream(new FileInputStream(new File(loc))); int avail = di.available(); System.out.println("Available: " + avail); byte[] data = new byte[avail]; di.readFully(data); FileData fd = new FileData(data); return fd; } catch (FileNotFoundException fn) { System.out.println("FileNotFoundException: " + fn); return null; } catch (IOException io) { System.out.println("IOException: " + io); return null; } } else { return null; } } Is there another way to transfer class files or other files for that matter across tcpip that will not modify the file layout, just taking raw data from one maching to another. Can anyone see what I might be doing wrong. -Bob -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: File or class transfer over tcpip
Hi, > needed. It works like a charm but, the typical but word my classes when > used by the JVM either through security exceptions or are unreadable. To > transfer the class file we are using the following: [snip] > DataInputStream di = new DataInputStream(new > FileInputStream(new File(loc))); > int avail = di.available(); > System.out.println("Available: " + avail); > byte[] data = new byte[avail]; > di.readFully(data); I'm afraid it's an RTFM. available() tells you how many bytes can be read without blocking. This is NOT necessarily the size of the file. You're probably sending the first 1k of each file to your clients. The class file will then of course fail during loading. Just a guess, dstn. PS - I wrote an app that does something like this (transferring file via RMI), and I would suggest that you be extremely careful about path separator characters. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: How can I help?
Me too, I would like to contribute to the Linux community, and how can I help? Mike Christiansen wrote: > I have wanted to contribute to Linux for a while now. I would most like > to help make my favorite programming language successful on my favorite > OS. What can I do? > > Mike > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
ejb application server
I am looking into ejb and wondering is there any ejb application server that will run on linux? One with Open Source is prefered, but a commercial one that has free demo version available is ok too. Thanks for the help! Walter -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Calling Same Native method more than once.
Jacob Nikom wrote: > > I don't think there is any limitations on the number of calls of C routine. > I call my C routine from Java thousand times without any problem. Look > for something else - memory problem of threads. Do you call your routine > from the main tread or you created separate one? I am calling it from the main. Nagaraj > > Jacob > > "Nagaraj S.B" wrote: > > > Hi all, > > Thanks for helping me in interfacing C with Java.I am facing a problem > > in executing my program(java) which calls a 'C' function. > > I am calling 'C' native method for every 10 secs in my 'java' program , > > but after first loop, my program(java) exits by giving > > SIGSEV 11* Segmentation violation . > > How to call same native method for more than one time ?. > > Thanks in advance, > > -- > > Nagaraj S.B. > > Bells Softech Ltd,Bells House,1036, > > 26th Main,4th 'T' Block, > > Jayanagar, Banglore - 560 041.Ph.No.:6650084/33. > > > > -- > > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- Nagaraj S.B. Bells Softech Ltd,Bells House,1036, 26th Main,4th 'T' Block, Jayanagar, Banglore - 560 041.Ph.No.:6650084/33. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
RE: ejb application server
Open Source http://www.ejboss.org http://www.openmaster.com/ejb The original, now taken over by Iona http://www.ejbhome.com Weblogic, commercial but works well on Linux http://weblogic.beasys.com -- Aravind > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of > Walter Chang > Sent: Wednesday, 4 August 1999 13:41 > To: [EMAIL PROTECTED] > Subject: ejb application server > > > I am looking into ejb and wondering is there any ejb application server > that will run on linux? One with Open Source is prefered, but a > commercial one that has free demo version available is ok too. Thanks > for the help! > > Walter > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact > [EMAIL PROTECTED] > > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: File or class transfer over tcpip
Robert Covell wrote: > > System.out.println("Getting file: " + loc); > try > { > DataInputStream di = new DataInputStream(new > FileInputStream(new File(loc))); > int avail = di.available(); i think it must return 0, (if it actually not overloaded) > System.out.println("Available: " + avail); > byte[] data = new byte[avail]; Cheers. -- Alexander Davydenko | [EMAIL PROTECTED], [EMAIL PROTECTED] | Moscow, USSR - < Powered by Linux & 220V > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
database connectivity
hi guys, i have postgresSql in my linux box i want to connect to it. I don't know the way. i think i should have the driver installed in the client side. And the postmaster is running in the server machine. Any thing else is needed for the connectivity. Ask me if you don't get the question clearly. Thanx in advance, bye MUTHU. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]