Re: Session replication not working

2005-01-26 Thread Nic Holbrook
This should work.  Your linux boxes won't route multicast without the 
entry in the routing table.  I found this out while trying to debug 
clustering with jboss and it fixed all my issues.  Also make sure any 
routers on your network will route multicast.

Edmon Begoli wrote:
Since you are on RedHat you have to do these steps to enable multicast 
on your machines:

assign an IP to a host
ifconfig eth0 multicast
route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0
Regards,
Edmon
Simon Whiteside wrote:
Hi Filip,
are you running iptables firewall?

no. The servers are inside a hardware firewall.
that might also be blocking your multicast.
I do suggest you get a little utility that tests your multicast.
 

Can you suggest one?
Regards,
Simon
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


Re: registering variables

2002-09-12 Thread Nic Holbrook

Yes, this can be done.

Tag example

import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
import java.io.*;

public class Dummy extends BodyTagSupport
{
protected String name;
protected boolean result;

public Dummy()
{
initValues();
}
public void release()
{
initValues();
}
private void initValues()
{
name = ;
result = false;
}

public void setResult(boolean result)
{
this.result = result;
}
public boolean getResult()
{
return result;
}

public void setName(String p1)
{
name = p1;
}
public String getName()
{
return name;
}

public int doStartTag() throws JspTagException
{
pageContext.setAttribute(name, new Boolean(result));
return(BodyTag.EVAL_BODY_BUFFERED);
}
}

Example Tag Extra Info


import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;

public class DummyExtraInfo extends TagExtraInfo
{
public static final String ATTRIB_NAME = name;
public static final String ATTRIB_TYPE = java.lang.Boolean;

public VariableInfo[] getVariableInfo(TagData data)
{
if(data.getAttributeString(ATTRIB_NAME) != null)
{
VariableInfo info = new 
VariableInfo(data.getAttributeString(ATTRIB_NAME), ATTRIB_TYPE, true, 
VariableInfo.AT_BEGIN);
return new VariableInfo[] { info };
}
else
{
return new VariableInfo[] {};
}
}
}


Hope this is what you were looking for.

Later

Nic

Felipe Schnack wrote:

  Well, actually I'm talking about the TagExtraInfo. With it, you can
register variables in the tag scope... I would like to dinamically
create these variables.
  I will not enter in details of why I want to do that, but it's
relative to data access... 
  It's possible or not? Maybe I can make a TagExtraInfo that grabs data
from it related tag? That's possible? I mean, you have an
DoSomethingTag and a DoSomethingExtraInfoTag. It's possible to
DoSomethingExtraInfoTag access DoSomethingTag data?

On Thu, 2002-09-12 at 12:36, Andreas Mohrig wrote:
  

I don't know Struts, but if it is possible to register variables in other
scopes with the help of Struts it gives me the creeps/makes me shudder and
would not shine a good light on Java as a programming language. Why should
you want to register a variable in the first place? Java is good for
encapsulation and information hiding. Data transport can be managed via
return values of method calls or if there is absolutely no other way over
global contexts (which is frightful by itself). What you are talking about
would undermine the foundations of the Java programming language (in my
humble opinion as a programmer). But I'm willing to learn and to broaden my
perspective, so if you have a case where it is absolutely necessary (or even
practically/elegant or otherwise useful) to do what you want to do, please
let me know about it.

Andreas Mohrig

