[JBoss-user] JBoss DTD bugs?

2001-04-24 Thread Nguyen Thanh Phong

Hello,

I'm trying have my jboss.xml to be conformant witht the published DTD
(http://www.jboss.org/documentation/jboss.dtd) but I got the following error

[Container factory]
Deploying:file:/var/jboss-tomcat-2.2/jboss-2.2/tmp/deploy/De
fault/util.jar
[Container factory] java.lang.NullPointerException:-1:2
[Container factory] java.lang.NullPointerException
[Container factory] at
org.apache.crimson.parser.Parser2.parseInternal(Parse
r2.java:523)
[Container factory] at
org.apache.crimson.parser.Parser2.parse(Parser2.java:
304)
[Container factory] at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLRead
erImpl.java:433)
[Container factory] at
org.apache.crimson.jaxp.DocumentBuilderImpl.parse(Doc
umentBuilderImpl.java:179)
[Container factory] at
javax.xml.parsers.DocumentBuilder.parse(DocumentBuild
er.java:86)
[Container factory] at
org.jboss.metadata.XmlFileLoader.getDocument(XmlFileL
oader.java:148)
[Container factory] at
org.jboss.metadata.XmlFileLoader.getDocument(XmlFileL
oader.java:132)
[Container factory] at
org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.j
ava:117)
[Container factory] at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactor
y.java:388)
[Container factory] at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactor
y.java:334)
[Container factory] at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactor
y.java:275)
[Container factory] at java.lang.reflect.Method.invoke(Native Method)
[Container factory] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe
rverImpl.java:1628)
[Container factory] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe
rverImpl.java:1523)
[Container factory] at
org.jboss.deployment.J2eeDeployer.startApplication(J2
eeDeployer.java:435)
[Container factory] at
org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer
.java:178)
[Container factory] at java.lang.reflect.Method.invoke(Native Method)
[Container factory] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe
rverImpl.java:1628)
[Container factory] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe
rverImpl.java:1523)
[Container factory] at
org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:3
rverImpl.java:1628)
[Container factory] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Container factory] at
org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:435)
[Container factory] at
org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:178)
[Container factory] at java.lang.reflect.Method.invoke(Native Method)
[Container factory] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Container factory] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Container factory] at
org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:358)
[Container factory] at
org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:221)[Container factory]
at java.lang.Thread.run(Thread.java:484)
[J2EE Deployer Default] Starting util.jar failed!
[J2EE Deployer Default] Module util.jar is not running
[J2EE Deployer Default] Destroying application util.jar
[Auto deploy] Deployment
failed:file:/var/jboss-tomcat-2.2/jboss-2.2/deploy/util.jar
[Auto deploy] org.jboss.deployment.J2eeDeploymentException: Error while
starting util.jar: Could not deploy
file:/var/jboss-tomcat-2.2/jboss-2.2/tmp/deploy/Default/util.jar
[Auto deploy]   at
org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:441)
[Auto deploy]   at
org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:178)
[Auto deploy]   at java.lang.reflect.Method.invoke(Native Method)
[Auto deploy]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Auto deploy]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Auto deploy]   at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:358)
[Auto deploy]   at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:221)
[Auto deploy]   at java.lang.Thread.run(Thread.java:484)


jboss.xml (works)




  

  GeneratorIDBean
  sdc/smart/util/GeneratorIDHome
  

  jdbc/IdGenerator
  java:/SmartPool

  
  Standard Stateless
SessionBean

false
  


jboss.xml (conforms to DTD but doesn't work)


http://www.jboss.org/documentation/jboss.dtd";>

false
  

  GeneratorIDBean
  sdc/smart/util/GeneratorIDHome
  Standard Stateless
SessionBean

  jdbc/IdGenerator
  java:/SmartPool


  


Please give me some help.

Thanks.


Nguyen Thanh Phong   Tel: 84-8-837 25 06/837 25 07
Saigon Software Development Company (SDC)Fax: 84-8-837 25 11
10 Co Giang Street, Dist I, HCMC Email:
[EMAIL PROTECTED]
Vietnam



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

Re: [JBoss-user] Bug in JBoss2.2 Auto Deploy ??

2001-04-24 Thread Toby Allsopp

Rishabh Misra wrote:

> hmmm .. that presents an interesting problem though.
> when running embedded Tomcat, how do i separate my Tomcat classpath from
> JBoss classpath?
> coz i need to have the beans in my Tomcat classpath and that's the
> reason i had added them to JBOSS_CLASSPATH (note: NOT my system
> classpath though)
> 
> also, why does having the beans in the classpath cause this in the first
> place??

This happens because the deployer uses a classloader to read the 
deployment descriptor.  If there is a deployment descriptor in the 
classpath then the classloader delegation model means that the one in 
the classpath will always be read in preference to the one in your ejb-jar.

I don't know how to deal with your Tomcat problem, I'm sorry.  You can 
probably get away with having only the remote and home interfaces in the 
classpath.  Definitely don't have the ejb-jar in the classpath.

Toby.


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



Re: [JBoss-user] Bug in JBoss2.2 Auto Deploy ??

2001-04-24 Thread Nguyen Thanh Phong

Why you need to have the beans in your Tomcat classpath? The JSP/Servlets
need only the remote/home classes. That's the reason there should be two
jars: one contains everything to deploy EJB, and one for the client (only
remote and home of the beans).

If you use data objects to transfer buck data from client to beans and vice
versa, you also need to add these classes to client jar.

Nguyen Thanh Phong   Tel: 84-8-837 25 06/837 25 07
Saigon Software Development Company (SDC)Fax: 84-8-837 25 11
10 Co Giang Street, Dist I, HCMC Email:
[EMAIL PROTECTED]
Vietnam

- Original Message -
From: Rishabh Misra <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 25, 2001 12:29 PM
Subject: RE: [JBoss-user] Bug in JBoss2.2 Auto Deploy ??


> hmmm .. that presents an interesting problem though.
> when running embedded Tomcat, how do i separate my Tomcat classpath from
> JBoss classpath?
> coz i need to have the beans in my Tomcat classpath and that's the
> reason i had added them to JBOSS_CLASSPATH (note: NOT my system
> classpath though)
>
> also, why does having the beans in the classpath cause this in the first
> place??
>
> rishabh
>
> > hi list,
> >
> > i just migrated to JBoss 2.2.1 from JBoss 2.0 and suddenly things
> > stopped working. i'm getting a javax.naming.NameNotFoundException for
> > the JNDI name of my bean.
> >
> > on closer inspection of the log/server.log file, i noticed the
> > following. when i add 2 bean jar files to my deploy folder. it picks
> up
> > the first bean, but ends up deploying the second. and then picks up
> the
> > second and deploys it again.
>
> Do you have the second bean in the system classpath?  You should
> probably not have anything in the classpath when you start the server.
>
> Toby.
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
> NetZero Platinum
> No Banner Ads and Unlimited Access
> Sign Up Today - Only $9.95 per month!
> http://www.netzero.net
>
> ___
> 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



[JBoss-user] java.io.FilePermission on jboss tmp dir?

2001-04-24 Thread Guy Rouillier

I'm developing on Windows 2000 with JBoss 2.2.1.

As we are getting closer to shipping, I turned on security (more accurately,
I turned off my easy way out of simply granting all permissions to the
world.)  Using just a command-line client (i.e., no Tomcat), I first
received a java.net.SocketPermission which I resolved with the following:

   permission java.net.SocketPermission "192.168.1.100:*",
"connect,resolve";

Is there a better way of allocating this permission rather than opening up
all ports?  I started with just 1099, but then immediately hit the
restriction on the port created for communication.

But my current sticking point is the next error I hit:

Exception caught: java.security.AccessControlException: access denied
(java.io.FilePermission \H:\JBoss-2.2.1\tmp\deploy\Default\DbTester.jar\-
read)

I tried to resolve this with the following:

   permission java.io.FilePermission
"\H:\JBoss-2.2.1\tmp\deploy\Default\DbTester.jar\-", "read";

but got the same error again.  Two questions:

(1) Why doesn't the above permission address the error?
(2) I don't understand the required permission.  Why is it asking for read
permission on a JBoss temp directory for the client?  Notice that it has a
drive letter. This will be completely irrelevant when the client is run from
another computer (which I tried - it does indeed still ask for \H:\.)  I
haven't implemented any method security in the bean or any logon
requirements.

Everything works if I have the blanket all permissions.


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



RE: [JBoss-user] Bug in JBoss2.2 Auto Deploy ??

2001-04-24 Thread Rishabh Misra

hmmm .. that presents an interesting problem though.
when running embedded Tomcat, how do i separate my Tomcat classpath from
JBoss classpath?
coz i need to have the beans in my Tomcat classpath and that's the
reason i had added them to JBOSS_CLASSPATH (note: NOT my system
classpath though)

also, why does having the beans in the classpath cause this in the first
place??

rishabh

> hi list,
>
> i just migrated to JBoss 2.2.1 from JBoss 2.0 and suddenly things
> stopped working. i'm getting a javax.naming.NameNotFoundException for
> the JNDI name of my bean.
>
> on closer inspection of the log/server.log file, i noticed the
> following. when i add 2 bean jar files to my deploy folder. it picks
up
> the first bean, but ends up deploying the second. and then picks up
the
> second and deploys it again.

Do you have the second bean in the system classpath?  You should
probably not have anything in the classpath when you start the server.

Toby.


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


NetZero Platinum
No Banner Ads and Unlimited Access
Sign Up Today - Only $9.95 per month!
http://www.netzero.net

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



Re: [JBoss-user] web server port(s)

2001-04-24 Thread danch

john morrison wrote:

> Hi all.
> I'm using the jboss/tomcat/jakarta combo.  In the
> jboss log, there are [webserver] entries stating that
> port 8083 is the webserver port.  I can point my
> browser to that port and get an empty html page (html
> body /body /html).

That web server is only used for downloading stub classes for RMI clients.


> 
> If I point the browser to 8080 I get the default
> tomcat/jakart page with log messages similar to:
> 
> 2001-04-24 02:20:10 - Ctx( /examples ): IOException
> in: R( /examples + /jsp/index.html + null) Connection
> aborted by peer: socket write error

That's the normal tomcat service: don't know what the socket write error is.


> 
> Also, would there be any issue with changing the
> recognized port to 80?  I want to use tomcat/jakarta
> as my local web server.  Will this cause any problem
> with jboss?  

Shouldn't. Just change it in server.xml for the embedded tomcat. 
Naturally, on a *NIX box, you'd need to run it as root, which might not 
be the greatest idea.


> 
> Thanks
> 
> __
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
> 
> ___
> 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] Configuring Jboss to use Log4j ?

2001-04-24 Thread David Jencks

Hi,
I would rather not use this class, but I don't know how not to.  This is
how all the jboss code I have seen does logging, and I have found it to
work. Is there another way?  It looks to me like the log4j service is
assuming that logging is coming from a org.jboss.logging.Log object through
Logger through mbean notification to log4jservice and finally at long last
to log4j.  Seems awfully inefficient.  Am I mistaken that this is how
logging currently works?  If you do something else are you tied to log4j?
Is there a plan to replace the current logging framework with just plain
log4j without the duplicated functionality?

Thanks
David Jencks

On 2001.04.24 18:38:23 -0400 Scott M Stark wrote:
> Why are you suggesting people use the org.jboss.logging.Log class?
> This should not be used if you have configured log4j.
> 
> - Original Message - 
> From: "David Jencks" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, April 24, 2001 2:33 PM
> Subject: RE: [JBoss-user] Configuring Jboss to use Log4j ?
> 
> 
> > Hi,
> > 
> > Please try code along the lines of what I suggested in my first reply
> > 
> > I repeat
> > the log
> > 
> > org.jboss.logging.Log log;
> > 
> > when you create your object
> > 
> > log = Log.createLog("myname");
> > 
> > 
> > when you want to log something
> > 
> > Log.setLog(log);  //duplicates NDC.push(source) log4j functionality
> > 
> > log.log("my message");
> > 
> > Log.unsetLog(log); //duplicates NDC.pop() log4j  functionality
> > 
> > 
> 
> 
> 
> ___
> 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



[JBoss-user] JBoss on unix with sane permissions

2001-04-24 Thread pohl


Jim Archer wrote:
>
> We attempted to configure the jBoss/Tomcat 2.2.1 bundle 
> so that anywhere jBoss or Tomcat had to write was in a 
> directory below /var while jBoss was  installed below 
> /usr, but no luck. We were not sure is this is possible. 
> We did review the mail list and the docs. As near as we 
> can tell, inthe case  of jBoss, it writes to /log and 
> /tmp. Anywhere else?

I'm trying to do the same with jboss/jetty on my debian systems.
Maybe we could put our heads together to come up with an
acceptable way to administer jboss in a unix environment.  I'd
contribute some docs if we can come up with something.

I started by making a user "jboss" with a /bin/false shell,
thinking that I'd be able to limit the container's write access.
That was ill-concieved, of course, because port 80 is privileged.

[Jetty] java.net.BindException: Permission denied

So then I have to run as root, making sure that most of
the files are

  -r--r--r--   root root 

...except for $JBOSS_HOME/log, $JBOSS_HOME/tmp, and  
$JBOSS_HOME/conf//jboss-auto.jcml  (and possibly 
others we haven't yet discovered?)  that JBoss needs to 
write to -- which should be 

  -rw-r--r--  root root

Is that basically what you had to do Jim?

There are other issues, such as the document root which
one may want writeable by some www-data group, and perhaps
a servlet directory that developers can write to on a
shared developer box.

Another piece of the puzzle is a sysvinit script that
responds to start, stop, and restart -- and does the right
thing.  

I suppose another way to make this less ugly would be to figure
out how to run Tomcat/JBoss in the same process where Tomcat
is using Apache as the request handler through mod_jk.  I 
haven't seen anybody report success with this, but it would
be nice since Apache, unlike a 100% java solution, doesn't 
have problems calling setuid after being started as root, and 
so the servlet/ejb container could run as a regular user.

Is there anybody out there thinking about these issues?
Maybe this is not so difficult as I'm making it out to be?


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



[JBoss-user] Create class in the ejb bean.

2001-04-24 Thread Russell


  Hi all  , 
 
 I am using RedHat6.1 , postgresql7.0.1 , jdk1.3 and jboss2.1.

 It is valid to create class within ejb bean , for example in the
session bean code below :
  
 class Test{
   }

 public void ejbCreate(){}
 public void...{}


 Anybody have any ideas ?? Thanks

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



Re: [JBoss-user] Bug in JBoss2.2 Auto Deploy ??

2001-04-24 Thread Toby Allsopp

Rishabh Misra wrote:

> hi list,
> 
> i just migrated to JBoss 2.2.1 from JBoss 2.0 and suddenly things
> stopped working. i'm getting a javax.naming.NameNotFoundException for
> the JNDI name of my bean.
> 
> on closer inspection of the log/server.log file, i noticed the
> following. when i add 2 bean jar files to my deploy folder. it picks up
> the first bean, but ends up deploying the second. and then picks up the
> second and deploys it again.

Do you have the second bean in the system classpath?  You should 
probably not have anything in the classpath when you start the server.

Toby.


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



Re: [JBoss-user] javax.ejb.FinderException : Find failed Exception

2001-04-24 Thread Russell

Thanks danch. Case is solved.

danch wrote:
> 
> Look in the server log. There should be at least one exception stack
> trace in there as well. The first one should tell you what went wrong.
> 
> -danch
> 
> Russell wrote:
> >
> >   Hi all , I am using RedHat6.1 , jboss2.1 and jdk1.3.
> >   I have created entity bean and deployed to jboss container.
> >
> >   The problems that i have facing is that when i create my own finder
> > method :
> >
> >   findByUser(String loginid) throws RemoteException,FinderException.
> >
> >   When i tried to call the find method , i hit the error below :
> >
> >   javax.ejb.FinderException: Find failed
> > at
> > 
>sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:245)
> > at
> > sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
> > at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
> > at
> > org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invokeHome(Unknown
> > Source)
> > at
> > org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:248)
> > at $Proxy0.findByUsers(Unknown Source)
> > at com.cesma.ecommerce.pmg.user.Untitled1.main(Untitled1.java:23)
> >
> >   What is happening here ??? Anybody have any idea ? Calling
> > findByPrimaryKey method is ok.
> >
> >   Thanks wt.
> >
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-user
> Confidential e-mail for addressee only.  Access to this e-mail by anyone else is 
>unauthorized.
> If you have received this message in error, please notify the sender immediately by 
>reply e-mail
> and destroy the original communication.
> 
> ___
> 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] javax.management.InstanceNotFoundException: J2EE:service=J2eeDepl oyer

2001-04-24 Thread Toby Allsopp

Matt Brinkman wrote:

> Thanks for your reply Toby. Here is my jboss.jcml.

It looks like the problem is that you don't have the J2eeDeployer 
configured in jboss.jcml.  Grab the mbean tag from the default 
jboss.jcml that specifies code="org.jboss.deployment.J2eeDeployer".

Toby.


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



[JBoss-user] Bug in JBoss2.2 Auto Deploy ??

2001-04-24 Thread Rishabh Misra

hi list,

i just migrated to JBoss 2.2.1 from JBoss 2.0 and suddenly things
stopped working. i'm getting a javax.naming.NameNotFoundException for
the JNDI name of my bean.

on closer inspection of the log/server.log file, i noticed the
following. when i add 2 bean jar files to my deploy folder. it picks up
the first bean, but ends up deploying the second. and then picks up the
second and deploys it again.

--8<---
[Auto deploy] Auto deploy of
file:/D:/Software/jboss/dist/deploy/SecurityJB.jar
[J2EE Deployer Default] Deploy J2EE application:
file:/D:/Software/jboss/dist/deploy/SecurityJB.jar
[J2EE Deployer Default] Create application SecurityJB.jar
[J2EE Deployer Default] install module SecurityJB.jar
[Container factory]
Deploying:file:/D:/Software/jboss/dist/tmp/deploy/Default/SecurityJB.jar
[Verifier] Verifying
file:/D:/Software/jboss/dist/tmp/deploy/Default/SecurityJB.jar/ejb1001.jar
[Verifier] ServerSSB::constructor()
[Verifier] ServerSSB: Verified.
[Container factory] Deploying ServerSSB
...
[Container factory] Bound ServerSSB to es/ServerSSB
[Container factory] Deployed application:
file:/D:/Software/jboss/dist/tmp/deploy/Default/SecurityJB.jar
--8<---

although it started by picking up file SecurityJB.jar (which has a bean
called SecuritySSB), the Verifier picks up the second bean ServerSSB
and then the Container factory goes on to deploy ServerSSB, and finally
binds it to es/ServerSSB (now all this should be SecuritySSB!!!) while
claiming that it deployed SecurityJB.jar !!

--8<---
[Auto deploy] Auto deploy of
file:/D:/Software/jboss/dist/deploy/ServerJB.jar
[J2EE Deployer Default] Deploy J2EE application:
file:/D:/Software/jboss/dist/deploy/ServerJB.jar
[J2EE Deployer Default] Create application ServerJB.jar
[J2EE Deployer Default] install module ServerJB.jar
[Container factory]
Deploying:file:/D:/Software/jboss/dist/tmp/deploy/Default/ServerJB.jar
[Verifier] Verifying
file:/D:/Software/jboss/dist/tmp/deploy/Default/ServerJB.jar/ejb1002.jar
[Verifier] ServerSSB::constructor()
[Verifier] ServerSSB: Verified.
...
[Container factory] Bound ServerSSB to es/ServerSSB
[Container factory] Deployed application:
file:/D:/Software/jboss/dist/tmp/deploy/Default/ServerJB.jar
--8<---

it then picks up the second bean ServerJB.jar and this time correctly
deploys ServerSSB (again!!) and then binds it to es/ServerSSB.

the methods that it maps in the first case also belong to the second
bean!

the files ejb-jar.xml and jboss.xml are absolutely correct ... the same
files used to run just fine with JBoss 2.0

does anybody have a clue what might be happening here??

thanx ... rishabh


__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

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



[JBoss-user] web server port(s)

2001-04-24 Thread john morrison

Hi all.
I'm using the jboss/tomcat/jakarta combo.  In the
jboss log, there are [webserver] entries stating that
port 8083 is the webserver port.  I can point my
browser to that port and get an empty html page (html
body /body /html).

