Re: [JBoss-user] loading .class, .jsp from file system instead EAR/WAR?

2002-12-03 Thread Sundaram
You can do that, add your  web directory  into  tomcat/conf/server.xml file.
-SR



- Original Message -
From: "otisg" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 02, 2002 8:38 PM
Subject: [JBoss-user] loading .class, .jsp from file system instead EAR/WAR?


> Hello,
>
> I have JBoss 2.4.4 with Tomcat, and I am
> wondering if it is possible to load Java
> classes and JSPs from a directory (tree)
> instead of from a packaged EAR/WAR file.
>
> I am asking this because having to package
> everything and redeploy it slows down our
> development process significantly.
>
> Thank you,
> Otis
>
>
> 
> Get your own "800" number
> Voicemail, fax, email, and a lot more
> http://www.ureach.com/reg/tag
>
>
> ---
> This SF.net email is sponsored by: Get the new Palm Tungsten T
> handheld. Power & Color in a compact size!
> http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>



---
This SF.net email is sponsored by: Microsoft Visual Studio.NET 
comprehensive development tool, built to increase your 
productivity. Try a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Re: JBoss-user digest, Vol 1 #3442 - 8 msgs

2002-12-03 Thread Barney Rubble
I knew about the forums (interface is kinda klunky) but the "user" mailing
list claims you have to be a "member of this group" to view the archive on
sourceforge: the other two archives are viewable. Anyway, I will try to find
out why an attempt is made to create tables when I deploy my EJB when I know
they already exist and do not want them auto-generated. I would ask you but
then that would burn my support incident :)

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 03, 2002 2:51 PM
Subject: JBoss-user digest, Vol 1 #3442 - 8 msgs


> Send JBoss-user mailing list submissions to
> [EMAIL PROTECTED]
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> or, via email, send a message with subject or body 'help' to
> [EMAIL PROTECTED]
>
> You can reach the person managing the list at
> [EMAIL PROTECTED]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of JBoss-user digest..."
>
>
> Today's Topics:
>
>1. Help!! accessing secure ejb from another ejb located on a diferent
>server (=?ISO-8859-1?Q?Jordi_Valldaura_i_Riqu=E9?=)
>2. Using a JBOSS DataSource Outside of JBOSS (Ed Saikali)
>3. Re: custom function extensions to EJB-QL? (Glenn Lewis)
>4. Re: Using a JBOSS DataSource Outside of JBOSS (David Jencks)
>5. Re: custom function extensions to EJB-QL? (Dain Sundstrom)
>6. HELP!? Works in JBoss-3.0.4 with JBossWeb (Jetty), and Tomcat 4.1.12
Standalone  - not in JBoss-3.0.4+Tomcat-4.1.12-LE-jdk14 (Will Senn)
>7. Re: Using a JBOSS DataSource Outside of JBOSS (Dan Christopherson)
>
> --__--__--
>
> Message: 1
> Date: Tue, 03 Dec 2002 21:20:49 +0100
> From: =?ISO-8859-1?Q?Jordi_Valldaura_i_Riqu=E9?= <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] Help!! accessing secure ejb from another ejb located
on a diferent
>  server
> Reply-To: [EMAIL PROTECTED]
>
> Hello,
>
> I'm developing my end of degree project. I have sevaral jboss servers=20
> with the same secure ejbs in. Is there anyway to call an ejb inside one=20
> of my servers from an ejb inside another jboss server without jaas(but=20
> in a secure way), maybee some "homemade" authentication module.
>
> I've got it working with jaas clientloginmodule, but its ugly and not=20
> portable to other application servers.
>
> I'm using jboss3.0.4 with jetty plus cocoon2.0.3.
>
> Any help would be appreciated
>
> Thanks in advance,
>
> 
> Jordi Valldaura i Riqu=E9
> CSI - Centre de Serveis Inform=E0tics
> Enginyeria i Arquitectura La Salle
> Universitat Ram=F3n Llull
> 
>
>
>
> --__--__--
>
> Message: 2
> Date: Tue, 3 Dec 2002 16:35:01 -0500
> From: "Ed Saikali" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Subject: [JBoss-user] Using a JBOSS DataSource Outside of JBOSS
> Reply-To: [EMAIL PROTECTED]
>
> Hi,
>
> Is it possible to use a JBOSS data source outside JBOSS, is there a way
> to put the JBOSS data source in the public part of the JNDI Tree?
>
> Thanks
> Ed
>
>
> --__--__--
>
> Message: 3
> Date: Wed, 04 Dec 2002 08:48:39 +1100
> From: Glenn Lewis <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] custom function extensions to EJB-QL?
> Reply-To: [EMAIL PROTECTED]
>
>
> Though it can be done without EJB-QL ... at the moment we call a
> database function from a standard SQL call.
>
> --
> Glenn
>
> Dain Sundstrom wrote:
> > No.  I'm considering adding it in 4.0.  I am thinking something like
this.
> >
> > stringFunction(name, arg1, arg2, ..., argN)
> >
> > There would be a function wrapper for each EJB-QL type.  This would
> > allow new functions to easily plug in to the strongly typed EJB-QL.
> > Again, I'm just considering this.
> >
> > -dain
> >
> > On Tuesday, December 3, 2002, at 03:37 AM, Matthew Hixson wrote:
> >
> >> Does JBoss support defining custom functions that map to functions
> >> defined in the database for extending EJB-QL?
> >>   Thanks,
> >>-M@
> >>
> >>
> >>
> >> ---
> >> This SF.net email is sponsored by: Get the new Palm Tungsten T
> >> handheld. Power & Color in a compact size!
> >> http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
> >> ___
> >> JBoss-user mailing list
> >> [EMAIL PROTECTED]
> >> https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> >
> >
> >
> > ---
> > This SF.net email is sponsored by: Microsoft Visual Studio.NET
> > comprehensive development tool, built to increase your productivity. Try
> > a free online hosted session at:
> > http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]

