[offtopic] heaven and hell :)

2002-06-12 Thread Serge A. Redchuk

Hello ,

  
--
This e-mail was written on 100% recycled bytes!
--
With best forwards, Serge Redchuk
Web-Application Developer
[EMAIL PROTECTED], [EMAIL PROTECTED]

KSE
Paton Institute
20 Fedoreva St.
Building 7, 5th Floor
03150 Kiev
Ukraine

fon +380 44 495 2605
fax +380 44 495 2602

ICQ 59371423

www.kse.kiev.ua
<>
--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


Re: init() help?

2002-05-20 Thread Serge A. Redchuk

Hi,  Jason.

Saturday, May 18, 2002, 1:19:08 PM, you wrote:

JE> Hi Serge,
JE> I found your discussion re servlet init() and was wondering if 
JE> you ever found an answer. I have EXACTLY the same problem.
JE> what did you do to fix this?

I guessed the next thing:
If I use catalina *not* in standalone mode, but as apache module -
I'll have a problem with double initialization when I'll
simultaneously use apache WebAppDeply directive and server.xml
.
So,  directive will force init() at catalina startup,
and WebAppDeploy directive will force init() **again** at first user
http request to application.

To avoid this behavior I've removed  directive.
Though, in this case, the application initialization will not
be performed instantly at start, it will be performed once.


Best regards!


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Hey! What the sux???

2002-04-08 Thread Serge A. Redchuk

Hi, all!

Why tomcat 4.0.3 don't want to deploy WAR ??

My catalina runs as Apache module.

I can deploy WAR using WebAppDeploy apache directive
  (WebAppDeploy sfc_app.war warpConnection /sfc_app/)

BUT!

I *can't* seploy, using server.xml:






All configured as documented. What's wrong???


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




can't deploy WAR using server.xml

2002-04-05 Thread Serge A. Redchuk

Hi, all!

My catalina runs as Apache module.

I *can* deploy WAR using WebAppDeploy apache directive
  (WebAppDeploy sfc_app.war warpConnection /sfc_app/)

BUT!

I *can't* seploy, using server.xml:






Who would help me?


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




TreeView

2002-03-06 Thread Serge A. Redchuk

Hello, all !

I need JSP tag(s) to draw interactive tree with non-static content.

I tried to use TICL's treeView tag, but the server-side treeView
uses javax.swing.tree.TreeModel interface and my page (whole server)
doesn't works without X-server running.

I do not want to use any X-server stub yet.

Does any tree view JSP tag exists, which is not based on swing ?

Also I can't use client-side TICL's treeView tag. Because I need to
use non-static content here.


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




How to use swing classes without X-server

2002-03-05 Thread Serge A. Redchuk

Hello All !

I want to use some of Swing classes like

import javax.swing.tree.TreeModel;
import javax.swing.tree.TreePath;

by tomcat in environment where no X-server running.

And I see in catalina.out:

java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the
value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:5
9)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvi
ronment.java:58)
at sun.awt.motif.MToolkit.(MToolkit.java:57)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at java.awt.Toolkit$2.run(Toolkit.java:512)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:503)
at java.awt.Toolkit.getEventQueue(Toolkit.java:1150)
at java.awt.EventQueue.invokeLater(EventQueue.java:511)
at javax.swing.SwingUtilities.invokeLater(SwingUtilities.java:1091)
at javax.swing.Timer.post(Timer.java:342)
at javax.swing.TimerQueue.postExpiredTimers(TimerQueue.java:195)
at javax.swing.TimerQueue.run(TimerQueue.java:231)
at java.lang.Thread.run(Thread.java:484)

Huh !! I do not need X-server !!! I just want to use a pair of Swing
classes.

Anybody know what to do ???


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




server.xml

2002-02-19 Thread Serge A. Redchuk

Hello all !

Where can I read the best about server.xml configuration ?


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re[2]: Init method of servlet called twice?

2002-02-08 Thread Serge A. Redchuk

Hello Anton,