If I point the browser to 8080 I get the default
tomcat/jakart page with log messages similar to:

2001-04-24 02:20:10 - Ctx( /examples ): IOException
in: R( /examples + /jsp/index.html + null) Connection
aborted by peer: socket write error

Also, would there be any issue with changing the
recognized port to 80?  I want to use tomcat/jakarta
as my local web server.  Will this cause any problem
with jboss?  

Thanks

__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

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



[JBoss-user] javax.sql.SQLException, Unexpected Token??

2001-04-24 Thread poorna lakki


Hi,
I get the following message when i try to run a client
based on a simple CMP bean running on the JBoss
server.

[J2EE Deployer Default] J2EE application:
file:/D:/java/JBoss-2.2.1/deploy/market.jar is
deployed.
[MarketBean] java.rmi.ServerException: Store failed;
nested exception is:
[MarketBean]java.sql.SQLException: Unexpected
token:  in statement [UPDATE MarketBean SET
name='attws',id=1 WHERE ]
[MarketBean] java.sql.SQLException: Unexpected token: 
in statement [UPDATE MarketBean SET name='test',id=1
WHERE ]
[MarketBean]at
org.hsql.Trace.getError(Trace.java:124)
[MarketBean]at
org.hsql.Result.(Result.java:70)
[MarketBean]at
org.hsql.jdbcConnection.executeHSQL(jdbcConnection.java:644)
[MarketBean]at
org.hsql.jdbcConnection.execute(jdbcConnection.java:540)
[MarketBean]at
org.hsql.jdbcStatement.fetchResult(jdbcStatement.java:499)
[MarketBean]at
org.hsql.jdbcStatement.executeUpdate(jdbcStatement.java:52)
[MarketBean]at
org.hsql.jdbcPreparedStatement.executeUpdate(jdbcPreparedStatement.java:114)
.
.
.
.
.

I am using the "DefaultDS" datasource, JBoss-2.2.1
The jaws.xml file is as below




java:/DefaultDS
Hypersonic SQL
false

   
 
   MarketBean
   MarketBean
   true
   
  id
  id
   

   
  name
  name
   
 
   
 

The MarketBean uses a MarketPK which has ID and name
as its properties.

When i try to run the Client instead of inserting the
values into the database why is JBoss doing an UPDATE.
I am sure i am missing something in the configuration
files

Anyhelp will be much appreciated. 
Thanks,-Poorna

__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

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



[JBoss-user] RE: jsp server error

2001-04-24 Thread john morrison

Thank you to all who replied.  I added tools.jar to
the classpath and jsp's now work.

Thanks

jbm

__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

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



Re: [JBoss-user] missing shutdown hook?

2001-04-24 Thread pohl


I'm going to reply to my own post here because I've discovered
some more about it.  This problem seems only to happen on
my Debian/PPC machine and not on my Debian/x86 machine.  I'm
guessing that the culprit is the Blackdown 1.3.0-FCS runtime,
which isn't very well supported on PPC.  

> I'm wondering if there is a missing shutdown hook in the
> JbossJetty distribution.   
> 
> I start using the run_with_jetty.sh script, play with
> the demos, and ^C from the console to shut it down.  It
> appears to shut down correctly, but the next time that
> I start it up, I get a java.net.BindException from
> Hypersonic:
> 
> [Hypersonic] Starting
> [Hypersonic] Server.run/init: java.net.BindException: Address already in use
> [Hypersonic] java.net.BindException: Address already in use
> [Hypersonic]  at java.net.PlainSocketImpl.socketBind(Native Method)
> [Hypersonic]  at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:397)
> [Hypersonic]  at java.net.ServerSocket.(ServerSocket.java:170)
> [Hypersonic]  at java.net.ServerSocket.(ServerSocket.java:82)
> [Hypersonic]  at org.hsql.Server.run(Server.java:65)
> [Hypersonic]  at org.hsql.Server.main(Server.java:33)
> [Hypersonic]  at org.jboss.jdbc.HypersonicDatabase$1.run(HypersonicDatabase.j
> ava:135)
> [Hypersonic]  at java.lang.Thread.run(Thread.java:484)
> 
> 
> Sure enough, when I grep for java processes on my machine, there's
> one that's still alive after the shutdown:
> 
> obelisk:/usr/local/jboss/jboss/bin# ps aux | grep ava
> root  3912  0.0  6.3 167832 16344 pts/7  S11:17   0:00 /usr/local/j2s
> dk1.3/bin/ppc/native_threads/java -Djavax.xml.parsers.DocumentBuilderFactory=
> org.apache.crimson.jaxp.DocumentBuilderFactoryImpl -Djavax.xml.parsers.SAXPar
> serFactory=org.apache.crimson.jaxp.SAXParserFactoryImpl -classpath :/lib/tool
> s.jar:run.jar:../lib/crimson.jar org.jboss.Main jetty
> 
> 
> [Info] Java version: 1.3.0,Blackdown Java-Linux Team
> [Info] Java VM: Classic VM Blackdown-1.3.0-FCS,Blackdown Java-Linux Team
> [Info] System: Linux 2.2.17,ppc


[EMAIL PROTECTED]

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



Re: [JBoss-user] Configuring Jboss to use Log4j ?

2001-04-24 Thread Scott M Stark

Why are you suggesting people use the org.jboss.logging.Log class?
This should not be used if you have configured log4j.

- Original Message - 
From: "David Jencks" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 24, 2001 2:33 PM
Subject: RE: [JBoss-user] Configuring Jboss to use Log4j ?


> Hi,
> 
> Please try code along the lines of what I suggested in my first reply
> 
> I repeat
> the log
> 
> org.jboss.logging.Log log;
> 
> when you create your object
> 
> log = Log.createLog("myname");
> 
> 
> when you want to log something
> 
> Log.setLog(log);  //duplicates NDC.push(source) log4j functionality
> 
> log.log("my message");
> 
> Log.unsetLog(log); //duplicates NDC.pop() log4j  functionality
> 
> 



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



Re: [JBoss-user] EJB 2.0 support

2001-04-24 Thread Jim Archer

I just love it when people ask this, since it gives me a chance to plug my 
favorite jBoss addin, MVC Soft Persistence API!

Steve, here is my standard speel:

There is a persistence manager for use with jBoss that implements almost 
all of the features of EJB 2.0 persistence, including the sophisticated 
relationships between EBs and dependents (it implements dependents as well).

Its $28.00 and includes a manual in PDF form that does an excellant job 
explaining the persistence features of EJB 2.0 and use of the product.

You can check it out at http://www.mvcsoft.com

As has been pointed out, EJB 2.0 is not a final spec yet and the final spec 
may look different that the current proposed final draft. This product 
implements the EJB 2.0 PFD spec.

Good luck!

Jim


--On Tuesday, April 24, 2001 2:22 AM -0600 Tim McCune 
<[EMAIL PROTECTED]> wrote:

>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> First of all, I just want to tell the development team how impressed
> I am with JBoss.  Thanks for an awesome product.  I'm new to the
> list, and I didn't see any mention of this in the archives, but I saw
> that there are a couple EJB 2.0 features in the current JBoss
> implementation, and I wondered if there was a list of other 2.0
> features that people are working on and/or what priority they're
> being given.  Thanks.
>
> Tim McCune
> Software Architect, ChannelPoint
> "If you can't spot the sucker in the first half hour at the table,
> then you ARE the sucker." -- Mike McDermott, Rounders
>
>
> -BEGIN PGP SIGNATURE-
> Version: PGPfreeware 6.5.3 for non-commercial use 
>
> iQA/AwUBOuU3t9UPOr8a7vy5EQKBhgCguqF2qJ/h5hvg8COwG/17b4IABsIAn0pq
> vvHIXQiwwVn53i2KDTC9iaZI
> =YTYp
> -END PGP SIGNATURE-




I shall be telling this with a sigh
Somewhere ages and ages hence:
Two roads diverged in a wood, and I -
I took the one less traveled by,
And that has made all the difference.

- Robert Frost, 1916


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



[JBoss-user] External ejb-ref to a different JBoss instance

2001-04-24 Thread Anatoly Akkerman


Hi,

I've tried making one bean running in one instance of Jboss call another
bean in another instance of JBoss running on a different machine.

I've setup jboss.xml to point from java:/comp/env/ejb/BeanToCall to
jnp://xxx.xxx.xxx.xxx/tester/BeanToCall and it shows up properly in
JNDIView as a LinkRef. The second bean that is this BeanToCall is also
properly deployed and can be seen in the second instance of JBoss in the
Global Context under tester/BeanToCall.

But when I actually try to call that other bean, I get
NameNotFoundException: BeanToCall not bound

Here is a relevant portion of the call stack trace. I am using the latest
snapshot of JBoss (2.3 BETA).

[TesterSessionBean] javax.naming.NameNotFoundException: BeanToCall not
bound
[TesterSessionBean] at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown
Source)
[TesterSessionBean] at
sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
[TesterSessionBean] at sun.rmi.server.UnicastRef.invoke(Unknown
Source)
[TesterSessionBean] at org.jnp.server.NamingServer_Stub.lookup(Unknown
Source)
[TesterSessionBean] at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:298)
[TesterSessionBean] at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:282)
[TesterSessionBean] at javax.naming.InitialContext.lookup(Unknown
Source)
[TesterSessionBean] at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:370)
[TesterSessionBean] at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:406)
[TesterSessionBean] at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:282)
[TesterSessionBean] at javax.naming.InitialContext.lookup(Unknown
Source)
[TesterSessionBean] at
tester.ejb.TesterSessionBean.callBean(TesterSessionBean.java:19)

Any ideas or I should just debug the JNP module?

-
Anatoly Akkerman
Computer Science Dept.
Courant Institute of Mathematical Sciences, NYU
719 Broadway, #715  Tel: 212 998-3525
New York, NY 10003  Fax: 212 995-4123
-


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



Re: [JBoss-user] Can I move directories that need to be written to?

2001-04-24 Thread Jim Archer

We looked at the docs and the config files but didn't see a clear way to 
split it, so we installed the entire thing under /var and started to give 
it access to stuff until it stopped failing.

But now we would like to do it properly. How is it that we control where 
jBoss looks for these directories and files?

Thanks!

Jim

--On Monday, April 23, 2001 8:16 PM -0700 Scott M Stark 
<[EMAIL PROTECTED]> wrote:

> Its mostly the default configuration setup that expects the standard
> JBoss distribution structure. I'm not aware of any reliance on this
> structure by JBoss code as most resources are located via the classpath.
> What was failing when you tried to split the distribution?
>
> - Original Message -
> From: "Jim Archer" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, April 23, 2001 12:07 AM
> Subject: [JBoss-user] Can I move directories that need to be written to?
>
>
>>
>> Hi All...
>>
>> We have been working to install jBoss 2.2.1 on a Debian/Linux system. In
>> a  Debian system, app servers with no package management are best
>> installed  under usr/local/share.
>>
>> For security reasons, applications running from there should not be able
>> to  write and data in that tree. This is to prevent various exploits
>> from  changing the program code and doing other things.
>>
>> Typically, data from apps installed under usr/local/share is written
>> under  /var but binary executables are not.
>>
>> We attempted to configure the jBoss/Tomcat 2.2.1 bundle so that anywhere
>> jBoss or Tomcat had to write was in a directory below /var while jBoss
>> was  installed below /usr, but no luck. We were not sure is this is
>> possible. We  did review the mail list and the docs. As near as we can
>> tell, inthe case  of jBoss, it writes to /log and /tmp. Anywhere else?
>>
>> Any hints?
>>
>> Thanks!
>>
>> Jim
>>
>> 
>> I shall be telling this with a sigh
>> Somewhere ages and ages hence:
>> Two roads diverged in a wood, and I -
>> I took the one less traveled by,
>> And that has made all the difference.
>>
>> - Robert Frost, 1916
>>
>>
>> ___
>> 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




I shall be telling this with a sigh
Somewhere ages and ages hence:
Two roads diverged in a wood, and I -
I took the one less traveled by,
And that has made all the difference.

- Robert Frost, 1916


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



[JBoss-user] error in binary install

2001-04-24 Thread Joseph Barefoot

The lastest zip binary JBoss w/ embedded Tomcat, listed as "JBoss-2.2.1 +
Tomcat-3.2.1 (9671204) [APR-19-2001]"  on the web site, cannot be started
correctly "as-is".

The "run.jar" manifest fails to include "crimson.jar" in its class path
property--this causes an immediate CNF exception.  Also, even after this is
fixed, the start script "run_with_tomcat.sh" will not work correctly in JVM
1.2.2, because the "-server" option used within it is only available in 1.3.


If you've already noticed these problems, please ignore this.


Joe Barefoot
Software Engineer
Cacheon
415-777-2555 ext. 1124
[EMAIL PROTECTED]
www.cacheon.com

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


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



Re: [JBoss-user] Can I move directories that need to be writtento?

2001-04-24 Thread Jim Archer

Thanks Juha... We discovered that as soon as we modified jboss.jcml... 
...

Jim


--On Monday, April 23, 2001 11:49 PM +0200 Juha Lindfors <[EMAIL PROTECTED]> 
wrote:

>
> Hi,
>
> it also writes to /conf//jboss-auto.jcml
>
> -- Juha
>
> At 03:07 23.4.2001 -0400, you wrote:
>>
>> Hi All...
>>
>> We have been working to install jBoss 2.2.1 on a Debian/Linux system. In
>> a  Debian system, app servers with no package management are best
>> installed  under usr/local/share.
>>
>> For security reasons, applications running from there should not be able
>> to  write and data in that tree. This is to prevent various exploits
>> from  changing the program code and doing other things.
>>
>> Typically, data from apps installed under usr/local/share is written
>> under  /var but binary executables are not.
>>
>> We attempted to configure the jBoss/Tomcat 2.2.1 bundle so that anywhere
>> jBoss or Tomcat had to write was in a directory below /var while jBoss
>> was  installed below /usr, but no luck. We were not sure is this is
>> possible. We  did review the mail list and the docs. As near as we can
>> tell, inthe case  of jBoss, it writes to /log and /tmp. Anywhere else?
>>
>> Any hints?
>>
>> Thanks!
>>
>> Jim
>>
>> 
>> I shall be telling this with a sigh
>> Somewhere ages and ages hence:
>> Two roads diverged in a wood, and I -
>> I took the one less traveled by,
>> And that has made all the difference.
>>
>> - Robert Frost, 1916
>>
>>
>> ___
>> 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




I shall be telling this with a sigh
Somewhere ages and ages hence:
Two roads diverged in a wood, and I -
I took the one less traveled by,
And that has made all the difference.

- Robert Frost, 1916


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



Re: [JBoss-user] Jetty vs. Tomcat

2001-04-24 Thread Jim Archer

Sounds great, Jules! I have been developing with Tomcat buy my hope was to 
deploy in production with Jetty, since its much slimmer. I'll try it as 
soon as you release it and thanks!

Jim


--On Tuesday, April 24, 2001 9:58 AM +0100 Julian Gosnell 
<[EMAIL PROTECTED]> wrote:

> This sounds like the ENC stuff.
>
> I am putting it into JBossJetty at the moment, expect
> it in the next release along with a complete
> integration of all Jetty JMX subcomponents.
>
> ETA - two or three weeks...
>
> Jules
>
> --- Jim Archer <[EMAIL PROTECTED]> wrote: > Actually, I
> tried Jetty (as part of the jBoss 2.2.1
>> bundle) just the other
>> day. It installed fine but when I deployed my EAR I
>> got a bunch of errors
>> complaining about JNDI.
>>
>> When I ran my app, I got a bunch of maning
>> exceptions. I have not had time
>> to look into this further, but it did make me wonder
>> if Jetty is fully
>> intergrated, like Tomcat is. I would have expected
>> the very same EAR to run
>> just the same under either Jetty or Tomcat...
>>
>> Jim
>>
>> --On Friday, April 20, 2001 1:50 AM -0500 danch
>> <[EMAIL PROTECTED]> wrote:
>>
>> > Alternatively, Tomcat is the reference
>> implementation. Jetty is
>> > lightweight and fast.
>> >
>> > The only other thing is that (judging from traffic
>> analysis of these
>> > mailing lists) Integration of Tomcat with JBoss is
>> better tested. (Jetty
>> > users, feel free to argue)
>> >
>> > -danch
>> >
>> > Alvin Yap wrote:
>> >
>> >> Tomcat is more robust and extensible.  Jetty is
>> lightweight and fast.
>> >>
>> >> Alvin
>> >>
>> >> Jason Dillon wrote:
>> >>
>> >>
>> >>> Does anyone have any opinions as to which
>> contain is more robust,
>> >>> easier to use and such?
>> >>>
>> >>> --jason
>> >>>
>> >>> ___
>> >>> 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
>> >
>> >
>> >
>> > ___
>> > JBoss-user mailing list
>> > [EMAIL PROTECTED]
>> >
>>
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>>
>>
>>
>> 
>> I shall be telling this with a sigh
>> Somewhere ages and ages hence:
>> Two roads diverged in a wood, and I -
>> I took the one less traveled by,
>> And that has made all the difference.
>>
>> - Robert Frost, 1916
>>
>>
>> ___
>> JBoss-user mailing list
>> [EMAIL PROTECTED]
>>
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
> 
> Do You Yahoo!?
> Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
> or your free @yahoo.ie address at http://mail.yahoo.ie
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user




I shall be telling this with a sigh
Somewhere ages and ages hence:
Two roads diverged in a wood, and I -
I took the one less traveled by,
And that has made all the difference.

- Robert Frost, 1916


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



RE: [JBoss-user] Configuring Jboss to use Log4j ?

2001-04-24 Thread David Jencks

Hi,

Please try code along the lines of what I suggested in my first reply

I repeat
the log

org.jboss.logging.Log log;

when you create your object

log = Log.createLog("myname");


when you want to log something

Log.setLog(log);  //duplicates NDC.push(source) log4j functionality

log.log("my message");

Log.unsetLog(log); //duplicates NDC.pop() log4j  functionality



Don't create your own log4j service, use the one jboss has set up already.
On 2001.04.24 13:14:43 -0400 "Doyle, Steven" wrote:
> ok, I have got rid of the duplicates, but everytime I try log something
> myself I get the following error
> 
> [] Started Log4jService,
> config=file:/C:/jboss-2.2/conf/default/log4j.properties
>  
> [flightManager] No appenders could be found for category
> (com.wa.beans.flightManagerBean).
> [flightManager] Please initialize the log4j system properly.
> 
> 
> here is my code
> 
> logService=new Log4jService();
> logService.start();
> 
> cat = Category.getInstance(getClass().getName());
> 
> cat.debug("Test Log");
> 
> 
> any ideas ?
> 
> 
> cheers
> 
> Steve
> 
> -Original Message-
> From: Scott M Stark [mailto:[EMAIL PROTECTED]]
> Sent: 24 April 2001 17:41
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Configuring Jboss to use Log4j ?
> 
> 
> No! Don't use jboss.logging if you have configured log4j as the log msg
> rendering mechanism by using the Log4jService. Once you have done
> this you can forget that JBoss has a legacy logging mechanism. At some
> point the jboss.logging package will not be used by any code and log4j
> will be the logging framework.
> 
> - Original Message - 
> From: "Doyle, Steven" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, April 24, 2001 8:32 AM
> Subject: RE: [JBoss-user] Configuring Jboss to use Log4j ?
> 
> 
> > ok, so basically I shouldn't try and us log4j, but instead use the
> > jboss.logging.
> > 
> > pity,
> > 
> > thanks anyway
> > 
> > Steve
> > 
> > -Original Message-
> > From: David Jencks [mailto:[EMAIL PROTECTED]]
> > Sent: 24 April 2001 15:33
> > To: [EMAIL PROTECTED]
> > Subject: Re: [JBoss-user] Configuring Jboss to use Log4j ?
> > 
> > 
> > Hi, the current log4j connection with jboss ignores almost all good
> > features of log4j and duplicates much of its functionality.  That being
> > said, using the non-log4j method of getting a log ends up with the
> logging
> > going through log4j.  I hope I haven't left anything important out
> here, I
> > haven't tried to log from within a bean.  A recent 2.3 patch lets you
> treat
> > log names ( the stuff that shows up in []) as log4j categories.
> > 
> 
> 
> 
> ___
> 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
> 


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



