Help Needed With Deployement

2002-07-25 Thread Frederick Aubert

Hi,

I am currently trying to deploy Web Applications using Apache 2.0.39 and
Tomcat 4.1.7 integrated using mod_jk. Is there any better and more efficient
integration? I am looking for the most up-to-date stable integration working
on a Windows machine...

Anyway, I would need someone to go through my server.xml and my mod_jk.conf
(included in my httpd.conf) to check why the integration seems to be working
as long as I use html pages, but does not work anymore as soon as I use jsp
pages. I am also hoping that I am doing it the most efficient way, but I'd
again need to have someone to check what I am doing.

I did make sure to add JkMount /mywebapp  ajp13 and JkMount /mywebapp/*
ajp13 for each of my webapp. I also did make sure to add Context
path=/mywebapp docBase=F:/Cassiopee Projects/webapps/mywebapp debug=0
privileged=true reloadable=true/ for each of my webapp. Did I
missunderstand something?

Thanks, Frederick


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Help Needed With Deployement

2002-07-25 Thread Frederick Aubert

John,

Everything seems to be working succesfully on the default port (8080).
However when I try to access the same webapp the server does not seem to be
successful in finding the page (object not found error, 404)...

I thought about removing the spaces, but I had it working with spaces, and
for now I would prefer avoiding installing and uninstalling stuffs. And
would it make sense it can be deployed directly on port 8080 but not on port
80? If you want I can send directly to you the conf files so you can have a
look. Otherwise you might want to try www.cassiopee.d2g.com/examples and
www.cassiopee.d2g.com:8080/examples

Sincerely, Frederick

-Message d'origine-
De : Turner, John [mailto:[EMAIL PROTECTED]]
Envoyé : jeudi, 25. juillet 2002 17:15
À : 'Tomcat Users List'
Objet : RE: Help Needed With Deployement



What error messages are you seeing?  Does tomcat work at all on port 8080 or
wherever you installed it?  If you goto
http://localhost:8080/mywebapp/someServlet , do you get a valid response?

As an aside, I would delete all spaces from your paths...for example,
install tomcat in F:\tomcat or whatever, not F:\Apache Tomcat.

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Frederick Aubert [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 25, 2002 11:07 AM
To: [EMAIL PROTECTED]
Subject: Help Needed With Deployement


Hi,

I am currently trying to deploy Web Applications using Apache 2.0.39 and
Tomcat 4.1.7 integrated using mod_jk. Is there any better and more efficient
integration? I am looking for the most up-to-date stable integration working
on a Windows machine...

Anyway, I would need someone to go through my server.xml and my mod_jk.conf
(included in my httpd.conf) to check why the integration seems to be working
as long as I use html pages, but does not work anymore as soon as I use jsp
pages. I am also hoping that I am doing it the most efficient way, but I'd
again need to have someone to check what I am doing.

I did make sure to add JkMount /mywebapp  ajp13 and JkMount /mywebapp/*
ajp13 for each of my webapp. I also did make sure to add Context
path=/mywebapp docBase=F:/Cassiopee Projects/webapps/mywebapp debug=0
privileged=true reloadable=true/ for each of my webapp. Did I
missunderstand something?

Thanks, Frederick


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Cannot load mod_jk.dll into server!

2002-07-12 Thread Frederick Aubert

Hi,

I am experiencing more or less the same problem. I just got an hand on a
mod_jk version (120kb) and Apache is telling me it can't load it properly
(module not found) although the mod_jk.dll is correctly located and the path
is set to match its location...

However a couple of monthes ago, I did succeed with Apache 2.0.35 and Tomcat
4.0.4. But now when I upgraded to Apache 2.0.39 and Tomcat 4.1.7 it doesn't
work anymore. Besides when I am using the mod_jk.dll I used to use (70kb)
then I am being told to check for a newer version of the mod_jk.dll. Does it
make any sense?

If anyone succeeded, or did succeed with any other connector under these
settings, then please write me ;O)

Sincerely, Frederick Aubert

PS: my settings are pretty much the same as the one Jacob's suggested...


 Hi Gunter,
 
 Try the following which I know works (change the paths to suit your setup)
 
 put the following in Apache's httpd.conf:
 
 Include C:/Program Files/Apache
 Group/Jakarta/tomcat-4.1.7/conf/jk/mod_jk.conf
 
 
 put the following in Tomcat's mod_jk.conf:
 
 IfModule !mod_jk.c
  LoadModule jk_module modules/mod_jk.dll
 /IfModule
 
 JkWorkersFile 
 c:/Progra~1/Apache~1/Jakarta/tomcat-4.1.7/conf/jk/workers.properties
 JkLogFile c:/Progra~1/Apache~1/Jakarta/tomcat-4.1.7/logs/mod_jk.log
 
 JkLogLevel info
 
 VirtualHost localhost
ServerName localhost
 
JkMount /webdav ajp13
JkMount /webdav/* ajp13
 
JkMount /tomcat-docs ajp13
JkMount /tomcat-docs/* ajp13
 
JkMount /examples ajp13
JkMount /examples/* ajp13
 
JkMount /manager ajp13
JkMount /manager/* ajp13
 /VirtualHost
 
 
 Put the following in your workers.properties:
 
 workers.tomcat_home=$(CATALINA_HOME)
 workers.java_home=$(JAVA_HOME)
 ps=\
 worker.list=ajp13, ajp14
 worker.ajp13.port=8009
 worker.ajp13.host=localhost
 worker.ajp13.type=ajp13
 worker.ajp13.lbfactor=1
 worker.ajp13.cachesize=8
 worker.ajp14.port=8011
 worker.ajp14.host=localhost
 worker.ajp14.type=ajp14
 worker.ajp14.secretkey=mysupersecretkey
 worker.ajp14.credentials=mysuperveryrandomentropy
 worker.ajp14.lbfactor=1
 worker.ajp14.cachesize=8
 worker.loadbalancer.type=lb
 worker.loadbalancer.balanced_workers=ajp13
 worker.inprocess.type=jni
 worker.inprocess.class_path=$(workers.tomcat_home)$(ps)server${ps}lib$(ps)cata
 lina.jar
 worker.inprocess.cmd_line=start
 worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)server$(ps)j
 vm.dll
 worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout
 worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr
 
 
 There you go.  If that doesn't work, something else is wrong.
 
 Jake
 
 
 
 At 10:28 AM 7/11/2002 +0200, you wrote:
 I've tried several possible ways of writing C:\Apache\modules\mod_jk.dll but
 with no luck. But when I check the file properties of the dll then I can see
 that Last accessed is always set to the datetime when I last ran apache
 -t so I think this should mean that apache DOES find the dll but cannot
 load it properly...
 
 Can anybody help me out?
 
 Gunter
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On
 Behalf Of Ralph Einfeldt
 Sent: donderdag 11 juli 2002 10:08
 To: Tomcat Users List
 Subject: AW: Cannot load mod_jk.dll into server!
 
 
 Obviously your mod_jk.conf is found.
 
 One guess: Make shure that c:\Apache\modules\mod_jk.dll
 is exactly equal to the real path (including case), normally
 windows isn't case sensitive but some applications are.
 (Can't remember if this is a problem for apache, my last
 install of apache under windows is to long ago)
 
 -Ursprüngliche Nachricht-
 Von: Gunter D'Hondt [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 11. Juli 2002 09:38
 An: 'Tomcat Users List'
 Betreff: RE: Cannot load mod_jk.dll into server!
 
 
 IfModule !mod_jk.c
   LoadModule jk_module c:\Apache\modules\mod_jk.dll
 /IfModule
 
 JkWorkersFile c:\progra~1\apache~1.0\conf\jk\workers.properties
 JkLogFile c:\progra~1\apache~1.0\logs\mod_jk.log
 
 JkLogLevel info
 
 VirtualHost localhost
 ServerName localhost
 
 JkMount /webdav ajp13
 JkMount /webdav/* ajp13
 
 JkMount /tomcat-docs ajp13
 JkMount /tomcat-docs/* ajp13
 
 JkMount /examples ajp13
 JkMount /examples/* ajp13
 
 JkMount /manager ajp13
 JkMount /manager/* ajp13
 /VirtualHost
 
 
 
 Gunter
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On
 Behalf Of Ralph Einfeldt
 Sent: donderdag 11 juli 2002 09:33
 To: Tomcat Users List
 Subject: AW: Cannot load mod_jk.dll into server!
 
 
 Can you show us your LoadModule directive ?
 
 The log doesn't complain about not finding mod_jk.conf
 but mod_jk.dll.
 
 -Ursprüngliche Nachricht-
 Von: Gunter D'Hondt [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 11. Juli 2002 09:22
 An: 'Tomcat Users List'
 Betreff: Cannot load mod_jk.dll into server!
 
 C:\Apache\binapache -t
 Syntax error on line 4 of C:/Program Files

Deployment Glitch

2002-07-12 Thread Frederick Aubert
Title: Deployment Glitch




Hi,

With the right mod_jk I was successful at integrating Tomcat in Apache, now I am experiencing some troubles deploying an app. It seems I have configured my server.xml right (I can access my webapp with Tomcat port), but not my mod_jk.conf (I cannot access my webapp on default port 80)... I am attaching my mod_jk.conf so if one could have a look and tell me what I am doing wrong ;O)

Thanks for your help, Frederick


---
(`-''-/).___..--''`-._
`6_ 6 ) `-. ( ).`-.__.`) Frederick Aubert
(_Y_.)' ._ ) `._ `. ``-..-'
_..`--'_..-_/ /--'_.' ,' [EMAIL PROTECTED]
(il),-'' (li),' ((!.-'
--- 





IfModule !mod_jk.c
  LoadModule jk_module modules/mod_jk.dll
/IfModule

JkWorkersFile D:/Server/Apache Group/Tomcat 4.1/conf/mod_jk/workers.properties
JkLogFile D:/Server/Apache Group/Tomcat 4.1/logs/mod_jk.log
JkLogLevel emerg


 /tomcat-docs 
# Static files 
Alias /tomcat-docs D:/Server/Apache Group/Tomcat 4.1/webapps/tomcat-docs

Directory D:/Server/Apache Group/Tomcat 4.1/webapps/tomcat-docs
Options Indexes FollowSymLinks
DirectoryIndex index.jsp index.html index.htm 
/Directory


# Deny direct access to WEB-INF and META-INF
#
Location /tomcat-docs/WEB-INF/*
AllowOverride None
deny from all
/Location

Location /tomcat-docs/META-INF/*
AllowOverride None
deny from all
/Location

#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
Directory D:/Server/Apache Group/Tomcat 4.1/webapps/tomcat-docs/WEB-INF/
AllowOverride None
deny from all
/Directory

Directory D:/Server/Apache Group/Tomcat 4.1/webapps/tomcat-docs/META-INF/
AllowOverride None
deny from all
/Directory

JkMount /tomcat-docs  ajp13
JkMount /tomcat-docs/*  ajp13


 /examples 
# Static files 
Alias /examples D:/Server/Apache Group/Tomcat 4.1/webapps/examples


Directory D:/Server/Apache Group/Tomcat 4.1/webapps/examples
Options Indexes FollowSymLinks
DirectoryIndex index.jsp index.html index.htm 
/Directory



# Deny direct access to WEB-INF and META-INF
#
Location /examples/WEB-INF/*
AllowOverride None
deny from all
/Location

Location /examples/META-INF/*
AllowOverride None
deny from all
/Location

#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
Directory D:/Server/Apache Group/Tomcat 4.1/webapps/examples/WEB-INF/
AllowOverride None
deny from all
/Directory


Directory D:/Server/Apache Group/Tomcat 4.1/webapps/examples/META-INF/
AllowOverride None
deny from all
/Directory

JkMount /examples  ajp13
JkMount /examples/*  ajp13


 /manager 
# Static files 
Alias /manager D:/Server/Apache Group/Tomcat 4.1/webapps/manager


Directory D:/Server/Apache Group/Tomcat 4.1/webapps/manager
Options Indexes FollowSymLinks
DirectoryIndex index.jsp index.html index.htm 
/Directory



# Deny direct access to WEB-INF and META-INF
#
Location /manager/WEB-INF/*
AllowOverride None
deny from all
/Location

Location /manager/META-INF/*
AllowOverride None
deny from all
/Location

#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
Directory D:/Server/Apache Group/Tomcat 4.1/webapps/manager/WEB-INF/
AllowOverride None
deny from all
/Directory


Directory D:/Server/Apache Group/Tomcat 4.1/webapps/manager/META-INF/
AllowOverride None
deny from all
/Directory

JkMount /manager  ajp13
JkMount /manager/*  ajp13


 /webdav 
# Static files 
Alias /webdav D:/Server/Apache Group/Tomcat 4.1/webapps/webdav


Directory D:/Server/Apache Group/Tomcat 4.1/webapps/webdav
Options Indexes FollowSymLinks
DirectoryIndex index.jsp index.html index.htm 
/Directory



# Deny direct access to WEB-INF and META-INF
#
Location /webdav/WEB-INF/*
AllowOverride None
deny from all
/Location

Location /webdav/META-INF/*
AllowOverride None
deny from all
/Location

#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
Directory D:/Server/Apache Group/Tomcat 4.1/webdav/manager/WEB-INF/
AllowOverride None
deny from all
/Directory


Directory D:/Server/Apache Group/Tomcat 4.1/webdav/manager/META-INF/
AllowOverride None
deny from all
/Directory

JkMount /webdav  ajp13
JkMount /webdav/*  ajp13

 /RHN 
# Static files 
Alias /RHN F:/Cassiopee Projects/RHN Project/RHN Publish/RHN

Directory F:/Cassiopee Projects/RHN Project/RHN Publish/RHN
Options Indexes FollowSymLinks
DirectoryIndex index.jsp index.html index.htm
/Directory


# Deny

Re: Mod JK Directories

2002-06-01 Thread Frederick Aubert

Hi,

 in server.xml create context named mywebapp
 Context path=mywebapp docBase=E:/mydirectory/mywebapp debug=0
 reloadable=true/

Thanks it worked fine. I am now one step further in my deployment.

But I am having one more problem. My webapp is quite complex and is using a
lot of Java beans and classes. It seems that whenever I access my webapp the
classes don't seem to load properly. I made sure that my classes were
compiled into webapp/WEB-INF/classes directory. But Tomcat is throwing
exceptions at me indicating it can't load the classes properly. Do I need to
specify somewhere were the classes are located? It seems that Tomcat is
looking for them in its base directory... While it should be looking for
them in webapp root directory (e:/mydirectory/webapp/web-inf/classes/webapp)

Here is the exception I get:

org.apache.jasper.JasperException: unable to compile class for JSP
D:\Tomcat\work\standalone\localhost\webapp\public\public.jsp.
Package webapp not found in import webapp.*

Thanks, Frederick Aubert


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Deploying a Webapp with Tomcat 4 and Apache 2

2002-05-31 Thread Frederick Aubert

Hi,

After many tries I finally succeeded in connecting Apache 2 to Tomcat 4
using mod_jk. Now everything is fine as long as I am not trying fancy
things. Actually what I want to achieve is to have my webapp in a directory
somewhere else on my disk (ie. not in default tomcat/webapps directory)...

Now to the problem, I set things up and now when I am trying to browse my
webapp with a browser I am served static files correctly (.ie I am served
mydirectory/mywebapp/index.html, and not tomcat/webapps/mywebapp/index.html)
but whenever Tomcat would need to serve a jsp, it is actually using a jsp
located at tomcat/webapps/mywebapp/mytest.jsp instead of
mydirectory/mywebapp/mytest.jsp... If I delete the former, then it is said
the file does not exist. Any idea of why it¹s going wrong? I suppose I did
misconfigure a deploying file. But wich one? Help would be greatly
welcomed...

Sincerely, Frederick Aubert

PS: I did specify in my mod_jk.conf (which is included by httpd.conf) a new
webapp as follow:

Alias /mywebapp ³E:/mydirectory/mywebapp²
Directory ³E:/mydirectory/mywebapp²
Options Indexes FollowSymLinks
DirectoryIndex index.jsp index.html index htm
/Directory
Location ³/mywebapp²/WEB-INF/*²
AllowOverride None
deny from all
/Location
Location ³/mywebapp²/META-INF/*²
AllowOverride None
deny from all
/Location
Directory ³E:/mydirectory/mywebapp/WEB-INF/²
AllowOverride None
deny from all
/Directory
Directory ³E:/mydirectory/mywebapp/META-INF/²
AllowOverride None
deny from all
/Directory

JkMount /mywebapp/*.jsp ajp 1.3


---
  (`-''-/).___..--''`-._
   `6_ 6  )   `-.  ( ).`-.__.`)   Frederick Aubert
   (_Y_.)'  ._   )  `._ `. ``-..-'
 _..`--'_..-_/  /--'_.' ,'[EMAIL PROTECTED]
(il),-''  (li),'  ((!.-'
--- 




Mod JK Directories

2002-05-31 Thread Frederick Aubert

Sorry if you got this twice, but I was unsure it went through due to some
technical problem with my ISP.

Hi,

After many tries I finally succeeded in connecting Apache 2 to Tomcat 4
using mod_jk. Now everything is fine as long as I am not trying fancy
things. Actually what I want to achieve is to have my webapp in a directory
somewhere else on my disk (ie. not in default tomcat/webapps directory)...

Now to the problem, I set things up and now when I am trying to browse my
webapp with a browser I am served static files correctly (.ie I am served
mydirectory/mywebapp/index.html, and not tomcat/webapps/mywebapp/index.html)
but whenever Tomcat would need to serve a jsp, it is actually using a jsp
located at tomcat/webapps/mywebapp/mytest.jsp instead of
mydirectory/mywebapp/mytest.jsp... If I delete the former, then it is said
the file does not exist. Any idea of why it¹s going wrong? I suppose I did
misconfigure a deploying file. But wich one? Help would be greatly
welcomed...

Sincerely, Frederick Aubert

PS: I did specify in my mod_jk.conf (which is included by httpd.conf) a new
webapp as follow:

Alias /mywebapp ³E:/mydirectory/mywebapp²
Directory ³E:/mydirectory/mywebapp²
Options Indexes FollowSymLinks
DirectoryIndex index.jsp index.html index htm
/Directory
Location ³/mywebapp²/WEB-INF/*²
AllowOverride None
deny from all
/Location
Location ³/mywebapp²/META-INF/*²
AllowOverride None
deny from all
/Location
Directory ³E:/mydirectory/mywebapp/WEB-INF/²
AllowOverride None
deny from all
/Directory
Directory ³E:/mydirectory/mywebapp/META-INF/²
AllowOverride None
deny from all
/Directory

JkMount /mywebapp/*.jsp ajp 1.3


---
  (`-''-/).___..--''`-._
   `6_ 6  )   `-.  ( ).`-.__.`)   Frederick Aubert
   (_Y_.)'  ._   )  `._ `. ``-..-'
 _..`--'_..-_/  /--'_.' ,'[EMAIL PROTECTED]
(il),-''  (li),'  ((!.-'
---





---
  (`-''-/).___..--''`-._
   `6_ 6  )   `-.  ( ).`-.__.`)   Frederick Aubert
   (_Y_.)'  ._   )  `._ `. ``-..-'
 _..`--'_..-_/  /--'_.' ,'[EMAIL PROTECTED]
(il),-''  (li),'  ((!.-'
--- 




Some JSP Questions...

2002-05-23 Thread Frederick Aubert

Hi,

I am currently building a Webapp for a project and I came on a couple of
questions I didn¹t find any answer to. So if one of you has time to go
through them and answer to them I would be thankful. Maybe it would be
better to reply to my personal address directly for I guess my questions
might be somehow unrelated to the main threads in this list...

1) I am using some static inclusions along the way, ie jsp:include
page=²...² /, and in the included files I want to do some repetitive
security check and/or connection check. When building the included files
under my Java Development Environement (JBuilder 6), I am allowed to use
session, request, and response object from inside the included files.
Great... But I tried then to call the response.sendRedirect() methode, but
when my Webapp was running the redirection was just simply skipped with no
apparent reason... Any idea? Anything I missed? Or?

2) Is there a way to use general constant defined either in a Java Class or
in a Java Interface from inside JSP directive tag. For example I have a
constant with the URL of the standard error page. I would like to call the
constant instead of writing explicitly %@ param errorPage=²...² %. Or I
would like to use, inside a jsp:include or jsp:forward, some parameterNames
or paramaterValues that are constant. Is it a dream? Or is it possible
somehow?

3) Is there a way to force re-initialization of, or invalidating, a JavaBean
that was given the scope = ³session² without invalidating the whole session?
As far as I am understanding, whenever you invalidate a session, you loose
everything done so far, bean variables and attributes... Right? Oh and by
the way are bean variables and attributes stored differently or are bean
variables just another way to use session attributes?

Sincerely, Frederick Aubert


---
  (`-''-/).___..--''`-._
   `6_ 6  )   `-.  ( ).`-.__.`)   Frederick Aubert
   (_Y_.)'  ._   )  `._ `. ``-..-'
 _..`--'_..-_/  /--'_.' ,'[EMAIL PROTECTED]
(il),-''  (li),'  ((!.-'
--- 




JSP Exception Handling

2002-05-15 Thread Frederick Aubert

Hi,

I need some clarification on the JSP Exception Handling process. I have
tried to redirect all the exception of my webapp, derived all from base
class ServletException, to a specific error page. I have for example a
RedirectException that I want to handle once for all as a forward to another
URL. However each time I am throwing such RedirectException in a JSP page
where my error page URL is set correctly, I got the usual JavaVirtualMachine
exception beep and it gets logged in the statistics before even reaching
thee error page URL (which is reached then). However I don¹t want it to
appear in the log as my exception is expected and will be treated in the
error page URL... Isn¹t it possible to make that usage of exception? Or did
I set something wrong?

Sincerely, Frederick


---
  (`-''-/).___..--''`-._
   `6_ 6  )   `-.  ( ).`-.__.`)   Frederick Aubert
   (_Y_.)'  ._   )  `._ `. ``-..-'
 _..`--'_..-_/  /--'_.' ,'[EMAIL PROTECTED]
(il),-''  (li),'  ((!.-'
--- 




JSP Include Directive

2002-05-11 Thread Frederick Aubert

Hi,

According to the JSP docs on Sun website, one can use jsp:include
page=²/includes.txt² / to include static content, such as methods that will
be reused from different components of the webapp. I wanted to share a
³securityCheck² method to reuse from each single places where security was
required. I did place my code in a includes.txt that I tried to load from a
couple of JSP pages. However even when placing the jsp include tag, nothing
seems to be done since whenever I try to call securityCheck I get a method
not found error... Is the include directive not supposed to work that way?
How can I achieve this?

Sincerely, Frederick

PS: I tried to misspell the resource URL but the compiler did not notice
anything...


---
  (`-''-/).___..--''`-._
   `6_ 6  )   `-.  ( ).`-.__.`)   Frederick Aubert
   (_Y_.)'  ._   )  `._ `. ``-..-'
 _..`--'_..-_/  /--'_.' ,'[EMAIL PROTECTED]
(il),-''  (li),'  ((!.-'
--- 




Some JSP and Beans Questions

2002-05-07 Thread Frederick Aubert


Hi,

My questions will look pretty stupid to the experts, so to avoid bugging
everyone on this list, I¹d suggest that if you want to answer them, you can
address me directly at [EMAIL PROTECTED]

I tried to build an html form linked via JSP to a Java Bean. I then tried to
access the object instantiated from the field values obtained from the form.
Everything went fine as long as I kept using associated get/set methods. I
then tried to add a new method ³connect² to my bean, just to keep things
simple I made this method not taking any parameter not returning anything
and not doing any computation, but as soon as I tried to call it it launched
a bunch of exceptions and errors. Any idea? Is it forbidden to add such
method to a bean?

I also tried to create some multiple selection box (ie. You have a box of
given values, where the user can pick any number 0-max). I then tried to get
XXX parameter back using the automated conversion into a bean with property
XXX being of type java.util.Set, but I found myself stuck when I add to
implement the setXXX method. How can I achieve this multiple arguments
recuperation?

Thanks, Frederick


---
  (`-''-/).___..--''`-._
   `6_ 6  )   `-.  ( ).`-.__.`)   Frederick Aubert
   (_Y_.)'  ._   )  `._ `. ``-..-'
 _..`--'_..-_/  /--'_.' ,'[EMAIL PROTECTED]
(il),-''  (li),'  ((!.-'
--- 




SUMMARY: Apache 2.0.35 + Tomcat 4.0.3 under Windows 2000/XP

2002-04-30 Thread Frederick Aubert

Hi Everybody,

INTRO: I don't seem to be the only one having problems configuring Apache
2.0.35 and Tomcat 4.0.3. So I am going to try to summarize every tips and
problems found so far and I'd like to suggest we all treat this topic as a
single topic instead of concurrently having three or four topics about the
same thing.

OBJECTIVE: integrating Tomcat 4.0.3 in Apache 2.0.35 under Windows 2000/XP
in order to serve JSP and Servlet requests. Nothing fancy, no special
features expected (ie. load balancing), at least during the first stage of
the configuration.

SUGGESTION: use of mod_webapp module, since mod_jk1 module seems not to be
developed and tested under the previously mentioned settings and since
mod_jk2 seems under heavy development and unfortunately not expected soon.
BUT other working and suitable suggestion to achieve the objective are more
than welcome...

QUESTION: as anyone succeeded in the specified task? using mod_webapp module
or other solution.

CURRENT PROBLEM: there is actually a installation guide line showing how to
achieve the specified task. However it seems outdated since several users
had Apache refusing to load mod_webapp module even having followed the
installation step. To summarize here are the steps we all fully double
checked to make sure no mistakes were done:

1) Install Apache 2.0.35 (as a Win service), make sure it's running. DONE
2) Install Tomcat 4.0.3 (as a Win service), make sure it's running. DONE
3) Copy mod_webapp.so to apache/modules/ directory. DONE double checked
4a) Copy libapr.dll to apache/modules/ directory. DONE double checked
(if 4b) done maybe not required)
4b) Copy libapr.dll to to windows/system32/ directory. DONE double checked
(if 4a) maybe not required)
5) Add LoadModule webapp_module modules/mod_webapp.so in Apache httpd.conf
DONE double checked
6) Test Apache httpd using Apache.exe -t in the console. FAILED: Cannot load
APACHE_PATH/modules/mod_webapp.so into server: The specified module could
not be found.

QUESTIONS: are we missing a step? Or is there some bug there making the
whole undertaking impossible? Would it be a Tomcat, an Apache, or a web_app
problem?

POTENTIALLY LINKED PROBLEM: some of us also tried to integrate PHP4.2 under
the same environment. The same problem has been reported whenever
LoadModule php4_module PHP_PATH/sapi/php4apache.dll was added in the
Apache httpd.conf. That seems surprisingly similar to us. Would it be an
Apache problem? Is there some problem in the way Apache 2 is working with
modules in its Windows release?

Sincerely, Frederick Aubert

 Hello,
 
 In the  webapp-module-1.0-tc40-windows.zip was a libapr.dll.
 
 INSTALL.TXT says
 Another note for Windows: copy also the libapr.dll file with the module,
 or
 your Apache 1.3 web server will refuse to start reporting that the WebApp
 module cannot be loaded.
 
 This applies to Windows only.
 
 Good luck!
 Dennis


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Configuring Apache 2.0.35 and TomCat 4 under WinXP Server

2002-04-29 Thread Frederick Aubert

Hi,

Here is the next step... Any thought? Contact me privately, I guess it¹s
better...

Cannot load D:/Server/Apache2/modueles/mod_webapp.so

(I am also trying to install PHP)
Cannot load D:/Server/PHP/sapi/php4apache.dll

I checked and double checked there are files with the correct names at the
path location. So I don¹t get why it doesn¹t load properly... Anyone has
experienced such thing? Is it just Windows again? Any help appreciated

Sincerely, Frederick


---
  (`-''-/).___..--''`-._
   `6_ 6  )   `-.  ( ).`-.__.`)   Frederick Aubert
   (_Y_.)'  ._   )  `._ `. ``-..-'
 _..`--'_..-_/  /--'_.' ,'[EMAIL PROTECTED]
(il),-''  (li),'  ((!.-'
--- 




Configuring Apache 2.0.35 and TomCat 4 under WinXP Server

2002-04-28 Thread Frederick Aubert

Hi,

Continuing the saga...

Extract of my httpd.conf:
...
LoadModule webapp_module D:/Server/Apache
Group/Apache2/modules/mod_webapp.so
...

Here is the debug error I get:
Syntax error on line 174 ...
LoadModule takes two arguments, ...

It seems to me I have two arguments, am I missing something? Beeing under
Windows, I have a file called libapr.dll I was supposed to move along with
mod_webapp.so should I load it somewhere or just place in the same folder?
Any help would be appreciate? In private or to the list, it doesn¹t matter
to me...

Sincerely, Frederick
---
  (`-''-/).___..--''`-._
   `6_ 6  )   `-.  ( ).`-.__.`)   Frederick Aubert
   (_Y_.)'  ._   )  `._ `. ``-..-'
 _..`--'_..-_/  /--'_.' ,'[EMAIL PROTECTED]
(il),-''  (li),'  ((!.-'
--- 




Re: Apache 2 TomCat 4 Integration Troubles...

2002-04-26 Thread Frederick Aubert

Hi

Syntax error on line 173 of D:/Server/Apache Group/ Apache2/conf/http.conf
Cannot load D:\Server\Apache Group\Apache2\./modules/mod_webapp.so into
server: The specified module could not be found...

Here is the error message I got whenever I add the following line to my
httpd: LoadModule webapp_module modules/mod_webapp.so. But what is suprising
me is that in the other LoadModule lines of the default httpd are using
exactly the same syntaxis, for example I find: LoadModule userdir_module
modules/mod_userdir.so which is working fine. Nonetheless I tried to change
the slash to a backslash (LoadModule webapp_modules modules\mod_webapp.so)
but that doesn't change the error message. I double checked and have the
mod_webapp.so file along in my modules directory... Any thought? Where is
the ./ coming from? Any help appreciated?

Sincerely, Frederick Aubert


-- 

!!! PLEASE UPDATE your address book, my NEW EMAIL is [EMAIL PROTECTED]  !!!

Member of the Warlords II World Tournament Organizers Team

---
  (`-''-/).___..--''`-._
   `6_ 6  )   `-.  ( ).`-.__.`)   Frederick Aubert
   (_Y_.)'  ._   )  `._ `. ``-..-'
 _..`--'_..-_/  /--'_.' ,'[EMAIL PROTECTED]
(il),-''  (li),'  ((!.-'
---


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Tomcat 4 Apache Server 2

2002-04-24 Thread Frederick Aubert

Hi Folk,

My query is about configuring Tomcat 4 as a module that serves JSP and
Servlet for an Apache 2 Server on a Windows XP machine. I have been
unsuccessfully browsing the web for support, and installation steps, and
that's why I am writing to this mailing list hoping one of you will answer
me soon privately at my email [EMAIL PROTECTED]

I will try to keep it short. I have read/heard that two mods could
alternatively do that job: mod_jk or mod_webapp. I have been trying to
install either of these two mods, but none would succeed when, after adding
the loading instructions in the httpd, I finally restarted my Apache 2
Server. Are there any known uncompatibilities? Are there any other mods that
have been succesfully been integrated under my settings (Apache 2, Tomcat 4,
and Windows XP)? I don't need anything fancy, I just need JSP and Servlet to
work...

Thanks in advance, 

Sincerely yours, Frederick Aubert


-- 

!!! PLEASE UPDATE your address book, my NEW EMAIL is [EMAIL PROTECTED]  !!!

Member of the Warlords II World Tournament Organizers Team

---
  (`-''-/).___..--''`-._
   `6_ 6  )   `-.  ( ).`-.__.`)   Frederick Aubert
   (_Y_.)'  ._   )  `._ `. ``-..-'
 _..`--'_..-_/  /--'_.' ,'[EMAIL PROTECTED]
(il),-''  (li),'  ((!.-'
--- 


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]