>> Can anybody tell me why the init method can be called twice in a
>> servlet. I
>> am loading the servlet on startup and init is first called there.
>> 
>> The first request to the servlet then calls the same init method again?
>> Please help. I cannot init twice.
>> 

AB> This topic was discussed about a week ago, and Craig gave perfect and clear
AB> answer (as always). Try mail archives.
AB> As far as I remember init() can be called multiple times if:
AB> 1. TC4 and servlet implements SingleThreadModel
AB> 2. servlet is called by invoker (something like http://myhost/servlets/myServlet)
AB> 3. init() throws exception (that I don't remember exactly)

Oh, yes. Craig answered to me as denoted above, but I still didn't solved
this problem. Partially I did not returned to my problem yet, but I
think that no any of 3 described reasons match my case.

2: I've checked many times before I've asked that question. My init
servlet is called _once_. There's only one reference to the init
servlet class in _one_ of my web.xml files.

3: init doesn't throws exceptions : log files is clear. Also there's
a thread that starts from init(), and the thread remains alive (I
think in case of exception this child thread must die).

1: My init servlet is extended from the Struts init servlet,
so it doesn't implements SingleThreadModel, as Craig said.

Moreover, I said, I declared a static variable in my init servlet
class, and affected this variable, and traced this variable state into
log file.
And I certainly know: I have several instances of this variable !!!
Each thread of init servlet has own static variable !!!

Again:
OS: RHL
JDK: sun, 1.3

I'll show my configs and code if anybody will be so greatful to deep
into.


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re[2]: WEB-INF/classes

2002-02-08 Thread Serge A. Redchuk

Hello Anla,

>> at setting up a new context for Tomcat, I must have forgotten
>> something, because tomcat doesn't find my classes in 
>> WEB-INF/classes. The following fault appears:
>> 
>> login_0005ftest$jsp.java:71: Class org.apache.jsp.DBSConnect not found.
>>   DBSConnect connect 
>> = new DBSConnect();
>> 

If you use = new DBSConnect(); in jsp code:
1. you should write in JSP:
   <%@ page import="org.apache.jsp.DBSConnect" %>
2. Place jasper-jar files in WEB-INF/lib

I think it'll be enough.

AB> I'm not familiar with JSP, but it looks like all you need is to import your 
DBSConnect,
AB> I don't think it really in org.apache.jsp package. Right?

>> Until now I thought: When Tomcat is restarted, it recognizes the 
>> content in WEB-INF/classes. 
>> 
>> But perhaps I have to make some entries in server.xml or web.xml 
>> referring to this classes?
>> 
>> Thank you for any help
>> 
>> Anja   
>> 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re[2]: multiple init() calls

2002-01-31 Thread Serge A. Redchuk

Hello David, Anton !

thanks a lot for help !

And excuse me because while asking the question about
multiple init() calls I've forgotten to inform about one thing ...

My servlet IS NOT directly extended from HttpServlet,
but:

import org.apache.struts.action.ActionServlet;
...
public class ActionRouterServlet extends ActionServlet {
...

So, I'm using the Struts framework, and maybe this is a source of
problem.

Now I'm exploring ...


Maybe anybody encountered something similar ?
The trouble is that init() of init servlet is called again and again
from time to time even when previous init servlet instance remains
alive.
But in the init() method I'm creating a thing, and I want only one
instance of this sing.
Play with static variables can't help me.

It looks like every init servlet executed in own JVM  8-o

Again:
pc/Linux/IBM Java


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




multiple init() calls

2002-01-31 Thread Serge A. Redchuk

Hi All !

I've encountered a problem with creating threads of init servlet.

Forgive me if I'm wrong.

As I think, catalina must call init() method of init servlet _once_.
And then just must make only copies of init servlet instance for new
user requests.

But I've encountered that the init() method called again and again !
At every creation of new action router.

It is not the thing that I need !!!

Platform: pc
Os: linux
JDK: IBM Java

web.xml:
...
  
  
action
.ActionRouterServlet

  application
  ApplicationResources


...


--
To unsubscribe:   
For additional commands: 
Troubles with the list: