[JBoss-user] Reset forum password?

2001-08-02 Thread Ship, Howard

I lost my JBoss forum password.  Is there any way to have it reset.  I'm
user "hship".

Howard Ship
Senior Consultant
PRIMIX
311 Arsenal Street
Watertown, MA 02472
www.primix.com
[EMAIL PROTECTED]
(617) 923-6639


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] can't find web.xml DTD today

2001-06-25 Thread Ship, Howard

In my frameworks (Tapestry and Sabertooth), I make sure that I use a
well-known public ID, and then I make sure that I get the DTD locally (i.e.,
from a package resource in my JAR) ... NOT going out to the Internet to
validate my document.  This is something to look into for both Jetty and
JBoss ... you should be able to run the environment even when disconnected
from the Internet.

> -Original Message-
> From: Scott M Stark [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 25, 2001 5:30 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] can't find web.xml DTD today
> 
> 
> That is not the correct public id as per the 2.2 servlet spec. Maybe
> 
> that was an older revision naming convention and the url has
> 
> been removed so it no longer is found. Using the correct public
> 
> id will result in local resolution of the dtd.
> 
> 13.1.1 Deployment Descriptor DOCTYPE
> 
> All valid web application deployment descriptors must contain 
> the following DOCTYPE
> 
> declaration:
> 
>  Application
> 
> 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
> 
> 
> 
> - Original Message - 
> From: "David Ward" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, June 25, 2001 1:42 PM
> Subject: [JBoss-user] can't find web.xml DTD today
> 
> 
> > I'm having a problem where all my j2ee apps that have 
> worked right up 
> > till last Friday all of a sudden don't deploy today (with 
> NO changes to 
> > them)!
> > 
> > I get this error:
> > [Auto deploy] org.jboss.ejb.DeploymentException: Error 
> during deploy, 
> > Cause:java.io.FileNotFoundException: 
> > http://java.sun.com/j2ee/dtds/web-app_2.2.dtd
> > 
> > If I comment out the DOCTYPE line in web.xml and redeploy, 
> things start 
> > working.  I haven't changed a lick of jboss or tomcat 
> configuration, and 
> > haven't changed any of my code or xmls either.  Why all of a sudden?
> > 
> > Yes, I'm connected to the internet successfully, because I 
> can surf to 
> > that dtd in my browser no problem.
> > 
> > Any ideas?
> > 
> > Thanks,
> > David
> > 
> 
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Problems Compiling Message Driven Bean

2001-06-25 Thread Ship, Howard
Title: Re: [JBoss-user] Problems Compiling Message Driven Bean



I was 
just doing the same stuff.
 
In 
$(JBOSS_ROOT)/lib/ext there's both ejb.jar (1.1 spec) and ejb2.0.jar (2.0 
spec).  Modify your Makefiles to use the latter.  This is for jBoss 
2.2.x.
 
Oh?  Not using Makefiles?  You should be ... 
http://tapestry.primix.com/doc/JBE/JBE.html

  -Original Message-From: Hunter Hillegas 
  [mailto:[EMAIL PROTECTED]]Sent: Saturday, June 23, 2001 3:50 
  PMTo: JBoss 2Subject: Re: [JBoss-user] Problems 
  Compiling Message Driven BeanNope. I 
  just checked. Anyone know which jar does have it? I can’t find it!The 
  docs don’t specify (at least I couldn’t find the info 
  there).Hunter
  From: "Vinay Menon" 
<[EMAIL PROTECTED]>Reply-To: 
[EMAIL PROTECTED]Date: Sat, 23 Jun 2001 
20:39:15 +0100To: 
<[EMAIL PROTECTED]>Subject: Re: 
[JBoss-user] Problems Compiling Message Driven BeanSanity check! 
Does the ejb.jar actually have the class MessageDrivenBean in 
it? 


[JBoss-user] RE: Message Driven Beans

2001-06-21 Thread Ship, Howard

François Charoy pointed me in the right direction.

When I switched from using an ObjectMessage to using a MapMessage, things
started working.  Yea!

