Swing (JFC) in JSP example sought

2005-07-07 Thread Christoph P. Kukulies
I need to edit a server side file in a browser window.
I'm thinking of putting some EditorPanel or something out of the JFC
into a JSP.

Anyone knowing of an example showing this. And where to
put the swing.jar or whatever files required ?


--
Chris Christoph P. U. Kukulies kuku_at_kukulies.org


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



Re: reloading, 5.0, context.xml

2004-12-03 Thread Christoph P. Kukulies
On Fri, Dec 03, 2004 at 11:29:00AM -, Allistair Crossley wrote:
 You should do this ...
 
 Create a file called mywebapp.xml (matching your webapp's name of course) and 
 whack it in
 
 tomcat/conf/Catalina/localhost
 
 In that file
 
 Context path= docBase=/mywebapp reloadable=true /
 
 Note this is for 5.0.x NOT 5.5.x which removes the path attribute.
 
 Restart.
 

I tried that. stdout.log:

Dec 3, 2004 5:13:14 PM org.apache.catalina.core.StandardContext resourcesStart
SEVERE: Cannot find message associated with key standardContext.resourcesStart  
 
java.lang.IllegalArgumentException: Document base /servlets does not exist or 
is not a read
able directory
at 
org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:185)
at 
org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:3756)
...

/usr/local/jakarta-tomcat5.0/conf/Catalina/localhost/servlets.xml:
Context path= docBase=/servlets reloadable=true /

I guess that all classes in the classes directory of that 
webapps, which is in:

/usr/local/jakarta-tomcat5.0/webapps/servlets/WEB-INF/classes


I don't know whether servlets mapping plays a role here. 
--
Chris Christoph P. U. Kukulies kuku_at_kukulies.org

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



Re: reloading, 5.0, context.xml

2004-12-03 Thread Christoph P. Kukulies
On Fri, Dec 03, 2004 at 11:30:47AM -0500, Shapira, Yoav wrote:
 
 Hi,
 Unfortunately the leading / on docBase is misleading and not likely what
 you want: it implies an absolute path, i.e. /servlets on your file
 system.  You probably want just servlets relative to your appBase, i.e.
 $CATALINA_HOME/webapps/servlets.  For that, put docBase=servlets
 without a leading slash.


OK,
Context path= docBase=servlets reloadable=true /

What does the empty path= mean? 

--
Chris Christoph P. U. Kukulies kuku_at_kukulies.org

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



Re: reloading, 5.0, context.xml

2004-12-03 Thread Christoph P. Kukulies
On Fri, Dec 03, 2004 at 11:30:47AM -0500, Shapira, Yoav wrote:

Thanks for all the hellp. At least the server now starts up again
without error:

INFO: Processing Context configuration file URL 
file:/usr/local/jakarta-tomcat5.0/conf/Catalina/localhost/servlets.xml

Now, when I formerly restarted tomcat/apache from within an xterm I got the
RELOAD!
message written to that xterm. I'm missing this message. Where can I see that 
the
app got reloaded ? Is it still there this RELOAD message?

--
Chris Christoph P. U. Kukulies kuku_at_kukulies.org


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



Re: the pain of choice

2004-04-21 Thread Christoph P. Kukulies
On Mon, Apr 19, 2004 at 11:32:38PM +0200, C. Kukulies wrote:
 Can someone give me an advice which way to go WRT to using a 
 tomcat/apache combo on a Unix (not Linux) system?
 
 There are so many options, jk, jk2, tomcat 3-4-5, apache 1.3, apache2.
 worker.properties worker2.properties, jk2.properties in tomcat/conf,
 mod_jk.conf in etc/apache, mod_jk, mod_jk2.
 
 Then I see constructs in brackets [] in worker.properties and without these.
 What is workers.host=jsp-hostname? Is it an IP host? Or is it some placeholder
 which must be in workers.list?