Re: [JBoss-user] Using a JBOSS DataSource Outside of JBOSS

2002-12-03 Thread Dan Christopherson
Ah, the question everyone gets tired of answering...

David Jencks wrote:

No, definitely not, for some very good reasons that I've explained many
times in the past.

david jencks

On 2002.12.03 16:35:01 -0500 Ed Saikali wrote:


Hi,

Is it possible to use a JBOSS data source outside JBOSS, is there a way
to put the JBOSS data source in the public part of the JNDI Tree?

Thanks
Ed







smime.p7s
Description: S/MIME Cryptographic Signature


[JBoss-user] HELP!? Works in JBoss-3.0.4 with JBossWeb (Jetty), and Tomcat 4.1.12 Standalone - not in JBoss-3.0.4+Tomcat-4.1.12-LE-jdk14

2002-12-03 Thread Will Senn
JBoss Elite!

I have tried any number of ways to get the JBoss-3.0.4/Tomcat
4.1.12-LE-jdk14 Integrated bundle to serve up a simple jsp/servlet web
application.  Each of the approaches has been unsuccessful. The deployed
JSP works, but the called servlet does not.  I have successfully taken
the example.war file and copied it into my standalone tomcat and it
worked. I have installed the JBoss-3.0.4 with JBossWeb (Jetty) and
deployed the example.war and had it work.  Could someone please take a
look at the included .war file and my steps and tell me what I did
wrong?

Thanks,

Will


Here's the readme that I created...

1. Create the following 4 directories wherever you like:
1. example
2. example\src
3. example\web
4. example\descriptors

2. Cut and paste the contents of the following 5 files saving them in the
appropriate directories - the content is at the bottom of this file:
1. example\build.xml
2. example\descriptors\application.xml
3. example\descriptors\web.xml
4. example\src\HelloWorld.java
5. example\web\index.jsp

3. Open a command prompt in the example directory and type:
ant

note: you might have to set the classpath for the servlet.jar, ie. set
classpath=D:\jboss-3.0.4\tomcat-4.1.x\common\lib\servlet.jar
before calling ant if it complains.

4. Should have had no errors and created a build directory with the
structure:
build\deploy
build\descriptors
build\ear
build\ear\META-INF
build\src
build\war
build\war\WEB-INF
build\war\WEB-INF\classes

5. To deploy the Web Application on Tomcat, simply copy the file:
build\deploy\example.war
into the %TOMCAT_HOME%\webapps directory

5a. To deploy the Web Application on JBoss, simply copy the file:
build\deploy\example.war into the jboss-3.0.4\server\default\deploy
directory.

6. To test the deployment of the JSP browse to:
http://localhost:8080/example/index.jsp

7. To test the deployment of the Servlet, browse to:
http://localhost:8080/example/index.jsp
and click the hyperlink:
Click here to execute the Servlet

or browse to:
http://localhost:8080/example/servlet/HelloWorld

