Re: datbase connection user name

2007-08-19 Thread Mike Peremsky
Nevermind. :-) Mike Peremsky <[EMAIL PROTECTED]> wrote: When a connection is made in the web.xml to the database, what username is it connecting with? I saw nowhere to enter a username. My entry looks as follows: The fantasy database jdbc/fantasyDB javax.sql.DataSource Container Sha

datbase connection user name

2007-08-19 Thread Mike Peremsky
When a connection is made in the web.xml to the database, what username is it connecting with? I saw nowhere to enter a username. My entry looks as follows: The fantasy database jdbc/fantasyDB javax.sql.DataSource Container Shareable ---

smtp server

2007-08-14 Thread Mike Peremsky
I am trying to create a simple registration application right now that should send an email to the user after registration. Are there free smtp servers or any that are recommended over others for running on a windows box? I am using Tomcat 5.0 and javamail. TIA - Mike --

SMTP

2007-07-13 Thread Mike Peremsky
Does anything special need to be set up on my local machine (Windows XP) to get SMTP working with Tomcat and JavaMail? Mike - Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool.

Help required setting up smtp server

2007-07-04 Thread Mike Peremsky
I followed the example in the Tomcat JNDI docs on setting up and sending an email (C:\apache-tomcat-5.5.23\webapps\tomcat-docs\jndi-resources-howto.html) but am still receiving a javax.mail.MessagingException: Could not connect to SMTPhost: localhost, port: 25 The strange thing is that

Noob trying to figure out JavaMail

2007-07-03 Thread Mike Peremsky
I am trying send emails in the app I am creating.I know from the examples that I can use Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup("java:comp/env"); Session session = (Session) envCtx.lookup("mail/Session"); Message msg = new MimeMessage(session)

Re: jsp includes not compiling

