Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 40107 invoked from network); 14 Nov 2001 17:09:41 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 14 Nov 2001 17:09:41 -0000 Received: (qmail 5762 invoked by uid 97); 14 Nov 2001 17:07:34 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 5737 invoked by uid 97); 14 Nov 2001 17:07:33 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 5715 invoked from network); 14 Nov 2001 17:07:31 -0000 Message-ID: <095801c16d2f$5a687450$ec960040@allegro> Reply-To: "Tom Drake" From: "Tom Drake" To: "Tomcat Users List" References: <026d01c16caf$d3ceb320$0f0efd0a@stcla1.sfba.home.com> <02c601c16d25$4647e960$6dc8a8c0@NOBLELAPTOP> <00a001c16d2c$b4bda2c0$0f0efd0a@stcla1.sfba.home.com> Subject: Re: cannot execute binary file Date: Wed, 14 Nov 2001 09:11:08 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I think that this may have to do with the security policy not allowing you to load classes or jars from 'other' directories. Look in conf/catalina.policy or conf/tomcat.policy (depending on the version of tomcat you are using). You will probably need to add an entry that looks like this: grant codeBase "file:/usr/local/-" { permission java.security.AllPermission; }; Or for greater security: grant codeBase "file:/usr/local/classes12.jar" { permission java.security.AllPermission; }; ----- Original Message ----- From: "James Chuang" To: "Tomcat Users List" Sent: Wednesday, November 14, 2001 8:52 AM Subject: Re: cannot execute binary file | You can set TOMCAT_OPTS in your environment, and tomcat will use them as | part of it's startup env. When I added the classes12.zip to my TC | environment, I just added it directly to the tomcat.sh as well, and it works | fine. | | Why don't you put together a small test program that loads the driver, and | just run it in Java and see if it works? If it works, then you know it's | not the driver. | | jchuang | | ----- Original Message ----- | From: "Noble Long" | To: "Tomcat Users List" | Sent: Wednesday, November 14, 2001 7:58 AM | Subject: Re: cannot execute binary file | | | > I actually added it to the tomcat.sh (dirty I know) but I wanted to make | > sure it was definitely loaded. But even when I add it to /etc/profile or | > /root/.bashrc, /root/.cshrc I get the same messages, the files must have | > been getting corrupted in transfer. | > | > Where is TOMCAT_OPTS? | > | > Noble | > ----- Original Message ----- | > From: "James Chuang" | > To: "Tomcat Users List" | > Sent: Tuesday, November 13, 2001 7:58 PM | > Subject: Re: cannot execute binary file | > | > | > > Oracle JDBC thin drivers are supposed to be used as .zip. I've never | had | > to | > > uncompress them, neither on NT, Solaris, or Linux. | > > | > > The question is, why is tomcat trying to execute that file? It sounds | > like | > > there is something wrong with the startup command. How did you add it | to | > > your classpath? in TOMCAT_OPTS? | > > | > > jchuang | > > | > > ----- Original Message ----- | > > From: "Eric Strain" | > > To: | > > Sent: Tuesday, November 13, 2001 5:36 PM | > > Subject: Re: cannot execute binary file | > > | > > | > > > Hi: | > > > I hate to be simplistic, but, is your classes12.zip file still | > compressed? | > > > If so just unzip it to a safe location and alter your classpath | > > > | > > > | > > > >From: "Noble Long" | > > > >Reply-To: "Tomcat Users List" | > > > >To: | > > > >Subject: cannot execute binary file | > > > >Date: Tue, 13 Nov 2001 14:41:47 -0600 | > > > > | > > > >I am using the Oracle jdbc thin client in my application. I added it | to | > > my | > > > >classpath /usr/local/classes12.zip , but when I start Tomcat I am | > > getting - | > > > > | > > > >bin/tomcat.sh: /usr/local/classes12.zip: cannot execute binary file | > > > > | > > > >I tried other jar, files, etc. and everyone I transefered either in | > > binary | > > > >mode or ascii via FTP, XMODEM or ZMODEM gives me the same message. | > > > > | > > > >Is my file being corrupted between windows and linux. I am working | with | > a | > > > >remote telnet session so I can't exactly download from Oracle's | website | > > to | > > > >that machine. Funny thing is ... I have the same Red Hat 6.2 | > environment | > > > >here except I'm using tomcat 3.2.3 instead of 3.2.1 (would it make a | > > > >difference?) | > > > > | > > > >Noble | > > > | > > > | > > > _________________________________________________________________ | > > > Get your FREE download of MSN Explorer at | > http://explorer.msn.com/intl.asp | > > > | > > > | > > > -- | > > > To unsubscribe: | > > > For additional commands: | > > > Troubles with the list: | > > > | > > > | > > | > > | > > -- | > > To unsubscribe: | > > For additional commands: | > > Troubles with the list: | > > | > | > | > -- | > To unsubscribe: | > For additional commands: | > Troubles with the list: | > | | | -- | To unsubscribe: | For additional commands: | Troubles with the list: | | | -- To unsubscribe: For additional commands: Troubles with the list: