Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 67829 invoked from network); 3 Nov 2003 13:17:06 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 3 Nov 2003 13:17:06 -0000 Received: (qmail 42427 invoked by uid 500); 3 Nov 2003 13:16:48 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 42409 invoked by uid 500); 3 Nov 2003 13:16:47 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 42392 invoked from network); 3 Nov 2003 13:16:46 -0000 Received: from unknown (HELO smtprelay.rupa.it) (213.175.2.206) by daedalus.apache.org with SMTP; 3 Nov 2003 13:16:46 -0000 Received: from smtp5.cgi.rupa.it (casms005 [213.175.2.96]) by smtprelay.rupa.it with ESMTP id hA3DGlO0031311; Mon, 3 Nov 2003 14:16:47 +0100 Received: from smtp.cgi.rupa.it ([213.175.2.16]) by smtp5.cgi.rupa.it with ESMTP id hA3DGk7v002935 for ; Mon, 3 Nov 2003 14:16:46 +0100 Received: from gprms03.giustizia.it ([10.3.192.212]) by smtp.cgi.rupa.it with SMTP id hA3DGjR07430 for ; Mon, 3 Nov 2003 14:16:46 +0100 (MET) Received: from gprms03.giustizia.it ([10.3.192.212]) by gprms03.giustizia.it (SAVSMTP 3.0.0.44) with SMTP id M2003110314164512034 for ; Mon, 03 Nov 2003 14:16:45 +0100 Received: by gprms03.giustizia.it with Internet Mail Service (5.5.2657.72) id ; Mon, 3 Nov 2003 14:16:45 +0100 Received: from usi036 (10.2.240.136 [10.2.240.136]) by GM4MS01.giustizia.it with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2657.72) id V9A4C9BZ; Mon, 3 Nov 2003 14:16:32 +0100 Message-ID: <002501c3a20c$70fd46a0$88f0020a@usi036> X-Sybari-Space: 00000000 00000000 00000000 00000000 From: "Giustizia" To: Date: Mon, 3 Nov 2003 14:14:31 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0020_01C3A214.CCDC9680" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: [users@httpd] Problem with JavaServerPage X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------=_NextPart_000_0020_01C3A214.CCDC9680 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Good morning at all =20 I write from Italy and it's first time i write. So sorry if i do not = use in the correct way the mailing list. =20 However this is my problem =20 My infrastructure Database Server : Win2000 Server with Oracle 9i installed without Apache =20 Application Server: Win2000 Server with Oracle 9i Rel2 ( 9.2.0.1.0 ) with Apache 1.3.22 installed and configured by Oracle Client : 1500 client with various version of Windows ( 95, 98, 98SE XP, 2000 ) =20 My problem: I create a java package Package Name: Connetti Source file: Connessione.java Compiled file: Connessione.class Here a small part =20 Source file Connessione.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =20 package Connetti; =20 import java.sql.*; import java.io.*;=20 =20 public class Connessione { java.util.Properties Riferimento_Database =3D null;=20 Connection Riferimento_Connessione =3D null; public String Utente =3D null; public String Password =3D null; public String Tnsnames =3D null; // public void Parametri_Database()=20 { Riferimento_Database =3D new java.util.Properties(); Riferimento_Database.put("user" , Utente); Riferimento_Database.put("password", Password); Riferimento_Database.put("database", Tnsnames); } =20 =20 Package Connetti has it's own directory call = D:\Procedura\JAVA\Connetti; The CLASSPATH is: CLASSPATH=3DC:\oracle\ora92\jdbc\lib\classes12.zip;C:\oracle\ora92\jdbc\= li b\nls_charset12.zip; C:\oracle\ora92\jdbc\lib\jta.zip;C:\oracle\ora92\jdbc\lib\jndi.zip;D:\Pr= ocedura\JAVA; D:\Procedura\JAVA\Class;D:\Procedura\JAVA\Connetti; I create a small JavaServerPage application which use that package Here a small part =20 Source Query_Oracle.jsp =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =20 <%@ page import=3D"java.sql.*" %> <%@ page import=3D"java.io.*" %> <%@ page import=3D"java.util.*" %> <%@ page import=3D"Connetti.*" %> =20 =20 Visualizzazione Sintetica Procedimento =20 <%=20 String utente =3D request.getParameter("Utente"); String password =3D request.getParameter("Password"); String anno =3D request.getParameter("Anno"); String progressivo =3D request.getParameter("Progressivo"); // try { Connetti.Connessione param =3D new Connetti.Connessione (); param.Utente =3D utente; param.Password =3D password; param.Tnsnames =3D "mydb"; param.Parametri_Database(); =20 I start my Apache on the application server=20 I run my Query_oracle.jsp in this way http://myserver:7778/jsp/Query_Oracle.jsp =20 =20 I get this error =20 URI richiesta:/jsp/Query_Oracle.jsp =20 Eccezione: oracle.jsp.provider.JspCompileException:=20 Errori di compilazione:d:\procedura\jsp\_pages\_jsp\\_Query__Oracle.javaLine=20 # Error 14 Package Connetti not found in import. import Connetti.*; =20 at oracle.jsp.app.JspJavacCompiler.compile(JspJavacCompiler.java) at oracle.jsp.app.JspAppLoader.reloadPage(JspAppLoader.java) at oracle.jsp.app.JspAppLoader.loadPage(JspAppLoader.java) at oracle.jsp.app.JspAppLoader.getPage(JspAppLoader.java) at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java) at oracle.jsp.JspServlet.doDispatch(JspServlet.java) at oracle.jsp.JspServlet.internalService(JspServlet.java) at oracle.jsp.JspServlet.service(JspServlet.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java:588) at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456= ) at org.apache.jserv.JServConnection.run(JServConnection.java:294) at java.lang.Thread.run(Thread.java:484) =20 It seem to be a configuration error=20 =20 Oracle said to modify the Jserv.properties adding wrapper.classpath=3Dpathname. =20 But what must i write ? =20 My package is call Connetti; Source file is Connessione.java; Class file is Connessione.class; =20 In Jserv.properties i see only .zip and .jar file=20 =20 Must i create a jar file ? How-to create a jar file ? The name of jar file ? =20 And than ... =20 wrapper.classpath=3Dd:\Procedura\JAVA\Connetti Only the whole pathname ? wrapper.classpath=3Dd:\Procedura\JAVA\Connetti\Connetti = The whole pathname plus package name ? wrapper.classpath=3Dd:\Procedura\JAVA\Connetti\Connessione.jar The whole pathname plus jar file which contain=20 =20 class file which has inside package name ? Can someone say how-to-solve ? Thank You ------=_NextPart_000_0020_01C3A214.CCDC9680 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Good morning at all
 