[JBoss-user] just curious: jboss/java/setiathome contention

2001-04-24 Thread toby cabot

Folks,

I had been fooling around with a small benchmark of my code (remote
client calls session bean calls entity bean, a little db i/o) and trying
to figure out why it was so darn slow (100 xactions in 70 seconds).  I
stripped the code down to a simple round trip between the jboss server
and a client in another VM with little improvement but then killed
setiathome (which I had running "nice" in the background) and the
full-blown code (after I put back the database I/O) did 100 xactions in
15-16 seconds.

This is debian linux (potato), sun jdk 1.3.0, jboss 2.2 on a 1.2G athlon
with 256M memory.  Everything's swimming, no swapping.

The solution is easy enough ("doctor it hurts when I do this" "don't do
that"), and therefore not terribly critical but I'm curious if anyone
knows why setiathome and java should have such a cat fight.  I can't
remember any other application running any slower with seti in the
background.

TIA,
Toby Cabot



___
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



SV: [JBoss-user] network adapter can not establish connection error!

2001-04-24 Thread Lennart Petersson

Well your jboss.jcml looks ok as far as Oracle goes. Please check that you actually 
can connect to that url with that userid/pwd with a tool like jbcstest or something. 
The BindException has to do with the fact that you have some other appl using same 
port as jboss (8083?). Or maybe you started jboss twice?
/Lennart

- Original Message - 
From: Qiao, Wei <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 24, 2001 5:58 PM
Subject: RE: [JBoss-user] network adapter can not establish connection error!


> actually it's even worse.  There is error before that:
CLIP...
> [Webserver] java.net.BindException: Address already in use
> [Webserver] at java.net.PlainSocketImpl.socketBind(Native Method)
> [Webserver] at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:3
> 
> 
> 
> 
> My jboss.jcml is following:
CLIP...
>  name="DefaultDomain:service=XADa
> taSource,name=OracleDB">
> OracleDB
>  name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADataSo
> urceImpl
> 
>  name="URL">jdbc:oracle:thin:@mollie.int.westgroup.com:1552:orad25 tribute>
> 6
> u61479
> 10
> u61479
> true
> true
> true
> true
> 6
> 6
> true
> true
> 1.0
> 0
> 
>   



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



RE: [JBoss-user] custom table initialization with cmp

2001-04-24 Thread Christian Thrum

thanks for your answer. is it possible to execute this (script)
automatically? is there any table creation hook ?

christian

-Original Message-
From: danch
To: [EMAIL PROTECTED]
Sent: 4/24/01 8:26 PM
Subject: Re: [JBoss-user] custom table initialization with cmp

turn off table creation (in jaws.xml for your bean) and execute a SQL
script that creates what you want. You can also use jaws.xml to map EJB
field names and types to SQL column names and types. The online manual
does talk about the mappings a little bit.

-danch

Christian Thrum wrote:
> 
> hello all,
> 
> i need to customize the table creation for a cmp entity bean because i
want
> to create additional indexes etc.
> is this possible with jaws?
> 
> thanks,
> 
> christian
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
Confidential e-mail for addressee only.  Access to this e-mail by anyone
else is unauthorized.
If you have received this message in error, please notify the sender
immediately by reply e-mail 
and destroy the original communication.


___
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] 2.0 to 2.2.1 problems

2001-04-24 Thread Sebastien Alborini

Ship, Howard wrote:

> 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

standardjboss.xml has changed quite a lot between 2.0 and 2.2.1.  (new
container invoker, interceptors can now be configured in this file).  

It seems you have to patch your 2.0 version.

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

Since there are no interceptors configured, this is not surprising.

HTH,
Sebastien

___
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] Configuring Jboss to use Log4j ?

2001-04-24 Thread Scott M Stark

Why is your code creating a Log4jService and calling start on it? This is done
automatically when you have this entry in jboss.conf:




If I create a simple mbean that does the logging your code fragment does:
public class TestLog4j implements TestLog4jMBean
{
public void start() throws Exception
{
Category cat = Category.getInstance("com.wa.beans.flightManagerBean");
cat.debug("Test Log using category=com.wa.beans.flightManagerBean");
}
}

and configure the Log4jService and remove the ConsoleLogging & FileLogging entries
I see this in the server.log file on startup of the JBoss server:
[] Test Log using category=com.wa.beans.flightManagerBean


- Original Message - 
From: "Doyle, Steven" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 24, 2001 10:14 AM
Subject: RE: [JBoss-user] Configuring Jboss to use Log4j ?


> ok, I have got rid of the duplicates, but everytime I try log something
> myself I get the following error
> 
> [] Started Log4jService,
> config=file:/C:/jboss-2.2/conf/default/log4j.properties
>  
> [flightManager] No appenders could be found for category
> (com.wa.beans.flightManagerBean).
> [flightManager] Please initialize the log4j system properly.
> 
> 
> here is my code
> 
> logService=new Log4jService();
> logService.start();
> 
> cat = Category.getInstance(getClass().getName());
> 
> cat.debug("Test Log");
> 
> 
> any ideas ?
> 
> 
> cheers
> 
> Steve
> 
> -Original Message-
> From: Scott M Stark [mailto:[EMAIL PROTECTED]]
> Sent: 24 April 2001 17:41
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Configuring Jboss to use Log4j ?
> 
> 
> No! Don't use jboss.logging if you have configured log4j as the log msg
> rendering mechanism by using the Log4jService. Once you have done
> this you can forget that JBoss has a legacy logging mechanism. At some
> point the jboss.logging package will not be used by any code and log4j
> will be the logging framework.
> 
> - Original Message - 
> From: "Doyle, Steven" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, April 24, 2001 8:32 AM
> Subject: RE: [JBoss-user] Configuring Jboss to use Log4j ?
> 
> 
> > ok, so basically I shouldn't try and us log4j, but instead use the
> > jboss.logging.
> > 
> > pity,
> > 
> > thanks anyway
> > 
> > Steve
> > 
> > -Original Message-
> > From: David Jencks [mailto:[EMAIL PROTECTED]]
> > Sent: 24 April 2001 15:33
> > To: [EMAIL PROTECTED]
> > Subject: Re: [JBoss-user] Configuring Jboss to use Log4j ?
> > 
> > 
> > Hi, the current log4j connection with jboss ignores almost all good
> > features of log4j and duplicates much of its functionality.  That being
> > said, using the non-log4j method of getting a log ends up with the logging
> > going through log4j.  I hope I haven't left anything important out here, I
> > haven't tried to log from within a bean.  A recent 2.3 patch lets you
> treat
> > log names ( the stuff that shows up in []) as log4j categories.
> > 
> 
> 
> 
> ___
> 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
> 


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



Re: [JBoss-user] custom table initialization with cmp

2001-04-24 Thread danch

turn off table creation (in jaws.xml for your bean) and execute a SQL
script that creates what you want. You can also use jaws.xml to map EJB
field names and types to SQL column names and types. The online manual
does talk about the mappings a little bit.

-danch

Christian Thrum wrote:
> 
> hello all,
> 
> i need to customize the table creation for a cmp entity bean because i want
> to create additional indexes etc.
> is this possible with jaws?
> 
> thanks,
> 
> christian
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
Confidential e-mail for addressee only.  Access to this e-mail by anyone else is 
unauthorized.
If you have received this message in error, please notify the sender immediately by 
reply e-mail 
and destroy the original communication.


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



Re: [JBoss-user] Are there DTDs available for the various EJB/JBOSS config files?

2001-04-24 Thread danch

the jboss.dtd should be fairly up to date. I'll commit the jaws.dtd
later tonight (around 11:00 PM GMT-5)

these can be found in the jboss CVS module under src/resources
somewhere.
-danch

Nguyen Thanh Phong wrote:
> 
> Are DTDs for EJB/JBOSS config files updated?
> 
> Nguyen Thanh Phong   Tel: 84-8-837 25 06/837 25 07
> Saigon Software Development Company (SDC)Fax: 84-8-837 25 11
> 10 Co Giang Street, Dist I, HCMC Email:
> [EMAIL PROTECTED]
> Vietnam
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
Confidential e-mail for addressee only.  Access to this e-mail by anyone else is 
unauthorized.
If you have received this message in error, please notify the sender immediately by 
reply e-mail 
and destroy the original communication.


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



Re: [JBoss-user] javax.ejb.FinderException : Find failed Exception

2001-04-24 Thread danch

Look in the server log. There should be at least one exception stack
trace in there as well. The first one should tell you what went wrong.

-danch

Russell wrote:
> 
>   Hi all , I am using RedHat6.1 , jboss2.1 and jdk1.3.
>   I have created entity bean and deployed to jboss container.
> 
>   The problems that i have facing is that when i create my own finder
> method :
> 
>   findByUser(String loginid) throws RemoteException,FinderException.
> 
>   When i tried to call the find method , i hit the error below :
> 
>   javax.ejb.FinderException: Find failed
> at
> 
>sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:245)
> at
> sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
> at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
> at
> org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invokeHome(Unknown
> Source)
> at
> org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:248)
> at $Proxy0.findByUsers(Unknown Source)
> at com.cesma.ecommerce.pmg.user.Untitled1.main(Untitled1.java:23)
> 
>   What is happening here ??? Anybody have any idea ? Calling
> findByPrimaryKey method is ok.
> 
>   Thanks wt.
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
Confidential e-mail for addressee only.  Access to this e-mail by anyone else is 
unauthorized.
If you have received this message in error, please notify the sender immediately by 
reply e-mail 
and destroy the original communication.


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



Re: [JBoss-user] How can I use a properties file?

2001-04-24 Thread danch

you can call getResourceAsStream on any Class object:

MyBeanImpl.class.getResourceAsStream("/some/path/to/my.properties");

-danch

Toby Allsopp wrote:
> 
> Jim Archer wrote:
> 
> > Hi Toby...
> >
> > --On Friday, April 20, 2001 2:53 PM +1200 Toby Allsopp
> > <[EMAIL PROTECTED]> wrote:
> >
> >> You can put your properties file in the same place as your classes and
> >> then access it using getClass().getClassLoader().getResourceAsStream().
> >> You could pass the resulting InputStrean to Properties.load.
> >
> >
> > Thats a great trick! Can I do this from a SLSB and if so, would that be
> > portable?
> 
> I can't see why not, although I think there is a restriction on EJBs
> obtaining ClassLoaders.  If you can figure out a way to do it that
> doesn't explicitly deal with ClassLoaders then it should be portable.
> 
> Toby.
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
Confidential e-mail for addressee only.  Access to this e-mail by anyone else is 
unauthorized.
If you have received this message in error, please notify the sender immediately by 
reply e-mail 
and destroy the original communication.


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



Re: [JBoss-user] jsp server error

2001-04-24 Thread danch

classpath, mind you. IIRC, I just copied tools.jar to Tomcat's lib
directory, where it loads it automatically.

Per Jonsson wrote:
> 
> There should be a path to jdk1.3/libs/tools.jar too if I'm not totaly wrong...
> 
> Regards Per Jonsson
> 
> - Original Message -
> From: "Rene Rolander Nygaard" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, April 24, 2001 8:18 AM
> Subject: RE: [JBoss-user] jsp server error
> 
> > Did you include the path to jdk1.3 in your path ?
> > "path=;c:\apps\java\jdk1.3\bin;..." <- remember the bin sub-catalog.
> >
> >  - Rene Rolander Nygaard
> >
> > > -Original Message-
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED]]On Behalf Of john
> > > morrison
> > > Sent: 23. april 2001 23:06
> > > To: jbosslist
> > > Subject: [JBoss-user] jsp server error
> > >
> > >
> > > I must appologize up front for this question.  I know
> > > I've done something wrong, I just can't figure out
> > > what.
> > >
> > > I'm running W2k Pro SP1, Sun jdk 1.3.02 and the
> > > preconfigured jboss-2.2/jakarta-tomcat-3.2.1.
> > >
> > > All seems to work well except for jsps.  I get a
> > > server error and a java error of
> > > java.lang.NoClassDefFoundError: sun/tools/javac/Main
> > >
> > > What did I do wrong or fail to set up?
> > >
> > > Also, is it possible to change the default web server
> > > address from 8080 to 80? and how.  I'm proficient with
> > > Microsoft IIS, but am lost in configuring tomcat.
> > >
> > > Thanks
> > > John Morrison
> > >
> > > __
> > > Do You Yahoo!?
> > > Yahoo! Auctions - buy the things you want at great prices
> > > http://auctions.yahoo.com/
> > >
> > > ___
> > > 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
Confidential e-mail for addressee only.  Access to this e-mail by anyone else is 
unauthorized.
If you have received this message in error, please notify the sender immediately by 
reply e-mail 
and destroy the original communication.


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



Re: [JBoss-user] Accesing JBoss through a firewall

2001-04-24 Thread Scott M Stark

Probably because no one has requested it. Do so on the sourceforge site.

- Original Message -
From: "Jose Ramon Diaz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 24, 2001 9:03 AM
Subject: Re: [JBoss-user] Accesing JBoss through a firewall


> Hello,
>
> I already have found the solution for our problem, it´s here:
>
>
> http://www.mail-archive.com/jboss-user@list.working-dogs.com/msg09680.html
>
> --
> Nameserver RMI: default 0: anonymous, cannot be configured in the
> current distribution.
>   You need to modify file jnp/src/main/org/jnp/server/main.java:
>
>   ...
>   setPort(Integer.getInteger("jnp.port",getPort()).intValue());
>   vv
>   setRmiPort(Integer.getInteger("jnp.rmiPort",getRmiPort()).intValue());
>
>   ^^
>   setLogging(Boolean.getBoolean("jnp.log"));
>   ...
>
>   and recompile the JNP server. After that you enter an additional
>   parameter in jnp.properties: jnp.rmiPort=.
>
> --
>
> Why is not this property defined in the release?
> Thanks Wolfgang
>
> Jose R.
>



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



Re: [JBoss-user] ejbdoclet generated CMP beans passivate/activate and data holder issue

2001-04-24 Thread Andrius Juozapaitis

: I was seeing this problem using EJBDoclet and JBoss a few weeks ago. I
: saw the same problem in the code for 0.95. However, i found it was fixed
: in the CVS version of EJBDoclet. You should try that.
: Maybe we can get a new numbered release?

good point, I haven't updated my version for quite a while. this was a
nastynastynasty one, I started up suspecting my business logic, then jboss,
then oracle, and only then I started looking into what ejbdoclet was really
generating ;)

regards,
--andrius




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



RE: [JBoss-user] Configuring Jboss to use Log4j ?

2001-04-24 Thread Doyle, Steven

ok, I have got rid of the duplicates, but everytime I try log something
myself I get the following error

[] Started Log4jService,
config=file:/C:/jboss-2.2/conf/default/log4j.properties
 
[flightManager] No appenders could be found for category
(com.wa.beans.flightManagerBean).
[flightManager] Please initialize the log4j system properly.


here is my code

logService=new Log4jService();
logService.start();

cat = Category.getInstance(getClass().getName());

cat.debug("Test Log");


any ideas ?


cheers

Steve

-Original Message-
From: Scott M Stark [mailto:[EMAIL PROTECTED]]
Sent: 24 April 2001 17:41
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Configuring Jboss to use Log4j ?


No! Don't use jboss.logging if you have configured log4j as the log msg
rendering mechanism by using the Log4jService. Once you have done
this you can forget that JBoss has a legacy logging mechanism. At some
point the jboss.logging package will not be used by any code and log4j
will be the logging framework.

- Original Message - 
From: "Doyle, Steven" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 24, 2001 8:32 AM
Subject: RE: [JBoss-user] Configuring Jboss to use Log4j ?


> ok, so basically I shouldn't try and us log4j, but instead use the
> jboss.logging.
> 
> pity,
> 
> thanks anyway
> 
> Steve
> 
> -Original Message-
> From: David Jencks [mailto:[EMAIL PROTECTED]]
> Sent: 24 April 2001 15:33
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Configuring Jboss to use Log4j ?
> 
> 
> Hi, the current log4j connection with jboss ignores almost all good
> features of log4j and duplicates much of its functionality.  That being
> said, using the non-log4j method of getting a log ends up with the logging
> going through log4j.  I hope I haven't left anything important out here, I
> haven't tried to log from within a bean.  A recent 2.3 patch lets you
treat
> log names ( the stuff that shows up in []) as log4j categories.
> 



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

2001-04-24 Thread Guy Rouillier

Just look in the header to any message on this list (view message source) -
instructions are in there.

- Original Message -
From: "Pilot, Steve" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 24, 2001 12:05 PM
Subject: [JBoss-user] unsubscribe


>
>
>
> Jules, do you kow the url for unscribing to this mailing list?  I'm
> getting a ton of messages at work!!  Need to change destination to home.
>
>
> Thanks, steve
>
> -Original Message-
> From: Julian Gosnell [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 24, 2001 4:59 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Jetty vs. Tomcat
>
>
> This sounds like the ENC stuff.
>
> I am putting it into JBossJetty at the moment, expect
> it in the next release along with a complete
> integration of all Jetty JMX subcomponents.
>
> ETA - two or three weeks...
>
> Jules
>
> --- Jim Archer <[EMAIL PROTECTED]> wrote: > Actually, I
> tried Jetty (as part of the jBoss 2.2.1
> > bundle) just the other
> > day. It installed fine but when I deployed my EAR I
> > got a bunch of errors
> > complaining about JNDI.
> >
> > When I ran my app, I got a bunch of maning
> > exceptions. I have not had time
> > to look into this further, but it did make me wonder
> > if Jetty is fully
> > intergrated, like Tomcat is. I would have expected
> > the very same EAR to run
> > just the same under either Jetty or Tomcat...
> >
> > Jim
> >
> > --On Friday, April 20, 2001 1:50 AM -0500 danch
> > <[EMAIL PROTECTED]> wrote:
> >
> > > Alternatively, Tomcat is the reference
> > implementation. Jetty is
> > > lightweight and fast.
> > >
> > > The only other thing is that (judging from traffic
> > analysis of these
> > > mailing lists) Integration of Tomcat with JBoss is
> > better tested. (Jetty
> > > users, feel free to argue)
> > >
> > > -danch
> > >
> > > Alvin Yap wrote:
> > >
> > >> Tomcat is more robust and extensible.  Jetty is
> > lightweight and fast.
> > >>
> > >> Alvin
> > >>
> > >> Jason Dillon wrote:
> > >>
> > >>
> > >>> Does anyone have any opinions as to which
> > contain is more robust,
> > >>> easier to use and such?
> > >>>
> > >>> --jason
> > >>>
> > >>> ___
> > >>> 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
> > >
> > >
> > >
> > > ___
> > > JBoss-user mailing list
> > > [EMAIL PROTECTED]
> > >
> >
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> >
> >
> > 
> > I shall be telling this with a sigh
> > Somewhere ages and ages hence:
> > Two roads diverged in a wood, and I -
> > I took the one less traveled by,
> > And that has made all the difference.
> >
> > - Robert Frost, 1916
> >
> >
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> >
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
> 
> Do You Yahoo!?
> Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
> or your free @yahoo.ie address at http://mail.yahoo.ie
>
> ___
> 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
>


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



Re: [JBoss-user] Configuring Jboss to use Log4j ?

2001-04-24 Thread Scott M Stark

No! Don't use jboss.logging if you have configured log4j as the log msg
rendering mechanism by using the Log4jService. Once you have done
this you can forget that JBoss has a legacy logging mechanism. At some
point the jboss.logging package will not be used by any code and log4j
will be the logging framework.

- Original Message - 
From: "Doyle, Steven" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 24, 2001 8:32 AM
Subject: RE: [JBoss-user] Configuring Jboss to use Log4j ?


> ok, so basically I shouldn't try and us log4j, but instead use the
> jboss.logging.
> 
> pity,
> 
> thanks anyway
> 
> Steve
> 
> -Original Message-
> From: David Jencks [mailto:[EMAIL PROTECTED]]
> Sent: 24 April 2001 15:33
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Configuring Jboss to use Log4j ?
> 
> 
> Hi, the current log4j connection with jboss ignores almost all good
> features of log4j and duplicates much of its functionality.  That being
> said, using the non-log4j method of getting a log ends up with the logging
> going through log4j.  I hope I haven't left anything important out here, I
> haven't tried to log from within a bean.  A recent 2.3 patch lets you treat
> log names ( the stuff that shows up in []) as log4j categories.
> 



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



RE: [JBoss-user] Configuring Jboss to use Log4j ?

2001-04-24 Thread David Jencks

Hi,

Well, with the recent patch you can turn on and off logging by using the
name for your log as a log4j category.  There are no hierarchies in
categories, and the duplicated functionality has got to slow things down
some, but at least you have some control, and I guess can forward logging
to other log4j's etc.

david jencks

On 2001.04.24 11:32:00 -0400 "Doyle, Steven" wrote:
> ok, so basically I shouldn't try and us log4j, but instead use the
> jboss.logging.
> 
> pity,
> 
> thanks anyway
> 
> Steve
> 
> -Original Message-
> From: David Jencks [mailto:[EMAIL PROTECTED]]
> Sent: 24 April 2001 15:33
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Configuring Jboss to use Log4j ?
> 
> 
> Hi, the current log4j connection with jboss ignores almost all good
> features of log4j and duplicates much of its functionality.  That being
> said, using the non-log4j method of getting a log ends up with the
> logging
> going through log4j.  I hope I haven't left anything important out here,
> I
> haven't tried to log from within a bean.  A recent 2.3 patch lets you
> treat
> log names ( the stuff that shows up in []) as log4j categories.
> 
> the log
> 
> org.jboss.logging.Log log;
> 
> when you create your object
> 
> log = Log.createLog("myname");
> 
> 
> when you want to log something
> 
> Log.setLog(log);  //duplicates NDC.push(source) log4j functionality
> 
> log.log("my message");
> 
> Log.unsetLog(log); //duplicates NDC.pop() log4j  functionality
> 
> 
> On 2001.04.24 08:24:01 -0400 "Doyle, Steven" wrote:
> > Hi,
> > 
> > I'm reasonably new to jboss, and I am having difficulty getting JBoss
> to
> > use
> > Log4j
> > 
> > I have uncommented the relevant lines in jboss.conf and also removed
> the
> > default file & console logging.
> > 
> > The service seems to start ok, except I get duplicate log entries
> > appearing
> > in the Jboss console. However I am unable to make my own logs using the
> > Log4j.properties files supplied with Jboss.
> > 
> > Here is my code:
> > 
> > //Initialize logging
> > logService=new Log4jService();
> > logService.start();
> > 
> > Properties serviceProperties=new Properties();
> > serviceProperties.load(new
> > FileInputStream("c:/jboss-2.2.1/conf/default/log4j.properties"));
> > PropertyConfigurator.configure(serviceProperties);
> > 
> > // get a category instance
> > cat = Category.getRoot();
> > 
> > I get an exception org.apache.log4j.FileAppender saying that
> > 
> > A "org.apache.log4j.FileAppender" object is not assignable to a
> > "org.apache.log4j.Appender" object.
> > 
> > 
> > This is probably just a school boy error on my part, but does anyone
> have
> > an
> > example piece of code thast does this properly.
> > 
> > cheers
> > 
> > Steve Doyle
> > 
> > ___
> > 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
> 
> ___
> 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] Jboss-bug or misunderstanding ? (Loosing reference to JBoss object)