-Original Message-
From: Felipe Schnack [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 12, 2002 5:16 PM
To: Tomcat Users List
Subject: RE: registering variables


  Ok, but this is an attribute, not an variable really. There isn't a
way I can register a variable? Like in Strut's TE tags?

On Thu, 2002-09-12 at 11:57, Andreas Mohrig wrote:


You could put it in the pageContext (or even in the session or application
context). That will require some syntactic clutter (first 
 pageContext.setAttribute(variableName,objectVariable);
 then (in the jsp page)
  ObjectType myVariable =
(ObjectType)pageContext.getAttribute(variableName,objectVariable);
)
and opens the possibilitie of errors that are hard to debug (what if there
is already an attribute with that name?) but is much safer than directly
creating variables in other scopes. It is one of javas merits that this is
not possible (at least not to my knowledge).

greetings

Andreas Mohrig

-Original Message-
From: Felipe Schnack [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 12, 2002 4:42 PM
To: Tomcat Users List
Subject: registering variables


  How can I create an variable within an taglib? I would like to be able
to create an variable accesible to my jsp page.

-- 

Felipe Schnack
Analista de Sistemas
[EMAIL PROTECTED]
Cel.: (51)91287530
Linux Counter #281893

Faculdade Ritter dos Reis
www.ritterdosreis.br
[EMAIL PROTECTED]
Fone/Fax.: (51)32303328


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


-- 

Felipe Schnack
Analista de Sistemas
[EMAIL PROTECTED]
Cel.: (51)91287530
Linux Counter #281893

Faculdade Ritter dos Reis
www.ritterdosreis.br
[EMAIL PROTECTED]
Fone/Fax.: (51)32303328


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

Re: Tomcat 4.1 in production

2002-08-13 Thread Nic Holbrook

Wills, Mike N. (TC) wrote:

I have heard of some people using Tomcat 4.1 in a production environment. I
know that running beta software is usually a bad thing. What are people's
experiences with it here?

Mike Wills

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


  

I have had a few bad experiences, but 4.13 has been the one that seems 
to work great for me.  I am using it in conjunction with apache 1.2X and 
have had pretty good success.  Classloader works the way I need it to, 
and the performance is good.  I haven't had any problems at all with 
this version.  I haven't tried the 4.17 or 4.18 versions yet, though. 
 I'll give em a try and if they work, I will probably upgrade on our 
next software release.
The best thing to do is start running one of the 4.1X versions on your 
development box and make sure everything works.  If all is good, think 
about doing the upgrade.  If everything goes smoothly, I definitely 
wouldn't hesitate putting a 4.1.X release in production.

Later

Nic Holbrook



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




Custom Tomcat Container Authentication?

2002-07-19 Thread Nic Holbrook

Can I create my own custom authentication modules by implementing the 
Role interface inside tomcat or extending some other classes?  Is there 
any documentation on this subject?  There only seem to be a few methods 
that need to be implemented so that the container can communicate 
properly.  My problem is that I have a web server that sits outside of 
our firewall, and I don't want it to have any direct connection to the 
internal company app server or database except through a proxy class 
which I have defined.  I have all the users and their roles set up 
internally in a database which are retrieved through ejb's returning 
value objects.  Anybody run into this problem?

Thanks

Nic


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




Re: tomcat won't load oracle driver

2002-06-22 Thread Nic Holbrook

slickdev wrote:

I have Tomcat 3.3 and cannot get any web apps to recognize the oracle jdbc drivers, 
which are contained in an oracle file named classes111.zip.  I am confident of the 
oracle installation, as I can successfully run queries from command line java 
programs, using the same class file and driver.  The system out always indicates that 
tomcat cannot find the oracle driver.  

Predictably, I have already tried moving the oracle class file among many directories 
under %TOMCAT_HOME%, including lib, apps, common, container, and of course, I have 
also placed it at various locations within the web-app\application directory 
sub-dirs.  I always restart tomcat after moving the class file.

Nothing works.  Tomcat cannot or *will* not find my oracle class file.

Advice appreciated!

R/
JMSlick

  

I haven't tried this, but maybe Tomcat has a problem recognizing the 
.zip extension.  zip and jar are interchangeable.  Maybe see if you can 
either rename it to classes111.zip or unzip it and re-package it with a 
.jar extension.  Then try putting it back in the lib/apps directory. 
 I've had the best luck with classloader and the apps directory with 
version 3.3.

Nic



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




Classloader question between tomcat 3.3 and 4.0.3

2002-06-10 Thread Nic Holbrook

I am deploying several web applications  which access data through the 
proxy/facade pattern into EJB's.  Some of this data is shared across 
applications.  I have 1 jar file that is shared, and handles some in 
memory caching of data, etc.  In tomcat 3.3, I have this jar in the 
lib/apps directory, and I don't have to bundle it in any of the 
WEB-INF/lib directories.  For some reason, I always get ClassNotFound 
Exceptions doing the same thing in 4.0.3.  Tomcat 4.0.3 wants me to have 
the jar in every WEB-INF/lib directory.   I have tried dropping it in 
common/lib, lib, server/lib, everything.  Is there something I am not 
quite understanding here, or does tomcat 4.x.x load classes differently? 
 I really wanted to use 4.0.x because my AppResources now is combined 
and in the classpath because my 3.3 doesn't find anything in the 
WEB-INF/classes directories of my web-apps

Thanks

Nic Holbrook


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




Re: JasperException

2002-06-09 Thread Nic Holbrook

I ran into a similar problem with the jdk1.3.* under linux.  My only 
solution was to use the IBM JDK1.3.1.   Compiles fine with that.  Are 
you running the exact same jdk on both machines, or is the one on XP 
different?

Nic Holbrook

Todd Kaplinger wrote:

 Interesting problem.  I would keep the generated .java file and 
 compile the .java source from the command line.  There must be 
 something different between the two machines.


 From: Juan [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: JasperException
 Date: Sun, 09 Jun 2002 15:01:19 -0300

 Hello,

 I'm trying to use a jsp page with a JavaBean and getting the 
 following error:
 org.apache.jasper.JasperException: Unable to compile class for JSP

 The jsp page is very simple:
 html
 head
   titleTEST PAGE/title
 /head
 body
   jsp:useBean is=usr class=study.User /
   %= usr.getId() %
 /body
 /html

 The funny thing is that I can use this code within W2K, but it don't 
 works under WinXP. I have a similar problem to access JDBC. It works 
 at W2K but don't at WinXP. I looked at all configurations trying to 
 find something different but all seems equal in both systems (I mean 
 the environment variables).

 Any idea what's going on?

 Thanks in advance,

 Juan José Velázquez Garcia
 Web Development
 www.htmlspider.com.br



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





 ---
 Todd Kaplinger
 mailTo:[EMAIL PROTECTED]


 _
 Get your FREE download of MSN Explorer at 
 http://explorer.msn.com/intl.asp.


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