8. Good job and well done! (Cry if it's JBoss + Tomcat)

example\build.xml
---snip



































  









  




  


  


  







  






  






---snip


example\descriptors\application.xml
---snip



Example Application


example.war
/example



---snip


example\descriptors\web.xml
---snip


http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>



---snip


example\src\HelloWorld.java
---snip
import java.io.*;
import java.text.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class HelloWorld extends HttpServlet {


public void service(HttpServletRequest request,
  HttpServletResponse response)
throws IOException, ServletException
{
response.setContentType("text/html");
PrintWriter out = response.getWriter();

out.println("");
out.println("");
out.println("Deployment Example Servlet!");
out.println("");
out.println("");
out.println("Hello World!");
out.println("Click here to
return to the JSP");
out.println("");
out.println("");

}
}
---snip


example\web\index.jsp
---snip
<%@page language="java" %>



Deployment Example



Deployment Example
The deployment of the JSP worked!
Click here to execute the Servlet


 ---snip





example.war
Description: Binary data
JBoss Elite!

I have tried any number of ways to get the JBoss-3.0.4/Tomcat
4.1.12-LE-jdk14 Integrated bundle to serve up a simple jsp/servlet web
application.  Each of the approaches has been unsuccessful. The deployed
JSP works, but the called servlet does not.  I have successfully taken
the example.war file and copied it into my standalone tomcat and it
worked. I have installed the JBoss-3.0.4 with JBossWeb (Jetty) and
deployed the example.war and had it work.  Could someone please take a
look at the included .war file and my steps and tell me what I did
wrong?

Thanks,

Will


Here's the readme that I created...

1. Create the following 4 directories wherever you like:
1. example
2. example\src
3. example\web
4. example\descriptors

2. Cut and paste the contents of the foll

Re: [JBoss-user] custom function extensions to EJB-QL?

2002-12-03 Thread Dain Sundstrom
Yes, but your code has to be aware of the abstract schema database 
mapping, which is kind of like hand coding security checks into your 
code; you can do it but you want to avoid it if you can.

-dain

On Tuesday, December 3, 2002, at 03:48 PM, Glenn Lewis wrote:


Though it can be done without EJB-QL ... at the moment we call a 
database function from a standard SQL call.

--
Glenn

Dain Sundstrom wrote:
No.  I'm considering adding it in 4.0.  I am thinking something like 
this.
stringFunction(name, arg1, arg2, ..., argN)
There would be a function wrapper for each EJB-QL type.  This would 
allow new functions to easily plug in to the strongly typed EJB-QL.  
Again, I'm just considering this.
-dain
On Tuesday, December 3, 2002, at 03:37 AM, Matthew Hixson wrote:
Does JBoss support defining custom functions that map to functions 
defined in the database for extending EJB-QL?
  Thanks,
   -M@



---
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
---
This SF.net email is sponsored by: Microsoft Visual Studio.NET 
comprehensive development tool, built to increase your productivity. 
Try a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user




---
This SF.net email is sponsored by: Microsoft Visual Studio.NET 
comprehensive development tool, built to increase your productivity. 
Try a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.net email is sponsored by: Microsoft Visual Studio.NET 
comprehensive development tool, built to increase your 
productivity. Try a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Using a JBOSS DataSource Outside of JBOSS

2002-12-03 Thread David Jencks
No, definitely not, for some very good reasons that I've explained many
times in the past.

david jencks

On 2002.12.03 16:35:01 -0500 Ed Saikali wrote:
> Hi,
> 
> Is it possible to use a JBOSS data source outside JBOSS, is there a way
> to put the JBOSS data source in the public part of the JNDI Tree?
> 
> Thanks
> Ed
> 
> 
> ---
> This SF.net email is sponsored by: Microsoft Visual Studio.NET
> comprehensive development tool, built to increase your
> productivity. Try a free online hosted session at:
> http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 


---
This SF.net email is sponsored by: Microsoft Visual Studio.NET 
comprehensive development tool, built to increase your 
productivity. Try a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] custom function extensions to EJB-QL?

2002-12-03 Thread Glenn Lewis

Though it can be done without EJB-QL ... at the moment we call a 
database function from a standard SQL call.

--
Glenn

Dain Sundstrom wrote:
No.  I'm considering adding it in 4.0.  I am thinking something like this.

stringFunction(name, arg1, arg2, ..., argN)

There would be a function wrapper for each EJB-QL type.  This would 
allow new functions to easily plug in to the strongly typed EJB-QL.  
Again, I'm just considering this.

-dain

On Tuesday, December 3, 2002, at 03:37 AM, Matthew Hixson wrote:

Does JBoss support defining custom functions that map to functions 
defined in the database for extending EJB-QL?
  Thanks,
   -M@



---
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user




---
This SF.net email is sponsored by: Microsoft Visual Studio.NET 
comprehensive development tool, built to increase your productivity. Try 
a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user






---
This SF.net email is sponsored by: Microsoft Visual Studio.NET 
comprehensive development tool, built to increase your 
productivity. Try a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Using a JBOSS DataSource Outside of JBOSS

2002-12-03 Thread Ed Saikali
Hi,

Is it possible to use a JBOSS data source outside JBOSS, is there a way
to put the JBOSS data source in the public part of the JNDI Tree?

Thanks
Ed


---
This SF.net email is sponsored by: Microsoft Visual Studio.NET
comprehensive development tool, built to increase your
productivity. Try a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Help!! accessing secure ejb from another ejb located on a diferentserver

2002-12-03 Thread Jordi Valldaura i Riqué
Hello,

I'm developing my end of degree project. I have sevaral jboss servers 
with the same secure ejbs in. Is there anyway to call an ejb inside one 
of my servers from an ejb inside another jboss server without jaas(but 
in a secure way), maybee some "homemade" authentication module.

I've got it working with jaas clientloginmodule, but its ugly and not 
portable to other application servers.

I'm using jboss3.0.4 with jetty plus cocoon2.0.3.

Any help would be appreciated

Thanks in advance,


Jordi Valldaura i Riqué
CSI - Centre de Serveis Informàtics
Enginyeria i Arquitectura La Salle
Universitat Ramón Llull




---
This SF.net email is sponsored by: Microsoft Visual Studio.NET
comprehensive development tool, built to increase your
productivity. Try a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] custom function extensions to EJB-QL?