I suspect it was some kind of silent class loader problem.   The class I was
serializing was defined by my EJB jar ... I suspect that the container was
unable to instantiate it because of classpath issues.   I wish I new how to
enable more debugging output on the container w.r.t. message driven beans.

> -Original Message-
> From: Ship, Howard 
> Sent: Thursday, June 21, 2001 9:30 AM
> To: jBoss User (E-mail)
> Subject: Message Driven Beans
> 
> 
> I'm just starting to experiment with message driven beans in 
> jBoss.  I'm having a problem though.
> 
> One of my business processes uses a queue to send a message 
> to MDB.  The session bean coordinates a database update, the 
> MDB sends e-mail about it and I wanted them decoupled.
> 
> Excerpts from ejb-jar.xml:
> 
> 
>   MailQueue
>   com.primix.vlib.ejb.impl.MailQueueBean
>   
>   Container
>   
> javax.jms.Queue
> NonDurable
>   
> 
> 
> 
>   
> MailQueue
> *
>   
>   Required
> 
> 
> I inserted
> 
> 
>   Vlib-MailQueue
> 
> 
> into jbossmq.xml
> 
> 
> 
> At runtime, I see the message getting queued without error 
> (I've even stepped through in the debugger):
> 
>   private QueueSender mailQueueSender;
>   private QueueSession mailQueueSession;
>   
>   protected QueueSession getMailQueueSession()
>   throws NamingException, JMSException
>   {
>   if (mailQueueSession == null)
>   {
>   Context context = new InitialContext();
>   
>   QueueConnectionFactory factory = 
> (QueueConnectionFactory)context.lookup("QueueConnectionFactory");
>   
>   QueueConnection connection = 
> factory.createQueueConnection();
>   
>   mailQueueSession = 
> connection.createQueueSession(true, Session.AUTO_ACKNOWLEDGE);
>   }
>   
>   return mailQueueSession;
>   }
>   
>   protected QueueSender getMailQueueSender()
>   throws NamingException, JMSException
>   {
>   if (mailQueueSender == null)
>   {
>   Context context = new InitialContext();
>   
>   Queue queue = 
> (Queue)context.lookup("queue/Vlib-MailQueue");
>   
>   mailQueueSender = 
> getMailQueueSession().createSender(queue);
>   }
>   
>   return mailQueueSender;
>   }
>   
>   protected void sendMail(String emailAddress, String 
> subject, String content)
>   throws EJBException
>   {
>   try
>   {
>   QueueSender sender = getMailQueueSender();
>   
>   QueueSession session = getMailQueueSession();
>   
>   MailMessage message = new 
> MailMessage(emailAddress, subject, content);
>   
>   ObjectMessage queueMessage = 
> session.createObjectMessage(message);
> 
>   System.out.println("Sending message: " 
> + queueMessage + " via " + sender);
>   
>   sender.send(queueMessage, 
> DeliveryMode.PERSISTENT, MAIL_QUEUE_PRIORITY, 0);
>   }
>   catch (NamingException ex)
>   {
>   throw new XEJBException(ex);
>   }
>   catch (JMSException ex)
>   {
>   throw new XEJBException(ex);
>   }
>   }
> 
> 
> In C:\JBoss-2.2.2\db\jbossmq I see a
>   [EMAIL PROTECTED]
> file.
> 
> However, my message driven bean is never instantiated or has 
> onMessage() invoked.
> 
> 
> public abstract class AbstractMessageDrivenBean
>   implements MessageDrivenBean, MessageListener
> {
>   private MessageDrivenContext context;
>   
>   public void setMessageDrivenContext(MessageDrivenContext value)
>   throws EJBException
>   {
>   System.out.println(this + " set context to " + value);
>   
>   context = value;
>   }
>   
>   /**
>*
>*  Does nothing.
>*
>*/

[JBoss-user] Message Driven Beans

2001-06-21 Thread Ship, Howard

I'm just starting to experiment with message driven beans in jBoss.  I'm
having a problem though.

One of my business processes uses a queue to send a message to MDB.  The
session bean coordinates a database update, the MDB sends e-mail about it
and I wanted them decoupled.

Excerpts from ejb-jar.xml:


  MailQueue
  com.primix.vlib.ejb.impl.MailQueueBean
  
  Container
  
javax.jms.Queue
NonDurable
  



  
MailQueue
*
  
  Required


I inserted


  Vlib-MailQueue


into jbossmq.xml



At runtime, I see the message getting queued without error (I've even
stepped through in the debugger):

private QueueSender mailQueueSender;
private QueueSession mailQueueSession;

protected QueueSession getMailQueueSession()
throws NamingException, JMSException
{
if (mailQueueSession == null)
{
Context context = new InitialContext();

QueueConnectionFactory factory =
(QueueConnectionFactory)context.lookup("QueueConnectionFactory");

QueueConnection connection =
factory.createQueueConnection();

mailQueueSession =
connection.createQueueSession(true, Session.AUTO_ACKNOWLEDGE);
}

return mailQueueSession;
}

protected QueueSender getMailQueueSender()
throws NamingException, JMSException
{
if (mailQueueSender == null)
{
Context context = new InitialContext();

Queue queue =
(Queue)context.lookup("queue/Vlib-MailQueue");

mailQueueSender =
getMailQueueSession().createSender(queue);
}

return mailQueueSender;
}

protected void sendMail(String emailAddress, String subject, String
content)
throws EJBException
{
try
{
QueueSender sender = getMailQueueSender();

QueueSession session = getMailQueueSession();

MailMessage message = new MailMessage(emailAddress,
subject, content);

ObjectMessage queueMessage =
session.createObjectMessage(message);

System.out.println("Sending message: " +
queueMessage + " via " + sender);

sender.send(queueMessage, DeliveryMode.PERSISTENT,
MAIL_QUEUE_PRIORITY, 0);
}
catch (NamingException ex)
{
throw new XEJBException(ex);
}
catch (JMSException ex)
{
throw new XEJBException(ex);
}
}


In C:\JBoss-2.2.2\db\jbossmq I see a
[EMAIL PROTECTED]
file.

However, my message driven bean is never instantiated or has onMessage()
invoked.


public abstract class AbstractMessageDrivenBean
implements MessageDrivenBean, MessageListener
{
private MessageDrivenContext context;

public void setMessageDrivenContext(MessageDrivenContext value)
throws EJBException
{
System.out.println(this + " set context to " + value);

context = value;
}

/**
 *
 *  Does nothing.
 *
 */

public void ejbCreate()
throws EJBException
{
}

/**
 *  Does nothing.
 *
 */

public void ejbRemove()
throws EJBException
{
}
}

public class MailQueueBean 
extends AbstractMessageDrivenBean
{
private static final Category CAT = 
Category.getInstance(MailQueueBean.class);

public void onMessage(Message message)
{
System.err.println("Received message: " + message); 
}
}


At runtime, I see the output about the message being queued (by my session
bean), but I never see anything about my MDB.

I've been playing with various parameters and configurations, hoping to
stumble across the proper configuration, with no luck so far.  I'm sure its
something ovious, but I don't see it.  Any help?

Howard Ship
Senior Consultant
PRIMIX
311 Arsenal Street
Watertown, MA 02472
www.primix.com
[EMAIL PROTECTED]
(617) 923-6639


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] [Jetty] Classpath problem / jBoss 2.2.2

2001-06-12 Thread Ship, Howard

I have an existing web application that I'm trying to deploy.

Previously, I ran Jetty in one JVM and jBoss in another.  The application
works fine.

I want to run everything in a single JVM.  That means chaning jboss.jcml to
not only deploy my EJBs, but to start up and initialize Jetty and deploy my
WAR.

First pass:


-- jboss.jcml:

  
PrimixVlib
org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp
l
jdbc:idb:../conf/default/vlib.properties


  
  
  
file:C:/JBoss-2.2.2/conf/default/jetty-vlib.xml
  

-- jetty-vlib.xml:



http://jetty.mortbay.com/configure_1_0.dtd";>






8080
2
50
5




  






/vlib/*
../wars/Vlib.war
../conf/default/jetty-default-web.xml


  
/private-assets/*
.build/private-assets
TRUE
  
  


I copied my existing Vlib.war to c:/jboss2.2.2/wars.

First pass results:

Static portions of my application worked correctly, but I got
NoClassDefFound exceptions when I hit portions of the app that involved
EJBs.

-- Second pass:

I changed my Vlib.war file, adding a manifest:

Manifest-Version: 1.0
Class-Path: ./lib/VlibBeans.jar

I also copied VlibBean.jar into WEB-INF/lib

Results are similar, except now I get a class cast exception:

Name: com.primix.tapestry.ApplicationRuntimeException 
Message: Object vlib/Operations is not type
com.primix.vlib.ejb.IOperationsHome. 
Name: java.lang.ClassCastException 
Message: 
Trace: 
*
com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(PortableRemo
teObject.java:296) 
*   javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:137)

*
com.primix.vlib.VirtualLibraryEngine.findNamedObject(src/com/primix/vlib/Vir
tualLibraryEngine.java:354) 


Would things work better if I deployed as an EAR?  (I haven't created
Makefiles for EARs yet).  Can you autodeploy EAR files, or do you have to
use the J2EEDeployer MBean?

Howard Ship
Senior Consultant
PRIMIX
311 Arsenal Street
Watertown, MA 02472
www.primix.com
[EMAIL PROTECTED]
(617) 923-6639


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] 2.0 to 2.2.1 problems

2001-04-24 Thread Ship, Howard

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I've solved my own problem (not quoted here) by removing the
 element (and
all my continer configurations with it).  It now works OK.  I'll have
to revisit the docs and figure out proper configurations later.

Howard Ship
Senior Consultant
PRIMIX
311 Arsenal Street
Watertown, MA 02472
www.primix.com
[EMAIL PROTECTED]
(617) 923-6639


-BEGIN PGP SIGNATURE-
Version: PGPfreeware 6.5.8 for non-commercial use 

iQA/AwUBOuXk2MzaGfXx3ihQEQKMNACfUElegKmG5ys4vOzLGD/IBPI7KEEAn3wV
jB47iW+eYAftvRaAheFBZ7Co
=XYF2
-END PGP SIGNATURE-

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] 2.0 to 2.2.1 problems

2001-04-24 Thread Ship, Howard

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I'm trying upgrade from 2.0 to 2.2.1.

I'm sure I'm hitting the same problems as everyone else.

I had a working application ... in fact, it is still operating right
now using 2.0 (http://tapestry.primix.com/vlib/app).  Very simple: 
InstantDB database, three entity beans, couple of stateful and
stateless session beans.  Jetty and Tapestry provide the presentation
layer.

I've been fixing my environment for 2.2.1.  I've re-patched
jboss.jcml.

If I deploy my beans as is, I have two problems:

I get a warning when I run jBoss:

[J2EE Deployer Default] install module VlibBeans.jar
[Container factory]
Deploying:file:/C:/JBoss-2.2.1/tmp/deploy/Default/VlibBeans.jar
[Container factory] Deprecated container invoker. Change to
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker
[Container factory] Deprecated container invoker. Change to
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker
[Container factory] Deprecated container invoker. Change to
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker
[Container factory] res-jndi-name(PrimixVlib)does not start with
java:/ and assumeJavaPrefix is true
[Verifier] Verifying
file:/C:/JBoss-2.2.1/tmp/deploy/Default/VlibBeans.jar/ejb1001.jar
[Container factory] Deploying Person
[Container factory] There are no interceptors configured. Check the
standardjboss.xml file
[Container factory] Deploying Book
[Container factory] There are no interceptors configured. Check the
standardjboss.xml file
[Container factory] Deploying Publisher
[Container factory] There are no interceptors configured. Check the
standardjboss.xml file
[Container factory] Deploying KeyAllocator
[Container factory] There are no interceptors configured. Check the
standardjboss.xml file
[Container factory] Deploying BookQuery
[Container factory] There are no interceptors configured. Check the
standardjboss.xml file
[Container factory] Deploying Operations
[Container factory] There are no interceptors configured. Check the
standardjboss.xml file
[JAWS] Table 'BOOK' already exists
[JAWS] Table 'PERSON' already exists
[JAWS] Table 'PUBLISHER' already exists
[Container factory] Deployed application:
file:/C:/JBoss-2.2.1/tmp/deploy/Default/VlibBeans.jar
[J2EE Deployer Default] J2EE application:
file:/C:/JBoss-2.2.1/deploy/VlibBeans.jar is deployed.

And I get an exception when I access a session bean from my
presentation layer (seperate process):

4:37:27.446 EVENT  vlib: init
ava.lang.NullPointerException
   at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamR
emoteCall.java:245)
   at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:2
20)
   at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
   at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invoke(Unk
nown Source)
   at
org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessionProxy.invoke(Sta
telessSessionProxy.java:188)
   at $Proxy1.remove(Unknown Source)
   at
com.primix.vlib.Visit.cleanupAfterRequest(com/primix/vlib/Visit.java:8
6)
   at
com.primix.vlib.VirtualLibraryEngine.cleanupAfterRequest(com/primix/vl
ib/VirtualLibraryEngine.java:130)
   at
com.primix.tapestry.engine.AbstractEngine.service(com/primix/tapestry/
engine/AbstractEngine.java:860)
   at
com.primix.tapestry.ApplicationServlet.doGet(com/primix/tapestry/Appli
cationServlet.java:95)
   at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
   at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
com.mortbay.HTTP.Handler.Servlet.ServletHolder.handle(ServletHolder.ja
va:488)
   at
com.mortbay.HTTP.Handler.Servlet.ServletHandler.handle(ServletHandler.
java:459)
   at
com.mortbay.HTTP.Handler.Servlet.ServletHandler.handle(ServletHandler.
java:294)
   at
com.mortbay.HTTP.HandlerContext.handle(HandlerContext.java:1154)
   at com.mortbay.HTTP.HttpServer.service(HttpServer.java:775)
   at
com.mortbay.HTTP.HttpConnection.service(HttpConnection.java:484)
   at
com.mortbay.HTTP.HttpConnection.handle(HttpConnection.java:344)
   at
com.mortbay.HTTP.SocketListener.handleConnection(SocketListener.java:1
07)
   at
com.mortbay.Util.ThreadedServer.handle(ThreadedServer.java:294)
   at
com.mortbay.Util.ThreadPool$PoolThreadRunnable.run(ThreadPool.java:613
)
   at java.lang.Thread.run(Thread.java:484)


Here's my jboss.xml:



  true
  

  Vlib Entity Bean
  false
 
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvo
ker
 
org.jboss.ejb.plugins.EntityInstancePool
 
org.jboss.ejb.plugins.EntityInstanceCache
 
org.jboss.ejb.plugins.jaws.JAWSPersistenceManager

  
  
  
  
true
  
  
   
org.jboss.ejb.plugins.NoPassivationCachePolicy
  
  
100
10
  
  A


  Vlib Stateless Config
  false
 
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvo
ker
 
org.jboss.ejb.plugins.Sta

RE: [JBoss-user] log4j

2001-03-27 Thread Ship, Howard

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

> "An enterprise bean must not use the java.io package to attempt to
> access files and directories in the file system.
> The file system APIs are not well-suited for business components
> to access data. Business components should use a resource manager
> API, such as JDBC API, to store data."
> 

Key words:  "store data"

I've interpreted this as ...

"Don't store stuff on the local file system, because when the bean
next executes, it may be on a different server in the cluster without
access to the same local file system."

In other words, store the state so that the bean, running anywhere in
a cluster of servers, can restore itself.

In other words, use real, globally accessible storage:  a database. 
Sun doesn't want you taking shortcuts, since that may make your beans
fail unexpectedly.

None of that has anything to do with logging; logging is producing
output for developers or end users. 

-BEGIN PGP SIGNATURE-
Version: PGPfreeware 6.5.8 for non-commercial use 

iQA/AwUBOsDixczaGfXx3ihQEQL8GACg0yjC6Lq99PuUSJzsqPlugAZzGIIAoKfJ
iobboxyBasQQVOFyajQpmVX7
=ycNi
-END PGP SIGNATURE-

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user