Re: Java Web Services Development Tools

2002-04-23 Thread Gare, Trefor

I started looking at SilverStream's eXtend WorkBench app which seemed to do
the stuff you're after quite nicely, however I didn't get very far down the
path before getting distracted away so I can't really comment in any detail.


I'm also not sure it's still a freebie.

Worth a look though.

cheers

 -Original Message-
 From: Burdick Robert [SMTP:[EMAIL PROTECTED]]
 Sent: Wednesday,24 April 2002 10:02
 To:   [EMAIL PROTECTED]
 Subject:  Java Web Services Development Tools

 Hello All:

 What is the best free development toolkit / environment for building
 Java based web services?  The JWSDP looked more like a simple bundle of
 the needed code libraries (XML parser, SOAP server, etc.) plus a very
 simple deployment tools.  I'm wondering if there is an IDE style toolkit
 that helps you build templates and the boilerplate code similar to how
 (heaven help me for mentioning it here) Visual Studio .NET does.

 Any suggestions?

 Robert


 ---
 Robert Burdick
 Author, Essential Windows CE Application Programming, John Wiley  Sons
 Co-author, Professional JSP, 2nd Edition, Wrox Press
 Microsoft eMVP

 [EMAIL PROTECTED]
 (650)-917-8446 (Office)
 (650)-906-3707 (Cell)

 ==
 =
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
 JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
 DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: JSPs/DBs and HTML Forms

2002-04-16 Thread Gare, Trefor

I'm not quite clear on what you're after here, however at the risk of being
simplistic,
The SQL to insert value1 - 3 into field 1 -3 of table tblname would be:
INSERT into tblname (field1, field2, field3) VALUES (value1, value2, value3)

The JSP to execute would be:

  /* create and execute a statement */
  st=dbc.createStatement();
  sql=(INSERT into tblname (field1, field2, field3) VALUES (value1,
value2, value3));
  st.executeUpdate(sql);

ie: use executeUpdate() instead of executeQuery();

Hope that helps


Tref Gare
Web Developer MCSD/SCJP
eCommerce Group
Phone:  (03) 9221 4106
Mobile: 0409 556 478
Fax:(03) 9941 4295

 -Original Message-
 From: Graeme McLaren [SMTP:[EMAIL PROTECTED]]
 Sent: Tuesday,16 April 2002 8:50
 To:   [EMAIL PROTECTED]
 Subject:  JSPs/DBs and HTML Forms

 Hi everyone, I'm completely new to JSPs and I'm finding a somewhat
 daunting
 area.  Specifically I'm having a problem inserting information from an
 html
 form to a database using a JSP.

 Basically I've got the problem of getting the parameter and the value from
 the form then inserting it in to the database with SQL.

 I can use  mystring=request.getParameter(TheNameOfTheFormInput);  to get
 the value from the form elements.  Once I've done this I'm completely lost
 as to how to write the SQL to insert the values from the form elements
 INTO
 the database.

 Can anyone guide me through this, point me in the right direction or give
 me
 any tips at all.  Any advice would be greatly appreciated.

 Thank you in advance,

 Graeme :)

 P.S. Currently I've got a JSP like this:

 !-- imports the JDBC functions --
 %@ page import=java.sql.* %
 html
 head
 titleJDBC Example/title
 /head
 body
 h1JDBC with JSP/h1
 %
 /* various variable declarations */
 Connection dbc;
 Statement st;
 String sql;
 ResultSet rs;
 ResultSetMetaData rsmd;

 try {
   /* load JDBC driver for PostgreSQL database */
   Class.forName(postgresql.Driver);

   /* make a connection to the database */

 dbc=DriverManager.getConnection(jdbc:postgresql://localhost/webtest,www
 -d
 ata,);

   /* create and execute a statement */
   st=dbc.createStatement();
   sql=(SELECT * FROM example);
   st.executeQuery(sql);

   /* get the results and metadata */
   rs=st.getResultSet();
   rsmd=rs.getMetaData();

   /* how many columns are there? */
   int numcols=rsmd.getColumnCount();

   /* start table and print headings */
   out.println(table\nthead\ntr);
   int i;
   for (i=1;i=numcols;i++)
 out.print(th+rsmd.getColumnLabel(i)+/th);
   out.println(/tr\n/thead\ntbody);

   /* print the rows of the table */
   while (rs.next()) {
 out.print(tr);
 for (i=1;i=numcols;i++)
   out.print(td+rs.getObject(i)+/td);
 out.print(/tr);
 }

   /* end table and close DB */
   out.print(/tbody\n/table\n);
   dbc.close();

   /* error handling */
   } catch (Exception e) {
 out.println(pError in JDBC database access/p);
 out.println(p+e+/p);
   } ;

 %
 /body
 /html

 Thanks again,

 G :)

 Public Sub House()

 On Error Resume drink

  If PintGlass.empty = True Then
  PintGlass.refill
Else
  PintGlass.drink
  End if

 stomach.add PintGlass

 MsgBox  I've had    stomach.count   Pints
 MsgBox VERY DRUNK

 End Sub


 _
 Join the world's largest e-mail service with MSN Hotmail.
 http://www.hotmail.com

 ==
 =
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
 JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
 DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Better way to build a site than or with JSPs ?

2002-02-26 Thread Gare, Trefor

I may not have quite understood your structure but it seems strange to be
creating all those separate directories when it's only the body include that
is changing for each link.  It looks like you should be using a servlet to
detect which link has been requested (via the querystring perhaps) and then
creating each page dynamiclly.  The same could be done in a JSP if you
prefer with a switch statement or a set of if/else statements leading to the
different includes


ie:
index.jsp
-
%@ include file=/Global/Banner.jsp %
table
  tr
td%@ include file=/Global/Menu.jsp %/td
td
%
if (request.getParameter(linkName) == blah){
//include the blah body text
}else if (request.getParameter(linkName) == blob){
//include the blob body texyt
}else{
//include the default body text
}
%
/td
  /tr
/table
%@ include file=/Global/Footer.jsp %