Thanks to all. After a short excursion into trying to build the
connector-current from CVS (someone noted that the standard src tar ball
doesn't include all sources necessary to do the ant build) build also
fell over on this even with a checked out tree of jakarta-tomcat-connectors.

But, ok, this is in flux but it would be nice if that would be buildable
also sooner or later. (I'm using jdk1.4.2, FWIW).

I managed now to get a working combo of apache-1.3_29 and tomcat-5.0.19
with the mod_jk connector working.

Crucial for my servlet mapping was to create an appropriate web.xml file
in the deply directory under webapps/servelts/WEB-INF.

--
Chris Christoph P. U. Kukulies kuku_at_physik.rwth-aachen.de

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



Re: the pain of choice

2004-04-20 Thread Christoph P. Kukulies
On Mon, Apr 19, 2004 at 05:53:19PM -0400, Parsons Technical Services wrote:
 I don't know if you will get much response with this request. What you may
 wish to do is define your requirements for your application and environment.
 Then set back and take in all the opinions on which way is best. Here are a
 few questions to start with:
 
 What JDK are you developing against?   -- 1.4.2 But not crucial
 What is you platform?  -- What do you mean by that?
Servlet API 2.1
 What is your OS?   -- FreeBSD
 Is this for production or development? -- Production
 How many users?-- 2 
 How many deployers?-- 1
 How many apps? -- 1
 How big are the apps?  -- very small
 How much static?   -- ?please explain
 Do you want or need Apache?-- need cgi-scripting
 (Virtual hosting?) -- absolutely not necessary

--
Chris Christoph P. U. Kukulies kuku_at_physik.rwth-aachen.de

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



Re: IllegalStateException

2004-04-20 Thread Christoph P. Kukulies
On Wed, Jul 07, 2004 at 10:28:25PM +0200, Dr. Franz X. Steinparz wrote:
^^


 Hello
 
 I urgently need help.
 

Could you please set the date correctly on your computer, Herr Dr. Steinparz

--
Chris Christoph P. U. Kukulies kuku_at_physik.rwth-aachen.de

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



Re: jk connector build / configure failure

2004-04-16 Thread Christoph P. Kukulies
On Fri, Apr 16, 2004 at 07:31:40AM +0800, Eric Noel wrote:
 On 4/15/2004 10:28 PM, C. Kukulies wrote:
 In the vein of getting tomcat 5 apache 1.3.29 integration working
 I'm now at the point where I came to the conclusion that I need to build
 jakarta-tomcat-connectors-jk-1.2.5-src/jk/native
 
 Correct me if I'm wrong but I came there by reading and skimming the web.
 Noone could help me in this list so far. Maybe because everyone is using
 apache2, don't know.
 
 
 
 im using debian and ive used its binary apache 1.3 to integrate tomcat 5 
 with no probs. on a no-X debian hosts, the requirements would be
 apt-get install apache
 apt-get install apache-dev (requires libdb2-dev)
 apt-get install libtool
 apt-get install automake
 
 For the connector
 tar -xzvf jakarta-tomcat-connectors-jk2-src-current.tar.gz
 cd jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2
 sh buildconf.sh
 ./configure --with-apxs=/usr/bin/apxs
 make
 make all
 cp ../build/jk2/apache13/mod_jk2.so /usr/lib/apache/1.3/

Thanks. I'm using FreeBSD and I found that there was a port (/usr/ports) 
which applies patches and it seems I have ajk2 connector installed now.


--
Chris Christoph P. U. Kukulies kuku_at_physik.rwth-aachen.de

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



Re: cannot get servlet mapping working under 3.3

2004-04-05 Thread Christoph P. Kukulies
On Sun, Apr 04, 2004 at 10:04:12PM +0200, Schalk wrote:
 I would suggest you upgrade to Tomcat 5.0+ and mod_jk

Yes, I could but then I have another Servlet API and other headaches
with my classes possibly not working any longer or having deprecated
APIs.

Nobody here who can tell what the problem is with 3.3 and apache
in my case?

I'm very close to have them both running. Just a little piece
seems to be missing.

How can I verify the apache tomcat connector is working?
Were there problems with aliasing/mapping? Can only believe that
I'm missing something in server.xml or httpd.conf/jserv.conf.

Chris Christoph P. U. Kukulies kuku_at_physik.rwth-aachen.de

 :: Subject: cannot get servlet mapping working under 3.3
 :: 
 :: I'm reconvalescing from a disc crash where lots of my existing
 :: tomcat 3.1/apache 1.3.26 installation had crashed and I
 :: reinstalled tomcat 3.3 with apache-1.3.27 now such that
 :: the examples work when I connect to the server at port 8080.
 :: But this is tomcat. Trying to connect to apache via the jserv
 :: modules doesn't seem to work.
 :: 
 :: logs/stderr.log looks ok.
 :: 
 :: I have included apache/jserv/jserv.conf  at the end of httpd.conf
 :: 
 :: 
 :: jserv.conf:
 :: 
 :: ###
 :: 
 :: 
 :: ###
 :: 
 :: # Note: this file should be appended or included into your httpd.conf
 :: 
 :: # Tell Apache on win32 to load the Apache JServ communication module
 :: #LoadModule jserv_module modules/ApacheModuleJServ.dll
 :: 
 :: # Tell Apache on Unix to load the Apache JServ communication module
 :: # For shared object builds only!!!
 :: LoadModule jserv_module /usr/local/libexec/apache/mod_jserv.so
 :: 
 :: IfModule mod_jserv.c
 :: 
 :: # Whether Apache must start Apache JServ or not (On=Manual Off=Autostart)
 :: # Syntax: ApJServManual [on/off]
 :: # Default: Off
 :: ApJServManual Off
 :: 
 :: # Properties filename for Apache JServ in Automatic Mode.
 :: # In manual mode this directive is ignored
 :: # Syntax: ApJServProperties [filename]
 :: # Default: ./conf/jserv.properties
 :: ApJServProperties /usr/local/etc/apache/jserv/jserv.properties
 :: 
 :: # Log file for this module operation relative to Apache root directory.
 :: # Set the name of the trace/log file.  To avoid possible confusion about
 :: # the location of this file, an absolute pathname is recommended.
 :: #
 :: # This log file is different than the log file that is in the
 :: # jserv.properties file. This is the log file for the C portion of Apache
 :: # JServ.
 :: #
 :: # On Unix, this file must have write permissions by the owner of the JVM
 :: # process. In other words, if you are running Apache JServ in manual mode
 :: # and Apache is running as user nobody, then the file must have its
 :: # permissions set so that that user can write to it.
 :: # Syntax: ApJServLogFile [filename]
 :: # Default: ./logs/mod_jserv.log
 :: # Note: when set to DISABLED, the log will be redirected to Apache
 error log
 :: ApJServLogFile /var/log/mod_jserv.log
 :: 
 :: # Log Level for this module
 :: # Syntax: ApJServLogLevel [debug|info|notice|warn|error|crit|alert|emerg]
 :: # Default: info(unless compiled w/ JSERV_DEBUG, in which case it's
 debug)
 :: ApJServLogLevel debug
 :: 
 :: # Protocol used by this host to connect to Apache JServ
 :: # (see documentation for more details on available protocols)
 :: # Syntax: ApJServDefaultProtocol [name]
 :: # Default: ajpv12
 :: ApJServDefaultProtocol ajpv12
 :: 
 :: # Default host on which Apache JServ is running
 :: # Syntax: ApJServDefaultHost [hostname]
 :: # Default: localhost
 :: #ApJServDefaultHost java.apache.org
 :: 
 :: # Default port that Apache JServ is listening to
 :: # Syntax: ApJServDefaultPort [number]
 :: # Default: protocol-dependant (for ajpv12 protocol this is 8007)
 :: ApJServDefaultPort 8007
 :: 
 :: # The amount of time to give to the JVM to start up as well
 :: # as the amount of time to wait to ping the JVM to see if it
 :: # is alive. Slow or heavily loaded machines might want to
 :: # increase this value.
 :: # Default: 10 seconds
 :: # ApJServVMTimeout 10
 :: 
 :: # Passes parameter and value to specified protocol.
 :: # Syntax: ApJServProtocolParameter [name] [parameter] [value]
 :: # Default: NONE
 :: # Note: Currently no protocols handle this. Introduced for future
 protocols.
 :: 
 :: # Apache JServ secret key file relative to Apache root directory.
 :: # Syntax: ApJServSecretKey [filename]
 :: # Default: ./conf/jserv.secret.key
 :: # Warning: if authentication is DISABLED, everyone on this machine (not
 just
 :: # this module) may connect to your servlet engine and execute servlet
 :: # bypassing web server restrictions. See the documentation for more
 information
 :: #ApJServSecretKey /usr/local/etc/apache/jserv/jserv.secret.key
 :: ApJServSecretKey DISABLED
 :: 
 :: # Mount point for Servlet zones
 :: # 

Re: cannot get servlet mapping working under 3.3

2004-04-05 Thread Christoph P. Kukulies
I found the following in tomcat.conf in the 3.3 distribution:

## Context mapping - you need to deploy
# ( copy or ln -s ) the context into htdocs
##

# ApJservMount /CONTEXT/servlet  /root
# Location /CONTEXT/WEB-INF/ 
#  AllowOverride None
#  deny from all
# /Location

What would that mean? Do I have to
ln -s /usr/local/jakarta-tomcat3.3/webapps/servlets /usr/local/www/data
(or whatever the document root is)?

I found a /usr/local/www/servlets in the directory of my crshaed disk
but cannot determin any longer whether this is a soft link, a directory
or whatever or if this is only a relict of some experimenting.


--
Chris Christoph P. U. Kukulies kuku_at_physik.rwth-aachen.de

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



Re: cannot get servlet mapping working under 3.3

2004-04-05 Thread Christoph P. Kukulies

Investigating further I come to the conclusion that my problem may be
related to the invoker servlet.

Doesn't tomcat 3.3 have a central web.xml any longer?
Sorry, I know that talking about tomcat 5.x is more interesting
than talking about yesterdays. :-)