2001-04-24 Thread David Jencks

Hi,

One problem with this is that (I think) it forces your app to rely on a
jdbc datasource persistence layer.  This is not always appropriate.  Even
if you are using a rdms for persistence, the JCA cci stuff suggests an
alternative and perhaps more db-independent access method (I haven't looked
at it much, but I think it involves using stored proc. for data access
updating and encapsulating db differences in sp syntax in the driver)

david jencks

On 2001.04.24 11:16:43 -0400 Daniel Cardin wrote:
> Anyone successfully managed using a CachedRowSet of some kind?
> 
> The way I understand it, it would be the vehicle of choice to pass data
> between the EJB and the client...
> 
> CachedRowSet crs = new CachedRowSet();
> crs.setDataSourceName("somedatasource");
> crs.setCommand("Select * from sometable");
> crs.execute();
> 
> return crs;
> 
> I'd like your thoughts/experiences with that.
> 
> Alternatively, if anyone of you uses Borland's DataExpress components,
> are TableDataSet serializable and
> transportable from EJB to client ? (This could actually prove more
> useful to me, albeit less "portable")
> 
> Cheers,
> 
> Daniel
> 
> -Message d'origine-
> De : Guy Rouillier [mailto:[EMAIL PROTECTED]]
> Envoyé : 24 avril, 2001 11:07 
> À : [EMAIL PROTECTED]
> Objet : Re: [JBoss-user] Jboss-bug or misunderstanding ? (Loosing
> reference to JBoss object)
> 
> 
> From reading your text below, it sounds like you are returning a
> ResultSet
> object to the client and letting the client next() through it.  If I'm
> interpreting that properly, you should not do this.  Only the EJB on
> JBoss
> should talk to the database.  All within a single method, obtain the
> connection, execute the query, get the ResultSet, loop through the
> result
> set and do something with it, close the result set, statement and
> connection, and then return.  As to what to do with the ResultSet, you
> can
> materialize it as a set of Java objects or (as we prefer to do) and XML
> string.
> 
> - Original Message -
> From: "René Rolander Nygaard" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, April 24, 2001 3:57 AM
> Subject: RE: [JBoss-user] Jboss-bug or misunderstanding ? (Loosing
> reference
> to JBoss object)
> 
> 
> > René Rolander Nygaard wrote:
> >
> > > We are getting pretty desperate regarding this question, so I
> > have to ask
> > > again!
> >
> > Dude, try rephrasing the question.  The following paragraph makes
> > no sense.
> 
> Sorry - i will try once more.
> 
> > > Through our speed-testing we are seeing more strange behaviors.
> > > It seems as JBoss looses the reference to an object if you
> speed-clicks.
> > > This can only mean that the problems occurs because the same session
> is
> > > trying to access the same object more than once.
> >
> > What is "speed-clicks"?  What does "looses the reference to an
> > object" mean?
> This was actually from my originally mail where i wrote that we
> "speed-tested" the system by clicking on a menu-item, which caused a
> reload
> in another frame on the screen.
> 
> The "looses a reference" is that we have a reference from our jsp page
> through a bean to a JBoss stateless session bean.
> We select data from a resultset, and after we cycled through all items,
> we
> try to close the connection, the statement etc. but these objects are
> null!
> We still have a reference to the JBoss stateless session bean, but we
> fear
> that it is either a different stateless bean than we started with,
> OR it has been re-initialized.
> 
> >
> >
> > > If you from a jsp page force a reload before the last page-load was
> > > finished, it seems that the reference from the jsp page through
> > to the JBoss
> > > stateless bean is lost!
> > >
> > > Can we expect that in one work-cycle we get a reference to at
> different
> > > JBoss stateless bean, and if this is the case - we cannot clean
> > up after us
> > > self.
> > >
> > > The scenario again:
> > > A jsp page gets a reference to a stateless session bean
> > > The jsp page starts traverse a resultset
> > > 
> > > The disconnect functions all fail because the objects == null!
> > > Sorry about this, but i cannot see this any other way than a
> > JBoss bug...
> >
> > Do you realise that the same JSP instance can service multiple
> requests
> > simultaneously.  If you are storing things in instance variables then
> > the second request will overwrite them before the first completes.
> This
> > is basic JSP/servlet stuff.
> 
> Hmm. Yes - but here we make a  on a page object (and we also
> tried
> making the bean session).
> Then we cycle through all data
> finally we call the Close all function.
> When we are running in the same jsp page, can we expect that the data
> contained in one jsp page is overridden if the user click's to quickly ?
> I hope this is not the case.
> 
> Thnx for the response dude! ;-)
> 
>  - René Rolander Nygaard
> >
> > Toby.
> >
> >
> > ___
> > JBo

Re: [JBoss-user] Configuring Jboss to use Log4j ?

2001-04-24 Thread Scott M Stark

If you want to use log4j, don't use the org.jboss.logging.Log or
org.jboss.logging.Logger logging classes. Just use the log4j classes
and there is no functionallity being thrown away. The Log4jService
is simply a bridge between the legacy JBoss logging and log4j. Its
not intended to fully support use of log4j via the legacy JBoss logging
classes.

The reason your seeing duplicate log entries is most likely because you
did not remove the legacy logging services from both jboss.jcml and
jboss-auto.jcml. Just remove the jboss-auto.jcml file.

- Original Message - 
From: "David Jencks" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 24, 2001 7:32 AM
Subject: Re: [JBoss-user] Configuring Jboss to use Log4j ?


> Hi, the current log4j connection with jboss ignores almost all good
> features of log4j and duplicates much of its functionality.  That being
> said, using the non-log4j method of getting a log ends up with the logging
> going through log4j.  I hope I haven't left anything important out here, I
> haven't tried to log from within a bean.  A recent 2.3 patch lets you treat
> log names ( the stuff that shows up in []) as log4j categories.
> 
> the log
> 
> org.jboss.logging.Log log;
> 
> when you create your object
> 
> log = Log.createLog("myname");
> 
> 
> when you want to log something
> 
> Log.setLog(log);  //duplicates NDC.push(source) log4j functionality
> 
> log.log("my message");
> 
> Log.unsetLog(log); //duplicates NDC.pop() log4j  functionality
> 
> 
> On 2001.04.24 08:24:01 -0400 "Doyle, Steven" wrote:
> > Hi,
> > 
> > I'm reasonably new to jboss, and I am having difficulty getting JBoss to
> > use
> > Log4j
> > 
> > I have uncommented the relevant lines in jboss.conf and also removed the
> > default file & console logging.



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



RE: [JBoss-user] Jboss-bug or misunderstanding ? (Loosing reference to JBoss object)

2001-04-24 Thread David Jencks

Hi,
I personally don't see anything wrong with this, but I am not an expert. 
Note that you have 2 separate transactions here, the first one readig the
customer data, the second rereading and updating it.  Note also that even
if you hold the reference to a SLSB remote interface between the 2 calls
you will (most likely) get 2 different instances in the container.  This is
why you can't save state data in a slsb.

Does this new example work correctly?

Thanks
David Jencks


On 2001.04.24 10:26:50 -0400 René Rolander Nygaard wrote:
> This is in fact exatly what we did. 
> This was however a test, and we just could figure out what precisly went
> wrong.
> 
> After your mail we did talk some more (here at the office) and now we got
> this simple question.
> 
> If we from our JSP call a SLSB with a findByPrimary(something), and then
> afterwards FROM JSP calls setLastName(newLastName), and the EJB ref. is
> held
> in the SLSB - can we then not be 100% it is the same EJB we just found
> earlier.
> 
> In this example, is the correct method:
> 
> customerDataHolder currCustomer = SLSB.findByPrimary (loginName)
> 
> customerDataHolder.setLastName (newLastName);
> 
> SLSB.findAndSetCustomer (customerDataHolder);
>  - and here the SLSB will make a new findByPrimary to make sure it is the
> correct customer.
>  - and afterwards call the setCustomerData method.
> 
> Please note that the bean layer is not included in this small example!
> 
> Again - thanks for your responses!
> 
>  - René Rolander Nygaard
> 
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of David
> Jencks
> > Sent: 24. april 2001 14:42
> > To: [EMAIL PROTECTED]
> > Subject: Re: [JBoss-user] Jboss-bug or misunderstanding ? (Loosing
> > reference to JBoss object)
> > 
> > 
> > Hi,
> > Since you don't include your code or many details it is hard for 
> > me to know
> > exactly what is happening.  You appear to be returning a ResultSet from
> a
> > SLSB.  Assuming that this result set was obtained from a db connection,
> > this is a _VERY BAD IDEA_ even if it sometimes appears to work.  
> > The result
> > sets I am familiar with depend on a connection to the database to fetch
> > more results when asked -- so they have to keep their association with
> the
> > connection, etc.  However the design philosophy of a SLSB is that any
> work
> > is done within a single method invocation.  Commit happens before you
> > return from the call. So where is the "more information" in the result
> set
> > supposed to come from (assuming snapshot or serializable transaction
> > isolation)?
> > 
> > I suggest copying the information you are interested in into a
> standalone
> > object such as a collection of data objects or an xml string.
> > 
> > If I have misunderstood your description of what you are doing I 
> > apologize.
> > 
> > David Jencks
> > 
> > 
> > On 2001.04.24 02:30:35 -0400 René Rolander Nygaard wrote:
> > > We are getting pretty desperate regarding this question, so I 
> > have to ask
> > > again!
> > > 
> > > Through our speed-testing we are seeing more strange behaviors.
> > > It seems as JBoss looses the reference to an object if you
> speed-clicks.
> > > This can only mean that the problems occurs because the same session
> is
> > > trying to access the same object more than once.
> > > 
> > > If you from a jsp page force a reload before the last page-load was
> > > finished, it seems that the reference from the jsp page through to
> the
> > > JBoss
> > > stateless bean is lost!
> > > 
> > > Can we expect that in one work-cycle we get a reference to at
> different
> > > JBoss stateless bean, and if this is the case - we cannot clean up
> after
> > > us
> > > self. 
> > > 
> > > The scenario again:
> > > A jsp page gets a reference to a stateless session bean
> > > The jsp page starts traverse a resultset
> > > 
> > > The disconnect functions all fail because the objects == null!
> > > Sorry about this, but i cannot see this any other way than a 
> > JBoss bug...
> > > 
> > > Please, please, please help us out here!!!
> > > 
> > >  - René Rolander Nygaard
> > > 
> > > 
> > 
> > 
> > ___
> > 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



[JBoss-user] missing shutdown hook?

2001-04-24 Thread pohl


I'm wondering if there is a missing shutdown hook in the
JbossJetty distribution.   

I start using the run_with_jetty.sh script, play with
the demos, and ^C from the console to shut it down.  It
appears to shut down correctly, but the next time that
I start it up, I get a java.net.BindException from
Hypersonic:

[Hypersonic] Starting
[Hypersonic] Server.run/init: java.net.BindException: Address already in use
[Hypersonic] java.net.BindException: Address already in use
[Hypersonic]at java.net.PlainSocketImpl.socketBind(Native Method)
[Hypersonic]at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:397)
[Hypersonic]at java.net.ServerSocket.(ServerSocket.java:170)
[Hypersonic]at java.net.ServerSocket.(ServerSocket.java:82)
[Hypersonic]at org.hsql.Server.run(Server.java:65)
[Hypersonic]at org.hsql.Server.main(Server.java:33)
[Hypersonic]at org.jboss.jdbc.HypersonicDatabase$1.run(HypersonicDatabase.java:135)
[Hypersonic]at java.lang.Thread.run(Thread.java:484)


Sure enough, when I grep for java processes on my machine, there's
one that's still alive after the shutdown:

obelisk:/usr/local/jboss/jboss/bin# ps aux | grep ava
root  3912  0.0  6.3 167832 16344 pts/7  S11:17   0:00 
/usr/local/j2sdk1.3/bin/ppc/native_threads/java 
-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.crimson.jaxp.DocumentBuilderFactoryImpl
 -Djavax.xml.parsers.SAXParserFactory=org.apache.crimson.jaxp.SAXParserFactoryImpl 
-classpath :/lib/tools.jar:run.jar:../lib/crimson.jar org.jboss.Main jetty


[Info] Java version: 1.3.0,Blackdown Java-Linux Team
[Info] Java VM: Classic VM Blackdown-1.3.0-FCS,Blackdown Java-Linux Team
[Info] System: Linux 2.2.17,ppc



pohl




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



[JBoss-user] unsubscribe

2001-04-24 Thread Pilot, Steve




Jules, do you kow the url for unscribing to this mailing list?  I'm
getting a ton of messages at work!!  Need to change destination to home.  


Thanks, steve

-Original Message-
From: Julian Gosnell [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 24, 2001 4:59 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Jetty vs. Tomcat


This sounds like the ENC stuff.

I am putting it into JBossJetty at the moment, expect
it in the next release along with a complete
integration of all Jetty JMX subcomponents.

ETA - two or three weeks...

Jules

--- Jim Archer <[EMAIL PROTECTED]> wrote: > Actually, I
tried Jetty (as part of the jBoss 2.2.1
> bundle) just the other 
> day. It installed fine but when I deployed my EAR I
> got a bunch of errors 
> complaining about JNDI.
> 
> When I ran my app, I got a bunch of maning
> exceptions. I have not had time 
> to look into this further, but it did make me wonder
> if Jetty is fully 
> intergrated, like Tomcat is. I would have expected
> the very same EAR to run 
> just the same under either Jetty or Tomcat...
> 
> Jim
> 
> --On Friday, April 20, 2001 1:50 AM -0500 danch
> <[EMAIL PROTECTED]> wrote:
> 
> > Alternatively, Tomcat is the reference
> implementation. Jetty is
> > lightweight and fast.
> >
> > The only other thing is that (judging from traffic
> analysis of these
> > mailing lists) Integration of Tomcat with JBoss is
> better tested. (Jetty
> > users, feel free to argue)
> >
> > -danch
> >
> > Alvin Yap wrote:
> >
> >> Tomcat is more robust and extensible.  Jetty is
> lightweight and fast.
> >>
> >> Alvin
> >>
> >> Jason Dillon wrote:
> >>
> >>
> >>> Does anyone have any opinions as to which
> contain is more robust,
> >>> easier to use and such?
> >>>
> >>> --jason
> >>>
> >>> ___
> >>> 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
> >
> >
> >
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> >
>
http://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 
> 
> 
> I shall be telling this with a sigh
> Somewhere ages and ages hence:
> Two roads diverged in a wood, and I -
> I took the one less traveled by,
> And that has made all the difference.
> 
> - Robert Frost, 1916
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
>
http://lists.sourceforge.net/lists/listinfo/jboss-user



Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

___
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



[JBoss-user] Guest user

2001-04-24 Thread Raffael Herzog

Is it possible to grant guest access to any user without any
authentication when using JAAS security (a default user)? If yes, how?
If no, what's the best method to grant anyone access to the beans from
within the embedded Tomcat? Create a login context in the dispatching
servlet(s)?


-- 
(o_ Raffael Herzog
//\[EMAIL PROTECTED]
V_/_
May the penguin be with you!

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



[JBoss-user] Help with CMP, MS SQL Server, and IMAGE datatype

2001-04-24 Thread Chris Campbell

Hi,

I'm using MS SQL Server to store documents on a webapp we're doing, and am 
having strange trouble - everything works just fine until I shut down and 
restart jBOSS, then each document is prepended with a predictable, but 
destructive, string of bytes.

Basically it's like this: I upload a file (using Struts upload classes), 
then store it in a CMP entity bean as a byte[] field. When I query to get 
it back prior to shutting down jBOSS, everything works like a charm - the 
file is returned, whatever mime type was set invokes the right application, 
everything is marvelous. If I shut down jBOSS and restart, though 
(prompting a read of the database), I get a garbage string of bytes at the 
beginning of the document. That garbage string contains these characters, 
among others: "java.rmi.MarshalledObject", and "objBytes". I can't imagine 
it's a coincidence.

Anyone have any suggestions? I'm using JTurbo for JDBC, both jBOSS and MS 
SQL Server are running on Windows 2000, I'm using Tomcat (on a separate 
stack) for a servlet engine (although I strongly doubt that's related).

Any help is greatly appreciated!

Chris


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



Re: [JBoss-user] network adapter can not establish connection error!

2001-04-24 Thread Guy Rouillier

I'm guessing that either (1) the url is incorrect or (2) the userid/password
are not valid.  Thus, a connection was not established, and therefore no
object was generated to contain it.

- Original Message -
From: "Qiao, Wei" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 24, 2001 10:23 AM
Subject: [JBoss-user] network adapter can not establish connection error!


> Does anyone know what might cause it?  I am using Jboss2.2.1 with Tomcat
on
> Unix.
>
> Here are the errors:
>
> [OracleDB] java.sql.SQLException: Io exception: The Network Adapter could
> not es
> tablish the connection
> [OracleDB] Pool OracleDB factory
> org.opentools.minerva.jdbc.xa.XAConnectionFactory@384065 unable to create
> new object!
>
> ___
> 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] Accesing JBoss through a firewall

2001-04-24 Thread Jose Ramon Diaz

Hello,

I already have found the solution for our problem, it´s here:


http://www.mail-archive.com/jboss-user@list.working-dogs.com/msg09680.html

--
Nameserver RMI: default 0: anonymous, cannot be configured in the
current distribution.
  You need to modify file jnp/src/main/org/jnp/server/main.java:

  ...
  setPort(Integer.getInteger("jnp.port",getPort()).intValue());
  vv
  setRmiPort(Integer.getInteger("jnp.rmiPort",getRmiPort()).intValue());

  ^^
  setLogging(Boolean.getBoolean("jnp.log"));
  ...

  and recompile the JNP server. After that you enter an additional
  parameter in jnp.properties: jnp.rmiPort=.

--

Why is not this property defined in the release?
Thanks Wolfgang

Jose R.

Jose Ramon Diaz wrote:

> Hi,
>
> We are trying to access an EJB in JBOSS from a servlet. But, beetwen
> servlet server and the JBoss server there is a firewall. Our problem is
> that JBoss is using another port than 1099 for JNDI, and it´s different
> each time.
> Is there anyway to set the port for a connection to a EJB?
>
> Thanks in advance...
>
> Jose R. & Juan
>
> ___
> 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] network adapter can not establish connection error!

