Tomcat 4.1.12: "java:comp not bound"?

2002-10-02 Thread Sergei Batiuk

Hello,

I have just downloaded the 4.1.12 version of Tomcat an trying to run an
web-app that was successfully run on Tomcat 4.0.3. However, during
datasource and environment entries lookups() from jndi I get the following
error:

org.apache.jasper.JasperException: Name java:comp is not bound in this
Context
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
48)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)


Does Tomcat 4.1.12 has broken jndi? What's wrong? Is there any solution?

Sincerely,
Sergei Batiuk.


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




RE: Help: Installing Tomcat 4.0.4

2002-07-28 Thread Sergei Batiuk

As far as I know, -Djava.endorsed.dirs=... works only with jdk1.4, but you
seem to be using jdk 1.3.1_03.

HTH

Sincerely,
Sergei Batiuk.

IT department
Damen Shipyards Okean
+380 512 293146
+380 512 293329


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 29, 2002 9:46 AM
To: [EMAIL PROTECTED]
Subject: Help: Installing Tomcat 4.0.4


Hi,

I am new to Jsp and Java stuff.  I installed Tomcat 4.0.4 following
instructions http://jakarta.apache.org/tomcat/tomcat-4.0-doc/RUNNING.txt

When I try to startup tomcat, I get the following:
C:\jakarta-tomcat-4.0.4\bin>startup
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
The system cannot find the batch label specified - end
Using CATALINA_BASE:   ..
Using CATALINA_HOME:   ..
Using CATALINA_TMPDIR: ..\temp
Using JAVA_HOME:   c:\jdk1.3.1_03\bin;
The system cannot find the file -Djava.endorsed.dirs=.

I have tried setting up environment variables for JAVA_HOME and
CATALINA_HOME but still get same error.
Please help.  Thanks in advance.

Manisha





--
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]>




Warning: VIRUS!!!

2002-05-07 Thread Sergei Batiuk

Hi all,

if you have just received message starting with 'A funny web site' -- do
not open it! This message has been sent by a virus!!!

I hope this is not too late...

Yours,
Sergei


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




RE: Closing Connections.

2002-03-12 Thread Sergei Batiuk

Hello,

It is a good practice to close all open connections with a JSP. Event though
connections will be eventually closed by Java garbage collector, while open
they consume valuable resources, such as memory and network traffic. To me
it not an option if I should close db connections - I always do that.

Sincerely,
Sergei Batiuk.

IT department
Damen Shipyards Okean
+380 512 293146
+380 512 293329


-Original Message-
From: Hari Yellina [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 12, 2002 8:10 AM
To: Tomcat Users List
Subject: Closing Connections.


Hi All,

 Is it neccesary for us to close the connetions for the database. Is the
java garbage collector gonna do the job for us.

If that is not the case please tell me how to close the connections. We have
a application containing 800 pages . Every page has a connection open . Do
we require to close all the applications.

Regards, Hari Yellina.


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



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




RE: ASP and JSP with no redirection

2002-02-14 Thread Sergei Batiuk

There is an option:

You can use the io taglib from http://jakarta.apache.org/taglibs, which
makes it possible
to make up a page from various sources. Your JSP should look like:
<%@ taglib uri="iotags" prefix="io"%>

<%
myEJB.myMethod();
%>
http://iisServer/m$Page.asp"/>
<%
java().stuff().again();
%>

This way you can create a single page from any http/ftp/file resources you
can think of.

Sincerely,
Sergei Batiuk.

-Original Message-
From: George Shafik [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 15, 2002 3:57 AM
To: [EMAIL PROTECTED]
Subject: ASP and JSP with no redirection


Hi All,

Just wondering if there is another way to integrate both JSP and ASP
together in the one page without redirection through a specific port.

Is it possible to combine both an ASP and JSP page together thus giving you
the ability to access a COM and EJB object on the same page ?

I know this sounds crazy but if it is possible then I would imagine its
something that needs to  be configured at the web server level such that
each Object method request is handled by its respective web server.

foo.JSP
<%

 ... myEJBBean.Method() ...
 ...myASPObj.Method()...

%>

Lets say our example is implemented on a JSP page then Tomcat/Apache will
need to know about IIS such that it passes the processing of
"myASPObj.Method() " to IIS. (no redirection)

Many thanks in advance for any feedback.

Regards,
George Shafik






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



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




JSP compilation failure

2002-02-05 Thread Sergei Batiuk

Hello,

>From time to time my Tomcat 4.0.1 on Windows 2000 Professional with JDK 1.3
fails to compile a JSP page with a strange error. I have no idea why it
happens. Please help to get rid of it!

Error message.

org.apache.jasper.JasperException: Unable to compile class for JSP
E:\Production\jakarta-tomcat-4.0.1\work\localhost\test\index$jsp.java:61:
Incompatible type for method. Explicit cast needed to convert
java.lang.Throwable to java.lang.Exception.
if (pageContext != null) pageContext.handlePageException(t);
 ^
1 error

at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:546)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:177)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:189)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:201)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:163)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1011)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106
)
at java.lang.Thread.run(Thread.java:484)


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