2002-12-03 Thread Dain Sundstrom
No, it is in the for pay docs... but the list is short.  In addition to 
the EJB-QL (2.0 spec) standard functions we support LCASE and UCASE.

-dain

On Tuesday, December 3, 2002, at 12:32 PM, Matthew Hixson wrote:

Is there a list online of all of the EJB-QL functions that are already 
built into JBoss?
  Thanks,
   -M@

On Tuesday, December 3, 2002, at 09:22 AM, Dain Sundstrom wrote:

No.  I'm considering adding it in 4.0.  I am thinking something like 
this.

stringFunction(name, arg1, arg2, ..., argN)

There would be a function wrapper for each EJB-QL type.  This would 
allow new functions to easily plug in to the strongly typed EJB-QL.  
Again, I'm just considering this.

-dain

On Tuesday, December 3, 2002, at 03:37 AM, Matthew Hixson wrote:

Does JBoss support defining custom functions that map to functions 
defined in the database for extending EJB-QL?
  Thanks,
   -M@



---
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.net email is sponsored by: Microsoft Visual Studio.NET 
comprehensive development tool, built to increase your productivity. 
Try a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user




---
This SF.net email is sponsored by: Microsoft Visual Studio.NET 
comprehensive development tool, built to increase your productivity. 
Try a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.net email is sponsored by: Microsoft Visual Studio.NET 
comprehensive development tool, built to increase your 
productivity. Try a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Setting distributable tag on web.xml fails to deploy

2002-12-03 Thread Dan A. Dickey
On Tuesday 03 December 2002 09:13 am, João Clemente wrote:
> I've tried to get http session replication woking by placing the
> distributable tag in my web.xml file, running with JBoss 3.0.3.
>
> Well, the clustering manual says something like "place a clustering tag as
> true in web.xml" so I placed True

Try "".
-Dan

-- 
Dan A. Dickey
[EMAIL PROTECTED]


---
This SF.net email is sponsored by: Microsoft Visual Studio.NET
comprehensive development tool, built to increase your
productivity. Try a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] custom function extensions to EJB-QL?

2002-12-03 Thread Matthew Hixson
Is there a list online of all of the EJB-QL functions that are already 
built into JBoss?
  Thanks,
   -M@

On Tuesday, December 3, 2002, at 09:22 AM, Dain Sundstrom wrote:

No.  I'm considering adding it in 4.0.  I am thinking something like 
this.

stringFunction(name, arg1, arg2, ..., argN)

There would be a function wrapper for each EJB-QL type.  This would 
allow new functions to easily plug in to the strongly typed EJB-QL.  
Again, I'm just considering this.

-dain

On Tuesday, December 3, 2002, at 03:37 AM, Matthew Hixson wrote:

Does JBoss support defining custom functions that map to functions 
defined in the database for extending EJB-QL?
  Thanks,
   -M@



---
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.net email is sponsored by: Microsoft Visual Studio.NET 
comprehensive development tool, built to increase your productivity. 
Try a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user




---
This SF.net email is sponsored by: Microsoft Visual Studio.NET 
comprehensive development tool, built to increase your 
productivity. Try a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] 1-to-many relationship set up

2002-12-03 Thread Fabiano Cruz \(Cilix Software\)
Dear Fellows,

I've got a 1-to-many relationship set up, but it's not working.

It's about polls and its answers.

I'm using the jboss 3.0.3 version.

My ejb-jar is the following:



http://java.sun.com/dtd/ejb-jar_2_0.dtd";>



No Description.

Generated by XDoclet







Retrieves the data about the poll environment

cilix/ejb/Facade

br.com.cilix.intranet.poll.ejb.session.stateless.FacadeHome

br.com.cilix.intranet.poll.ejb.session.stateless.Facade

br.com.cilix.intranet.poll.ejb.session.stateless.FacadeBean

Stateless

Container









Generates a sequence in MySQL database

cilix/ejb/SequenceGenerator

br.com.cilix.intranet.poll.ejb.session.stateless.SequenceGeneratorHome


br.com.cilix.intranet.poll.ejb.session.stateless.SequenceGenerator

br.com.cilix.intranet.poll.ejb.session.stateless.SequenceGenerato
rBean

Stateless

Container








Poll for the Cilix Intranet

cilix/ejb/Poll

br.com.cilix.intranet.poll.ejb.entity.PollHome

br.com.cilix.intranet.poll.ejb.entity.Poll

br.com.cilix.intranet.poll.ejb.entity.PollLocalHome