2001-04-24 Thread Qiao, Wei

actually it's even worse.  There is error before that:

[JMX RMI Adaptor] Initializing
[JMX RMI Adaptor] Initialized
[JMX RMI Connector] Initializing
[JMX RMI Connector] Initialized
[Mail Service] Initializing
[Mail Service] Initialized
[OracleDB] Initializing
[OracleDB] Initialized
[Service Control] Initialized 25 services
[Service Control] Starting 25 MBeans
[Webserver] Starting
[Webserver] Stopped
[Webserver] java.net.BindException: Address already in use
[Webserver] at java.net.PlainSocketImpl.socketBind(Native Method)
[Webserver] at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:3




My jboss.jcml is following:




  
  
8083




1099






300









org.jboss.security.plugins.JaasSecuri
tyManager






org.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.idbDriv
er,oracle.jdbc.driver.OracleDriver
   

1476
true
default
false



InstantDB
org.opentools.minerva.jdbc.xa.wrapper.XADataSo
urceImpl

jdbc:idb:../conf/default/instantdb.properties
120

10

false
false
false
true
12
180
false
false
1.0
0



DefaultDS
org.opentools.minerva.jdbc.xa.wrapper.XADataSo
urceImpl

jdbc:HypersonicSQL:hsql://localhost:1476
120
sa
10


false
false
false
true
12
180
false
false
1.0
0





true
false
true
false









DefaultJMSProvider
org.jboss.jms.jndi.JBossMQProvider
 

StdJMSPool
org.jboss.jms.asf.StdServerSessionPoolFactory






Default
:service=ContainerFactory
:service=EmbeddedTomcat



J2EE:service=J2eeDeployer
../deploy








MinervaNoTransCMFactory
org.opentools.minerva.connector.jboss.MinervaNoTr
ansCMFactory



 

MinervaSharedLocalCMFactory
org.opentools.minerva.connector.jboss.MinervaShar
edLocalCMFactory





MinervaXACMFactory
org.opentools.minerva.connector.jboss.MinervaXACM
Factory





BlackBoxDS
JCA:service=RARDeployer
Black Box LocalTx Adapter

ConnectionURL=jdbc:HypersonicSQL:hsql://localhost:1476


MinervaSharedLocalCMFactory


# Pool type - uncomment to force, otherwise it is the default
#PoolConfiguration=per-factory

# Connection pooling properties - see
# org.opentools.minerva.pool.PoolParameters
MinSize=0
MaxSize=10
Blocking=true
GCEnabled=false
IdleTimeoutEnabled=false
InvalidateOnError=false
TrackLastUsed=false
GCIntervalMillis=12
GCMinIdleMillis=120
IdleTimeoutMillis=180
MaxIdleTimeoutPercent=1.0



org.jboss.resource.security.ManyToOnePri
ncipalMapping

userName=sa
password=











10

8082




Mail
mail.properties
user_id
password







OracleDB
org.opentools.minerva.jdbc.xa.wrapper.XADataSo
urceImpl

jdbc:oracle:thin:@mollie.int.westgroup.com:1552:orad25
6
u61479
10
u61479
true
true
true
true
6
6
true
true
1.0
0

  


-Original Message-
From: Lennart Petersson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 24, 2001 10:05 AM
To: [EMAIL PROTECTED]
Subject: SV: [JBoss-user] network adapter can not establish connection
error!


No contact with oracle. Check your jboss.jcml or let us see it :-)
/Lennart
- Original Message - 
From: Qiao, Wei <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 24, 2001 4:23 PM
Subject: [JBoss-user] network adapter can not establish connection error!


> Does anyone know what might cause it?  I am using Jboss2.2.1 with Tomcat
on
> Unix. 
> 
> Here are the errors:
> 
> [OracleDB] java.sql.SQLException: Io exception: The Network Adapter could
> not es
> tablish the connection
> [OracleDB] Pool OracleDB factory
> org.opentools.minerva.jdbc.xa.XAConnectionFactory@384065 unable to create
> new object! 
> 
> ___
> 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

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



Re: [JBoss-user] ejbdoclet generated CMP beans passivate/activate and data holder issue

2001-04-24 Thread Raul Nohea Goodness

> I found out that there is a pretty weird issue with the above combination,
> and thought it might be a good idea to share it with those who use ejbdoclet
> :)
> 
> scenario:
> -deploying an ejbdoclet generated cmp bean
> -executing a few finds
> -spend a period of inactivity (==bean instances are passivated)
> -executing a findByPK(pkValue) on the cmp bean home interface
> -bean.getData() return value is undefinded, ie. it might return the correct
> value or a dataholder of a *previously used bean instance*

I was seeing this problem using EJBDoclet and JBoss a few weeks ago. I 
saw the same problem in the code for 0.95. However, i found it was fixed 
in the CVS version of EJBDoclet. You should try that.

Maybe we can get a new numbered release?

-Raul


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



Re: [JBoss-user] ejbdoclet generated CMP beans passivate/activate and data holder issue

2001-04-24 Thread Rickard Öberg

Raul Nohea Goodness wrote:
> I was seeing this problem using EJBDoclet and JBoss a few weeks ago. I
> saw the same problem in the code for 0.95. However, i found it was fixed
> in the CVS version of EJBDoclet. You should try that.
> 
> Maybe we can get a new numbered release?

Indeed. Once the newly added contributors have added their stuff, I'll
make a new release (i.e. in a week or so; I'm off to Greece
RightThisMinute).

/Rickard

-- 
Rickard Öberg
Software Development Specialist
xlurc - Xpedio Linköping Ubiquitous Research Center
Author of "Mastering RMI"
Email: [EMAIL PROTECTED]

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



RE: [JBoss-user] Configuring Jboss to use Log4j ?

2001-04-24 Thread Doyle, Steven

ok, so basically I shouldn't try and us log4j, but instead use the
jboss.logging.

pity,

thanks anyway

Steve

-Original Message-
From: David Jencks [mailto:[EMAIL PROTECTED]]
Sent: 24 April 2001 15:33
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Configuring Jboss to use Log4j ?


Hi, the current log4j connection with jboss ignores almost all good
features of log4j and duplicates much of its functionality.  That being
said, using the non-log4j method of getting a log ends up with the logging
going through log4j.  I hope I haven't left anything important out here, I
haven't tried to log from within a bean.  A recent 2.3 patch lets you treat
log names ( the stuff that shows up in []) as log4j categories.

the log

org.jboss.logging.Log log;

when you create your object

log = Log.createLog("myname");


when you want to log something

Log.setLog(log);  //duplicates NDC.push(source) log4j functionality

log.log("my message");

Log.unsetLog(log); //duplicates NDC.pop() log4j  functionality


On 2001.04.24 08:24:01 -0400 "Doyle, Steven" wrote:
> Hi,
> 
> I'm reasonably new to jboss, and I am having difficulty getting JBoss to
> use
> Log4j
> 
> I have uncommented the relevant lines in jboss.conf and also removed the
> default file & console logging.
> 
> The service seems to start ok, except I get duplicate log entries
> appearing
> in the Jboss console. However I am unable to make my own logs using the
> Log4j.properties files supplied with Jboss.
> 
> Here is my code:
> 
> //Initialize logging
> logService=new Log4jService();
> logService.start();
> 
> Properties serviceProperties=new Properties();
> serviceProperties.load(new
> FileInputStream("c:/jboss-2.2.1/conf/default/log4j.properties"));
> PropertyConfigurator.configure(serviceProperties);
> 
> // get a category instance
> cat = Category.getRoot();
> 
> I get an exception org.apache.log4j.FileAppender saying that
> 
> A "org.apache.log4j.FileAppender" object is not assignable to a
> "org.apache.log4j.Appender" object.
> 
> 
> This is probably just a school boy error on my part, but does anyone have
> an
> example piece of code thast does this properly.
> 
> cheers
> 
> Steve Doyle
> 
> ___
> 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

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



RE: [JBoss-user] Jboss-bug or misunderstanding ? (Loosing reference to JBoss object)

2001-04-24 Thread Daniel Cardin

Anyone successfully managed using a CachedRowSet of some kind?

The way I understand it, it would be the vehicle of choice to pass data
between the EJB and the client...

CachedRowSet crs = new CachedRowSet();
crs.setDataSourceName("somedatasource");
crs.setCommand("Select * from sometable");
crs.execute();

return crs;

I'd like your thoughts/experiences with that.

Alternatively, if anyone of you uses Borland's DataExpress components,
are TableDataSet serializable and
transportable from EJB to client ? (This could actually prove more
useful to me, albeit less "portable")

Cheers,

Daniel

-Message d'origine-
De : Guy Rouillier [mailto:[EMAIL PROTECTED]]
Envoyé : 24 avril, 2001 11:07 
À : [EMAIL PROTECTED]
Objet : Re: [JBoss-user] Jboss-bug or misunderstanding ? (Loosing
reference to JBoss object)


>From reading your text below, it sounds like you are returning a
ResultSet
object to the client and letting the client next() through it.  If I'm
interpreting that properly, you should not do this.  Only the EJB on
JBoss
should talk to the database.  All within a single method, obtain the
connection, execute the query, get the ResultSet, loop through the
result
set and do something with it, close the result set, statement and
connection, and then return.  As to what to do with the ResultSet, you
can
materialize it as a set of Java objects or (as we prefer to do) and XML
string.

- Original Message -
From: "René Rolander Nygaard" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 24, 2001 3:57 AM
Subject: RE: [JBoss-user] Jboss-bug or misunderstanding ? (Loosing
reference
to JBoss object)


> René Rolander Nygaard wrote:
>
> > We are getting pretty desperate regarding this question, so I
> have to ask
> > again!
>
> Dude, try rephrasing the question.  The following paragraph makes
> no sense.

Sorry - i will try once more.

> > Through our speed-testing we are seeing more strange behaviors.
> > It seems as JBoss looses the reference to an object if you
speed-clicks.
> > This can only mean that the problems occurs because the same session
is
> > trying to access the same object more than once.
>
> What is "speed-clicks"?  What does "looses the reference to an
> object" mean?
This was actually from my originally mail where i wrote that we
"speed-tested" the system by clicking on a menu-item, which caused a
reload
in another frame on the screen.

The "looses a reference" is that we have a reference from our jsp page
through a bean to a JBoss stateless session bean.
We select data from a resultset, and after we cycled through all items,
we
try to close the connection, the statement etc. but these objects are
null!
We still have a reference to the JBoss stateless session bean, but we
fear
that it is either a different stateless bean than we started with,
OR it has been re-initialized.

>
>
> > If you from a jsp page force a reload before the last page-load was
> > finished, it seems that the reference from the jsp page through
> to the JBoss
> > stateless bean is lost!
> >
> > Can we expect that in one work-cycle we get a reference to at
different
> > JBoss stateless bean, and if this is the case - we cannot clean
> up after us
> > self.
> >
> > The scenario again:
> > A jsp page gets a reference to a stateless session bean
> > The jsp page starts traverse a resultset
> > 
> > The disconnect functions all fail because the objects == null!
> > Sorry about this, but i cannot see this any other way than a
> JBoss bug...
>
> Do you realise that the same JSP instance can service multiple
requests
> simultaneously.  If you are storing things in instance variables then
> the second request will overwrite them before the first completes.
This
> is basic JSP/servlet stuff.

Hmm. Yes - but here we make a  on a page object (and we also
tried
making the bean session).
Then we cycle through all data
finally we call the Close all function.
When we are running in the same jsp page, can we expect that the data
contained in one jsp page is overridden if the user click's to quickly ?
I hope this is not the case.

Thnx for the response dude! ;-)

 - René Rolander Nygaard
>
> Toby.
>
>
> ___
> 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

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



Re: [JBoss-user] Jboss-bug or misunderstanding ? (Loosing reference to JBoss object)

2001-04-24 Thread Philipp Meier

On Tue, Apr 24, 2001 at 09:57:06AM +0200, René Rolander Nygaard wrote:
> Hmm. Yes - but here we make a  on a page object (and we also tried
> making the bean session).
> Then we cycle through all data
> finally we call the Close all function.
> When we are running in the same jsp page, can we expect that the data
> contained in one jsp page is overridden if the user click's to quickly ?
> I hope this is not the case.

Have a look at <%@page isThreadSafe="false"> (see JSP-Spec.)

Regards,
-billy.


-- 
Philipp Meier  o-matic GmbH
Geschäftsführer  Pfarrer-Weiß-Weg 16-18
Tel.: +49-(0)700-66284236 89077 Ulm

 PGP signature


Re: [JBoss-user] Where Java Bean should be located?

2001-04-24 Thread Guy Rouillier
Title: Where Java Bean should be located?



Both JBoss and the client need ** a ** jar because 
they both need the home and remote interface. I used "a jar" intentionally, 
because they should not get the same jar.  JBoss also needs the bean 
implementation class, but the client does not.  So ideally you should 
have two jars, e.g., ejbstuff.jar and ejbstuff-client.jar.

  - Original Message - 
  From: 
  Doreen Cheng 
  To: '[EMAIL PROTECTED]' 
  
  Sent: Monday, April 23, 2001 9:40 
PM
  Subject: [JBoss-user] Where Java Bean 
  should be located?
  
  hi all, 
  I have installed JBoss 2.1 with embedded tomcat and 
  developed several cmp ejb objects and already deployed to JBoss and 
  Tomcat
  *** But i don't know why I must deployed the jar 
  file to both JBoss and Tomcat??? 
  and since i have some java bean to use, I have 
  included them in the jar file with other ejb objects for success complication, 
  however, when i test it, it returned java bean object not found, in fact, 
  where should i included those java bean object, I also try to put those java 
  bean object on tomcat, but error still existed.
  Any one can help? Thanks a lot!!! 
  Doreen 


RE: [JBoss-user] IMPOSSIBLE to unsubscribe

2001-04-24 Thread Hansen, Richard

When you were signed up you got an email with the password. You can also
have the list email a reminder with your password. I just tried it an it
works.

You can also make such changes via email - send a message to:

[EMAIL PROTECTED]

with the text "help" in the subject or body, and you will be emailed
instructions.

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 24, 2001 9:27 AM
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] IMPOSSIBLE to unsubscribe
> 
> 
> Hello,
> 
> I m a member of the old jboss mailing list.
> 
> Also, to unsubscribe from this mailing list we need a password !!
> But, with the old mailing list, we have no password !
> 
> So I m unable to unsubscribe !
> Can someone help me
> 
> Thanx
> 
> Christophe
> 
> 
> ___
> 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] How to start JBossGUI.

2001-04-24 Thread Rickard Öberg

EJX/JBossGUI is currently not a supported project (due to time/resource
constraints), and EJX 1.1 (from dreamBean.com) is definitely in an alpha
stage. Use at your own risk :-)

/Rickard

Daniel Cardin wrote:
> 
> Oh really? I didn't know Rickard was not updating the master source ;-))
> I'll definitely have a look at it!
> 
> Thanks for the pointer,
> 
> Daniel
> 
> -Message d'origine-
> De : jquest jquest [mailto:[EMAIL PROTECTED]]
> Envoyé : 24 avril, 2001 11:01
> À : [EMAIL PROTECTED]
> Objet : RE: [JBoss-user] How to start JBossGUI.
> 
> Thanks,
> I found the problem.
> I started the version from the JBoss distribution and it is very old
> v0.92.
> I just downloadet the latest version from www.dreambean.com and all is
> OK.
> 
> Thanks for the help.
> 
> >From: "Daniel Cardin" <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: <[EMAIL PROTECTED]>
> >Subject: RE: [JBoss-user] How to start JBossGUI.
> >Date: Tue, 24 Apr 2001 10:45:34 -0400
> >
> >a that's a tricky thing actually...
> >when you specify open, you can select the type (last combo box on the
> >bottom)
> >
> >EJB 1.1 XML
> >EJB 1.1 XML with JBoss XML
> >JAWS XML
> >
> >Select the type you wish to edit, and open your ejb-jar.xml
> >
> >it will load the ejb-jar.xml file PLUS :
> >
> >If you specify (with JBoss XML) it will load the jboss.xml file in the
> >same directory
> >if you specify JAWS XML it will load the jaws.xml in the same directory
> >
> >It's usable, but if there's an area I'd like a bit more
> >user-friendliness it's there :)
> >I guess it's time to start hacking at the code ;)
> >
> >HTH,
> >
> >Daniel
> >
> >ps. I think most of JBoss users simply edit the .xml files directly :)
> >
> >-Message d'origine-
> >De : jquest jquest [mailto:[EMAIL PROTECTED]]
> >Envoyé : 24 avril, 2001 10:41
> >À : [EMAIL PROTECTED]
> >Objet : RE: [JBoss-user] How to start JBossGUI.
> >
> >
> >Thank you,
> >I make it.
> >The problem is that I can not not make my deployment description.
> >I think it is not working well or I need additional plugin.
> >I the menu I have only File (new,open,save as, save, exit) , edit (
> >preferences) , window and help.
> >I can not find any other submenu.
> >
> >Can you help me?
> >Thanks in advance.
> >
> >
> > >From: "Daniel Cardin" <[EMAIL PROTECTED]>
> > >Reply-To: [EMAIL PROTECTED]
> > >To: <[EMAIL PROTECTED]>
> > >Subject: RE: [JBoss-user] How to start JBossGUI.
> > >Date: Tue, 24 Apr 2001 10:09:45 -0400
> > >
> > >in the /bin directory : java -jar ejx.jar
> > >
> > >HTH,
> > >
> > >Daniel
> > >
> > >-Message d'origine-
> > >De : jquest jquest [mailto:[EMAIL PROTECTED]]
> > >Envoyé : 24 avril, 2001 09:56
> > >À : [EMAIL PROTECTED]
> > >Objet : [JBoss-user] How to start JBossGUI.
> > >
> > >
> > >Hi,
> > >I can not find any information how to start JBossGUI.
> > >I only readet the information from :
> > >http://www.jboss.org/business/jboss-projects.html.
> > >
> > >Any help will be graet.
> > >Thank in advance.
> >
> >___
> >_
> > >_
> > >Get Your Private, Free E-mail from MSN Hotmail at
> > >http://www.hotmail.com.
> > >
> > >
> > >___
> > >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
> >
> >___
> _
> >_
> >Get Your Private, Free E-mail from MSN Hotmail at
> >http://www.hotmail.com.
> >
> >
> >___
> >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
> 
> 
> _
> Get Your Private, Free E-mail from MSN Hotmail at
> http://www.hotmail.com.
> 
> ___
> 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

-- 
Rickard Öberg
Software Development Specialist
xlurc - Xpedio Linköping Ubiquitous Research Center
Author of "Mastering RMI"
Email: [EMAIL PROTECTED]

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



Re: [JBoss-user] Jboss-bug or misunderstanding ? (Loosing reference to JBoss object)

2001-04-24 Thread Guy Rouillier

>From reading your text below, it sounds like you are returning a ResultSet
object to the client and letting the client next() through it.  If I'm
interpreting that properly, you should not do this.  Only the EJB on JBoss
should talk to the database.  All within a single method, obtain the
connection, execute the query, get the ResultSet, loop through the result
set and do something with it, close the result set, statement and
connection, and then return.  As to what to do with the ResultSet, you can
materialize it as a set of Java objects or (as we prefer to do) and XML
string.