Chris Christoph P. U. Kukulies kuku_at_physik.rwth-aachen.de


On Mon, Apr 05, 2004 at 10:28:28AM +0200, Christoph P. Kukulies wrote:
 I found the following in tomcat.conf in the 3.3 distribution:
 
 ## Context mapping - you need to deploy
 # ( copy or ln -s ) the context into htdocs
 ##
 
 # ApJservMount /CONTEXT/servlet  /root
 # Location /CONTEXT/WEB-INF/ 
 #  AllowOverride None
 #  deny from all
 # /Location
 
 What would that mean? Do I have to
 ln -s /usr/local/jakarta-tomcat3.3/webapps/servlets /usr/local/www/data
 (or whatever the document root is)?
 
 I found a /usr/local/www/servlets in the directory of my crshaed disk
 but cannot determin any longer whether this is a soft link, a directory
 or whatever or if this is only a relict of some experimenting.
 
 
 --

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



Re: cannot get servlet mapping working under 3.3

2004-04-05 Thread Christoph P. Kukulies
On Mon, Apr 05, 2004 at 11:41:56AM +0200, Christoph P. Kukulies wrote:
 
 Investigating further I come to the conclusion that my problem may be
 related to the invoker servlet.
 
 Doesn't tomcat 3.3 have a central web.xml any longer?
 Sorry, I know that talking about tomcat 5.x is more interesting
 than talking about yesterdays. :-)
 
 Chris Christoph P. U. Kukulies kuku_at_physik.rwth-aachen.de

Could it be that I need mod_jserv.so from the tomcat native directory?
How does one build that?

Chris Christoph P. U. Kukulies kuku_at_physik.rwth-aachen.de

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