br.com.cilix.intranet.poll.ejb.entity.PollLocal



br.com.cilix.intranet.poll.ejb.entity.PollEJB

Container



java.lang.Integer

False

2.x

cilix_polls

pollId





pollId







title






cilix/ejb/local/Answer

Entity

br.com.cilix.intranet.poll.ejb.entity.AnswerLocalHome

br.com.cilix.intranet.poll.ejb.entity.AnswerLocal

AnswerLocal 






PollSequenceName

java.lang.String

cilix_polls





PollPrimaryKey

java.lang.String

POLLID













Answer to Poll for the Cilix Intranet

cilix/ejb/Answer

br.com.cilix.intranet.poll.ejb.entity.AnswerHome

br.com.cilix.intranet.poll.ejb.entity.Answer

br.com.cilix.intranet.poll.ejb.entity.AnswerLocalHome

br.com.cilix.intranet.poll.ejb.entity.AnswerLocal



br.com.cilix.intranet.poll.ejb.entity.AnswerEJB

Container



java.lang.Integer

False

2.x

cilix_answers

answerId





answerId







description







votes






AnswerSequenceName

java.lang.String

cilix_answers





AnswerPrimaryKey

java.lang.String

ANSWERID


















Poll-Answers



poll-has-answers

One



cilix/ejb/Poll






answers

java.util.Set







answers-belongs-to-poll


Many






cilix/ejb/Answer




























cilix/ejb/Poll

*



Required









cilix/ejb/Facade

*



Required








cilix/ejb/Answer

*



Required











And my jboss.xml is the following:



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







cilix/ejb/Poll

ejb/Poll



cilix/ejb/local/Answer

ejb/Answer








cilix/ejb/Answer

ejb/Answer







cilix/ejb/Facade

ejb/Facade






cilix/ejb/SequenceGenerator

ejb/SequenceGenerator







But when I try to run jboss without comment the tag in red, it throws the
following exception

...

16:26:10,492 INFO [EjbModule] Creating

16:26:10,539 INFO [EjbModule] Deploying cilix/ejb/Poll

16:26:10,554 INFO [EjbModule] Deploying cilix/ejb/Answer

16:26:10,586 INFO [EjbModule] Deploying cilix/ejb/Facade

16:26:10,586 INFO [EjbModule] Deploying cilix/ejb/SequenceGenerator

16:26:10,711 INFO [EjbModule] Created

16:26:10,711 INFO [EjbModule] Starting

16:26:10,711 WARN [ServiceController] Problem starting service
jboss.j2ee:jndiName=ejb/Poll,service=EJB

org.jboss.deployment.DeploymentException: Bean AnswerLocal not found within
this application.

at org.jboss.ejb.Container.setupEnvironment(Container.java:947)

at org.jboss.ejb.Container.start(Container.java:566)

...

I don't know where did I go wrong, so I'd thank so much if you can bring
some light upon my doubts.

Thank you friends.

best regards,

Fabiano



---
This SF.net email is sponsored by: Microsoft Visual Studio.NET 
comprehensive development tool, built to increase your 
productivity. Try a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] custom function extensions to EJB-QL?

2002-12-03 Thread Dain Sundstrom
No.  I'm considering adding it in 4.0.  I am thinking something like 
this.

stringFunction(name, arg1, arg2, ..., argN)

There would be a function wrapper for each EJB-QL type.  This would 
allow new functions to easily plug in to the strongly typed EJB-QL.  
Again, I'm just considering this.

-dain

On Tuesday, December 3, 2002, at 03:37 AM, Matthew Hixson wrote:

Does JBoss support defining custom functions that map to functions 
defined in the database for extending EJB-QL?
  Thanks,
   -M@



---
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.net email is sponsored by: Microsoft Visual Studio.NET 
comprehensive development tool, built to increase your 
productivity. Try a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Datasource User Name/Password

2002-12-03 Thread David Jencks
You can easily write a login module to read the properties file, or just
put the encryted password in login-conf.xml.  The problem I have with this
type of approach is that if the login module can decrypt the pw to  send it
to the database, so can anyone else who can get the encrypted password. 
So, I think this is security by obscurity.  I'd rather spend the effort
securing the file with the unencrypted password: then  it is obvious what
needs to be secured, and you wont be tempted to  think you have  security
because the password representation looks hard to read.

david jencks