- Original Message -
From: "René Rolander Nygaard" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 24, 2001 3:57 AM
Subject: RE: [JBoss-user] Jboss-bug or misunderstanding ? (Loosing reference
to JBoss object)


> René Rolander Nygaard wrote:
>
> > We are getting pretty desperate regarding this question, so I
> have to ask
> > again!
>
> Dude, try rephrasing the question.  The following paragraph makes
> no sense.

Sorry - i will try once more.

> > Through our speed-testing we are seeing more strange behaviors.
> > It seems as JBoss looses the reference to an object if you speed-clicks.
> > This can only mean that the problems occurs because the same session is
> > trying to access the same object more than once.
>
> What is "speed-clicks"?  What does "looses the reference to an
> object" mean?
This was actually from my originally mail where i wrote that we
"speed-tested" the system by clicking on a menu-item, which caused a reload
in another frame on the screen.

The "looses a reference" is that we have a reference from our jsp page
through a bean to a JBoss stateless session bean.
We select data from a resultset, and after we cycled through all items, we
try to close the connection, the statement etc. but these objects are null!
We still have a reference to the JBoss stateless session bean, but we fear
that it is either a different stateless bean than we started with,
OR it has been re-initialized.

>
>
> > If you from a jsp page force a reload before the last page-load was
> > finished, it seems that the reference from the jsp page through
> to the JBoss
> > stateless bean is lost!
> >
> > Can we expect that in one work-cycle we get a reference to at different
> > JBoss stateless bean, and if this is the case - we cannot clean
> up after us
> > self.
> >
> > The scenario again:
> > A jsp page gets a reference to a stateless session bean
> > The jsp page starts traverse a resultset
> > 
> > The disconnect functions all fail because the objects == null!
> > Sorry about this, but i cannot see this any other way than a
> JBoss bug...
>
> Do you realise that the same JSP instance can service multiple requests
> simultaneously.  If you are storing things in instance variables then
> the second request will overwrite them before the first completes. This
> is basic JSP/servlet stuff.

Hmm. Yes - but here we make a  on a page object (and we also tried
making the bean session).
Then we cycle through all data
finally we call the Close all function.
When we are running in the same jsp page, can we expect that the data
contained in one jsp page is overridden if the user click's to quickly ?
I hope this is not the case.

Thnx for the response dude! ;-)

 - René Rolander Nygaard
>
> Toby.
>
>
> ___
> 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



SV: [JBoss-user] network adapter can not establish connection error!

2001-04-24 Thread Lennart Petersson

No contact with oracle. Check your jboss.jcml or let us see it :-)
/Lennart
- Original Message - 
From: Qiao, Wei <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 24, 2001 4:23 PM
Subject: [JBoss-user] network adapter can not establish connection error!


> Does anyone know what might cause it?  I am using Jboss2.2.1 with Tomcat on
> Unix. 
> 
> Here are the errors:
> 
> [OracleDB] java.sql.SQLException: Io exception: The Network Adapter could
> not es
> tablish the connection
> [OracleDB] Pool OracleDB factory
> org.opentools.minerva.jdbc.xa.XAConnectionFactory@384065 unable to create
> new object! 
> 
> ___
> 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] How to start JBossGUI.

2001-04-24 Thread jquest jquest


Thanks,
I found the problem.
I started the version from the JBoss distribution and it is very old v0.92.
I just downloadet the latest version from www.dreambean.com and all is OK.

Thanks for the help.


>From: "Daniel Cardin" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: RE: [JBoss-user] How to start JBossGUI.
>Date: Tue, 24 Apr 2001 10:45:34 -0400
>
>a that's a tricky thing actually...
>when you specify open, you can select the type (last combo box on the
>bottom)
>
>EJB 1.1 XML
>EJB 1.1 XML with JBoss XML
>JAWS XML
>
>Select the type you wish to edit, and open your ejb-jar.xml
>
>it will load the ejb-jar.xml file PLUS :
>
>If you specify (with JBoss XML) it will load the jboss.xml file in the
>same directory
>if you specify JAWS XML it will load the jaws.xml in the same directory
>
>It's usable, but if there's an area I'd like a bit more
>user-friendliness it's there :)
>I guess it's time to start hacking at the code ;)
>
>HTH,
>
>Daniel
>
>ps. I think most of JBoss users simply edit the .xml files directly :)
>
>-Message d'origine-
>De : jquest jquest [mailto:[EMAIL PROTECTED]]
>Envoyé : 24 avril, 2001 10:41
>À : [EMAIL PROTECTED]
>Objet : RE: [JBoss-user] How to start JBossGUI.
>
>
>Thank you,
>I make it.
>The problem is that I can not not make my deployment description.
>I think it is not working well or I need additional plugin.
>I the menu I have only File (new,open,save as, save, exit) , edit (
>preferences) , window and help.
>I can not find any other submenu.
>
>Can you help me?
>Thanks in advance.
>
>
> >From: "Daniel Cardin" <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: <[EMAIL PROTECTED]>
> >Subject: RE: [JBoss-user] How to start JBossGUI.
> >Date: Tue, 24 Apr 2001 10:09:45 -0400
> >
> >in the /bin directory : java -jar ejx.jar
> >
> >HTH,
> >
> >Daniel
> >
> >-Message d'origine-
> >De : jquest jquest [mailto:[EMAIL PROTECTED]]
> >Envoyé : 24 avril, 2001 09:56
> >À : [EMAIL PROTECTED]
> >Objet : [JBoss-user] How to start JBossGUI.
> >
> >
> >Hi,
> >I can not find any information how to start JBossGUI.
> >I only readet the information from :
> >http://www.jboss.org/business/jboss-projects.html.
> >
> >Any help will be graet.
> >Thank in advance.
> >___
>_
> >_
> >Get Your Private, Free E-mail from MSN Hotmail at
> >http://www.hotmail.com.
> >
> >
> >___
> >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
>
>
>_
>Get Your Private, Free E-mail from MSN Hotmail at
>http://www.hotmail.com.
>
>
>___
>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

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


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



RE: [JBoss-user] How to start JBossGUI.

2001-04-24 Thread Daniel Cardin

Oh really? I didn't know Rickard was not updating the master source ;-))
I'll definitely have a look at it!

Thanks for the pointer,

Daniel

-Message d'origine-
De : jquest jquest [mailto:[EMAIL PROTECTED]]
Envoyé : 24 avril, 2001 11:01 
À : [EMAIL PROTECTED]
Objet : RE: [JBoss-user] How to start JBossGUI.



Thanks,
I found the problem.
I started the version from the JBoss distribution and it is very old
v0.92.
I just downloadet the latest version from www.dreambean.com and all is
OK.

Thanks for the help.


>From: "Daniel Cardin" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: RE: [JBoss-user] How to start JBossGUI.
>Date: Tue, 24 Apr 2001 10:45:34 -0400
>
>a that's a tricky thing actually...
>when you specify open, you can select the type (last combo box on the
>bottom)
>
>EJB 1.1 XML
>EJB 1.1 XML with JBoss XML
>JAWS XML
>
>Select the type you wish to edit, and open your ejb-jar.xml
>
>it will load the ejb-jar.xml file PLUS :
>
>If you specify (with JBoss XML) it will load the jboss.xml file in the
>same directory
>if you specify JAWS XML it will load the jaws.xml in the same directory
>
>It's usable, but if there's an area I'd like a bit more
>user-friendliness it's there :)
>I guess it's time to start hacking at the code ;)
>
>HTH,
>
>Daniel
>
>ps. I think most of JBoss users simply edit the .xml files directly :)
>
>-Message d'origine-
>De : jquest jquest [mailto:[EMAIL PROTECTED]]
>Envoyé : 24 avril, 2001 10:41
>À : [EMAIL PROTECTED]
>Objet : RE: [JBoss-user] How to start JBossGUI.
>
>
>Thank you,
>I make it.
>The problem is that I can not not make my deployment description.
>I think it is not working well or I need additional plugin.
>I the menu I have only File (new,open,save as, save, exit) , edit (
>preferences) , window and help.
>I can not find any other submenu.
>
>Can you help me?
>Thanks in advance.
>
>
> >From: "Daniel Cardin" <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: <[EMAIL PROTECTED]>
> >Subject: RE: [JBoss-user] How to start JBossGUI.
> >Date: Tue, 24 Apr 2001 10:09:45 -0400
> >
> >in the /bin directory : java -jar ejx.jar
> >
> >HTH,
> >
> >Daniel
> >
> >-Message d'origine-
> >De : jquest jquest [mailto:[EMAIL PROTECTED]]
> >Envoyé : 24 avril, 2001 09:56
> >À : [EMAIL PROTECTED]
> >Objet : [JBoss-user] How to start JBossGUI.
> >
> >
> >Hi,
> >I can not find any information how to start JBossGUI.
> >I only readet the information from :
> >http://www.jboss.org/business/jboss-projects.html.
> >
> >Any help will be graet.
> >Thank in advance.
>
>___
>_
> >_
> >Get Your Private, Free E-mail from MSN Hotmail at
> >http://www.hotmail.com.
> >
> >
> >___
> >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
>
>___
_
>_
>Get Your Private, Free E-mail from MSN Hotmail at
>http://www.hotmail.com.
>
>
>___
>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


_
Get Your Private, Free E-mail from MSN Hotmail at
http://www.hotmail.com.


___
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] How to start JBossGUI.

2001-04-24 Thread Daniel Cardin

a that's a tricky thing actually...  
when you specify open, you can select the type (last combo box on the
bottom)

EJB 1.1 XML
EJB 1.1 XML with JBoss XML
JAWS XML

Select the type you wish to edit, and open your ejb-jar.xml

it will load the ejb-jar.xml file PLUS :

If you specify (with JBoss XML) it will load the jboss.xml file in the
same directory
if you specify JAWS XML it will load the jaws.xml in the same directory

It's usable, but if there's an area I'd like a bit more
user-friendliness it's there :)
I guess it's time to start hacking at the code ;)

HTH,

Daniel

ps. I think most of JBoss users simply edit the .xml files directly :) 

-Message d'origine-
De : jquest jquest [mailto:[EMAIL PROTECTED]]
Envoyé : 24 avril, 2001 10:41 
À : [EMAIL PROTECTED]
Objet : RE: [JBoss-user] How to start JBossGUI.


Thank you,
I make it.
The problem is that I can not not make my deployment description.
I think it is not working well or I need additional plugin.
I the menu I have only File (new,open,save as, save, exit) , edit ( 
preferences) , window and help.
I can not find any other submenu.

Can you help me?
Thanks in advance.


>From: "Daniel Cardin" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: RE: [JBoss-user] How to start JBossGUI.
>Date: Tue, 24 Apr 2001 10:09:45 -0400
>
>in the /bin directory : java -jar ejx.jar
>
>HTH,
>
>Daniel
>
>-Message d'origine-
>De : jquest jquest [mailto:[EMAIL PROTECTED]]
>Envoyé : 24 avril, 2001 09:56
>À : [EMAIL PROTECTED]
>Objet : [JBoss-user] How to start JBossGUI.
>
>
>Hi,
>I can not find any information how to start JBossGUI.
>I only readet the information from :
>http://www.jboss.org/business/jboss-projects.html.
>
>Any help will be graet.
>Thank in advance.
>___
_
>_
>Get Your Private, Free E-mail from MSN Hotmail at
>http://www.hotmail.com.
>
>
>___
>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


_
Get Your Private, Free E-mail from MSN Hotmail at
http://www.hotmail.com.


___
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] How to start JBossGUI.

2001-04-24 Thread jquest jquest

Thank you,
I make it.
The problem is that I can not not make my deployment description.
I think it is not working well or I need additional plugin.
I the menu I have only File (new,open,save as, save, exit) , edit ( 
preferences) , window and help.
I can not find any other submenu.

Can you help me?
Thanks in advance.


>From: "Daniel Cardin" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: RE: [JBoss-user] How to start JBossGUI.
>Date: Tue, 24 Apr 2001 10:09:45 -0400
>
>in the /bin directory : java -jar ejx.jar
>
>HTH,
>
>Daniel
>
>-Message d'origine-
>De : jquest jquest [mailto:[EMAIL PROTECTED]]
>Envoyé : 24 avril, 2001 09:56
>À : [EMAIL PROTECTED]
>Objet : [JBoss-user] How to start JBossGUI.
>
>
>Hi,
>I can not find any information how to start JBossGUI.
>I only readet the information from :
>http://www.jboss.org/business/jboss-projects.html.
>
>Any help will be graet.
>Thank in advance.
>
>_
>Get Your Private, Free E-mail from MSN Hotmail at
>http://www.hotmail.com.
>
>
>___
>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

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


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



[JBoss-user] Consulting link on jboss.org site not working

2001-04-24 Thread Frank Thiemonge (NBK)

just thought I'd bring it to the correct people's attention if it is
unintentional...

Frank

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



[JBoss-user] network adapter can not establish connection error!

2001-04-24 Thread Qiao, Wei

Does anyone know what might cause it?  I am using Jboss2.2.1 with Tomcat on
Unix. 

Here are the errors:

[OracleDB] java.sql.SQLException: Io exception: The Network Adapter could
not es
tablish the connection
[OracleDB] Pool OracleDB factory
org.opentools.minerva.jdbc.xa.XAConnectionFactory@384065 unable to create
new object! 

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



Re: [JBoss-user] Configuring Jboss to use Log4j ?

2001-04-24 Thread David Jencks

Hi, the current log4j connection with jboss ignores almost all good
features of log4j and duplicates much of its functionality.  That being
said, using the non-log4j method of getting a log ends up with the logging
going through log4j.  I hope I haven't left anything important out here, I
haven't tried to log from within a bean.  A recent 2.3 patch lets you treat
log names ( the stuff that shows up in []) as log4j categories.

the log

org.jboss.logging.Log log;

when you create your object

log = Log.createLog("myname");


when you want to log something

Log.setLog(log);  //duplicates NDC.push(source) log4j functionality

log.log("my message");

Log.unsetLog(log); //duplicates NDC.pop() log4j  functionality


On 2001.04.24 08:24:01 -0400 "Doyle, Steven" wrote:
> Hi,
> 
> I'm reasonably new to jboss, and I am having difficulty getting JBoss to
> use
> Log4j
> 
> I have uncommented the relevant lines in jboss.conf and also removed the
> default file & console logging.
> 
> The service seems to start ok, except I get duplicate log entries
> appearing
> in the Jboss console. However I am unable to make my own logs using the
> Log4j.properties files supplied with Jboss.
> 
> Here is my code:
> 
> //Initialize logging
> logService=new Log4jService();
> logService.start();
> 
> Properties serviceProperties=new Properties();
> serviceProperties.load(new
> FileInputStream("c:/jboss-2.2.1/conf/default/log4j.properties"));
> PropertyConfigurator.configure(serviceProperties);
> 
> // get a category instance
> cat = Category.getRoot();
> 
> I get an exception org.apache.log4j.FileAppender saying that
> 
> A "org.apache.log4j.FileAppender" object is not assignable to a
> "org.apache.log4j.Appender" object.
> 
> 
> This is probably just a school boy error on my part, but does anyone have
> an
> example piece of code thast does this properly.
> 
> cheers
> 
> Steve Doyle
> 
> ___
> 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] Jboss-bug or misunderstanding ? (Loosing reference to JBoss object)

2001-04-24 Thread René Rolander Nygaard

This is in fact exatly what we did. 
This was however a test, and we just could figure out what precisly went
wrong.

After your mail we did talk some more (here at the office) and now we got
this simple question.

If we from our JSP call a SLSB with a findByPrimary(something), and then
afterwards FROM JSP calls setLastName(newLastName), and the EJB ref. is held
in the SLSB - can we then not be 100% it is the same EJB we just found
earlier.

In this example, is the correct method:

customerDataHolder currCustomer = SLSB.findByPrimary (loginName)

customerDataHolder.setLastName (newLastName);

SLSB.findAndSetCustomer (customerDataHolder);
 - and here the SLSB will make a new findByPrimary to make sure it is the
correct customer.
 - and afterwards call the setCustomerData method.

Please note that the bean layer is not included in this small example!

Again - thanks for your responses!

 - René Rolander Nygaard

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of David Jencks
> Sent: 24. april 2001 14:42
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Jboss-bug or misunderstanding ? (Loosing
> reference to JBoss object)
> 
> 
> Hi,
> Since you don't include your code or many details it is hard for 
> me to know
> exactly what is happening.  You appear to be returning a ResultSet from a
> SLSB.  Assuming that this result set was obtained from a db connection,
> this is a _VERY BAD IDEA_ even if it sometimes appears to work.  
> The result
> sets I am familiar with depend on a connection to the database to fetch
> more results when asked -- so they have to keep their association with the
> connection, etc.  However the design philosophy of a SLSB is that any work
> is done within a single method invocation.  Commit happens before you
> return from the call. So where is the "more information" in the result set
> supposed to come from (assuming snapshot or serializable transaction
> isolation)?
> 
> I suggest copying the information you are interested in into a standalone
> object such as a collection of data objects or an xml string.
> 
> If I have misunderstood your description of what you are doing I 
> apologize.
> 
> David Jencks
> 
> 
> On 2001.04.24 02:30:35 -0400 René Rolander Nygaard wrote:
> > We are getting pretty desperate regarding this question, so I 
> have to ask
> > again!
> > 
> > Through our speed-testing we are seeing more strange behaviors.
> > It seems as JBoss looses the reference to an object if you speed-clicks.
> > This can only mean that the problems occurs because the same session is
> > trying to access the same object more than once.
> > 
> > If you from a jsp page force a reload before the last page-load was
> > finished, it seems that the reference from the jsp page through to the
> > JBoss
> > stateless bean is lost!
> > 
> > Can we expect that in one work-cycle we get a reference to at different
> > JBoss stateless bean, and if this is the case - we cannot clean up after
> > us
> > self. 
> > 
> > The scenario again:
> > A jsp page gets a reference to a stateless session bean
> > The jsp page starts traverse a resultset
> > 
> > The disconnect functions all fail because the objects == null!
> > Sorry about this, but i cannot see this any other way than a 
> JBoss bug...
> > 
> > Please, please, please help us out here!!!
> > 
> >  - René Rolander Nygaard
> > 
> > 
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 

 winmail.dat


RE: [JBoss-user] Configuring Jboss to use Log4j ?

2001-04-24 Thread Doyle, Steven

I did have a look at the archive, and it did seem that some people have got
it working. It is working since I have disabled the normal logging and I
still get output in the jboss console(duplicate output infact) which implies
that it it is working, I just can't get my own logs to appear.



-Original Message-
From: Mohammed@Mellouk [mailto:[EMAIL PROTECTED]]
Sent: 24 April 2001 15:05
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Configuring Jboss to use Log4j ?


Hi,

as I knew they are known problems with JBoss and Log4J. I read in this
Mailing List !

Bye
Mo
- Original Message -
From: "Doyle, Steven" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 24, 2001 2:24 PM
Subject: [JBoss-user] Configuring Jboss to use Log4j ?


> Hi,
>
> I'm reasonably new to jboss, and I am having difficulty getting JBoss to
use
> Log4j
>
> I have uncommented the relevant lines in jboss.conf and also removed the
> default file & console logging.
>
> The service seems to start ok, except I get duplicate log entries
appearing
> in the Jboss console. However I am unable to make my own logs using the
> Log4j.properties files supplied with Jboss.
>
> Here is my code:
>
> //Initialize logging
> logService=new Log4jService();
> logService.start();
>
> Properties serviceProperties=new Properties();
> serviceProperties.load(new
> FileInputStream("c:/jboss-2.2.1/conf/default/log4j.properties"));
> PropertyConfigurator.configure(serviceProperties);
>
> // get a category instance
> cat = Category.getRoot();
>
> I get an exception org.apache.log4j.FileAppender saying that
>
> A "org.apache.log4j.FileAppender" object is not assignable to a
> "org.apache.log4j.Appender" object.
>
>
> This is probably just a school boy error on my part, but does anyone have
an
> example piece of code thast does this properly.
>
> cheers
>
> Steve Doyle
>
> ___
> 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

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



[JBoss-user] ejbdoclet generated CMP beans passivate/activate and data holder issue

2001-04-24 Thread Andrius Juozapaitis

hey,

I found out that there is a pretty weird issue with the above combination,
and thought it might be a good idea to share it with those who use ejbdoclet
:)

