[JBoss-user] [Persistence CMP/JBoss] - upgrade to ejb2.1

2005-05-20 Thread hatoug
Hi, I use jboss 3.2.1 with tomcat 1.4.24.
I have some entity ejbs and I want to use cast in a query.
But my version of ebj ql does not support. 
I try to use SQL92 but same problem.
I see that ejbQL2.1 support cast, how can I use it ?

NB : For SQL92, I put 
ql-compilerorg.jboss.ejb.plugins.cmp.jdbc.EJBQLToSQL92Compiler/ql-compiler 
in standardjbosscmp-jdbc.xml, I think it s probably the same action for EJBQL2.1

thanks a lot

Mario

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3878530#3878530

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3878530


---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412alloc_id=16344op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - upgrade to EJB QL 2.1

2005-05-20 Thread hatoug
Hi, I use jboss 3.2.1 with tomcat 1.4.24.
I have some entity ejbs and I want to use cast in a query.
But my version of ebj ql does not support. 
I try to use SQL92 but same problem.
I see that ejbQL2.1 support cast, how can I use it ?

NB : For SQL92, I put 
ql-compilerorg.jboss.ejb.plugins.cmp.jdbc.EJBQLToSQL92Compiler/ql-compiler 
in standardjbosscmp-jdbc.xml, I think it s probably the same action for EJBQL2.1

thanks a lot

Mario

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3878531#3878531

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3878531


---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412alloc_id=16344op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - EJB-QL upgrade on JBOSS3.2.1

2005-03-21 Thread hatoug
Hello, I have a cMP Bean, but I cannot deploy it because I have this error on 
my query :
org.jboss.deployment.DeploymentException: Error compiling EJB-QL statement 
'SELECT OBJECT(a) FROM TsaGed a where a.tsaver='0' and a.tsavis='01' and 
a.tsatbl = ?1 order by a.tsarga'; - nested throwable: 
(org.jboss.ejb.plugins.cmp.ejbql.ParseException: Encountered order at line 1, 
column 87.
Was expecting one of:
 
AND ...
OR ...
)

I think, it doesn't understand order by. So what to do ? Is there any way to do 
this ? Shall I have to upgrade EJB-DL ? What is the solution ?

PS : I have the same error when I want to do a.tsavis like '%1%', it doesn't 
understand like.

Thx.

Pierre.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3870962#3870962

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3870962


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - How to read a file stocked in my application.war

2005-02-03 Thread hatoug
I use jboss3.2.1 with tomcat 4.1.24
I have an web application that is a .war. I put this file in the deploy 
directory and then I can access my web app.
But inside my .war, I have a property file that I want to read some 
informations, but I cannot. My question is 
How can I read this file in my .war ?

Thanks.

paulo

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3865050#3865050

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3865050


---
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag--drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [HTTPD, Servlets JSP] - access web application jboss

2004-12-17 Thread hatoug
hello,

I have a web application on http://localhost/GedOnLine/index.html

But I want to access to my application by entering : http://localhost

How can I do ?

Thanx.

Steph

NB : jboss3.2.1 and tomcat 4.1.24

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3859028#3859028

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3859028


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [HTTPD, Servlets JSP] - forbid directory listing

2004-12-07 Thread hatoug
Hello,

how is it possible to forbid directory listing in jboss ?
is it in web.xml ?

I have jboss-3.2.1_tomcat-4.1.24.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3857690#3857690

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3857690


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security JAAS/JBoss] - Re: why multiple authentication !

2004-12-06 Thread hatoug
BUT When I use the basic authentication in web.xml,
auth-methodBASIC/auth-method
realm-nameGedOnLine Securit/realm-name
it works fine.

so why cannot it also work with a FORM authentication ?



View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3857502#3857502

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3857502


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security JAAS/JBoss] - why multiple authentication !

2004-12-03 Thread hatoug
Hello Everybody, 

I use authentication on jboss using a how-to found in : 
http://www.javaworld.com/javaforums/printthread.php?Board=JavaSecuritymain=2500type=post
 

But I have problem, when I call any page of the site(servlet or jsp), it 
returns me the form login page (it s OK) , so I log in. When logged, I'm 
waiting that it returns me the page requested at the beginning (which contains 
frames) BUT, in eachframe, I find login window. I feel like in the servlet (of 
authentication) it checks well authentication but it's not saved and when we 
request another page, it replies login. 
If anybody has an idea, Welcome