On 2002.12.03 11:34:38 -0500 Saravanan Veerappan wrote:
> May be future version of JBoss console should provide
> the username/password string and store it encrypted in
> 
> service.xml file as weblogic does..
> 
> Unfortunately we do not have any ldap server. Iam
> looking more of a solution to store encrypted password
> in a properties file.
> 
> --- David Jencks <[EMAIL PROTECTED]>
> wrote:
> > all the schemes I have seen either involve the
> > administrator supplying the
> > security info on server startup or are basically
> > security by obscurity
> > (where is the password to get to the password). 
> > I think the best plan
> > is to keep your configuration files secured.
> > 
> > However, you may wish to investigate writing a
> > LoginModule extending IIRC
> > org.jboss.resource.security.AbstractLoginModule that
> > fetches user and
> > password from some other source, perhaps LDAP.  You
> > can also just use your
> > own decryption scheme in your login module, but
> > there are obvious problems
> > with that as noted above.
> > 
> > I'd welcome a contribution of a LDAP based login
> > module for resource
> > adapters.
> > 
> > I'm not sure where the instructions for using these
> > login modules  is now. 
> > I suspect there are instructions in the for-pay 3.0
> > docs, and there might
> > be some in the free getting started guide. 
> > Basically you have to add an
> > appropriate login config to login-conf.xml, and
> > refer to it from the
> > Oracle-service.xml's JaasSecurityDomain attribute.
> > 
> > david jencks
> > 
> > 
> > On 2002.12.02 17:49:06 -0500 Saravanan Veerappan
> > wrote:
> > > On setting up the Oracle Datasource configuration,
> > Is
> > > there any way to provide username/password other
> > than
> > > specifying in oracle-service.xml file. In weblogic
> > > passwords are masked and encrypted. Is any similar
> > > configuration available in jboss?. If so how to do
> > it?.
> > > 
> > > __
> > > Do you Yahoo!?
> > > Yahoo! Mail Plus - Powerful. Affordable. Sign up
> > now.
> > > http://mailplus.yahoo.com
> > > 
> > > 
> > >
> >
> ---
> > > This SF.net email is sponsored by: Get the new
> > Palm Tungsten T 
> > > handheld. Power & Color in a compact size! 
> > >
> >
> http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
> > > ___
> > > JBoss-user mailing list
> > > [EMAIL PROTECTED]
> > >
> >
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> > > 
> > > 
> > 
> > 
> >
> ---
> > This SF.net email is sponsored by: Get the new Palm
> > Tungsten T 
> > handheld. Power & Color in a compact size! 
> >
> http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> >
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 
> __
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
> 
> 
> ---
> This SF.net email is sponsored by: Microsoft Visual Studio.NET 
> comprehensive development tool, built to increase your 
> productivity. Try a free online hosted session at:
> http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 


---
This SF.net email is sponsored by: Microsoft Visual Studio.NET 
comprehensive development tool, built to increase your 
productivity. Try a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Datasource User Name/Password

2002-12-03 Thread Saravanan Veerappan
May be future version of JBoss console should provide
the username/password string and store it encrypted in

service.xml file as weblogic does..

Unfortunately we do not have any ldap server. Iam
looking more of a solution to store encrypted password
in a properties file.

--- David Jencks <[EMAIL PROTECTED]>
wrote:
> all the schemes I have seen either involve the
> administrator supplying the
> security info on server startup or are basically
> security by obscurity
> (where is the password to get to the password). 
> I think the best plan
> is to keep your configuration files secured.
> 
> However, you may wish to investigate writing a
> LoginModule extending IIRC
> org.jboss.resource.security.AbstractLoginModule that
> fetches user and
> password from some other source, perhaps LDAP.  You
> can also just use your
> own decryption scheme in your login module, but
> there are obvious problems
> with that as noted above.
> 
> I'd welcome a contribution of a LDAP based login
> module for resource
> adapters.
> 
> I'm not sure where the instructions for using these
> login modules  is now. 
> I suspect there are instructions in the for-pay 3.0
> docs, and there might
> be some in the free getting started guide. 
> Basically you have to add an
> appropriate login config to login-conf.xml, and
> refer to it from the
> Oracle-service.xml's JaasSecurityDomain attribute.
> 
> david jencks
> 
> 
> On 2002.12.02 17:49:06 -0500 Saravanan Veerappan
> wrote:
> > On setting up the Oracle Datasource configuration,
> Is
> > there any way to provide username/password other
> than
> > specifying in oracle-service.xml file. In weblogic
> > passwords are masked and encrypted. Is any similar
> > configuration available in jboss?. If so how to do
> it?.
> > 
> > __
> > Do you Yahoo!?
> > Yahoo! Mail Plus - Powerful. Affordable. Sign up
> now.
> > http://mailplus.yahoo.com
> > 
> > 
> >
>
---
> > This SF.net email is sponsored by: Get the new
> Palm Tungsten T 
> > handheld. Power & Color in a compact size! 
> >
>
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> >
>
https://lists.sourceforge.net/lists/listinfo/jboss-user
> > 
> > 
> 
> 
>
---
> This SF.net email is sponsored by: Get the new Palm
> Tungsten T 
> handheld. Power & Color in a compact size! 
>
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
>
https://lists.sourceforge.net/lists/listinfo/jboss-user


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com


---
This SF.net email is sponsored by: Microsoft Visual Studio.NET 
comprehensive development tool, built to increase your 
productivity. Try a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] cactus problem: classcastexception and "Errorfinding class"