scenario:
-deploying an ejbdoclet generated cmp bean
-executing a few finds
-spend a period of inactivity (==bean instances are passivated)
-executing a findByPK(pkValue) on the cmp bean home interface
-bean.getData() return value is undefinded, ie. it might return the correct
value or a dataholder of a *previously used bean instance*

as I see it, during the bean passivation the cmp fields are set to the
default values, but as ejbdoclet generated CMP implementation has a
dataHolder object which is *not* a cmp field, therefore it's value remains
the same. after you do a findByPrimaryKey(pkValue) and call getData() on the
remote interface, you go through the following check:

   public mypackage.interfaces.MyBeanDataHolder getData()
   {
  if (dataHolder == null)
  {
 try
 {
dataHolder = mypackage.interfaces.MyBeanDataHolder();
dataHolder.setInvoiceId(getInvoiceId());
// [...]
 } catch (Exception e)
 {
throw new javax.ejb.EJBException(e);
 }
  }
  return dataHolder;
   }

a workaround for such a thing I though of is modifying the ejbdoclet
entitycmp.j template to explicitly set
dataHolder to null in ejbPassivate()

please correct me if I am wrong ;-)

regards,
--andrius


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



RE: [JBoss-user] Driver for mssql?

2001-04-24 Thread Daniel Cardin

You can try www.inetsoftware.de they have JDBC drivers (type 4) for
MSSQL.

You can go either with :

Sprinta2000 - JDBC 2.0 core   (Use Minerva for XDataSource)
Opta2000- JDBC 2.0 includes optional packages
or
the upcoming Merlia - JDBC 3.0 - Only usable with jdk 1.4

I have tested Sprinta with Minerva with good success. I am still getting
rid of the last 
wrinkles with Opta's own XDataSource (includes CachedRowSet for
distributed RowSets)

The best thing about those drivers is that they are being _actively_
developped and maintained.
The code maintainers also use JBoss sources to help in specific
debugging. 

ps. I am in no way affiliated with inetsoft :) Just think it's worth a
look.

HTH,

Daniel


-Message d'origine-
De : Frank Thiemonge (NBK) [mailto:[EMAIL PROTECTED]]
Envoyé : 24 avril, 2001 09:50 
À : '[EMAIL PROTECTED]'
Objet : RE: [JBoss-user] Driver for mssql?


Check out the old working dogs archive, in particular
http://www.mail-archive.com/jboss-user@list.working-dogs.com/msg10923.ht
ml

Don't know if this will do much good for v 6.5, but the
industry.java.sun
reference should point you in the right direction.

Hope this helps,

Frank

-Original Message-
From: Jim Cheesman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 24, 2001 5:03 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Driver for mssql?


Can anyone recommend a driver for MS SQL Server (v6.5)? The ones that
I've 
tried so far don't seem to work with JBoss, although I freely admit that

this may simply be due to my own incompetence...

(And if you could include the relevant sections of standardjaws.xml and 
jboss.jcml I'd *really* appreciate it ;)


Jim

--

   *   Jim Cheesman   *
 Trabajo: 
[EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
   Personal: 
[EMAIL PROTECTED] (34) 606 770 244
  Always be on the lookout 
for conspicuousness.



___
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

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



[JBoss-user] IMPOSSIBLE to unsubscribe

2001-04-24 Thread Christophe . Demez

Hello,

I m a member of the old jboss mailing list.

Also, to unsubscribe from this mailing list we need a password !!
But, with the old mailing list, we have no password !

So I m unable to unsubscribe !
Can someone help me

Thanx

Christophe


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



Re: [JBoss-user] About TOPIC_FACTORY on MDB's sample (The End)

2001-04-24 Thread jsoriano

>Well, whwre is the jndi.properties in that classpath? You tell me! I see
>only jboss-client.jar:jbs.jar:jbosssx-client.jar. Do you have it in
>jbs.jar?
(sorry, it is 'jms.jar')
>//Peter

Hi Peter: I'm running the Main.class application from another PC in
the net, so i prefer to add the location of InitialNamingContext in
my Main.java as i wrote in message:

"RE: [JBoss-user] About TOPIC_FACTORY on MDB's sample (At last!! :-)"


Thank you very much, Peter!
__
Jaume Soriano Sivera <[EMAIL PROTECTED]>
Tel: 96504 -ext. 44744 Fax: 965040047
Portal y servicios multimedia - Nuevas tecnologias 
W a n a d o o E s p a n a - http://www.wanadoo.es 
__

RE: [JBoss-user] How to start JBossGUI.

2001-04-24 Thread Daniel Cardin

in the /bin directory : java -jar ejx.jar

HTH,

Daniel

-Message d'origine-
De : jquest jquest [mailto:[EMAIL PROTECTED]]
Envoyé : 24 avril, 2001 09:56 
À : [EMAIL PROTECTED]
Objet : [JBoss-user] How to start JBossGUI.


Hi,
I can not find any information how to start JBossGUI.
I only readet the information from : 
http://www.jboss.org/business/jboss-projects.html.

Any help will be graet.
Thank in advance.

_
Get Your Private, Free E-mail from MSN Hotmail at
http://www.hotmail.com.


___
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] Driver for mssql?

2001-04-24 Thread Frank Thiemonge (NBK)

Check out the old working dogs archive, in particular
http://www.mail-archive.com/jboss-user@list.working-dogs.com/msg10923.html

Don't know if this will do much good for v 6.5, but the industry.java.sun
reference should point you in the right direction.

Hope this helps,

Frank

-Original Message-
From: Jim Cheesman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 24, 2001 5:03 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Driver for mssql?


Can anyone recommend a driver for MS SQL Server (v6.5)? The ones that I've 
tried so far don't seem to work with JBoss, although I freely admit that 
this may simply be due to my own incompetence...

(And if you could include the relevant sections of standardjaws.xml and 
jboss.jcml I'd *really* appreciate it ;)


Jim

--

   *   Jim Cheesman   *
 Trabajo: 
[EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
   Personal: 
[EMAIL PROTECTED] (34) 606 770 244
  Always be on the lookout 
for conspicuousness.



___
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] Jetty vs. Tomcat

2001-04-24 Thread R . Price

I just downloaded the latest integrated versions and have had no problems
utilizing the same .ear file I used with the Tomcat integration.  (That was
the JBoss 2.2.1 w/ Jetty configuration).

Robert






Jim Archer <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
04/23/2001 03:04 PM
Please respond to jboss-user

        
        To:        [EMAIL PROTECTED]
        cc:        
        Subject:        Re: [JBoss-user] Jetty vs. Tomcat


Actually, I tried Jetty (as part of the jBoss 2.2.1 bundle) just the other 
day. It installed fine but when I deployed my EAR I got a bunch of errors 
complaining about JNDI.

When I ran my app, I got a bunch of maning exceptions. I have not had time 
to look into this further, but it did make me wonder if Jetty is fully 
intergrated, like Tomcat is. I would have expected the very same EAR to run 
just the same under either Jetty or Tomcat...

Jim

--On Friday, April 20, 2001 1:50 AM -0500 danch <[EMAIL PROTECTED]> wrote:

> Alternatively, Tomcat is the reference implementation. Jetty is
> lightweight and fast.
>
> The only other thing is that (judging from traffic analysis of these
> mailing lists) Integration of Tomcat with JBoss is better tested. (Jetty
> users, feel free to argue)
>
> -danch
>
> Alvin Yap wrote:
>
>> Tomcat is more robust and extensible.  Jetty is lightweight and fast.
>>
>> Alvin
>>
>> Jason Dillon wrote:
>>
>>
>>> Does anyone have any opinions as to which contain is more robust,
>>> easier to use and such?
>>>
>>> --jason
>>>
>>> ___
>>> 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
>
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user




I shall be telling this with a sigh
Somewhere ages and ages hence:
Two roads diverged in a wood, and I -
I took the one less traveled by,
And that has made all the difference.

- Robert Frost, 1916


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




Re: [JBoss-user] Configuring Jboss to use Log4j ?

2001-04-24 Thread [EMAIL PROTECTED]

Hi,

as I knew they are known problems with JBoss and Log4J. I read in this
Mailing List !

Bye
Mo
- Original Message -
From: "Doyle, Steven" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 24, 2001 2:24 PM
Subject: [JBoss-user] Configuring Jboss to use Log4j ?


> Hi,
>
> I'm reasonably new to jboss, and I am having difficulty getting JBoss to
use
> Log4j
>
> I have uncommented the relevant lines in jboss.conf and also removed the
> default file & console logging.
>
> The service seems to start ok, except I get duplicate log entries
appearing
> in the Jboss console. However I am unable to make my own logs using the
> Log4j.properties files supplied with Jboss.
>
> Here is my code:
>
> //Initialize logging
> logService=new Log4jService();
> logService.start();
>
> Properties serviceProperties=new Properties();
> serviceProperties.load(new
> FileInputStream("c:/jboss-2.2.1/conf/default/log4j.properties"));
> PropertyConfigurator.configure(serviceProperties);
>
> // get a category instance
> cat = Category.getRoot();
>
> I get an exception org.apache.log4j.FileAppender saying that
>
> A "org.apache.log4j.FileAppender" object is not assignable to a
> "org.apache.log4j.Appender" object.
>
>
> This is probably just a school boy error on my part, but does anyone have
an
> example piece of code thast does this properly.
>
> cheers
>
> Steve Doyle
>
> ___
> 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



[JBoss-user] How to start JBossGUI.

2001-04-24 Thread jquest jquest

Hi,
I can not find any information how to start JBossGUI.
I only readet the information from : 
http://www.jboss.org/business/jboss-projects.html.

Any help will be graet.
Thank in advance.
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


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



Re: [JBoss-user] exception handling problem

2001-04-24 Thread Victor Langelo

TransactionRollbackException extends RemoteException which has a field called
detail. Your original exception should be in detail. Have you looked at detail?

--Victor

swarajit wrote:

> hi,
>  i am using jboss as my ejbserver in which i have a chain like jsp
> -> essionbean->entitybean(bmp)->writing to   directory server(Netscape
> Directory server 4.2). i want to obtain exception information for three
> differnt conditions 1. nds not running 2. name already bound 3. name not
> bound , in each case i am throwing
> my own exception class from the bmp. but the container is also throwing
> transaction roll back exception for
> the same exception conditions, so in session beans i am only getting
> transaction rollback exception..
>
> am i doing something wrong? is there a way to sort it out?
>
> thanx in advance
> swarajit
>
> ___
> 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



[JBoss-user] Problems with ZOAP test suite

2001-04-24 Thread L . Jenner

Hi,

when running the ZAOP/jBossSOAP test suite with jboss-2.2.1 i get:

...
FAILURES!!!
Tests run: 23,   Failures: 0,   Errors: 8

The server log says

...
null envelope or non-MethodRequest envelope found
...

maybe the used urls http://xml.zoap.org and http://soap.zoap.org
are out of date? Are there up to date replacements? 
Any help appreciated,

Thanks,
Lars

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



Re: [JBoss-user] About TOPIC_FACTORY on MDB's sample (1 more time : )

2001-04-24 Thread Peter Antman

On 24 Apr, [EMAIL PROTECTED] wrote:
> Chris wrote:
>>>This looks like an error in that you have not defined the jndi settings 
> - do
>>>you have a jndi.properties file?
> 
>>>It should be on your classpath of the client and look something like 
> this;
> 
> Hi Chris! : that's not the problem. My 'jdni.properties' file is Ok!
> A pair of clues, in my 'ejb-jar.xml' file:
> * I have had problems with the tag:
> NotRequired
> 
>is not recognized by the parser (it fails when i deploy the 
> application):
>i have changed by
> Required
> 
>  
> * ...Moreover, can not label 'DurableTopicBean' the tag ...
>   in section ''. The only way to deploy my bean
>   is labeling as tag  in the 'message-driver' section.
> 
> More clues:
> To run my 'Main.class' file i do the following:
> 
> java  -classpath  jboss-client.jar:jbs.jar:jbosssx-client.jar  Main

Well, whwre is the jndi.properties in that classpath? You tell me! I see
only jboss-client.jar:jbs.jar:jbosssx-client.jar. Do you have it in
jbs.jar?

//Peter

> 
> Thanks
> 
> __
> Jaume Soriano Sivera <[EMAIL PROTECTED]>
> Tel: 96504 -ext. 44744 Fax: 965040047
> Portal y servicios multimedia - Nuevas tecnologias 
> W a n a d o o E s p a n a - http://www.wanadoo.es 
> __
> 
> 
> 
> 
> 
> "Kimpton,C (Chris)" <[EMAIL PROTECTED]>
> Sent by: [EMAIL PROTECTED]
> 24/04/01 10:23
> Please respond to jboss-user
> 
>  
> To: "'[EMAIL PROTECTED]'" 
><[EMAIL PROTECTED]>
> cc: 
> Subject:RE: [JBoss-user] About TOPIC_FACTORY on MDB's sample (1 more 
>time : )
> 
> 
> Hi,
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> 
>> "javax.naming.NoInitialContextException: Need to specify class name in
> enviroment 
>> or system property, or as an applet parameter, or in an application
> resource file: 
>> java.naming.factory.initial 
> 
> 
> 
> 
> 
> java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
> java.naming.provider.url=localhost:1099
> java.naming.factory.url.pkgs=org.jboss.naming
> 
> #
> 
> HTH,
> Chris
> 
> 
>
> This electronic message (email) and any attachments to it are subject to 
> copyright and are sent for the personal attention of the addressee. 
> Although you may be the named recipient, it may become apparent that this 
> email and its contents are not intended for you and an addressing error 
> has been made. This email may include information that is legally 
> privileged and exempt from disclosure. If you have received this email in 
> error, please advise us immediately and delete this email and any 
> attachments from your computer system.Rabobank International is the 
> trading name of Coöperatieve Centrale Raiffeisen-Boerenleenbank B.A. which 
> is incorporated in the Netherlands. Registered with the Registrar of 
> Companies for England & Wales No. BR002630 and regulated by the SFA for 
> the conduct of investment business in the UK.
> 
> The presence of this footnote also confirms that this email has been 
> automatically checked by Rabobank International for the presence of 
> computer viruses prior to it being sent, however, no guarantee is given or 
> implied that this email is virus free upon delivery.
> 
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 

-- 
Jobba hos oss: http://www.tim.se/weblab

Peter Antman Technology in Media, Box 34105 100 26 Stockholm
Systems ArchitectWWW: http://www.tim.se
Email: [EMAIL PROTECTED]WWW: http://www.backsource.org
Phone: +46-(0)8-506 381 11 Mobile: 070-675 3942 



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



[JBoss-user] exception handling problem

2001-04-24 Thread swarajit


hi,
 i am using jboss as my ejbserver in which i have a chain like jsp
-> essionbean->entitybean(bmp)->writing to   directory server(Netscape
Directory server 4.2). i want to obtain exception information for three
differnt conditions 1. nds not running 2. name already bound 3. name not
bound , in each case i am throwing
my own exception class from the bmp. but the container is also throwing
transaction roll back exception for
the same exception conditions, so in session beans i am only getting
transaction rollback exception.. 

am i doing something wrong? is there a way to sort it out? 

thanx in advance
swarajit

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



[JBoss-user] javax.management.InstanceNotFoundException: J2EE:service=J2eeDeployer

2001-04-24 Thread Matt Brinkman

Thanks for your reply Toby. Here is my jboss.jcml.




  
  
8083
  

  
  
1099
  
  


  
  
300
  

  

  
  
org.jboss.security.plugins.JaasSecurityManag
er
  

  

  
  
 org.gjt.mm.mysql.Driver
  

  
org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp
l
mySQLDS  
jdbc:mysql://localhost/ICS


  

  

  
true
false
true
false
  

  
  
  
DefaultJMSProvider
org.jboss.jms.jndi.JBossMQProvider
  
  
StdJMSPool
org.jboss.jms.asf.StdServerSessionPoolFactory
  

  
J2EE:service=J2eeDeployer
../deploy
  

  
  
  

  
  
MinervaNoTransCMFactory
org.opentools.minerva.connector.jboss.MinervaNoTransCMFa
ctory

  

  
  
MinervaSharedLocalCMFactory
org.opentools.minerva.connector.jboss.MinervaSharedLocal
CMFactory

  

  
  
MinervaXACMFactory
org.opentools.minerva.connector.jboss.MinervaXACMFactory


  

  
  

  

  
10

8082
  

  



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



Re: [JBoss-user] Jboss-bug or misunderstanding ? (Loosing reference to JBoss object)

2001-04-24 Thread David Jencks

Hi,
Since you don't include your code or many details it is hard for me to know
exactly what is happening.  You appear to be returning a ResultSet from a
SLSB.  Assuming that this result set was obtained from a db connection,
this is a _VERY BAD IDEA_ even if it sometimes appears to work.  The result
sets I am familiar with depend on a connection to the database to fetch
more results when asked -- so they have to keep their association with the
connection, etc.  However the design philosophy of a SLSB is that any work
is done within a single method invocation.  Commit happens before you
return from the call. So where is the "more information" in the result set
supposed to come from (assuming snapshot or serializable transaction
isolation)?

I suggest copying the information you are interested in into a standalone
object such as a collection of data objects or an xml string.

If I have misunderstood your description of what you are doing I apologize.

David Jencks


On 2001.04.24 02:30:35 -0400 René Rolander Nygaard wrote:
> We are getting pretty desperate regarding this question, so I have to ask
> again!
> 
> Through our speed-testing we are seeing more strange behaviors.
> It seems as JBoss looses the reference to an object if you speed-clicks.
> This can only mean that the problems occurs because the same session is
> trying to access the same object more than once.
> 
> If you from a jsp page force a reload before the last page-load was
> finished, it seems that the reference from the jsp page through to the
> JBoss
> stateless bean is lost!
> 
> Can we expect that in one work-cycle we get a reference to at different
> JBoss stateless bean, and if this is the case - we cannot clean up after
> us
> self. 
> 
> The scenario again:
> A jsp page gets a reference to a stateless session bean
> The jsp page starts traverse a resultset
> 
> The disconnect functions all fail because the objects == null!
> Sorry about this, but i cannot see this any other way than a JBoss bug...
> 
> Please, please, please help us out here!!!
> 
>  - René Rolander Nygaard
> 
> 


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



RE: [JBoss-user] PDF Manual

2001-04-24 Thread Jean-Francois Henrard
Title: RE: [JBoss-user] PDF Manual





how can I do it (build a manual) ?


can someone explain me, please.


Jean-François




-Message d'origine-
De : Peter Routtier-Wone [mailto:[EMAIL PROTECTED]]
Envoyé : mardi 24 avril 2001 13:42
À : [EMAIL PROTECTED]
Objet : Re: [JBoss-user] PDF Manual



Yeah, there is. It's not free.


You can build it yourself out of CVS.
- Original Message -
From: "Jean-Francois Henrard" <[EMAIL PROTECTED]>
To: "JBoss mailing list (E-mail)" <[EMAIL PROTECTED]>
Sent: Tuesday, April 24, 2001 7:09 PM
Subject: [JBoss-user] PDF Manual



is there somewhere a PDF version of the JBoss manual ?


thanks for your answers


Jean-François





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





[JBoss-user] Configuring Jboss to use Log4j ?

2001-04-24 Thread Doyle, Steven

Hi,

I'm reasonably new to jboss, and I am having difficulty getting JBoss to use
Log4j

I have uncommented the relevant lines in jboss.conf and also removed the
default file & console logging.

The service seems to start ok, except I get duplicate log entries appearing
in the Jboss console. However I am unable to make my own logs using the
Log4j.properties files supplied with Jboss.

Here is my code:

//Initialize logging
logService=new Log4jService();
logService.start();

Properties serviceProperties=new Properties();
serviceProperties.load(new
FileInputStream("c:/jboss-2.2.1/conf/default/log4j.properties"));
PropertyConfigurator.configure(serviceProperties);

// get a category instance
cat = Category.getRoot();

I get an exception org.apache.log4j.FileAppender saying that

A "org.apache.log4j.FileAppender" object is not assignable to a
"org.apache.log4j.Appender" object.


This is probably just a school boy error on my part, but does anyone have an
example piece of code thast does this properly.

cheers

Steve Doyle

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



[JBoss-user] Accesing JBoss through a firewall

2001-04-24 Thread Jose Ramon Diaz

Hi,

We are trying to access an EJB in JBOSS from a servlet. But, beetwen
servlet server and the JBoss server there is a firewall. Our problem is
that JBoss is using another port than 1099 for JNDI, and it´s different
each time.
Is there anyway to set the port for a connection to a EJB?

Thanks in advance...

Jose R. & Juan


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



RE: [JBoss-user] About TOPIC_FACTORY on MDB's sample (1 more time : )

2001-04-24 Thread jsoriano

Hi Eoin:

Instead of 
  TOPIC_FACTORY
write this:
  "TopicConnectionFactory"

...Or, before 'main()' method you can write:
static final String TOPIC_FACTORY= "TopicConnectionFactory";

Regards:
__
Jaume Soriano Sivera <[EMAIL PROTECTED]>
Tel: 96504 -ext. 44744 Fax: 965040047
Portal y servicios multimedia - Nuevas tecnologias 
W a n a d o o E s p a n a - http://www.wanadoo.es 
__






"Eoin Lane" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
24/04/01 13:34
Please respond to jboss-user

        
        To:        <[EMAIL PROTECTED]>
        cc:        
        Subject:        RE: [JBoss-user] About TOPIC_FACTORY on MDB's sample (1 more time : )


I'm working on this example also at the moment: here are the changes I have make,
 
I changed the DurableTopicBean to MDB and
the NoRequired to NotSupported. 
 
I have added the jndi.properties file to my path as suggested but I'm still getting the error
of not being able to resolve the variable TOPIC_FACTORY
 
Any clues
 
Eoin
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED]
Sent: 24 April 2001 11:28
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] About TOPIC_FACTORY on MDB's sample (1 more time : )