RE: Custom Authentication

2002-01-22 Thread Sergei Batiuk

Hello,


If you mean a 'Login API', it doesn't exist in Tomcat You need to use
form-based login instead.


There is "InitialContext" in Tomcat. This is how I used it to set up
DataSource ( Tomcat 4.1.0) :



  
  

useryour_login

passwordyour_password
driverClassName
  sun.jdbc.odbc.JdbcOdbcDriver
driverName
  jdbc:odbc:OkeanTest
  

    


Sincerely,
Sergei Batiuk.



-Original Message-
From: Ricardo Ramalho [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 22, 2002 2:25 PM
To: Tomcat Users List
Cc: casa; [EMAIL PROTECTED]
Subject: Custom Authentication


Hi all! ;)

I have to migrate a Web Application from Allaire JRun to Tomcat 4.0.1.

I have a custom Authentication created by us. How can i use it under TomCat
4.0.1? Information is very non-existant or I'm just to dumb to find it!
:))

Another question: Do i have a "InitialContext" ? If i have so... where is
it? If it doesn't exist, it's no problemat all. I'll simply use the usual
method to access the MySQL database without aquiring the DataSources from
InitialContext (wich maybe it's something from J2EE).

Sorry for my poor English.

Thanks for any help you can give me! :)

Ricardo Ramalho
Carcavelos Lisbon Portugal
E-Works
http://www.eworks.pt



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



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




Accessing resources from other web-apps

2002-01-18 Thread Sergei Batiuk

Hello,

I have two web-apps (main.war and employees.war). employees.war needs to
obtain a dynamically-generated web page ('commonHeader.jsp') from the
main.war. Is that possible?

Sincerely,
Sergei Batiuk.


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




Dynamic XML/XSLT with Tomcat 4.0

2002-01-17 Thread Sergei Batiuk

Hello,

I would like to use XML/XSLT in my project. The problem is that my XML pages
(and possibly XSLT pages) will be dynamic not static. I think, JSPs should
generate the content, but how do I tell Tomcat to process them with the XSLT
processor?

Sincerely,
Sergei Batiuk.


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




RE: Programmatic login with Tomcat 4.0.1

2002-01-04 Thread Sergei Batiuk

Well, but what about programmatic login, i. e. something like

  Context ctx = new InitialContext();
  UserManager um = ( UserManager )ctx.lookup( "java:comp/UserManager" );
  um.login( login, password );

Does Tomcat have an API similar to this? The thing is I have a login form on
my first page, where a user should login to access protected functions (they
are not displayed by default, and become available only after a user has
logged in).

-Original Message-
From: Ing. Gabriel Gajdos [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 04, 2002 3:24 PM
To: [EMAIL PROTECTED]
Subject: RE: Programmatic login with Tomcat 4.0.1


If you use BASIC authentication, user/password are contained in the
"Authorization" HTTP 1.1 Header (in Base64 encoded form).
Never tried, but should work when supplying correct data into your HTTP
request (including headers).

| How do I programmatically login into TC 4.0.1?
|
| Sincirely,
| Sergei Batiuk.


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



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




Programmatic login with Tomcat 4.0.1

2002-01-04 Thread Sergei Batiuk

Hello people,

I need to programmatically login my session into Tomcat 4.0.1 servlet
container. However, I could not find the API in JavaDocs that accomplishes
this goal.

How do I programmatically login into TC 4.0.1?

Sincirely,
Sergei Batiuk.


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