2002-12-03 Thread Dave Smith
You are problably redeploying jars that are out of the scope of the ear.
The JVM cache's the orginal and then when the jar is deployed there are
two copies. I would suggest that all of the jars/ejbs that are required
for the test are in the ear. My application.xml looks like this ( the cactus and junit 
could
prop. go in the lib dir but I do not like poluting those directories )




Rns Test


  
 rnsTest.war
 /import/rns/tests
   


 cactus.jar


 junit.jar


candata_test_util.jar


rns-mbeans.jar


cadex-mbeans.jar


rns.jar


rns-test.jar


gateway.jar


candata_ext_util.jar


edi.jar



On Mon, 2002-12-02 at 13:57, SainTiss wrote:
> Hi,
> 
> I found out the second exception was my own fault (packaging mistake),
> but the first is still a mistery... (although I'm not able to reproduce
> it so it seems...)
> 
> Hans
> 
> On Mon, 2002-12-02 at 18:22, SainTiss wrote:
> > Hi,
> > 
> > I managed to build and run a simple cactus test, but then I rebuilt and
> > redeployed it, and then I was getting a ClassCastException, followed by
> > the message that several of my classes were "unknown sources"...
> > 
> > I restarted jboss, and now I'm not getting the above exception anymore,
> > but this one:
> > 
> >  [junit] Testcase: testName took 1.457 sec
> > [junit] Caused an ERROR
> > [junit] Error finding class [tests.TestPersonEJB] using both the
> > Context classloader and the webapp classloader. Possible causes include:
> > [junit] - Your webapp does not include your test classes,
> > [junit] - The cactus.jar is not located in your WEB-INF/lib
> > directory and your Container has not set the Context classloader to
> > point to the webapp one
> > [junit] javax.servlet.ServletException: Error finding class
> > [tests.TestPersonEJB] using both the Context classloader and the webapp
> > classloader. Possible causes include:
> > [junit] - Your webapp does not include your test classes,
> > [junit] - The cactus.jar is not located in your WEB-INF/lib
> > directory and your Container has not set the Context classloader to
> > point to the webapp one
> > [junit] at
> > 
>org.apache.cactus.server.AbstractWebTestCaller.getTestClassClass(AbstractWebTestCaller.java:344)
> > [junit] at
> > 
>org.apache.cactus.server.AbstractWebTestCaller.getTestClassInstance(AbstractWebTestCaller.java:301)
> > [junit] at
> > 
>org.apache.cactus.server.AbstractWebTestCaller.doTest(AbstractWebTestCaller.java:143)
> > [junit] at
> > 
>org.apache.cactus.server.AbstractWebTestController.dispatch87_handleRequest(AbstractWebTestController.java;org/apache/cactus/util/log/LogAspect.aj(1k):125)
> > 
> > And it goes on like this...
> > 
> > Does anyone have any idea what could be the problem? (especially since
> > it worked before, and all I did was rebuild and redeploy the EJB and the
> > tests)
> > 
> > Thanks,
> > 
> > Hans
> > 
> > 
> > 
> > 
> 




---
This SF.net email is sponsored by: Microsoft Visual Studio.NET 
comprehensive development tool, built to increase your 
productivity. Try a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Setting distributable tag on web.xml fails to deploy

2002-12-03 Thread João Clemente

I've tried to get http session replication woking by placing the distributable tag in 
my web.xml file, running with JBoss 3.0.3.

Well, the clustering manual says something like "place a clustering tag as true in 
web.xml" so I placed
True

and the deployment failed saying that the tag should be an empty one.
I checked the DTD for web.xml and in fact it says the tag does not carry a value.

Do I tried to add simply



and this one failed stating that there should be a closing tag.

So I placed

redeployed, and now Jetty itself reports an error. I don't have the logs here, but I 
think it failed in the replication manager (?)

Anyone had such an isse with 3.0.3? I could try with 3.0.4, but strangly a app 
(web+ejb) that my team is developing works fine with 3.0.3 and fails with 3.0.4 so I'm 
stuck with it...

-- 
João Pedro Clemente  -  jpcl (at) rnl ist utl pt
" Why can't women put the toilet seat back up? "



---
This SF.net email is sponsored by: Microsoft Visual Studio.NET
comprehensive development tool, built to increase your
productivity. Try a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] loading .class, .jsp from file system insteadEAR/WAR?

2002-12-03 Thread Dave Smith
Create a directory in the deploy directory with the name .ear
Then extract your ear in that directory.

On Mon, 2002-12-02 at 20:38, otisg wrote:
> Hello,
> 
> I have JBoss 2.4.4 with Tomcat, and I am
> wondering if it is possible to load Java
> classes and JSPs from a directory (tree)
> instead of from a packaged EAR/WAR file.
> 
> I am asking this because having to package
> everything and redeploy it slows down our
> development process significantly.
> 
> Thank you,
> Otis
> 
> 
> 
> Get your own "800" number
> Voicemail, fax, email, and a lot more
> http://www.ureach.com/reg/tag
> 
> 
> ---
> This SF.net email is sponsored by: Get the new Palm Tungsten T 
> handheld. Power & Color in a compact size! 
> http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user