Chris wrote: 
>>This looks like an error in that you have not defined the jndi settings - do
>>you have a jndi.properties file?

>>It should be on your classpath of the client and look something like this;

Hi Chris! : that's not the problem. My 'jdni.properties' file is Ok! 
A pair of clues, in my 'ejb-jar.xml' file: 
* I have had problems with the tag: 
        NotRequired 

   is not recognized by the parser (it fails when i deploy the application): 
   i have changed by 
        Required 

    
* ...Moreover, can not label 'DurableTopicBean' the tag ... 
  in section ''. The only way to deploy my bean 
  is labeling as tag  in the 'message-driver' section. 

More clues: 
To run my 'Main.class' file i do the following: 

java  -classpath  jboss-client.jar:jbs.jar:jbosssx-client.jar  Main 

Thanks 

__
Jaume Soriano Sivera <[EMAIL PROTECTED]>
Tel: 96504 -ext. 44744 Fax: 965040047
Portal y servicios multimedia - Nuevas tecnologias 
W a n a d o o E s p a n a - http://www.wanadoo.es 
__ 






"Kimpton,C (Chris)" <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED] 
24/04/01 10:23 
Please respond to jboss-user 
        
        To:        "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> 
        cc:         
        Subject:        RE: [JBoss-user] About TOPIC_FACTORY on MDB's sample (1 more time : )



Hi,

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]

> "javax.naming.NoInitialContextException: Need to specify class name in
enviroment 
> or system property, or as an applet parameter, or in an application
resource file: 
> java.naming.factory.initial 





java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.provider.url=localhost:1099
java.naming.factory.url.pkgs=org.jboss.naming

#

HTH,
Chris


This electronic message (email) and any attachments to it are subject to copyright and are sent for the personal attention of the addressee. Although you may be the named recipient, it may become apparent that this email and its contents are not intended for you and an addressing error has been made. This email may include information that is legally privileged and exempt from disclosure. If you have received this email in error, please advise us immediately and delete this email and any attachments from your computer system.Rabobank International is the trading name of Coöperatieve Centrale Raiffeisen-Boerenleenbank B.A. which is incorporated in the Netherlands. Registered with the Registrar of Companies for England & Wales No. BR002630 and regulated by the SFA for the conduct of investment business in the UK.

The presence of this footnote also confirms that this email has been automatically checked by Rabobank International for the presence of computer viruses prior to it being sent, however, no guarantee is given or implied that this email is virus free upon delivery.



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





Re: [JBoss-user] Bad Magic Number

2001-04-24 Thread Peter Routtier-Wone

You don't compile a jar, he means if you compile the classes going into the
jar...

I find that when I accidentally compile some classes with jdk1.2.x, prep the
jar and then later recompile the client and classes with 1.3 I get this
message. It used to happen because I had a text editor set up for 1.2.2 but
the compiler on the path was 1.3, and I have a habit of wildcard compiling
whole directories. When a class compiled with 1.2.2 was already in the jar
but the one on the local path was rebuilt with 1.3 this would case the bad
magic number error presumably due to serialisation incompatibility.



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



Re: [JBoss-user] PDF Manual

2001-04-24 Thread Peter Routtier-Wone

Yeah, there is. It's not free.

You can build it yourself out of CVS.
- Original Message -
From: "Jean-Francois Henrard" <[EMAIL PROTECTED]>
To: "JBoss mailing list (E-mail)" <[EMAIL PROTECTED]>
Sent: Tuesday, April 24, 2001 7:09 PM
Subject: [JBoss-user] PDF Manual


is there somewhere a PDF version of the JBoss manual ?

thanks for your answers

Jean-François




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



RE: [JBoss-user] About TOPIC_FACTORY on MDB's sample (1 more time : )

2001-04-24 Thread Eoin Lane



I'm 
working on this example also at the moment: here are the changes I have 
make,
 
I 
changed the DurableTopicBean to 
MDB and
the 
NoRequired to 
NotSupported. 

 
I have 
added the jndi.properties file to my path as suggested but I'm still getting the 
error
of not 
being able to resolve the variable TOPIC_FACTORY
 
Any 
clues
 
Eoin

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of 
  [EMAIL PROTECTED]Sent: 24 April 2001 11:28To: 
  [EMAIL PROTECTED]Subject: RE: [JBoss-user] About 
  TOPIC_FACTORY on MDB's sample (1 more time : )Chris wrote: >>This looks like an error in that you have not defined the jndi 
  settings - do>>you have a jndi.properties file?>>It 
  should be on your classpath of the client and look something like 
  this;Hi Chris! : that's not the 
  problem. My 'jdni.properties' file is Ok! A pair of clues, in my 'ejb-jar.xml' file: * I have had problems with the tag:         
  NotRequired 
     is not recognized by the 
  parser (it fails when i deploy the application):    i have changed by         
  Required     * 
  ...Moreover, can not label 'DurableTopicBean' the tag 
  ...   in section 
  ''. The only way to deploy my bean   is labeling as tag  in the 
  'message-driver' section. More 
  clues: To run my 'Main.class' file i 
  do the following: java 
   -classpath  jboss-client.jar:jbs.jar:jbosssx-client.jar 
   Main Thanks 
  __Jaume Soriano Sivera 
  <[EMAIL PROTECTED]>Tel: 96504 -ext. 44744 Fax: 
  965040047Portal y servicios multimedia - Nuevas tecnologias W a n a d 
  o o E s p a n a - http://www.wanadoo.es 
  __ 
  


  
  "Kimpton,C (Chris)" 
<[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 
24/04/01 10:23 Please respond to jboss-user 
                  To:     
   "'[EMAIL PROTECTED]'" 
<[EMAIL PROTECTED]>         cc:     
        
    Subject:        RE: [JBoss-user] About 
TOPIC_FACTORY on MDB's sample (1 more time : 
  )Hi,-Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]> 
  "javax.naming.NoInitialContextException: Need to specify class name 
  inenviroment > or system property, or as an applet parameter, or in 
  an applicationresource file: > java.naming.factory.initial 
  java.naming.factory.initial=org.jnp.interfaces.NamingContextFactoryjava.naming.provider.url=localhost:1099java.naming.factory.url.pkgs=org.jboss.naming#HTH,ChrisThis 
  electronic message (email) and any attachments to it are subject to copyright 
  and are sent for the personal attention of the addressee. Although you may be 
  the named recipient, it may become apparent that this email and its contents 
  are not intended for you and an addressing error has been made. This email may 
  include information that is legally privileged and exempt from disclosure. If 
  you have received this email in error, please advise us immediately and delete 
  this email and any attachments from your computer system.Rabobank 
  International is the trading name of Coöperatieve Centrale 
  Raiffeisen-Boerenleenbank B.A. which is incorporated in the Netherlands. 
  Registered with the Registrar of Companies for England & Wales No. 
  BR002630 and regulated by the SFA for the conduct of investment business in 
  the UK.The presence of this footnote also confirms that this email has 
  been automatically checked by Rabobank International for the presence of 
  computer viruses prior to it being sent, however, no guarantee is given or 
  implied that this email is virus free upon 
  delivery.___JBoss-user 
  mailing 
  list[EMAIL PROTECTED]http://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] About TOPIC_FACTORY on MDB's sample (At last!! :-)

2001-04-24 Thread jsoriano

Well, it seems solved  :)

In 'Main.java', method 'public static void main(String arg[])', 
before the 'try{ ... }' sentence we should write the following:

System.setProperty("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");
System.setProperty("java.naming.provider.url","localhost:1099");

I think there are more ways to do the same, but it works!
Now i wonder: 
is the 'Main.java' a wrong file? or perhaps,
did i forget any deployment file?

__
Jaume Soriano Sivera <[EMAIL PROTECTED]>
Tel: 96504 -ext. 44744 Fax: 965040047
Portal y servicios multimedia - Nuevas tecnologias 
W a n a d o o E s p a n a - http://www.wanadoo.es 
__






[EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
24/04/01 12:27
Please respond to jboss-user

        
        To:        [EMAIL PROTECTED]
        cc:        
        Subject:        RE: [JBoss-user] About TOPIC_FACTORY on MDB's sample (1 more time : )



Chris wrote: 
>>This looks like an error in that you have not defined the jndi settings - do
>>you have a jndi.properties file?

>>It should be on your classpath of the client and look something like this;

Hi Chris! : that's not the problem. My 'jdni.properties' file is Ok! 
A pair of clues, in my 'ejb-jar.xml' file: 
* I have had problems with the tag: 
        NotRequired 

   is not recognized by the parser (it fails when i deploy the application): 
   i have changed by 
        Required 

    
* ...Moreover, can not label 'DurableTopicBean' the tag ... 
  in section ''. The only way to deploy my bean 
  is labeling as tag  in the 'message-driver' section. 

More clues: 
To run my 'Main.class' file i do the following: 

java  -classpath  jboss-client.jar:jbs.jar:jbosssx-client.jar  Main 

Thanks 

__
Jaume Soriano Sivera <[EMAIL PROTECTED]>
Tel: 96504 -ext. 44744 Fax: 965040047
Portal y servicios multimedia - Nuevas tecnologias 
W a n a d o o E s p a n a - http://www.wanadoo.es 
__ 






"Kimpton,C (Chris)" <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED] 
24/04/01 10:23 
Please respond to jboss-user 
        
        To:        "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> 
        cc:         
        Subject:        RE: [JBoss-user] About TOPIC_FACTORY on MDB's sample (1 more time : )



Hi,

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]

> "javax.naming.NoInitialContextException: Need to specify class name in
enviroment 
> or system property, or as an applet parameter, or in an application
resource file: 
> java.naming.factory.initial 





java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.provider.url=localhost:1099
java.naming.factory.url.pkgs=org.jboss.naming

#

HTH,
Chris


This electronic message (email) and any attachments to it are subject to copyright and are sent for the personal attention of the addressee. Although you may be the named recipient, it may become apparent that this email and its contents are not intended for you and an addressing error has been made. This email may include information that is legally privileged and exempt from disclosure. If you have received this email in error, please advise us immediately and delete this email and any attachments from your computer system.Rabobank International is the trading name of Coöperatieve Centrale Raiffeisen-Boerenleenbank B.A. which is incorporated in the Netherlands. Registered with the Registrar of Companies for England & Wales No. BR002630 and regulated by the SFA for the conduct of investment business in the UK.

The presence of this footnote also confirms that this email has been automatically checked by Rabobank International for the presence of computer viruses prior to it being sent, however, no guarantee is given or implied that this email is virus free upon delivery.



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





Re: [JBoss-user] About TOPIC_FACTORY on MDB's sample (1 more time :)

2001-04-24 Thread Peter Antman

You need to have a jndi.properties in your classpath, containing
somethinh like this:


java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.provider.url=localhost
java.naming.factory.url.pkgs=org.jboss.naming


//Peter
On 24 Apr, [EMAIL PROTECTED] wrote:
> Thank you Peter!...now i can compile my java file but i'm still having 
> problems to run this example:
> I suppose the 'TopicConnectionFactory' should be defined anywhere in the 
> context...but, in which file?
> and, how it looks?
> When i try to run my compiled java file i get the following:
> 
> "javax.naming.NoInitialContextException: Need to specify class name in 
> enviroment
> or system property, or as an applet parameter, or in an application 
> resource file:
> java.naming.factory.initial
> ...
> (and other java messages)
> "
> 
> I think it is dued to the line: 
> ...
> TopicConnectionFactory  tf = (TopicConnectionFactory) 
> ctx.lookup("TopicConnectionFactory");
> ...
> The JVM can't find this variable in the context, isn't it?
> Perhaps i need to define 'something' else in 'jboss.jcml'?
> 
> Thanks a lot in advance!
> __
> Jaume Soriano Sivera <[EMAIL PROTECTED]>
> Tel: 96504 -ext. 44744 Fax: 965040047
> Portal y servicios multimedia - Nuevas tecnologias 
> W a n a d o o E s p a n a - http://www.wanadoo.es 
> __
> 
> 
> 
> 
> [EMAIL PROTECTED]
> Sent by: [EMAIL PROTECTED]
> 23/04/01 18:39
> Please respond to jboss-user
> 
>  
> To: [EMAIL PROTECTED]
> cc: 
> Subject:Re: [JBoss-user] About TOPIC_FACTORY on MDB's sample.
> 
> 
> On 23 Apr, [EMAIL PROTECTED] wrote:
>> Hello again:
>> 
>> (JBoss Documentation, Chapter 7 "Writing Message Driven Bean")
>> 
>> After deploying de MDB.class + META-INF i've began to
>> write the 'Main.java' application in order to send a stuff
>> to my bean.
>> The problem arrives when compiling this file, i get the following:
>> 
>> Main.java:9: cannot resolve symbol
>> symbol: variable TOPIC_FACTORY
>> location: class Main
>>  TopicConnectionFactory topicFactory = (TopicConnectionFactory) 
>> context.lookup(TOPIC_FACTORY)
>> ^
>> 
>> 1 error
>> 
>> what is 'TOPIC_FACTORY'?
>> 
>> should this variable be declared anywhere?
> 
> Yes. Typicaly a static final String, ie
> 
> static final String TOPIC_FACTORY = "TopicConnectionFactory";
> 
> which I obviously missed to get when I ripped the example from some of
> my programs. Sorry.
> 
> //Peter
>> 
>> Thanks in advance!
>> 
>> Regards:
>> _
>> Jaume Soriano Sivera <[EMAIL PROTECTED]>
>> _

-- 
Jobba hos oss: http://www.tim.se/weblab

Peter Antman Technology in Media, Box 34105 100 26 Stockholm
Systems ArchitectWWW: http://www.tim.se
Email: [EMAIL PROTECTED]WWW: http://www.backsource.org
Phone: +46-(0)8-506 381 11 Mobile: 070-675 3942 



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



RE: [JBoss-user] Driver for mssql?

2001-04-24 Thread Jim Cheesman

At 12:34 PM 4/24/2001, you wrote:

>free tds
>
>http://www.freetds.org


Thanks!



>-Message d'origine-
>De : Jim Cheesman [mailto:[EMAIL PROTECTED]]
>Envoyé : mardi 24 avril 2001 12:03
>À : [EMAIL PROTECTED]
>Objet : [JBoss-user] Driver for mssql?
>
>Can anyone recommend a driver for MS SQL Server (v6.5)? The ones that I've
>tried so far don't seem to work with JBoss, although I freely admit that
>this may simply be due to my own incompetence...
>
>(And if you could include the relevant sections of standardjaws.xml and
>jboss.jcml I'd *really* appreciate it ;)
>
>Jim
>
>--
>
>*   Jim Cheesman   *
>  Trabajo:
>[EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
>Personal:
>[EMAIL PROTECTED] (34) 606 770 244
>   Always be on the lookout
>for conspicuousness.
>
>
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>http://lists.sourceforge.net/lists/listinfo/jboss-user
> 
>


--

   *   Jim Cheesman   *
 Trabajo: 
[EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
   Personal: 
[EMAIL PROTECTED] (34) 606 770 244
  Always be on the lookout 
for conspicuousness.



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



[JBoss-user] custom table initialization with cmp

2001-04-24 Thread Christian Thrum

hello all,

i need to customize the table creation for a cmp entity bean because i want
to create additional indexes etc.
is this possible with jaws?

thanks,

christian

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



RE: [JBoss-user] Driver for mssql?

2001-04-24 Thread Jean-Francois Henrard
Title: RE: [JBoss-user] Driver for mssql?





free tds


http://www.freetds.org



-Message d'origine-
De : Jim Cheesman [mailto:[EMAIL PROTECTED]]
Envoyé : mardi 24 avril 2001 12:03
À : [EMAIL PROTECTED]
Objet : [JBoss-user] Driver for mssql?



Can anyone recommend a driver for MS SQL Server (v6.5)? The ones that I've 
tried so far don't seem to work with JBoss, although I freely admit that 
this may simply be due to my own incompetence...


(And if you could include the relevant sections of standardjaws.xml and 
jboss.jcml I'd *really* appreciate it ;)



Jim


--


   *   Jim Cheesman   *
 Trabajo: 
[EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
   Personal: 
[EMAIL PROTECTED] (34) 606 770 244
  Always be on the lookout 
for conspicuousness.




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





RE: [JBoss-user] About TOPIC_FACTORY on MDB's sample (1 more time : )

2001-04-24 Thread jsoriano

Chris wrote:
>>This looks like an error in that you have not defined the jndi settings - do
>>you have a jndi.properties file?

>>It should be on your classpath of the client and look something like this;

Hi Chris! : that's not the problem. My 'jdni.properties' file is Ok!
A pair of clues, in my 'ejb-jar.xml' file:
* I have had problems with the tag:
        NotRequired

   is not recognized by the parser (it fails when i deploy the application):
   i have changed by
        Required

   
* ...Moreover, can not label 'DurableTopicBean' the tag ...
  in section ''. The only way to deploy my bean
  is labeling as tag  in the 'message-driver' section.

More clues:
To run my 'Main.class' file i do the following:

java  -classpath  jboss-client.jar:jbs.jar:jbosssx-client.jar  Main

Thanks

__
Jaume Soriano Sivera <[EMAIL PROTECTED]>
Tel: 96504 -ext. 44744 Fax: 965040047
Portal y servicios multimedia - Nuevas tecnologias 
W a n a d o o E s p a n a - http://www.wanadoo.es 
__







"Kimpton,C (Chris)" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
24/04/01 10:23
Please respond to jboss-user

        
        To:        "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
        cc:        
        Subject:        RE: [JBoss-user] About TOPIC_FACTORY on MDB's sample (1 more time : )


Hi,

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]

> "javax.naming.NoInitialContextException: Need to specify class name in
enviroment 
> or system property, or as an applet parameter, or in an application
resource file: 
> java.naming.factory.initial 





java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.provider.url=localhost:1099
java.naming.factory.url.pkgs=org.jboss.naming

#

HTH,
Chris


This electronic message (email) and any attachments to it are subject to copyright and are sent for the personal attention of the addressee. Although you may be the named recipient, it may become apparent that this email and its contents are not intended for you and an addressing error has been made. This email may include information that is legally privileged and exempt from disclosure. If you have received this email in error, please advise us immediately and delete this email and any attachments from your computer system.Rabobank International is the trading name of Coöperatieve Centrale Raiffeisen-Boerenleenbank B.A. which is incorporated in the Netherlands. Registered with the Registrar of Companies for England & Wales No. BR002630 and regulated by the SFA for the conduct of investment business in the UK.

The presence of this footnote also confirms that this email has been automatically checked by Rabobank International for the presence of computer viruses prior to it being sent, however, no guarantee is given or implied that this email is virus free upon delivery.



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




  1   2   >