That would mean that essentially all you'd be editing would ever be the body
includes.



Tref Gare
Web Developer MCSD/SCJP
eCommerce Group
Phone:  (03) 9221 4106
Mobile: 0409 556 478
Fax:(03) 9941 4295

 -Original Message-
 From: Soefara Redzuan [SMTP:[EMAIL PROTECTED]]
 Sent: Wednesday,27 February 2002 5:39
 To:   [EMAIL PROTECTED]
 Subject:  Better way to build a site than or with JSPs ?

 I've experimented and have found one way to templated site with JSP but
 there has to be a better way. First, I'll explain what I do at the moment.
 Consider a very simplistical sitemap ~

 Homepage
 +-Company
 +-Products
 +-Services
 +-Feedback

 I've created a folder structure to represent this. And the default page in
 each folder is index.jsp. Each page (index.jsp) shares the same banner
 (Banner.jsp), footer (Footer.jsp) and navigation menu (Menu.jsp) which go
 in
 the Global folder. So, this gives me the following ~

 index.jsp (Homepage)
 \Company\index.jsp
 \Products\index.jsp
 \Services\index.jsp
 \Feedback\index.jsp
 \Global\Banner.jsp
\Menu.jsp
\Footer.jsp

 So far, so good. Next, to make it easier to edit the content on each page
 and to make it easier to have uniform consistency of pages, EVERY
 index.jsp
 is IDENTICAL ~

 index.jsp
 -
 %@ include file=/Global/Banner.jsp %
 table
   tr
 td%@ include file=/Global/Menu.jsp %/td
 td%@ include file=body.jsp %/td
   /tr
 /table
 %@ include file=/Global/Footer.jsp %


 Using this, the final file structure is ~

 index.jsp (Homepage)
 body.jsp
 \Company\index.jsp
 \body.jsp
 \Products\index.jsp
  \body.jsp
 \Services\index.jsp
  \body.jsp
 \Feedback\index.jsp
  \body.jsp
 \Global\Banner.jsp
\Menu.jsp
\Footer.jsp


 And you know, this system works for me.  To edit any page, all I have to
 do
 it edit the body.jsp which means that I have little risk of messing up the
 template.

 The problem with this is obviously all those identical index.jsp's !! If I
 have to make a change to the layout, then I have to change all of them.
 That's obviously BAD but is a simple search/replace because they're all
 identical anyway.

 I know I can use Velocity within JSP in order to use one template for all
 the JSPs but I still end up with literally hundreds of identical index.jsp
 pages for a real site with many levels of subdirectories. It'll be easier
 to
 change the template for layout but really whenever I see repetition on the
 scale of all those index.jsp's I think something's inefficient.

 There has to be a better way of doing this, is there ?

 Soefara.

 _
 Chat with friends online, try MSN Messenger: http://messenger.msn.com

 ==
 =
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
 JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
 DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: How to depoy.

2002-02-20 Thread Gare, Trefor

I think the problem might be in the way you're calling the jk_nt_service.exe

My installation required the following at the command prompt

d:\jakarta-tomcat-3.3\bin\jk_nt_service.exe -i jakarta
d:\jakarta-tomcat-3.3\conf\jk\wrapper.properties

ie:  the path to the exe file,   the switch  -i,  the name of the service
jakarta, and the path to the wrapper.properties file.


Tref Gare
Web Developer MCSD/SCJP
eCommerce Group
Phone:  (03) 9221 4106
Mobile: 0409 556 478
Fax:(03) 9941 4295

 -Original Message-
 From: MARSHALL,John [SMTP:[EMAIL PROTECTED]]
 Sent: Thursday,21 February 2002 10:37
 To:   [EMAIL PROTECTED]
 Subject:  Re: How to depoy.

 Guys

 Any ideas on this?  Or where I should really place it?

 Installed Jakarta-Tomcat-3.2.4 and all works fine with the standard
 Tomcat startup, and shutdown.BAT files.  But,
 i am having problems starting tomcat as an NT Service.

 I use:-
 Microwoft WIndows NT Version 4.0 (Build 1381) Service Pack 6)
 Jakarta_Tomcat-3.2.3
 jk_nt_service.exe (binary download - from 3.2.4

 Then using document Working with the Jakarta NT Service

 1.  cmd prompt:  jk_nt_service -R Jakarta wrapper.properties
 2.  performed a net start Jakarta, and received the following three
 lines
 The Jakarta service is starting
 The Jakarta service could not be started
 The service did not report an error.

 I then tried...

 From Windows NT Control PanelServices
 1.  (start) Jakarta and received the following message
 Could not start the Jakarta Service on \\blah
 Error 2140: An Internal Windows NT Error Occured

 FYI my wrapper.properties contains:-
 
 
 
 #
 # $Header: /home/cvs/jakarta-tomcat/src/etc/Attic/wrapper.properties,v
 1.2.2.1 2000/10/16 01:59:22 larryi Exp $
 # $Revision: 1.2.2.1 $
 # $Date: 2000/10/16 01:59:22 $
 #
 #
 # jk_service.properties - a bootstrup file for the Tomcat NT service.
 #
 # This file provides jk_nt_service with the needed information to
 # start tomcat at a different process.
 #
 # As a general note, the characters $( and ) are used internally to
 define
 # macros. Do not use them!!!
 #
 # Whenever you see a set of lines such as:
 # x=value
 # y=$(x)\something
 #
 # the final value for y will be value\something
 #
 # Normaly all you will need to modify is the first two properties, i.e.
 # wrapper.tomcat_home and wrapper.java_home. Most of the configuration
 # is derived from these two.
 #

 #
 # wrapper.tomcat_home should point to the location where you
 # installed tomcat. This is where you have your conf, webapps and lib
 # directories.
 #
 wrapper.tomcat_home=c:\jakarta-tomcat-3.2.4

 #
 # wrapper.java_home should point to your Java installation. Normally
 # you should have a bin and lib directories beneath it.
 #
 wrapper.java_home=c:\jdk1.3.1

 #
 #-- ADVANCED MODE 
 # Make sure that you read the how-to before making too many changes.
 #-
 #

 #
 # Defining where the service is going to put the standard
 # output of Tomcat. This is where System.out.println and
 # System.err.println goes to.
 #
 wrapper.stdout=$(wrapper.tomcat_home)\logs\jvm.stdout
 wrapper.stderr=$(wrapper.tomcat_home)\logs\jvm.stderr

 #
 # Additions to the path. put here directories where you store DLLs for
 # native methods etc.
 #
 wrapper.ld_path=d:\
 wrapper.ld_path=c:\

 #
 # Defining the classpath. All the rows that belongs to the class_path
 # property are concatenated to create the classpath for Tomcat.
 #
 # If you have additional locations that you would like to add to the
 # claspath you should add a new wrapper.class_path=location line.
 #
 wrapper.class_path=$(wrapper.tomcat_home)\classes
 wrapper.class_path=$(wrapper.tomcat_home)\lib\jaxp.jar

 # wrapper.class_path=$(wrapper.tomcat_home)\lib\parser.jar

 wrapper.class_path=$(wrapper.tomcat_home)\lib\webserver.jar
 wrapper.class_path=$(wrapper.tomcat_home)\lib\servlet.jar
 wrapper.class_path=$(wrapper.tomcat_home)\lib\jasper.jar

 #
 # This is where Javac is located in JDK1.2.x
 #
 # wrapper.class_path=$(wrapper.java_home)\lib\tools.jar
 #
 # and a tribute to JDK1.1.x
 #
 # wrapper.class_path=$(wrapper.java_home)\lib\classes.zip

 #
 # This is the Java interpreter used for running Tomcat
 #
 wrapper.javabin=$(wrapper.java_home)\bin\java.exe

 #
 # This is Tomcat's startup class (the class that contains Tomcat's
 # starting point.
 #
 wrapper.startup_class=org.apache.tomcat.startup.Tomcat

 #
 # This is the location where tomcat's server.xml configuration file
 # is located.
 #
 wrapper.server_xml=$(wrapper.tomcat_home)\conf\server.xml

 #
 # The NT service uses AJP12/AJP13 to shutdown Tomcat. The
 # wrapper.shutdown_port tells the service the identity of the port that
 # is used by 

Re: How to depoy.

2002-02-20 Thread Gare, Trefor

Sorry... just realised these instructions are for tomcat-3.3 which may well
be different than for 3.4.

Tref Gare
Web Developer MCSD/SCJP
eCommerce Group
Phone:  (03) 9221 4106
Mobile: 0409 556 478
Fax:(03) 9941 4295

 -Original Message-
 From: Gare, Trefor [SMTP:[EMAIL PROTECTED]]
 Sent: Thursday,21 February 2002 2:44
 To:   [EMAIL PROTECTED]
 Subject:  Re: How to depoy.

 I think the problem might be in the way you're calling the
 jk_nt_service.exe

 My installation required the following at the command prompt

 d:\jakarta-tomcat-3.3\bin\jk_nt_service.exe -i jakarta
 d:\jakarta-tomcat-3.3\conf\jk\wrapper.properties

 ie:  the path to the exe file,   the switch  -i,  the name of the service
 jakarta, and the path to the wrapper.properties file.


 Tref Gare
 Web Developer MCSD/SCJP
 eCommerce Group
 Phone:  (03) 9221 4106
 Mobile: 0409 556 478
 Fax:(03) 9941 4295

  -Original Message-
  From: MARSHALL,John [SMTP:[EMAIL PROTECTED]]
  Sent: Thursday,21 February 2002 10:37
  To:   [EMAIL PROTECTED]
  Subject:  Re: How to depoy.
 
  Guys
 
  Any ideas on this?  Or where I should really place it?
 
  Installed Jakarta-Tomcat-3.2.4 and all works fine with the standard
  Tomcat startup, and shutdown.BAT files.  But,
  i am having problems starting tomcat as an NT Service.
 
  I use:-
  Microwoft WIndows NT Version 4.0 (Build 1381) Service Pack 6)
  Jakarta_Tomcat-3.2.3
  jk_nt_service.exe (binary download - from 3.2.4
 
  Then using document Working with the Jakarta NT Service
 
  1.  cmd prompt:  jk_nt_service -R Jakarta wrapper.properties
  2.  performed a net start Jakarta, and received the following three
  lines
  The Jakarta service is starting
  The Jakarta service could not be started
  The service did not report an error.
 
  I then tried...
 
  From Windows NT Control PanelServices
  1.  (start) Jakarta and received the following message
  Could not start the Jakarta Service on \\blah
  Error 2140: An Internal Windows NT Error Occured
 
  FYI my wrapper.properties contains:-
  
  
  
  #
  # $Header: /home/cvs/jakarta-tomcat/src/etc/Attic/wrapper.properties,v
  1.2.2.1 2000/10/16 01:59:22 larryi Exp $
  # $Revision: 1.2.2.1 $
  # $Date: 2000/10/16 01:59:22 $
  #
  #
  # jk_service.properties - a bootstrup file for the Tomcat NT service.
  #
  # This file provides jk_nt_service with the needed information to
  # start tomcat at a different process.
  #
  # As a general note, the characters $( and ) are used internally to
  define
  # macros. Do not use them!!!
  #
  # Whenever you see a set of lines such as:
  # x=value
  # y=$(x)\something
  #
  # the final value for y will be value\something
  #
  # Normaly all you will need to modify is the first two properties, i.e.
  # wrapper.tomcat_home and wrapper.java_home. Most of the configuration
  # is derived from these two.
  #
 
  #
  # wrapper.tomcat_home should point to the location where you
  # installed tomcat. This is where you have your conf, webapps and lib
  # directories.
  #
  wrapper.tomcat_home=c:\jakarta-tomcat-3.2.4
 
  #
  # wrapper.java_home should point to your Java installation. Normally
  # you should have a bin and lib directories beneath it.
  #
  wrapper.java_home=c:\jdk1.3.1
 
  #
  #-- ADVANCED MODE 
  # Make sure that you read the how-to before making too many changes.
  #-
  #
 
  #
  # Defining where the service is going to put the standard
  # output of Tomcat. This is where System.out.println and
  # System.err.println goes to.
  #
  wrapper.stdout=$(wrapper.tomcat_home)\logs\jvm.stdout
  wrapper.stderr=$(wrapper.tomcat_home)\logs\jvm.stderr
 
  #
  # Additions to the path. put here directories where you store DLLs for
  # native methods etc.
  #
  wrapper.ld_path=d:\
  wrapper.ld_path=c:\
 
  #
  # Defining the classpath. All the rows that belongs to the class_path
  # property are concatenated to create the classpath for Tomcat.
  #
  # If you have additional locations that you would like to add to the
  # claspath you should add a new wrapper.class_path=location line.
  #
  wrapper.class_path=$(wrapper.tomcat_home)\classes
  wrapper.class_path=$(wrapper.tomcat_home)\lib\jaxp.jar
 
  # wrapper.class_path=$(wrapper.tomcat_home)\lib\parser.jar
 
  wrapper.class_path=$(wrapper.tomcat_home)\lib\webserver.jar
  wrapper.class_path=$(wrapper.tomcat_home)\lib\servlet.jar
  wrapper.class_path=$(wrapper.tomcat_home)\lib\jasper.jar
 
  #
  # This is where Javac is located in JDK1.2.x
  #
  # wrapper.class_path=$(wrapper.java_home)\lib\tools.jar
  #
  # and a tribute to JDK1.1.x
  #
  # wrapper.class_path=$(wrapper.java_home)\lib\classes.zip
 
  #
  # This is the Java

Re: printing on the screen

2002-02-04 Thread Gare, Trefor

I might be misinterpreting here.
but are you looking for how to print to screen ie: html page??

%
out.println(Title);
%

or optionally %=Title%

If I've got your request wrong repost with more data and I'll try to help.

Tref Gare
Web Developer MCSD/SCJP
eCommerce Group
Phone:  (03) 9221 4106
Mobile: 0409 556 478
Fax:(03) 9941 4295

 -Original Message-
 From: panos periorellis [SMTP:[EMAIL PROTECTED]]
 Sent: Tuesday,5 February 2002 4:18
 To:   [EMAIL PROTECTED]
 Subject:  printing on the screen

 Hello Fellas,

 can somebody remind me how do we print on the screen...

 say i have a string and i want to pront it on the screen (not in a text
 box
 or anything like that)say i want to use a string as a the title of the
 page

 p Strinng /p
 regards
 pp
 - Original Message -
 From: Chad Darby [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, February 04, 2002 17:04
 Subject: [Announce] Upcoming Java Seminars - NY and DC


  Java and Web Services: XML and SOAP
  - 22-23 April 2002,  New York City, NY
 
  Java Web App Essentials: Servlets, JSP and EJB
  - 14-15 May 2002,  Washington, DC
 
  * Details at http://www.aquariussolutions.com
 
 
 ==
 =
  To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
 JSP-INTEREST.
  For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
 DIGEST.
  Some relevant FAQs on JSP/Servlets can be found at:
 
   http://archives.java.sun.com/jsp-interest.html
   http://java.sun.com/products/jsp/faq.html
   http://www.esperanto.org.nz/jsp/jspfaq.jsp
   http://www.jguru.com/faq/index.jsp
   http://www.jspinsider.com
 

 ==
 =
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
 JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
 DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: PreTranslationCompiler error??? in Forte CE

2002-01-31 Thread Gare, Trefor

Hi Petr,

yep, Forte CE version 3.0 is the one.

ta

Tref Gare
Web Developer MCSD/SCJP
eCommerce Group
Phone:  (03) 9221 4106
Mobile: 0409 556 478
Fax:(03) 9941 4295

 -Original Message-
 From: Petr Jiricka [SMTP:[EMAIL PROTECTED]]
 Sent: Wednesday,30 January 2002 8:43
 To:   [EMAIL PROTECTED]
 Subject:  Re: PreTranslationCompiler error??? in Forte CE

 Hi Tref,

 thnaks for the report, this is definitely a bug in Forte, we will look
 into
 this and let you know.

 I am assuming you are using Forte CE version 3.0, right ?

 Petr

 - Original Message -
 From: Gare, Trefor [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, January 24, 2002 11:31 PM
 Subject: PreTranslationCompiler error??? in Forte CE


  Can anyone shed any light on the following error that is coming up
  intermittently for me in Forte CE?
  Sometimes the jsp pages still seem to run fine (or at least compilation
  completes), other times they spit the dummy with a variety of can't find
 the
  class type errors
 
  docs.jsp [-1:-1] java.lang.NullPointerException
  at
 
 org.netbeans.modules.web.debug.PreTranslationCompiler$Group.start(PreTrans
 la
  tionCompiler.java:187)
  at
 
 org.netbeans.core.compiler.CompilationEngineImpl$CompilerThread$GroupCompi
 le
  r.run(CompilationEngineImpl.java:257)
 
 
  The latest jsp to give me this error provided the following through the
  browser (ie4.0).
  Internal Servlet Error:
  org.apache.jasper.JasperException: Unable to compile
  E:\jakarta-tomcat-3.3\work\DEFAULT\fai\docs_1.java:7: Package javax.sql
 not
  found in import.
  import javax.sql.*;
 
  where javax.sql is being imported and is also working fine on other
 pages.
 
  eg:
  %@page
  import=java.util.*,java.io.*,au.com.ue.fai.*,javax.sql.*,java.sql.* %
 
  Any help will be truly appreciated.
 
  Thanks in advance
 
 
  Tref Gare
  Web Developer
  eCommerce Group
  Phone:  (03) 9221 4106
  Mobile: 0409 556 478
  Fax:(03) 9941 4295
 
 
 ==
 =
  To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
 JSP-INTEREST.
  For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
 DIGEST.
  Some relevant FAQs on JSP/Servlets can be found at:
 
   http://archives.java.sun.com/jsp-interest.html
   http://java.sun.com/products/jsp/faq.html
   http://www.esperanto.org.nz/jsp/jspfaq.jsp
   http://www.jguru.com/faq/index.jsp
   http://www.jspinsider.com
 

 ==
 =
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
 JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
 DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Trouble accessing servlets via IIS/tomcat combination

2002-01-28 Thread Gare, Trefor

This feels dumb and I'm sure it's a small tweak somewhere that I'm missing
but I can't for the life of me get any servlets to work via the IIS isapi
redirector.

Details.
A test simple servlet trefServlet which just prints out one line of text.
works fine under Tomcat standalone (port 8090 in this instance)
but when I try to run it via IIS (8080 in this instance for reasons too dull
to go into), IIS attempts to access the page, and of course doesn't find it
so sends back a 404.

my urls look like this
http://localhost:8080/fai/servlet/trefServlet
IIS/tomcat combination.  doesn't work

and
http://localhost:8090/fai/servlet/trefServlet
Tomcat standalone - works fine.

Auto config files look like this...

uriworkermap.properties:
#
# Default worker to be used through our mappings
#
default.worker=ajp13
/examples=$(default.worker)
/examples/*=$(default.worker)
/fai=$(default.worker)
/fai/*=$(default.worker)


I've tried adding the following variations
/fai/servlet/*=$(default.worker)
/fai/*.jsp=$(default.worker)
in case the tomcat 'servlet' mapping wasn't getting respected by IIS but it
seemed to have no effect either.

The desired result is that tomcat handles all servlets (either via the
servlet shortcut or full package path) and IIS handles and html/asp calls.

Any ideas anyone as to what I'm missing?

Thanks
Tref





Tref Gare
Web Developer MCSD/SCJP
eCommerce Group
Phone:  (03) 9221 4106
Mobile: 0409 556 478
Fax:(03) 9941 4295

 -Original Message-
 From: Kevin Gutch [SMTP:[EMAIL PROTECTED]]
 Sent: Saturday,26 January 2002 3:01
 To:   [EMAIL PROTECTED]
 Subject:  Re: Difficulty with images

 The images are not in the same directory. They are in an images directory.
 The jsps in question are in the same directory.

 ==
 =
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
 JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
 DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



PreTranslationCompiler error??? in Forte CE

2002-01-24 Thread Gare, Trefor

Can anyone shed any light on the following error that is coming up
intermittently for me in Forte CE?
Sometimes the jsp pages still seem to run fine (or at least compilation
completes), other times they spit the dummy with a variety of can't find the
class type errors

docs.jsp [-1:-1] java.lang.NullPointerException
at
org.netbeans.modules.web.debug.PreTranslationCompiler$Group.start(PreTransla
tionCompiler.java:187)
at
org.netbeans.core.compiler.CompilationEngineImpl$CompilerThread$GroupCompile
r.run(CompilationEngineImpl.java:257)


The latest jsp to give me this error provided the following through the
browser (ie4.0).
Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile
E:\jakarta-tomcat-3.3\work\DEFAULT\fai\docs_1.java:7: Package javax.sql not
found in import.
import javax.sql.*;

where javax.sql is being imported and is also working fine on other pages.

eg:
%@page
import=java.util.*,java.io.*,au.com.ue.fai.*,javax.sql.*,java.sql.* %

Any help will be truly appreciated.

Thanks in advance


Tref Gare
Web Developer
eCommerce Group
Phone:  (03) 9221 4106
Mobile: 0409 556 478
Fax:(03) 9941 4295

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Loading pdf files using jsp

2002-01-24 Thread Gare, Trefor

Might need more info to help here.
I'm assuming you're not just wanting to link to a PDF, but just in case...

To link to a pdf file from a webpage (of any flavour ie: html, jsp, php etc)

a href=/myPdfs/thisisit.pdfclick for pdf/a

The behaviour of the resulting link varies from browser to browser

If this doesn't help, let me know a bit more about what you're after and
I'll see if I can help.



Tref Gare
Web Developer MCSD/SCJP
eCommerce Group
Phone:  (03) 9221 4106
Mobile: 0409 556 478
Fax:(03) 9941 4295

 -Original Message-
 From: Shahata, Ashraf [SMTP:[EMAIL PROTECTED]]
 Sent: Friday,25 January 2002 10:17
 To:   [EMAIL PROTECTED]
 Subject:  Loading pdf files using jsp

 Hi all,
 does anyone know of any examples for loading pdf files in jsp?

 Thanks
 Ash

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: A java question.

2002-01-14 Thread Gare, Trefor

;-)
larf.

That'd be the one

Tref Gare
Web Developer MCSD/SCJP
eCommerce Group
Phone:  (03) 9221 4106
Mobile: 0409 556 478
Fax:(03) 9941 4295

 -Original Message-
 From: Ronald Wildenberg [SMTP:[EMAIL PROTECTED]]
 Sent: Monday,14 January 2002 6:27
 To:   [EMAIL PROTECTED]
 Subject:  Re: A java question.

 I suppose that you mean:
 Rule No. 999 in Java: if you have more than one class per source file, ...


 Chen Chao wrote:

   Rule No. 1 in Java: if you have more than one class in your
 application, you only can use public key word in the class which has
 main method (public static void main( ) ...).  Try the following code and
 name your file as Test2.java (not Test.java):

   class Test implements Runnable {// remove public key word here
   public void run() {
   for (int i=1; i=10; i++){
   System.out.println(Test:+i);
   }
   }
   }

   public class Test2 {   // add public keyword here if you want to

   public static void main (String args[]){

Test te = new Test();
Thread t = new Thread(te);
t.start();

   }
   }


   Compile Test2.java and run it:

   C:\java Test2


   Cheer.


===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: A java question.

2002-01-14 Thread Gare, Trefor

I'd say:
The static variable i is not explicitly initialized and so is implicitly set
to 0
Therefore the while condition is false from the start (ie: i is not less
than 0), so the loop is skipped and i's initial value is printed.

cheers

Tref Gare
Web Developer MCSD/SCJP
eCommerce Group
Phone:  (03) 9221 4106
Mobile: 0409 556 478
Fax:(03) 9941 4295

 -Original Message-
 From: Miao, Franco CAWS:EX [SMTP:[EMAIL PROTECTED]]
 Sent: Tuesday,15 January 2002 8:33
 To:   [EMAIL PROTECTED]
 Subject:  A java question.

 class xyz {
 static int i;
 public static void main(String args[]) {

 while (i  0) {
 i--;
 }
 System.out.println(i);
 }
 }

 why it come out 0? I guess variable i has not have been initialized, so
 i--
 will not be processed.

 Franco

 ==
 =
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
 JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
 DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: A java question.

2002-01-14 Thread Gare, Trefor

yep.. any variables declared outside of a method are implicitly (ie
automatically) initialised to:
Numeric types = 0
Strings = null
booleans = false

Inside methods all variables must be explicitly (ie: by you/the programmer)
initialised.

cheers

Tref Gare
Web Developer MCSD/SCJP
eCommerce Group
Phone:  (03) 9221 4106
Mobile: 0409 556 478
Fax:(03) 9941 4295

 -Original Message-
 From: Miao, Franco CAWS:EX [SMTP:[EMAIL PROTECTED]]
 Sent: Tuesday,15 January 2002 9:00
 To:   [EMAIL PROTECTED]
 Subject:  Re: A java question.

 I didn't realize i will be initiated as 0 if it is not be specified, so
 you
 guys mean i=0 is system default?



 Franco




 -Original Message-
 From: Gare, Trefor [mailto:[EMAIL PROTECTED]]
 Sent: Monday, January 14, 2002 1:38 PM
 To: [EMAIL PROTECTED]
 Subject: Re: A java question.


 I'd say:
 The static variable i is not explicitly initialized and so is implicitly
 set
 to 0
 Therefore the while condition is false from the start (ie: i is not less
 than 0), so the loop is skipped and i's initial value is printed.

 cheers

 Tref Gare
 Web Developer MCSD/SCJP
 eCommerce Group
 Phone:  (03) 9221 4106
 Mobile: 0409 556 478
 Fax:(03) 9941 4295

  -Original Message-
  From: Miao, Franco CAWS:EX [SMTP:[EMAIL PROTECTED]]
  Sent: Tuesday,15 January 2002 8:33
  To:   [EMAIL PROTECTED]
  Subject:  A java question.
 
  class xyz {
  static int i;
  public static void main(String args[]) {
 
  while (i  0) {
  i--;
  }
  System.out.println(i);
  }
  }
 
  why it come out 0? I guess variable i has not have been initialized, so
  i--
  will not be processed.
 
  Franco
 
 
 ==
  =
  To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
  JSP-INTEREST.
  For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
  DIGEST.
  Some relevant FAQs on JSP/Servlets can be found at:
 
   http://archives.java.sun.com/jsp-interest.html
   http://java.sun.com/products/jsp/faq.html
   http://www.esperanto.org.nz/jsp/jspfaq.jsp
   http://www.jguru.com/faq/index.jsp
   http://www.jspinsider.com

 ==
 =
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
 JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
 DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com

 ==
 =
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
 JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
 DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: A java question.

2002-01-14 Thread Gare, Trefor

Curly brackets franco.. but we're getting a bit off topic for a jsp list.

if (blah)
//do stuff
else
//do other stuff

this will work only if there is one and only one statement after the if
and the else
if there are to be more than one statement then the code must be placed in a
code block via the infamous curly brackets
eg
if(blah){
//do stuff
// do more stuff
}else{
//do other stuff
//do more other stuff
}

check out the sun java tutorial for control structures if this isn't clear


Tref Gare
Web Developer MCSD/SCJP
eCommerce Group
Phone:  (03) 9221 4106
Mobile: 0409 556 478
Fax:(03) 9941 4295

 -Original Message-
 From: Miao, Franco CAWS:EX [SMTP:[EMAIL PROTECTED]]
 Sent: Tuesday,15 January 2002 9:35
 To:   [EMAIL PROTECTED]
 Subject:  A java question.

 class test {
 static boolean check;
 public static void main(String args[]) {
 int i;
 if(check == true)
 i=1;
 else
 i=2;

 if (check == false)
 i=2; i=i+2;

 else
 i = i + 4;

 System.out.println(i);
  }
 }


 C:\javac test.java
 test.java:13: 'else' without 'if'
 else
 ^

 I know this is cause by  i=2; i=i+2;
 if just i=2, then everthing will be fine, how to make  i=2; i=i+2; as a
 block, so compiler will not consider it should need another if ?

 Franco

 ==
 =
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
 JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
 DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Tomcat 'Authorization' header and NTLM security in IIS

2001-12-17 Thread Gare, Trefor

Hi all,

Any help on this one will be greatly appreciated.

We're running a Tomcat 3.3 installation alongside/via IIS4 on NT with a view
to migrating from asp to jsp in the near future.
Our current issue is that we're attempting to access the  'Authorization'
header in a JSP via IIS

Here's as far as I got:
- JSP page checks for the 'Authorization' header.
- if it exists, and is of type 'Basic' authentication, extract the base64
encoded username - DONE!!!
- if it does not exist, or is not 'Basic', throw back a WWW-Authenticate
BASIC / 401 response

This results in IIS throwing back the basic authenticate request  IE doing
a 'Basic logon' dialog box, for which I can enter my LAN logon. So far so
good.
The problem is that when the request headers are presented back to the JSP
page, the 'Authorization' field is set back to NTLM, not Basic.

Any suggestions on why this is happening and how we might work around it?

Thanks again.

Tref Gare
Web Developer MCSD
eCommerce Group
Phone:  (03) 9221 4106
Mobile: 0409 556 478
Fax:(03) 9941 4295

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Urgent !!!!!!!! Please help me

2001-12-17 Thread Gare, Trefor

Not quite sure what you're after but the second will allow the JVM to use a
single String object for multiple references (if there are any other strings
Tendulkar).  The first will always create a new String object.  In that
way the second is a more economical way of creating/referencing the object.
Is that a help?



Tref Gare
Web Developer MCSD
eCommerce Group
Phone:  (03) 9221 4106
Mobile: 0409 556 478
Fax:(03) 9941 4295

 -Original Message-
 From: Ravindra [SMTP:[EMAIL PROTECTED]]
 Sent: Tuesday,18 December 2001 5:24
 To:   [EMAIL PROTECTED]
 Subject:  Re: Urgent  Please help me

 Hi All,

 String string_Name = new String(Tendulkar);

 String string_Name = Tendulkar;

 In Above two statements which is compatible(Speed,Instantiating and other
 parameters.) for java compiler.

 thanks

 Varna.

 ==
 =
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
 JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
 DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



TOMCAT IIS redirector troubles

2001-11-20 Thread Gare, Trefor

Hi all,

Any help appreciated greatly.
We've succesfully installed Tomcat on top of IIS on NT4 in a test
environment.  After some fiddling all is working fine.  However we've now
tried to transfer that setup across to the production server and are having
problems.

After setup and restarting all w3svc and IISadmin services, the system will
succesfully serve up one servlet or JSP, but no more than one.  After that
first load all attempts fail.  The isapi_log (below) suggests that after
that one load the wc is closing and no further logging is taking place,
which it's not doing on the test server.

The configs and setups are almost identical (java_home and tomcat_home are
on E: in production rather then D: in test) with the only major difference
being that the live server is also running ColdFusion.  I've attempted to
run with cold fusion services stopped but no success.

When attempting to make the connection the error message suggests that the
HTTP redirect failed.  When running independently both Tomcat and IIS are
behaving themselves well (tomcat on port 8090), it's only when we ask them
to play together that we're coming to grief.

As I said earlier, any help will be appreciated.

Tref Gare

isapi_log follows

[jk_isapi_plugin.c (439)]: HttpFilterProc [/tref/index.jsp] is a servlet url
- should redirect to ajp12
[jk_isapi_plugin.c (461)]: HttpFilterProc check if [/tref/index.jsp] is
points to the web-inf directory
[jk_isapi_plugin.c (517)]: HttpExtensionProc started
[jk_worker.c (123)]: Into wc_get_worker_for_name ajp12
[jk_worker.c (127)]: wc_get_worker_for_name, done  found a worker
[jk_isapi_plugin.c (539)]: HttpExtensionProc got a worker for name ajp12
[jk_ajp12_worker.c (223)]: Into jk_worker_t::get_endpoint
[jk_ajp12_worker.c (121)]: Into jk_endpoint_t::service
[jk_connect.c (108)]: Into jk_open_socket
[jk_connect.c (115)]: jk_open_socket, try to connect socket = 1888
[jk_connect.c (124)]: jk_open_socket, after connect ret = -1
[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61
[jk_ajp12_worker.c (134)]: In jk_endpoint_t::service, sd = -1
[jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
[jk_isapi_plugin.c (554)]: HttpExtensionProc error, service() failed
[jk_ajp12_worker.c (163)]: Into jk_endpoint_t::done
[jk_uri_worker_map.c (176)]: Into jk_uri_worker_map_t::uri_worker_map_free
[jk_uri_worker_map.c (327)]: Into jk_uri_worker_map_t::uri_worker_map_close
[jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close, NULL
parameter
[jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free,
NULL parameters
[jk_worker.c (109)]: Into wc_close
[jk_worker.c (111)]: wc_close, done

Tref Gare
Web Developer MCSD
eCommerce Group
Phone:  (03) 9221 4106
Mobile: 0409 556 478
Fax:(03) 9941 4295

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Tomcat- Apache Configuration : Finally I did it !!!!

2001-11-20 Thread Gare, Trefor

Well done Kam,

I've had the same problem, but looking through your instructions I
can't see anything that we didn't try.. have you any idea where it was that
you're problems were coming from?  The only query in my mind is the
Note : ( Dont select thie option Tomcat as NT service/2000
only )
as I think we did do that (ie: we did select it as a service).  Was
that where you were falling over as well?

Tref


Tref Gare
Web Developer MCSD
eCommerce Group
Phone:  (03) 9221 4106
Mobile: 0409 556 478
Fax:(03) 9941 4295

 -Original Message-
 From: Kam Premkumar [SMTP:[EMAIL PROTECTED]]
 Sent: Wednesday,21 November 2001 10:34
 To:   [EMAIL PROTECTED]
 Subject:  Tomcat- Apache Configuration : Finally I did it 

 Guys

 Finally I configured Apache with Tomcat 4.0 in windows 2000. Hopefully
 this document will be useful to everybody

 Thanks
 Prem

 Apache Web Server Installation in windows 2000
 ===

 01. Download Apahce WebServer from the following Link
 http://www.apache.org/dist/httpd/binaries/win32/apache_1.3.22-win32-x86.ex
 e

 02. Install Apache WebServer as per installation kit instrcutions
 Network Domain: xxx.com
 Server Name: your computer name
 Admin Email Address: your email address
 check - click run as a service for all users options
 03. Choose the Apache Home diretory and say next
 04. Click Finish to complete the Apache server installation

 05. Try this url http://127.0.0.1:80
 06. If you get Apache Home page in your browser. you installaed Apahe
 web server successfully.


 Tomcat 4.0  Installation in windows 2000
 ==

 07. Download Tomcat 4.0 from the following link
 http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.1/bin/jak
 arta-tomcat-4.0.1.exe

 08. Install Tomcat as per intallation kit instructions
 Note : ( Dont select thie option Tomcat as NT service/2000 only )
 09. Go to tomcat_home/bin/
 10. run this command catalina run
 11. Try this url http://127.0.0.1:8080
 12. If you get Tomcat Home page in your browser. you installaed Tomcat
 4.0 successfully.

 Making Tomcat 4.0 as a servlet/jsp  container for apache webserver
 

 13. Download web app modules from the following link
 http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.1/bin/win
 32/webapp-module-1.0-tc40-windows.zip

 14. Unzip this file under apache_home/modules/
 15. Copy the mod_webapp.so and libapr.dll  into apache_home/modules/
 16. Add the following lines in apache_home/conf/httpd.conf of apache

   LoadModule webapp_module modules/mod_webapp.so
   AddModule mod_webapp.c
   WebAppConnection conn  warp  127.0.0.1:8008
   WebAppDeploy examples  conn  /examples

 17. Save the http.conf file and restart the apache webserver and tomcat
 servlet container
 18. Open tomcat_home/conf/server.xml and add
 defaulthost=yourservername in engine tag under service tag
 19. Save the server.xml file and restart tomcat ans apache webserver
 20. Try this url http://127.0.0.1/examples/jsp
 21. If you get jsp examples page in your browser. you installed tomcat
 as a servelt container for apache webserver successfully.


 Author: Kam Premkumar
 Mail: [EMAIL PROTECTED]

 ==
 =
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
 JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
 DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: TOMCAT IIS redirector troubles

2001-11-20 Thread Gare, Trefor

Thanks Justy,

I've done a netstat -an on all the box and 1888 isn't amongst the currenlty
opened ports.  But it does look suss doesn't it. I'll keep looking into it.


Tref Gare
Web Developer MCSD
eCommerce Group
Phone:  (03) 9221 4106
Mobile: 0409 556 478
Fax:(03) 9941 4295

 -Original Message-
 From: horwat [SMTP:[EMAIL PROTECTED]]
 Sent: Wednesday,21 November 2001 11:09
 To:   [EMAIL PROTECTED]
 Subject:  Re: TOMCAT IIS redirector troubles

 It looks like the attempt to open a socket on port 1888 fails. Are you
 sure
 that port is available? I would check into other services running on the
 machine that might be using the port.

 Justy

 - Original Message -
 From: Gare, Trefor [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, November 20, 2001 3:45 PM
 Subject: TOMCAT IIS redirector troubles


  Hi all,
 
  Any help appreciated greatly.
  We've succesfully installed Tomcat on top of IIS on NT4 in a test
  environment.  After some fiddling all is working fine.  However we've
 now
  tried to transfer that setup across to the production server and are
 having
  problems.
 
  After setup and restarting all w3svc and IISadmin services, the system
 will
  succesfully serve up one servlet or JSP, but no more than one.  After
 that
  first load all attempts fail.  The isapi_log (below) suggests that after
  that one load the wc is closing and no further logging is taking place,
  which it's not doing on the test server.
 
  The configs and setups are almost identical (java_home and tomcat_home
 are
  on E: in production rather then D: in test) with the only major
 difference
  being that the live server is also running ColdFusion.  I've attempted
 to
  run with cold fusion services stopped but no success.
 
  When attempting to make the connection the error message suggests that
 the
  HTTP redirect failed.  When running independently both Tomcat and IIS
 are
  behaving themselves well (tomcat on port 8090), it's only when we ask
 them
  to play together that we're coming to grief.
 
  As I said earlier, any help will be appreciated.
 
  Tref Gare
 
  isapi_log follows
 
  [jk_isapi_plugin.c (439)]: HttpFilterProc [/tref/index.jsp] is a servlet
 url
  - should redirect to ajp12
  [jk_isapi_plugin.c (461)]: HttpFilterProc check if [/tref/index.jsp] is
  points to the web-inf directory
  [jk_isapi_plugin.c (517)]: HttpExtensionProc started
  [jk_worker.c (123)]: Into wc_get_worker_for_name ajp12
  [jk_worker.c (127)]: wc_get_worker_for_name, done  found a worker
  [jk_isapi_plugin.c (539)]: HttpExtensionProc got a worker for name ajp12
  [jk_ajp12_worker.c (223)]: Into jk_worker_t::get_endpoint
  [jk_ajp12_worker.c (121)]: Into jk_endpoint_t::service
  [jk_connect.c (108)]: Into jk_open_socket
  [jk_connect.c (115)]: jk_open_socket, try to connect socket = 1888
  [jk_connect.c (124)]: jk_open_socket, after connect ret = -1
  [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61
  [jk_ajp12_worker.c (134)]: In jk_endpoint_t::service, sd = -1
  [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
  [jk_isapi_plugin.c (554)]: HttpExtensionProc error, service() failed
  [jk_ajp12_worker.c (163)]: Into jk_endpoint_t::done
  [jk_uri_worker_map.c (176)]: Into
 jk_uri_worker_map_t::uri_worker_map_free
  [jk_uri_worker_map.c (327)]: Into
 jk_uri_worker_map_t::uri_worker_map_close
  [jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close,
 NULL
  parameter
  [jk_uri_worker_map.c (185)]: In
 jk_uri_worker_map_t::uri_worker_map_free,
  NULL parameters
  [jk_worker.c (109)]: Into wc_close
  [jk_worker.c (111)]: wc_close, done
 
  Tref Gare
  Web Developer MCSD
  eCommerce Group
  Phone:  (03) 9221 4106
  Mobile: 0409 556 478
  Fax:(03) 9941 4295
 
 
 ==
 =
  To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
 JSP-INTEREST.
  For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
 DIGEST.
  Some relevant FAQs on JSP/Servlets can be found at:
 
   http://archives.java.sun.com/jsp-interest.html
   http://java.sun.com/products/jsp/faq.html
   http://www.esperanto.org.nz/jsp/jspfaq.jsp
   http://www.jguru.com/faq/index.jsp
   http://www.jspinsider.com
 

 ==
 =
 To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
 JSP-INTEREST.
 For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
 DIGEST.
 Some relevant FAQs on JSP/Servlets can be found at:

  http://archives.java.sun.com/jsp-interest.html
  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.jsp
  http://www.jguru.com/faq/index.jsp
  http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST.
Some