I give you the content of web.xml et le snippet code of the servlet 
(authentication). 

Thanks.

Here are my rule in web.xml 
security-constraint 
web-resource-collection 
web-resource-nameaction/web-resource-name 
Declarative security tests 
url-pattern/affichegrille/url-pattern 
url-pattern/afficheDoc/url-pattern 
url-pattern/jsp/*/url-pattern 
!--url-pattern/accespws/url-pattern-- 
http-methodHEAD/http-method 
http-methodGET/http-method 
http-methodPOST/http-method 
http-methodPUT/http-method 
http-methodDELETE/http-method 
/web-resource-collection 
!--Le role ayant acces  toutes les ressources-- 
auth-constraint 
role-nameJava/role-name 
/auth-constraint 
user-data-constraint 
no description 
transport-guaranteeNONE/transport-guarantee 
/user-data-constraint 
/security-constraint 
login-config 
auth-methodFORM/auth-method 
form-login-config 
form-login-page/logon.jsp/form-login-page 
form-error-page/logon.jsp/form-error-page 
/form-login-config 
/login-config

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3857339#3857339

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3857339


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security JAAS/JBoss] - Re: why multiple authentication !

2004-12-03 Thread hatoug
CODE SNIPPET OF THE SERVLET AUTHENTICATION
protected void forward (HttpServletRequest request, HttpServletResponse 
response) 
throws ServletException, IOException 
{ 
System.out.println(appel de accesPWS.forward()); 
String useraction = request.getParameter(useraction); 
String buildUrl = null; 
if (useraction!=null  useraction.equals(close)) 
{ 
HttpSession session = request.getSession(false); 
try { 
System.out.println(Appel de close); 
gedAccess.remove(); 
deleteDirectory((String)session.getAttribute(repUsr)); 
session.invalidate(); 
}catch (Exception e) { 
e.printStackTrace(); 
} 
} 
else 
{ 
if (useraction!=null  useraction.equals(form)) 
{ 
String username = request.getParameter(j_username); 
String password = request.getParameter(j_password); 
try 
{ 
SecurityAssociationHandler handler = new SecurityAssociationHandler(); 
SimplePrincipal user = new SimplePrincipal(username); 
handler.setSecurityInfo(user, password.toCharArray()); 
LoginContext loginContext = new LoginContext(pws, (CallbackHandler)handler); 
loginContext.login(); 
System.out.println(username+ - OK); 
Subject subject = loginContext.getSubject(); 
Set principals = subject.getPrincipals(); 
principals.add(user); 
}catch(LoginException e) 
{ 
System.out.println(Erreur de login); 
buildUrl = error.jsp; 
e.printStackTrace(); 
} 
} 
// CONNEXION OK ** 
if (buildUrl==null) 
{ 
HttpSession session = request.getSession(true); 
System.out.println(session.getId()); 
File rep = new File(c:\\Temp\\+session.getId()+\\); 
buildUrl = /jsp/ged.jsp; 
try { 
if (rep.mkdir()) 
session.setAttribute(repUsr,c:Temp+session.getId()+); 
else 
System.out.println(Echec dans la creation du repertoire de travail); 
String usr = 2; 
session.setAttribute(usr,usr); 
session.setAttribute(username,request.getParameter(username)); 
initGedAccess(); 
try { 
gedAccess = gedAccessHome.create(); 
} catch (RemoteException e1) { 
e1.printStackTrace(); 
} catch (CreateException e2) { 
e2.printStackTrace(); 
} 
session.setAttribute(gedAccess,gedAccess); 
session.setAttribute(application,p_applicationMetier); 
Hashtable tokens = gedAccess.getTokens(usr); 
session.setAttribute(tokens,tokens); 
System.out.println(buildUrl=+buildUrl); 
RequestDispatcher rd = getServletContext().getRequestDispatcher(buildUrl); 
rd.forward(request,response); 
} catch (Exception e) { 
e.printStackTrace(); 
} 
} 
// FIN DE CONNEXION OK  
} // fin du else si fin ou debut de session 




}

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3857340#3857340

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3857340


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user