You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by John Menke <jo...@murphyfutures.com> on 2001/05/11 18:56:22 UTC

TDK(Catalina 4.0 beta 1) + JBoss 2.2.1 Working!

3 Steps to get the Catalina included with TDK to work with JBoss2.2.1:

1.  Edit the startup.sh:

$BASEDIR/catalina.sh run -nonaming "$@"  (-nonaming does not work with
start)

2.  Move all the files from JBOSS_HOME/client directory to the /WEB-INF/lib
directory

3.  Delete the jndi.jar file (and the jndi-1.2.1.jar) from the /WEB-INF/lib
directory



I probably have extra jars in the WEB-INF/lib at the moment, but IT WORKS!

WEB-INF/lib
	TestBeanClient.jar
	activation-1.01.jar
	connector.jar
	deploy.jar
	ecs-1.4.1.jar
	ejb.jar
	hsql.jar
	jaas.jar
	jakarta-regexp-1.3-dev.jar
	jboss-client.jar
	jbossmq-client.jar
	jbosssx-client.jar
	jdbc-se2.0.jar
	jdbc2_0-stdext.jar
	jnp-client.jar
	jta-spec1_0_1.jar
	jta1.0.1.jar
	junit-3.2.jar
	log4j-1.0.4.jar
	mail-1.2.jar
	mm.mysql-2.0.4.jar
	postgresql.jar
	stop.jar
	turbine-2.1-dev-unrealeased.jar
	velocity-1.0b2-dev.jar
	village-1.5.1-dev.jar
	xalan-1.2.1.jar
	xerces-1.3.0.jar
	xmlrpc.jar

THIS CODE NOW RUNS: (servlet from within TDK)

 try {
      // Set up the naming provider. This may not always be necessary,
      // depending on how your Java system is configured.
      System.setProperty("java.naming.factory.initial",
        "org.jnp.interfaces.NamingContextFactory");
      System.setProperty("java.naming.provider.url",
        "localhost:1099");
      // Get a naming context
      InitialContext jndiContext = new InitialContext();

      // Get a reference to the Interest Bean
      Object ref  = jndiContext.lookup("interest/Interest");

      // Get a reference from this to the Bean's Home interface
      InterestHome home = (InterestHome)
        PortableRemoteObject.narrow (ref, InterestHome.class);

      // Create an Interest object from the Home interface
      m_interest = home.create();
    } catch(Exception e) {
       out.println("<LI>Context failed: " + e);
    }



---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: TDK(Catalina 4.0 beta 1) + JBoss 2.2.1 Working!

Posted by Jon Stevens <jo...@latchkey.com>.
on 5/11/01 9:56 AM, "John Menke" <jo...@murphyfutures.com> wrote:

> 3 Steps to get the Catalina included with TDK to work with JBoss2.2.1:

So, now next time, instead of posting a message to the list, add a document
in the xdocs directory...I just did it for you as an example and will be
checking it in soon. Please download CVS and check it out.

-jon

-- 
If you come from a Perl or PHP background, JSP is a way to take
your pain to new levels. --Anonymous
<http://jakarta.apache.org/velocity/ymtd/ymtd.html>


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org