---
This SF.net email is sponsored by: Microsoft Visual Studio.NET 
comprehensive development tool, built to increase your 
productivity. Try a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] cactus problem: classcastexception and "Errorfinding class"

2002-12-03 Thread Dave Smith
You are problably redeploying jars that are out of the scope of the ear.
The JVM cache's the orginal and then when the jar is deployed there are
two copies. I would suggest that all of the jars/ejbs that are required
for the test are in the ear. My application.xml looks like this ( the cactus and junit 
could
prop. go in the lib dir but I do not like poluting those directories )




Rns Test


  
 rnsTest.war
 /import/rns/tests
   


 cactus.jar


 junit.jar


candata_test_util.jar


rns-mbeans.jar


cadex-mbeans.jar


rns.jar


rns-test.jar


gateway.jar


candata_ext_util.jar


edi.jar



On Mon, 2002-12-02 at 13:57, SainTiss wrote:
> Hi,
> 
> I found out the second exception was my own fault (packaging mistake),
> but the first is still a mistery... (although I'm not able to reproduce
> it so it seems...)
> 
> Hans
> 
> On Mon, 2002-12-02 at 18:22, SainTiss wrote:
> > Hi,
> > 
> > I managed to build and run a simple cactus test, but then I rebuilt and
> > redeployed it, and then I was getting a ClassCastException, followed by
> > the message that several of my classes were "unknown sources"...
> > 
> > I restarted jboss, and now I'm not getting the above exception anymore,
> > but this one:
> > 
> >  [junit] Testcase: testName took 1.457 sec
> > [junit] Caused an ERROR
> > [junit] Error finding class [tests.TestPersonEJB] using both the
> > Context classloader and the webapp classloader. Possible causes include:
> > [junit] - Your webapp does not include your test classes,
> > [junit] - The cactus.jar is not located in your WEB-INF/lib
> > directory and your Container has not set the Context classloader to
> > point to the webapp one
> > [junit] javax.servlet.ServletException: Error finding class
> > [tests.TestPersonEJB] using both the Context classloader and the webapp
> > classloader. Possible causes include:
> > [junit] - Your webapp does not include your test classes,
> > [junit] - The cactus.jar is not located in your WEB-INF/lib
> > directory and your Container has not set the Context classloader to
> > point to the webapp one
> > [junit] at
> > 
>org.apache.cactus.server.AbstractWebTestCaller.getTestClassClass(AbstractWebTestCaller.java:344)
> > [junit] at
> > 
>org.apache.cactus.server.AbstractWebTestCaller.getTestClassInstance(AbstractWebTestCaller.java:301)
> > [junit] at
> > 
>org.apache.cactus.server.AbstractWebTestCaller.doTest(AbstractWebTestCaller.java:143)
> > [junit] at
> > 
>org.apache.cactus.server.AbstractWebTestController.dispatch87_handleRequest(AbstractWebTestController.java;org/apache/cactus/util/log/LogAspect.aj(1k):125)
> > 
> > And it goes on like this...
> > 
> > Does anyone have any idea what could be the problem? (especially since
> > it worked before, and all I did was rebuild and redeploy the EJB and the
> > tests)
> > 
> > Thanks,
> > 
> > Hans
> > 
> > 
> > 
> > 
> 




---
This SF.net email is sponsored by: Microsoft Visual Studio.NET 
comprehensive development tool, built to increase your 
productivity. Try a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] RMI over HTTP with a Java client

2002-12-03 Thread Joost Kraaijeveld
Hi everyone,

I have working versions of a Stateless, a Stateful and a Bean Managed
Persistence EJB, all with a Java commandline client. They all use JNDI over
HTTP and RMI over HTTP and they work.

I want to use RMI over HTTP with a Java commandline client. JBoss 3.0.4 with
Jetty is behind a RedHat based firewall. The hosts file is OK, port 8080 is
mapped to the JBoss host which has 2 IP adresses (172.16.0.253 and
192.168.0.254, the mapping is to 172.16.0.253)

Now I want the same kind of bean deployed as a Container Managed Persistence
EJB. On the LAN it works. 

>From the internet (througth the firewall) I get an exception:
"java.rmi.ConnectException: Connection refused to host: 192.168.0.254;"

I have found several posting in the JBoss forums and this newsgroup that
mention connection problems with 127.0.0.1 but I could not solve my problems
with the answers I have found.

Can anyone help me with getting this CMP with a Java clent working?

Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
email: [EMAIL PROTECTED]
web: www.askesis.nl 


 


---
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] custom function extensions to EJB-QL?

2002-12-03 Thread Matthew Hixson
Does JBoss support defining custom functions that map to functions 
defined in the database for extending EJB-QL?
  Thanks,
   -M@



---
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user