2007-06-03 Thread Mike Peremsky
Hmm, I went back to look. That is the syntax I use with weblogic. If I remove the <% %> from the inc file Tomcat loads the files properly. But then I cannot use logic in the inc file (e.g. if (obj != null) { } Mike Peremsky <[EMAIL PROTECTED]> wrote: Oops. I miss

Re: jsp includes not compiling

2007-06-03 Thread Mike Peremsky
Oops. I missed that. Thx David Smith <[EMAIL PROTECTED]> wrote: You are already in a pair when you do GlobalConst.SO_LOGIN_OBJ %>. Why? Seems to me this would be a better expression: LoginObject loginobj = (LoginObject)session.getAttribute( GlobalConst.SO_LOGIN_OBJ ) %> -

jsp includes not compiling

2007-06-03 Thread Mike Peremsky
I have used jsp includes with weblogic with no problems, I am using the same format of the code with Tomcat but am having issues. I include the jsp as follows: <%@ include file="/include/JspVariables.inc" %> The code in the inc file is: <%@ page import="com.drafthappy.Glob

Re: Cookie Rookie - cannot delete session cookie

2007-06-01 Thread Mike Peremsky
<[EMAIL PROTECTED]> wrote: On 1 Jun 2007, at 14:48, Mike Peremsky wrote: > I am pretty new to cookies and am having an issue. I create a > cookie in my servlet and write it to the response to last the > lifetime of the session (duration = -1). When the user clicks the > lo

Re: Cookie Rookie - cannot delete session cookie

2007-06-01 Thread Mike Peremsky
te the session cookie. -Tim Mike Peremsky wrote: > I am pretty new to cookies and am having an issue. I create a cookie in my > servlet and write it to the response to last the lifetime of the session > (duration = -1). When the user clicks the logout button I find the cookie, > reset

Cookie Rookie - cannot delete session cookie

2007-06-01 Thread Mike Peremsky
I am pretty new to cookies and am having an issue. I create a cookie in my servlet and write it to the response to last the lifetime of the session (duration = -1). When the user clicks the logout button I find the cookie, reset the duration to 0 then re-add the cookie to the response. But when

Re: Cannot get SingleonLoader (from jar) to find classes outside JAR

2007-05-22 Thread Mike Peremsky
a specific service at webapp startup, loaded from classes in webapp, is generally a webapp specific job. It should be done at webapp level, probably using a ServletContextListener configured in web.xml. (http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/ServletContextListener.html) Mi

Re: Cannot get SingleonLoader (from jar) to find classes outside JAR

2007-05-22 Thread Mike Peremsky
t is trying to load the singleton? it should be in your webapp as well. Filip Mike Peremsky wrote: > I have resolved this issue, but am wondering if the way I did it is the > "correct" way to resolve this issue. > > I modified the catalina.properties file entry common.lo

Re: R: "if" don't work?!?!?

2007-05-22 Thread Mike Peremsky
As previously mentioned your examples should work as modified below: String Pippo = request.getParameter("abilitato"); if (Pippo.equals("on")) { } Pippo = request.getParameter("abilitato"); Pluto = request.getParameter("abilitato

Re: Cannot get SingleonLoader (from jar) to find classes outside JAR

2007-05-21 Thread Mike Peremsky
w Object[0]; private static final Class CLASS_ARG_LIST[] = new Class[0]; Method method = singletonClassObj.getMethod(GET_INSTANCE_METHOD, CLASS_ARG_LIST); method.invoke(null, OBJECT_ARG_LIST); Mike Peremsky <[EMAIL PROTECTED]> wrot

Re: Cannot get SingleonLoader (from jar) to find classes outside JAR

2007-05-21 Thread Mike Peremsky
asses that it is looking for are located in the /apache-tomcat-5.5.23/webapps/myExternalApp/WEB-INF/classes directory. Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote: did you try Class singletongClassObj = this.getClass().getClassLoader().loadName(singletonClassName)

Cannot get SingleonLoader (from jar) to find classes outside JAR

2007-05-21 Thread Mike Peremsky
I think this may be a class loader issue, but am not sure as I have never really worked with them before. I am putting together a JAR file that contains a set of classes to be used throughout a suite of applications. I have a class called SingletonLoader that was working when it was within the m

Re: JAR file not finding external properties files

2007-05-01 Thread Mike Peremsky
Ah, I got it. I put the .jar file in the common\classes directory. But putting thproperties files in the common\classes direcotry works. I'm a dunce, missed that in the email below. Mike Peremsky <[EMAIL PROTECTED]> wrote: Rashmi, I just tried this and it does not work either. It i

Re: JAR file not finding external properties files

2007-05-01 Thread Mike Peremsky
didn't. Rashmi Rubdi <[EMAIL PROTECTED]> wrote: Hi Mike, On 5/1/07, Mike Peremsky wrote: > What do I need to do to get the class in the jar file to find the properties > files external to it? To access a properties file that is external to the JAR file , add the full path

Re: JAR file not finding external properties files

2007-05-01 Thread Mike Peremsky
les in your webapp. You could use common/classes --David David Smith wrote: > Your could put the properties file in WEB-INF/classes which is > equivalent to storing it in the jar file. Otherwise we'll need to > know more about where you are storing your properties file to help.

Re: JAR file not finding external properties files

2007-05-01 Thread Mike Peremsky
about where you are storing your properties file to help. -- David Mike Peremsky wrote: > I created some utility classes that read proeprties files (e.g. > com.mvp.utils.ExtProperties). In the method where I try to load the > properties file I have > > > package com.mvp.u

JAR file not finding external properties files

2007-05-01 Thread Mike Peremsky
I created some utility classes that read proeprties files (e.g. com.mvp.utils.ExtProperties). In the method where I try to load the properties file I have package com.mvp.utils; class ExtProperties { private static PropertyResourceBundle loadProperties(String propsFile) {

Re: Listener won't start -> NoClassDefFoundError

2007-04-24 Thread Mike Peremsky
Thanks, switching to a ServletContextListener resolved the problem. Pid <[EMAIL PROTECTED]> wrote: Mike Peremsky wrote: > If it helps at all I am running on Windows XP. If it's in the webapp directory, that explains it. It's not in the same classloader.

Re: Listener won't start -> NoClassDefFoundError

2007-04-23 Thread Mike Peremsky
If it helps at all I am running on Windows XP. Mike Peremsky <[EMAIL PROTECTED]> wrote: Pid <[EMAIL PROTECTED]> wrote: Rashmi Rubdi wrote: > Hi Mike, > > Someone has posted a solution to the new error you're getting: > http://mail-archives.apache.org/mod_

Re: Listener won't start -> NoClassDefFoundError

2007-04-23 Thread Mike Peremsky
w. This just produced an additional error in the catalina log file: Apr 23, 2007 9:39:50 AM org.apache.catalina.core.StandardContext start SEVERE: Error listenerStart Apr 23, 2007 9:39:50 AM org.apache.catalina.core.StandardContext start SEVERE: Context [/fs] startup failed due to previous errors

Listener won't start -> NoClassDefFoundError

2007-04-22 Thread Mike Peremsky
OK, I just reinstalled Tomcat 5.5.23 to resolve an issue with Tomcat starting up. Now I have an issue with my listener not starting up. The class in question LifecycleListener exists in the %CATALINA_HOME%\server\lib\catalina.jar file. Do I need to set a switch or something when calling startup.

Re: How to run app and an exeception

2007-04-22 Thread Mike Peremsky
I removed the JRE_HOME, which did not seem to help. I then reinstalled Tomcat and the Admin and this message went away. Thx Rashmi Rubdi <[EMAIL PROTECTED]> wrote: On 4/22/07, Mike Peremsky wrote: > I checked and the naming-factory.jar is in the common\lib directory. Shouldn&#

Re: How to run app and an exeception

2007-04-22 Thread Mike Peremsky
> 2) If I run startup.bat in #1 above, I get the following exception and do not > know what it is. > > The exception below is looking for a class named org/apache/naming/TransactionRef , this class is located in naming-factory.jar in the folder: c:\apache-tomcat-5.5.23\common\lib Please check

How to run app and an exeception

2007-04-22 Thread Mike Peremsky
I just did a fresh install of Apache 5.5.23. I have defined ANT_HOME=c:\ant CATALINA_HOME=c:\apache-tomcat-5.5.23 JAVA_HOME=c:\java\jdk1.5.0_11 JRE_HOME=%JAVA_HOME%\jre PATH=%JAVA_HOME%\bin;%ANT_HOME%\bin;%CATALINA_HOME%\bin My application is in %CATALINA_HOME%\webapps\fs a

Re: Unable to get a Listener running

2007-04-15 Thread Mike Peremsky
>From the control panel. If I go to the system properties and look at the >environment variables I have the following: (I do not have a JRE_HOME defined) CATALINA_HOME=c:\apache-tomcat JAVA_HOME=c:\jdk1.5.0 Path=C:\jdk1.5.0\bin;%ANT_HOME%\bin There is a CLASSPATH variable set as:

Unable to get a Listener running

2007-04-15 Thread Mike Peremsky
To whom it may concern: I am trying to implement a Listener in my Java application using Tomcat 5.5. My class implements the LifecycleListener (as shown below) public class SingletonLoader implements LifecycleListener { public void lifecycleEvent(LifecycleEvent event) {