I write from Italy and it's first time = i write. So=20 sorry if i do not use in the correct way the mailing list.
 
However this is my = problem
 
My infrastructure
Database = Server   :=20 Win2000 Server with Oracle 9i installed without Apache =  
Application=20 Server: Win2000 Server with Oracle 9i Rel2 ( 9.2.0.1.0=20 ) with  Apache 1.3.22 installed and configured by=20 Oracle
Client         &n= bsp;       =20 : 1500 client with various version of Windows ( 95, 98, 98SE XP, 2000=20 )
 
My problem:
I create a java = package
Package Name: Connetti
Source=20 file:        = Connessione.java
Compiled file:   =20  Connessione.class
Here a small part
 
Source file = Connessione.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 
package Connetti;
 
import java.sql.*;
import = java.io.*;=20
 
public class = Connessione
 {
 =20 java.util.Properties Riferimento_Database    =3D null; =
 =20 Connection          =20 Riferimento_Connessione =3D null;
  public String=20 Utente      =3D null;
  public String=20 Password    =3D null;
  public String=20 Tnsnames    =3D null;
//
  public void=20 Parametri_Database()
   {
   =20 Riferimento_Database =3D new = java.util.Properties();
   =20 Riferimento_Database.put("user"    , =20 Utente);
    = Riferimento_Database.put("password", =20 Password);
    = Riferimento_Database.put("database", =20 Tnsnames);
   }
 
 
Package Connetti has it's own = directory call=20 D:\Procedura\JAVA\Connetti;
The = CLASSPATH=20 is:
CLASSPATH=3DC:\oracle\ora92\jdbc\lib\classes12.zip;C:\oracle\or= a92\jdbc\lib\nls_charset12.zip;
C:\oracle\ora92\jdbc\lib\jta.zip;C:\o= racle\ora92\jdbc\lib\jndi.zip;D:\Procedura\JAVA;
D:\Procedura\JAVA\Cl= ass;D:\Procedura\JAVA\Connetti;
I create a small JavaServerPage = application which=20 use that package
Here a small part
 
Source=20 Query_Oracle.jsp
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D
 
<%@ page import=3D"java.sql.*" = %>
<%@=20 page import=3D"java.io.*" %>
<%@ page import=3D"java.util.*"=20 %>
<%@ page import=3D"Connetti.*" %>
 
<html>
 
<head>
<meta=20 http-equiv=3D"Content-Language" content=3D"it">
<meta=20 http-equiv=3D"Content-Type" content=3D"text/html;=20 charset=3Dwindows-1252">
<meta name=3D"GENERATOR" = content=3D"Microsoft=20 FrontPage 4.0">
<meta name=3D"ProgId"=20 content=3D"FrontPage.Editor.Document">
<title>Visualizzazion= e=20 Sintetica Procedimento</title>
</head>
 
<body>
<% =
   =20 String  utente      =3D=20 request.getParameter("Utente");
    String =20 password    =3D=20 request.getParameter("Password");
    String =20 anno        =3D=20 request.getParameter("Anno");
    String  = progressivo =3D=20 request.getParameter("Progressivo");
   =20 //
    try
    =20 {
      Connetti.Connessione param =3D new=20 Connetti.Connessione ();
     =20 param.Utente      =3D=20 utente;
      = param.Password    =3D=20 password;
      = param.Tnsnames    =3D=20 "mydb";
     =20 param.Parametri_Database();
 
I start my Apache on the application = server
I=20 run my Query_oracle.jsp in this way http://myserver:7778/= jsp/Query_Oracle.jsp
 
I get this error
 
URI = richiesta:/jsp/Query_Oracle.jsp
 
Eccezione:
oracle.jsp.provider.JspCompileException: =
Errori di=20 compilazione:d:\procedura\jsp\_pages\_jsp\\_Query__Oracle.javaLine =
# Error=20 14 Package Connetti not found in import. import Connetti.*;  =
 at=20 oracle.jsp.app.JspJavacCompiler.compile(JspJavacCompiler.java)
 = at=20 oracle.jsp.app.JspAppLoader.reloadPage(JspAppLoader.java)
 at=20 oracle.jsp.app.JspAppLoader.loadPage(JspAppLoader.java)
 at=20 oracle.jsp.app.JspAppLoader.getPage(JspAppLoader.java)
 at=20 oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java)
&n= bsp;at=20 oracle.jsp.JspServlet.doDispatch(JspServlet.java)
 at=20 oracle.jsp.JspServlet.internalService(JspServlet.java)
 at=20 oracle.jsp.JspServlet.service(JspServlet.java)
 at=20 javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
 at= =20 org.apache.jserv.JServConnection.processRequest(JServConnection.java:456= )
 at=20 org.apache.jserv.JServConnection.run(JServConnection.java:294)
 = at=20 java.lang.Thread.run(Thread.java:484)
 
It seem to be a configuration error =
 
Oracle said to modify the = Jserv.properties adding=20 wrapper.classpath=3Dpathname.
 
But what must i write ?
 
My package  is call Connetti;
S= ource file=20 is Connessione.java;
Class  file is = Connessione.class;
 
In Jserv.properties i see only .zip = and .jar file=20
 
Must i create a jar file ?
How-to = create a jar=20 file ?
The name of jar file     ?
 
And than ...
 
wrapper.classpath=3Dd:\Procedura\JAVA\Connetti   = ;            = ;            = ;=20 Only the whole pathname=20 ?
wrapper.classpath=3Dd:\Procedura\JAVA\Connetti\Connetti  =             = =20 The whole pathname plus package name=20 ?
wrapper.classpath=3Dd:\Procedura\JAVA\Connetti\Connessione.jar = ;  =20 The whole pathname plus jar file which contain=20
           &n= bsp;           &n= bsp;           &n= bsp;           &n= bsp;           &n= bsp;           &n= bsp;           &n= bsp;           &n= bsp; =20 class file which has inside package name ?
Can someone say how-to-solve = ?
Thank=20 You
------=_NextPart_000_0020_01C3A214.CCDC9680--