RE: EJB deployment

2001-06-21 Thread Mark Sandee

Check out Sample 9a Using EJB with Servlets that comes with JRun 3.0.  In
it BalanceServer.java uses the Balance Bean.

-Original Message-
From: Robert Jacobs [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 18, 2001 1:46 PM
To: JRun-Talk
Subject: EJB deployment


I am having trouble accessing an EJB through a servlet.  I am using JRun
3.0.  Could anyone give me a summary of steps required focusing mainly on
the code within the servlet needed to access the bean.

Thanks,
Bob
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/jrun-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: jrun 3.1 sql tag issues

2001-06-21 Thread Victor Marinelli

Hello,

   I made the switch to 3.1 and I also now have the problem with jrun:sql
and update statements. They used to work fine and now
anytime an update is called it fails and returns:

DatabaseQueryException
  allaire.taglib.DatabaseQueryException: nested exception is:
java.sql.SQLException
  java.sql.SQLException: Method can be called only once.



Code Example:

hapb:sql id=result datasrc=informix321
 UPDATE carrierpref
  SET paramrequire = '%=request.getParameter(paramSelect) %'
  WHERE paramname = '%=request.getParameter(theName) %'
 /hapb:sql


This is not good since I used these JRun tags all over the place and I can't
seem to get them to work now. The docs say that the 3.1 tags are almost
completely backward compatible.


Please help,
Vic


- Original Message -
From: Ben Groeneveld [EMAIL PROTECTED]
To: JRun-Talk [EMAIL PROTECTED]
Sent: Friday, June 15, 2001 6:33 PM
Subject: jrun 3.1 sql tag issues


 Has anyone else seen these issues when upgrading to 3.1?

 (1) 'update' statements fail to be parsed and run in the jsp:sql tag
 resulting in an out of memory message
 (2) the sql tag scripting method .resetCursor() vanished and must be
 replaced with .beforeFirst(), a java.sql.rowSet interface
 (3) the parser is much more sensitive to requiring scripting parameters
 be enclosed in double quotes, but that's probably a good thing.
 however, the line numbering info it returns is useless

 I haven't found a workaround to (1) so if anyone has please let me
 know.  Thanks, BenG.

 --
 Ben Groeneveld
 Information Concepts, Inc., 115 N.W. Oregon, Suite 30, Bend, OR 97701
 Mailto:[EMAIL PROTECTED], phone:541.388.3611, cell:208.520.6488



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/jrun-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Fw: jrun 3.1 sql tag issues

2001-06-21 Thread Victor Marinelli




Hello,

I made the switch to 3.1 and I also now have the problem with jrun:sql
 and update statements. They used to work fine and now
 anytime an update is called it fails and returns:

 DatabaseQueryException
   allaire.taglib.DatabaseQueryException: nested exception is:
 java.sql.SQLException
   java.sql.SQLException: Method can be called only once.



 Code Example:

 hapb:sql id=result datasrc=informix321
  UPDATE carrierpref
   SET paramrequire = '%=request.getParameter(paramSelect) %'
   WHERE paramname = '%=request.getParameter(theName) %'
  /hapb:sql


 This is not good since I used these JRun tags all over the place and I
can't
 seem to get them to work now. The docs say that the 3.1 tags are almost
 completely backward compatible.


 Please help,
 Vic


 - Original Message -
 From: Ben Groeneveld [EMAIL PROTECTED]
 To: JRun-Talk [EMAIL PROTECTED]
 Sent: Friday, June 15, 2001 6:33 PM
 Subject: jrun 3.1 sql tag issues


  Has anyone else seen these issues when upgrading to 3.1?
 
  (1) 'update' statements fail to be parsed and run in the jsp:sql tag
  resulting in an out of memory message
  (2) the sql tag scripting method .resetCursor() vanished and must be
  replaced with .beforeFirst(), a java.sql.rowSet interface
  (3) the parser is much more sensitive to requiring scripting parameters
  be enclosed in double quotes, but that's probably a good thing.
  however, the line numbering info it returns is useless
 
  I haven't found a workaround to (1) so if anyone has please let me
  know.  Thanks, BenG.
 
  --
  Ben Groeneveld
  Information Concepts, Inc., 115 N.W. Oregon, Suite 30, Bend, OR 97701
  Mailto:[EMAIL PROTECTED], phone:541.388.3611, cell:208.520.6488
 
 
 
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/jrun-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: compiling a servlet

2001-06-21 Thread Matthew Horn

Bert, it's not your classpath that is the problem. It is your system path.
You need to add your JDK's /bin directory (for example, c:\jdk1.2.2\bin) to
your SYSTEM path. In Windows use the SET PATH command to add it.

Or, you could enter the complete path to javac from where you are compiling.

For example:

c: \jdk1.2.2\bin\javac -classpath
C:\Progra~1\Allaire\JRun\lib\ext\servlet.jar;C:\jdk1.3\lib\tools.jar
MyFirstServlet.java

Finally, try to eliminate spaces in your classpath (like between Program and
Files), as I did shown above.


  -Original Message-
  From: Bert [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, June 14, 2001 12:52 PM
  To: JRun-Talk
  Subject: compiling a servlet
  
  
  
  I am trying to compile a simple servlet in jrun and I keep 
  getting this
  incorrect file name or directory error this is my classpath
  
  C:\Program 
  Files\Allaire\JRun\lib\ext\servlet.jar;C:\jdk1.3\lib\tools.jar
  
  
  Bert
  
  
  
  
  
  
  
  
  
  
  Microsoft Windows 2000 [Version 5.00.2195]
  (C) Copyright 1985-1999 Microsoft Corp.
  
  C:\set 
  classpath=%classpath%;C:\Progra~1\Allaire\JRun\lib\ext\servlet.jar
  
  C:\javac MyFirstServlet.java
  'javac' is not recognized as an internal or external command,
  operable program or batch file.
  
  C:\cd c:\program
  files\allaire\jrun\servers\default\default-app\web-inf\classes
  
  
  C:\Program
  Files\Allaire\JRun\servers\default\default-app\WEB-INF\class
  esjavac-
  classpath.;c:\program files\allaire\jrun\lib\ext\servlet.jar
  MyFirstServlet.ja
  va
  The filename, directory name, or volume label syntax is incorrect.
  
  C:\Program 
  Files\Allaire\JRun\servers\default\default-app\WEB-INF\classes
  
  
  
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/jrun-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: JRun 3.1 Stability

2001-06-21 Thread Lloyd H. Meinholz

I'll probably be upgrading to 3.1 in 2-3 weeks. I still have 2 sites
using 2.3.3, but they are extremely low traffic. I'm migrating one
tomorrow and the other one soon after. There was such a huge leap in all
the code we had developed for the old servlet spec that upgrading from
2.0/2.1 to 2.2 was extremely painful. While I love the addition of Web
Applications, that simply wasn't the way we were doing things. We had
our own template engine before Web Macro, then came JSP. I think we've
been using JRun since it's first version and life has dramatically
changed since then. We do have about 10 sites using 3.0 right now. I
really hope the speed with which the left frame is loaded is faster in
the new JMC. It's pretty intolerable with 10 web sites and 8 web apps
per site...

Lloyd


Scott Stirling wrote:
 
 Hello?  I'd be interested in the answer to this too.  How do people like
 JRun 3.1?  Are any of you using it, or have you not had a chance to upgrade
 yet?
 
 At JavaOne some of us were a little surprised at how many people came up to
 us saying they're still using JRun 2.3.x in production.  We need to get the
 word out that JRun 3.x is about 500% more scalable, and over 100% faster.
 
 Scott Stirling
 JRun QA
 
  -Original Message-
  From: Alpesh Shah [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, June 20, 2001 9:23 AM
  To: JRun-Talk
  Subject: JRun 3.1 Stability
 
 
  Is anyone running JRun 3.1 in production, and have their been
  any stability
  issues, or issues with Oracle.
 
  Alpesh Shah
  Principal/Director of Technology
  Revolutionary Systems, LLC
 

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/jrun-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



JRun linux installer doesn't work!

2001-06-21 Thread pdw

I am trying to install the new JRun (3.1) on Linux, and I am getting a 
message about 171 garbage bytes from tar. I found this 
article on the allaire web site:

http://www.allaire.com/Handlers/index.cfm?ID=21039Method=Full

What this article suggests is replacing my version of tar (1.13.19) with an 
old, incompatible version of tar (1.13), just to run the installer.  This is 
a solution?  How about providing a version of the installer that works with 
the current version of tar?

Not only that, but when I tried it with tar version 1.13, it still doesn't 
work, this time it says EOF not on block boundary.

What is the solution to this?  I wonder how many people just give up when the 
installer fails with a cryptic error.

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/jrun-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists