Re: [JBoss-user] Manage the services

2003-06-20 Thread kiuma
Snell Nguyen wrote:

 
I want to use a service to start/stop another services. Please help me.
Thanks
Snell Nguyen
You have to use MBeans, if you don't know how to code MBeans I suggest 
to you to buy JBoss docs.



---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] jsp encoding problem

2003-06-19 Thread kiuma
Hello,
I'm having this problem using Jetty boundled with jboss 3.2.1
if I don't precompile my jsp pages I can see words like cioè perciò papà 
and so on.

If I precompile the page with ant  tag the result is this:

cioè pericò papÃ

could you help me please?

kiuma





---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Available JMX connector/adapter

2003-06-12 Thread kiuma
wondersonic wrote:

Hello,
I would like to know what kind of connector are available
to manage a JBoss server (class name...).
Thanks in advance,
WS
---
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
.

 

just take look at jmx-condole or webconsole
ciao
kiuma


---
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] [help please] specifing a role to a scheduled class

2003-06-11 Thread kiuma
Ionel Gardais wrote:

Hi kiuma,

thanks for the tip. I am already using this for my facade session bean 
and the local entities.

My problem is that the scheduled class (the one which extends the 
Schedulable interface) is not an EJB !
It's a basic java object with a perform method and that's all.

A solution should be to create all the classes needed for JAAS (a 
callback handler ...) to create a security context in my class and to 
log in the server.
It looks huge for what I want to do.

I thought the Scheduler would provide some security support (such a  
name and  pass in the mbean configuration so the 
schedulable class will be ran using these credentials.

thanks,
ionel


---
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
.

can you wrap that class into an ejb, or use a message bean ?

kiuma



---
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] [help please] specifing a role to a scheduled class

2003-06-11 Thread kiuma
Ionel Gardais wrote:

Hi,

I got the scheduler working, the class I wrote is launched the way I 
want.
The problem is that it access EJB's that are secured by some roles.

How to specify the scheduler to run the class using a specific role ?

Thank you very much,
ionel


---
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
.
in ejb-jar.xml
adding

   
   YUORSECROLE
   

to your  or  tag

ciao,
kiuma


---
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [PSEUDO-ANNOUNCE]

2003-05-30 Thread kiuma
Hi all,

I'm finishing a new JaasSecurityManager, and I have finished and tested 
a new DatabaseServerLoginModule.

1) new DatabaseServerLogin simply permits to write "Roles" RoleGroup 
only, to simplify a user-role runtime assignment.
2) new JaasSecurityManager permits the univocity of the login. (i.e. 
only 1 user with that name logged into the system )

I'd like to know if there is someone interested in the code (LGPL of course)
Currently I'm testing the modules, finishing to write the example, and 
writing the manual (first in Italian, then in English)

From Jboss staff I'd like to know too if I have to change the two 
modules name.
Currently they are:
com.wingstech.security.plugins.JaasSecurityManager
com.wingstech.security.auth.spi.DatabaseServerLoginModule

Ciao,
kiuma


---
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Jaas help,

2003-05-29 Thread kiuma




Hello,
I have two questions
1) I have a FORM based auth that does the following

public class LoginProxyServlet extends HttpServlet {
    
    

    public void doGet(HttpServletRequest request, HttpServletResponse
response) 
    throws javax.servlet.ServletException, java.io.IOException {
    response.setContentType("text/plain");
    java.io.PrintWriter out = response.getWriter();
    
    HttpSession hSession = request.getSession();
    
    Object done = hSession.getAttribute("logon.isDone");
    
    if ( done == null ) {    
    hSession.setAttribute( "login.target",
    request.getRequestURL().toString() );
    response.sendRedirect("login-jetty.jsp");
    return;
    }

    }
    
    public String getServletInfo() {
    return "Login servlet";
    }
}

But when I try to login, I'm redirected where the servlet is mapped : http://localhost:8080/progettoblu/do.login

2) To do the athentication I'm using LoginContext lc = new
LoginContext(


This technique doesn't seem to affect JaasSecurityManager because the
login cache is empty even after the login.
What shoud I do to affect the login cache?


Thx,

kiuma




[JBoss-user] 4 experts: JaasSecurityManager

2003-05-29 Thread kiuma
Hello,
I'm going deep into the security system, you'd make me happy if you can 
tell me who is responsable for writing SimplePrincipal into the
cache managed by JaasSecurityManager

thx in advance,
kiuma


---
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] mbean access from session bean help

2003-05-28 Thread kiuma
Sorry the solution is 
 value="jboss.security:service=JaasSecurityManager"

kiuma wrote:

Hello, I ahve this method:

* @ejb.env-entry
*  name="jaasMgrName"
*  value="jboss.security.service=JaasSecurityManager"
* @ejb.env-entry
*  name="securityDomain"
*  value="progettoblu"
public Collection getLoggedUsers()
   throws RemoteException
   {   try {
   InitialContext ic = new InitialContext();  
String securityDomain = 
(String)ic.lookup("java:comp/env/securityDomain");
   String jaasMgrName = 
(String)ic.lookup("java:comp/env/jaasMgrName");
 MBeanServer server = 
(MBeanServer)MBeanServerFactory.findMBeanServer(null).get(0);
ObjectName jaasMgr = new ObjectName(jaasMgrName);
   Object params[] = {securityDomain};
   String signature[] = {"java.lang.String"};
   List result = (List)server.invoke(jaasMgr,
 "getAuthenticationCachePrincipals", params, 
signature);return result;
   } catch (Exception e) {
   throw new RemoteException( e.getMessage() );
   }
   }

the invoke method generates:

14:04:28,854 INFO  [STDOUT] UserControlSessionBean.ejbCreate()
14:04:28,867 WARN  [RequestProcessor] Unhandled Exception thrown: 
class java.rmi.RemoteException
14:04:28,887 WARN  [jbossweb] WARNING: Exception for 
/progettoblu/userMonitorAction.do: java.rmi.RemoteException: missing 
domain

Why missing domain? What does it mean?

Thanks,
kiuma.


---
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
.





---
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] mbean access from session bean help

2003-05-28 Thread kiuma
Hello, I ahve this method:

* @ejb.env-entry
*  name="jaasMgrName"
*  value="jboss.security.service=JaasSecurityManager"
* @ejb.env-entry
*  name="securityDomain"
*  value="progettoblu"
public Collection getLoggedUsers()
   throws RemoteException
   {
   try {
   InitialContext ic = new InitialContext();   
   String securityDomain = 
(String)ic.lookup("java:comp/env/securityDomain");
   String jaasMgrName = 
(String)ic.lookup("java:comp/env/jaasMgrName");
  
   MBeanServer server = 
(MBeanServer)MBeanServerFactory.findMBeanServer(null).get(0);
 
   ObjectName jaasMgr = new ObjectName(jaasMgrName);
   Object params[] = {securityDomain};
   String signature[] = {"java.lang.String"};
   List result = (List)server.invoke(jaasMgr,
 "getAuthenticationCachePrincipals", params, 
signature); 
   return result;
   } catch (Exception e) {
   throw new RemoteException( e.getMessage() );
   }
   }

the invoke method generates:

14:04:28,854 INFO  [STDOUT] UserControlSessionBean.ejbCreate()
14:04:28,867 WARN  [RequestProcessor] Unhandled Exception thrown: class 
java.rmi.RemoteException
14:04:28,887 WARN  [jbossweb] WARNING: Exception for 
/progettoblu/userMonitorAction.do: java.rmi.RemoteException: missing domain

Why missing domain? What does it mean?

Thanks,
kiuma.


---
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] error writing a document to a local file

2003-05-28 Thread kiuma
You can't write to a file from an ejb,
you should instead use an MBean to do this.
ciao,
kiuma
Gordon wrote:

Hi.
I have a problem writing a SVG document to a local directory
My code works in a normal java class but when i use it in an ejb, i 
get an error. The svg file is created in the local drive but the 
content is not written to it.My code and the error is below.
(am using jdk 1.3.1 & jboss 2.4.1)
Any help would be great.
Thanks.
Gordon.

code:

Writer w = new FileWriter(uri);
  DOMUtilities.writeDocument(doc, w);   (The error occurs at 
this line)
  w.flush();
  w.close();



error:

[SVGController] TRANSACTION ROLLBACK EXCEPTION:null
Embedded Exception
null; nested exception is:
javax.ejb.EJBException: null
Embedded Exception
null
[SVGController] java.lang.NullPointerException
[SVGController] at 
org.apache.batik.dom.util.DOMUtilities.writeDocument(Unknown Source)
[SVGController] at 
ie.ejb.SVGControllerBean.writeDocument(Unknown Source)
[SVGController] at java.lang.reflect.Method.invoke(Native Method)
[SVGController] at 
org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionC 

.java:543)
[SVGController] at 
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInst 

rceptor.java:87)
[SVGController] at 
org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133) 

[SVGController] at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:307) 

[SVGController] at 
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
[SVGController] at 
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:128) 

[SVGController] at 
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
[SVGController] at 
org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:286) 

[SVGController] at 
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.ja 

[SVGController] at java.lang.reflect.Method.invoke(Native Method)
[SVGController] at 
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241)
[SVGController] at 
sun.rmi.transport.Transport$1.run(Transport.java:152)
[SVGController] at 
java.security.AccessController.doPrivileged(Native Method)
[SVGController] at 
sun.rmi.transport.Transport.serviceCall(Transport.java:148)
[SVGController] at 
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:465)
[SVGController] at 
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:706) 

[SVGController] at java.lang.Thread.run(Thread.java:484)



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.483 / Virus Database: 279 - Release Date: 19/05/2003
 





---
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] logout

2003-04-03 Thread kiuma
[EMAIL PROTECTED] wrote:

Hi!

I have searched the net, but could find no information, so I post my
question here.
How do I do a logout from a Struts Action?
I am using JaasSecurityManager of JBoss, with BASIC authentication for the
war, running in TomCat (btw.: digest auth seems to be broken).
Login works fine, however, I am not getting a Principal from
request.getUserPrincipal(), and the request.isUserInRole() returns also
false for the role specified int the roles.properties file (although I can
see the protected parts of the web-application).
I am doing something wrong?
(I am using the org.jboss.security.auth.spi.UsersRolesLoginModule, JBoss
3.0.6/TomCat4.1.18, JDK 1.4.1 on Windows)
Cheers and thanks
Tibor
---
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
.

 

Simply invalidating your HttpSession



---
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Counting items of a select clause

2003-04-02 Thread kiuma
Hello I'm serching a method to retrive the number of a select clause 
without directly using jsp.

Is there any way to use COUNT(*) clause?

thanks in advance,
kiuma


---
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Query optimization

2003-04-01 Thread kiuma
Hello I've one simple question:

I want to optimize a query to return pages of 10 elements x page (and 
here no problem).

Problems are these:

1) Can I use Collection.size() to calculate the total page number , 
without loosing in performance?

2) If I want to get the third page, do I have to iterate 20 elements 
before getting the first ValueObject?

Thanks in advance,
kiuma


---
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] getUserPrincipal

2003-03-28 Thread kiuma
kiuma wrote:

Please,, someone who want to help me.
In DatabaseLoginModule  jboss 3.2.0rc4,
after having been logged in my principal name is caller_principal and 
not the nema that I uses to log in.

What should I do to get my user name (except saving my user name in 
the httpsession instance) ?



---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
.
ok, stupid question!

In my roles table I defined

principalid ; role_group ; role
as
'kiuma' ; 'CallerPrincipal' ; 'caller_prioncipal'
instead of
'kiuma' ; 'CallerPrincipal' ; 'kiuma'


---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] getUserPrincipal

2003-03-27 Thread kiuma
Please,, someone who want to help me.
In DatabaseLoginModule  jboss 3.2.0rc4,
after having been logged in my principal name is caller_principal and 
not the nema that I uses to log in.

What should I do to get my user name (except saving my user name in the 
httpsession instance) ?



---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] DatabaseLoginModule problems

2003-03-26 Thread kiuma
Hello, I'm using jb 3.2.0 rc 4

I'm trying my old web application.

but the call to getUserPrincipal().getName()  returns 'caller_principal' 
when I logged into as 'kiuma'.

how can I retrive the user name?

Thanks in advance,
kiuma


---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Please struts and jboss

2003-03-25 Thread kiuma
Hello again,
this problem has remained unsolved to me. Am I the only with this problem.
I have developed my jsp pages with struts template library.
In version 3.0.6 + jetty I have no problem.
When I try my app on 3.2.0rc4 templates elements are replicated!

so 4 example, in v3.2.0, my index.jsp is

//--
<%@ page
   contentType="text/html;charset=UTF-8"
  session="true"
  isThreadSafe="true"
  isErrorPage="false"
%>
<%@ taglib uri="/WEB-INF/struts-html-el.tld"
   prefix="html-el" %>
<%@ taglib uri="/WEB-INF/struts-bean-el.tld"
   prefix="bean-el" %>
<%@ taglib uri="/WEB-INF/struts-logic-el.tld"
   prefix="logic-el" %>
<%@ taglib uri="/WEB-INF/c.tld"
   prefix="c" %>
<%@ taglib uri="/WEB-INF/x.tld"
   prefix="x" %>




  

   
  


   

   
   
   
   

   
   
   
   
   
   
   vspace='0' 
src='/webappointments/img/smalllogo.png'/>
   
   
   
   
   
   
   
   
   



//--



but the transformed code results like this one



/---













   http://192.168.100.2:8080/webappointments/index.jsp";>
   WebAppointments v1.0  
   

   


   

   

	
   
   
   
   
   
   Prenotazioni Online
   
   

   
   
   
   
   Prenotazioni Online
   
   
   
   Prenotazioni Online
   
   
   





///==

What's that???





---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] EJBQL Help

2003-03-25 Thread kiuma
Langelage, Frank wrote:

kiuma wrote:

Hello !
Can some one tell me why on this query * @ejb.finder
   *signature="java.util.Collection findByActivityEnabled(String
activityCode)"
   *query="SELECT OBJECT(center) FROM WaActivityCenter center WHERE
(center.activities.code = ?1) AND (center.status > 0)"
   *result-type-mapping="Local"
   * @jboss.query
   *signature="java.util.Collection findByActivityEnabled(String
activityCode)"
   *query="SELECT OBJECT(center) FROM WaActivityCenter center WHERE
(center.activities.code = ?1) AND (center.status > 0) ORDER BY
center.description"
   *result-type-mapping="Local"
   *strategy="on-load"
   *page-size="10"   
during deployment I've the following error message?

08:06:55,473 WARN  [verifier] EJB spec violation: Bean   : 
ActivityCenter
Method : public abstract Collection findByActivityEnabled(String) throws
FinderException
Section: 10.5.6
Warning: Every finder method except findByPrimaryKey(key) must be 
associated
with a query element in the deployment descriptor.


With JBoss-4.0alpha I have to use a fully qualified classname also for 
the args of the finder.
Otherwise I get: "org.jboss.deployment.DeploymentException: Parameter 
class not found: String".
This is not the error message you get, but its the only significant 
difference I can see between your finder and mine.

@ejb.finder signature="java.util.Collection 
findByActivityEnabled(java.lang.String activityCode)"

You may give this a try.

Regards

Frank



---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
.
thx, it was that



---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] help with cmr and ejbql

2003-03-25 Thread kiuma
kiuma wrote:

Hello,
I've the following query 

SELECT OBJECT(center) FROM WaActivityCenter center WHERE
center.activities.description = ?1 AND center.status > 0 ORDER BY
center.description
activities and center are in a many to many relation.

during deployment the log is:
Starting failed
org.jboss.deployment.DeploymentException: Error compiling ejbql; - nested
throwable: (org.jboss.ejb.plugins.cmp.ejbql.UnknownPathException: In path cmr
field is collection valued: at line 1, column 75.  Encountered: "activities"
after: "center.")
Can anybody help me please?

kiuma



---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
.
 

Solved!

SELECT OBJECT(center) FROM WaActivityCenter center, IN(center.activities) activity 
WHERE
activity.description = ?1 AND center.status > 0 ORDER BY
center.description




---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] help with cmr and ejbql

2003-03-25 Thread kiuma
Hello,
I've the following query 

SELECT OBJECT(center) FROM WaActivityCenter center WHERE
center.activities.description = ?1 AND center.status > 0 ORDER BY
center.description

activities and center are in a many to many relation.

during deployment the log is:
 Starting failed
org.jboss.deployment.DeploymentException: Error compiling ejbql; - nested
throwable: (org.jboss.ejb.plugins.cmp.ejbql.UnknownPathException: In path cmr
field is collection valued: at line 1, column 75.  Encountered: "activities"
after: "center.")

Can anybody help me please?

kiuma



---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] EJBQL Help

2003-03-24 Thread kiuma
Hello !
Can some one tell me why on this query 
* @ejb.finder
*signature="java.util.Collection findByActivityEnabled(String
activityCode)"
*query="SELECT OBJECT(center) FROM WaActivityCenter center WHERE
(center.activities.code = ?1) AND (center.status > 0)"
*result-type-mapping="Local"
* @jboss.query
*signature="java.util.Collection findByActivityEnabled(String
activityCode)"
*query="SELECT OBJECT(center) FROM WaActivityCenter center WHERE
(center.activities.code = ?1) AND (center.status > 0) ORDER BY
center.description"
*result-type-mapping="Local"
*strategy="on-load"
*page-size="10"

during deployment I've the following error message?

08:06:55,473 WARN  [verifier] EJB spec violation: 
Bean   : ActivityCenter
Method : public abstract Collection findByActivityEnabled(String) throws
FinderException
Section: 10.5.6
Warning: Every finder method except findByPrimaryKey(key) must be associated
with a query element in the deployment descriptor.

Centers and Activities are connected in a many to many relation 
in ca_rel table



---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] help with new 3.2.0 rc4 web service

2003-03-24 Thread kiuma
Hello again,
I've my application correctly working on jb 3.0.4 but when i've moved to 
version 3.2.0
I've strange behaviours on jsp displaying.
The first time I access main.jsp everything is ok.
The second time I access it I have elements duplicated.
The third html elements are displayed 3 times. And so on.

Can U help me please?



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] help ejb not bound on an old app?

2003-03-24 Thread kiuma
Gaetan Zoritchak wrote:

Your code will work if you do the lookup on
"ejb/webappointments/User" instead of "java:comp/env/...".
When you make a call on a jndi context starting with 
"java:comp/env/..." , you are looking for reference in the context of 
the current component.

In your case, you probably want to make it in the global namespace.

Thx, I understand now...



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] help ejb not bound on an old app?

2003-03-24 Thread kiuma
kiuma wrote:

Hello I'm having this problem, I hope that someone would be so kind to explain
to me what's appening.
I'm working on an application that I developed. I was using it with success,
but now it doesn't bound to ejb.
Looking at jndi-view I see this

java:comp namespace of the CustomerSession bean:

 +- env (class: org.jnp.interfaces.NamingContext)
 |   +- security (class: org.jnp.interfaces.NamingContext)
 |   |   +- subject[link -> java:/jaas/appointmentsApp/subject] (class:
javax.naming.LinkRef)
 |   |   +- security-domain[link -> java:/jaas/appointmentsApp] (class:
javax.naming.LinkRef)
 |   +- mywebappointments (class: org.jnp.interfaces.NamingContext)
 |   |   +- CustomerCf[link -> ejb/webappointments/CustomerCf] (class:
javax.naming.LinkRef)
 |   |   +- CustomerCsan[link -> ejb/webappointments/CustomerCsan] (class:
javax.naming.LinkRef)
 |   |   +- CustomerPiva[link -> ejb/webappointments/CustomerPiva] (class:
javax.naming.LinkRef)
 |   |   +- Customer[link -> ejb/webappointments/Customer] (class:
javax.naming.LinkRef)


java:comp namespace of the Customer bean:

 +- env (class: org.jnp.interfaces.NamingContext)
 |   +- CustomerSequenceName (class: java.lang.String)
 |   +- ejb (class: org.jnp.interfaces.NamingContext)
 |   |   +- SequenceGenerator[link -> ejb/webappointments/SequenceGenerator]
(class: javax.naming.LinkRef)
 |   +- security (class: org.jnp.interfaces.NamingContext)
 |   |   +- subject[link -> java:/jaas/appointmentsApp/subject] (class:
javax.naming.LinkRef)
 |   |   +- security-domain[link -> java:/jaas/appointmentsApp] (class:
javax.naming.LinkRef)
then at least:

+- ejb (class: org.jnp.interfaces.NamingContext)
 |   +- mgmt (class: org.jnp.interfaces.NamingContext)
 |   |   +- MEJB (proxy: $Proxy28 implements interface
javax.management.j2ee.ManagementHome,interface javax.ejb.Handle)
 |   +- webappointments (class: org.jnp.interfaces.NamingContext)
 |   |   +- CustomerPiva (proxy: $Proxy66 implements interface
com.wingstech.webappointments.interfaces.CustomerPivaLocalHome)
 |   |   +- Activity (proxy: $Proxy68 implements interface
com.wingstech.webappointments.interfaces.ActivityLocalHome)
 |   |   +- Role (proxy: $Proxy73 implements interface
com.wingstech.webappointments.interfaces.RoleLocalHome)
 |   |   +- User (proxy: $Proxy62 implements interface
com.wingstech.webappointments.interfaces.UserLocalHome)
 |   |   +- CustomerCsan (proxy: $Proxy57 implements interface
com.wingstech.webappointments.interfaces.CustomerCsanLocalHome)
 |   |   +- CalendarSession (proxy: $Proxy78 implements interface
com.wingstech.webappointments.interfaces.CalendarSessionHome,interface
javax.ejb.Handle)
 |   |   +- Customer (proxy: $Proxy64 implements interface
com.wingstech.webappointments.interfaces.CustomerLocalHome)
 |   |   +- ActivitySession (proxy: $Proxy80 implements interface
com.wingstech.webappointments.interfaces.ActivitySession
So in my code I write
try {
// Get User Entity Remote Interface
Context lContext = new InitialContext();

UserLocalHome lHome = (UserLocalHome) PortableRemoteObject.narrow(
   lContext.lookup(
  "java:comp/env/ejb/mywebappointments/User"
   ),
   UserLocalHome.class
);   	  

but an ejb not bound is thrown.

Please help



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
.
 

Solved

ref-name was "mywebappointments/User" now I wrote 
"ejb/mywebappointments/User"

I think this changed with latest xdoclet cvs...





---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] help ejb not bound on an old app?

2003-03-24 Thread kiuma
Hello I'm having this problem, I hope that someone would be so kind to explain
to me what's appening.

I'm working on an application that I developed. I was using it with success,
but now it doesn't bound to ejb.

Looking at jndi-view I see this

java:comp namespace of the CustomerSession bean:

  +- env (class: org.jnp.interfaces.NamingContext)
  |   +- security (class: org.jnp.interfaces.NamingContext)
  |   |   +- subject[link -> java:/jaas/appointmentsApp/subject] (class:
javax.naming.LinkRef)
  |   |   +- security-domain[link -> java:/jaas/appointmentsApp] (class:
javax.naming.LinkRef)
  |   +- mywebappointments (class: org.jnp.interfaces.NamingContext)
  |   |   +- CustomerCf[link -> ejb/webappointments/CustomerCf] (class:
javax.naming.LinkRef)
  |   |   +- CustomerCsan[link -> ejb/webappointments/CustomerCsan] (class:
javax.naming.LinkRef)
  |   |   +- CustomerPiva[link -> ejb/webappointments/CustomerPiva] (class:
javax.naming.LinkRef)
  |   |   +- Customer[link -> ejb/webappointments/Customer] (class:
javax.naming.LinkRef)



java:comp namespace of the Customer bean:

  +- env (class: org.jnp.interfaces.NamingContext)
  |   +- CustomerSequenceName (class: java.lang.String)
  |   +- ejb (class: org.jnp.interfaces.NamingContext)
  |   |   +- SequenceGenerator[link -> ejb/webappointments/SequenceGenerator]
(class: javax.naming.LinkRef)
  |   +- security (class: org.jnp.interfaces.NamingContext)
  |   |   +- subject[link -> java:/jaas/appointmentsApp/subject] (class:
javax.naming.LinkRef)
  |   |   +- security-domain[link -> java:/jaas/appointmentsApp] (class:
javax.naming.LinkRef)


then at least:

+- ejb (class: org.jnp.interfaces.NamingContext)
  |   +- mgmt (class: org.jnp.interfaces.NamingContext)
  |   |   +- MEJB (proxy: $Proxy28 implements interface
javax.management.j2ee.ManagementHome,interface javax.ejb.Handle)
  |   +- webappointments (class: org.jnp.interfaces.NamingContext)
  |   |   +- CustomerPiva (proxy: $Proxy66 implements interface
com.wingstech.webappointments.interfaces.CustomerPivaLocalHome)
  |   |   +- Activity (proxy: $Proxy68 implements interface
com.wingstech.webappointments.interfaces.ActivityLocalHome)
  |   |   +- Role (proxy: $Proxy73 implements interface
com.wingstech.webappointments.interfaces.RoleLocalHome)
  |   |   +- User (proxy: $Proxy62 implements interface
com.wingstech.webappointments.interfaces.UserLocalHome)
  |   |   +- CustomerCsan (proxy: $Proxy57 implements interface
com.wingstech.webappointments.interfaces.CustomerCsanLocalHome)
  |   |   +- CalendarSession (proxy: $Proxy78 implements interface
com.wingstech.webappointments.interfaces.CalendarSessionHome,interface
javax.ejb.Handle)
  |   |   +- Customer (proxy: $Proxy64 implements interface
com.wingstech.webappointments.interfaces.CustomerLocalHome)
  |   |   +- ActivitySession (proxy: $Proxy80 implements interface
com.wingstech.webappointments.interfaces.ActivitySession


So in my code I write
try {
 // Get User Entity Remote Interface
 Context lContext = new InitialContext();
 
 UserLocalHome lHome = (UserLocalHome) PortableRemoteObject.narrow(
lContext.lookup(
   "java:comp/env/ejb/mywebappointments/User"
),
UserLocalHome.class
 );   
 
but an ejb not bound is thrown.

Please help



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] please help with sar

2003-03-17 Thread kiuma
Hi all,
I currently have an ear (say test.ear archive (ejb-test.jar + test.war) 
and since I'm trying to eval hibernate I need a hib-test.sar.
Now I'm trying to put hib-test.sar it inside test.ear, but inspecting 
jndi-view service no hibernate service is started. If I put hib-test.sar 
directly in the deploy dir the service fails because it depends from 
postgres-service.xml.
Please what shoul I do?

kiuma



---
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Re: Hibernate or ejb

2003-03-15 Thread kiuma
Schnitzer, Jeff wrote:

Sounds like Hibernate needs some integration with J2EE transactions.
   

Yes, and I gather that a component is in the works.  But Hibernate works
well in an EJB environment anyways.
The great advantage over Hibernate over CMP, IMHO, is that the data
objects are simple JavaBeans which can remain useful outside of the life
of a transaction.  In CMP, data has no life outside of a transaction so
it's impossible to cache data across transactions without creating a
second layer of data objects.  With Hibernate you can populate a data
object and simply return it out of the EJB layer.
BTW, even in 1.0, lazy-populated relations work fine.  For a simple
1-to-1 relationship you will need to use a proxy interface, of course.
Jeff Schnitzer
[EMAIL PROTECTED]
---
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
.

 

I've seen that Hibernate is independent from the application server. 
This sounds pretty good if, for example, you want to make a pro and an 
enterprise application.
I've seen also a more important feature about QL, you can easyly join 
tables and order items.
Items deletions/updates seem made better (emulation of delete and update 
SQL clauses).
Ciao,
kiuma



---
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] cmr relationship problem

2003-03-15 Thread kiuma
Brijesh Sood wrote:

Hi need help for the ejbrelation work ..i m new kid in this 
field
I have two entity bean User and Role . User and Role having 
bidirectional one to Many relationship.
I m using userID as primary key in User Entity Bean , it is db auto 
increment field .
And roleID as the primary  Key in the Role Entity Bean , also it is db 
auto increment field  primary field
I m able to use autoincrement field as primary key  as these fields 
are  not cmp fields (managed by db)
so userID and roleID field  are not entered in the ejb-jar.xml
I can add user and roles and set relationship between them .
 
If i want to get all the roles for the user . i have two ways firstly 
get the user remote object and the call the relationship method to 
getRole() . it gives me all the roles assinged to the that user. This 
has the limitation i have to create user local object ..then get the 
roles .
 
Another way is to write ejb-ql and by giving userID can list all the 
roles assigned to that user. I have written the ejb-ql but not working 
:)  can someone plss check and help mee out to solve this ...
 
i m attaching the code ...
 
Struture is As
-
User
-
userID ->  Auto increment Primary Key field
username
password
email
name
salary
   

Role

roleID  ->  Auto increment Primary Key field
rolename
description   one  to 
many
userID  -> CMR field added (setting relationship User tto 
Role )
 
   
 
 
Brijesh Sood
1st)

Consider a many-to-many relation for this problem
ex.:
usr1->Admin
usr1->PowerUsr
usr2->Admin

then here it is a many-to-many

Here there are my tables (postgreSQL)

--users section--
CREATE SEQUENCE users_seq;
CREATE TABLE users (
   id INTEGER DEFAULT nextval('users_seq') PRIMARY KEY,
   principalid varchar(255) NOT NULL,
   password varchar(255),   
   name1 varchar(255),
   name2 varchar(255),
   address varchar(255),
   zip char(10),
   city varchar(255),
   state varchar(255),
   country varchar(255),
   tel varchar(255),
   mail varchar(255),
   web varchar(255)
   );
CREATE INDEX usr_passwd_ix ON users (password);
CREATE UNIQUE INDEX usr_principal_ix ON users (principalid);

INSERT INTO users (principalid, password, name1, name2) VALUES ('admin', 
1, 'Super', 'User');

CREATE SEQUENCE roles_seq;
CREATE TABLE roles (
   id INTEGER DEFAULT nextval('roles_seq'),
   role varchar(255),
   rolegroup varchar(255),
   PRIMARY KEY(id));   
CREATE UNIQUE INDEX roles_groups_ix ON roles (rolegroup,role);

INSERT INTO roles (role, rolegroup) VALUES ('caller_principal', 
'CallerPrincipal');
INSERT INTO roles (role, rolegroup) VALUES ('Admin', 'Roles');

-- users_roles relation table --
CREATE TABLE users_roles (
   userid INTEGER REFERENCES users(id),
   roleid INTEGER REFERENCES roles(id),
   PRIMARY KEY(userid, roleid)
   );
INSERT INTO users_roles (userid, roleid) VALUES (
   (SELECT id FROM users WHERE principalid = 'admin'),
   (SELECT id FROM roles WHERE role = 'caller_principal')
   );
INSERT INTO users_roles (userid, roleid) VALUES (
   (SELECT id FROM users WHERE principalid = 'admin'),
   (SELECT id FROM roles WHERE role = 'Admin')
   );
Ciao,
Kiuma
/*
* ProgettoBlu, General purpose managemant project
*
*/
package com.wingstech.progettoblu.entity;

//Relation imports--BEG
import com.wingstech.progettoblu.interfaces.*;
//Relation imports--END

import com.wingstech.progettoblu.interfaces.ServiceUnavailableException;

import java.sql.Date;
//import java.rmi.RemoteException;
import java.util.Collection;
import java.util.Iterator;

import javax.ejb.CreateException;
import javax.ejb.EJBException;
import javax.ejb.EntityBean;
import javax.ejb.EntityContext;
import javax.ejb.FinderException;
import javax.ejb.RemoveException;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.rmi.PortableRemoteObject;

/**
* The Entity bean represents an RoleBean
* 
* @author Andrea Chiumenti
* @version $Revision: 0.1 $
* @ejb.bean
*name="Role"
*display-name="RoleBean working on projects to support application Role"
*type="CMP"
*cmp-version="2.x"
*schema="WaRole"
*jndi-name="ejb/progettoblu/Role"
*local-jndi-name="ejb/progettoblu/Role"
*view-type="local"
* @ejb.transaction
*type="Required"
* @ejb.data-object
*extends="com.wingstech.progettoblu.interfaces.AbstractData"
*setdata="false"
* @ejb.security-role-ref

Re: [JBoss-user] Re: Hibernate or ejb

2003-03-14 Thread kiuma
Andreas Mecky wrote:

Hi everyone,

it seems that I made a mistake by saying something nasty about hibernate :)

The first thing we came across is the problem of lazy instantiation. Let's
say you have
object A that has a relation to obect B. But you only want to load A and B
later when
it is used. Hibernate cannot handle this (this is an open bug but maybe
fixed in the new
2.0 beta). We have found a way around this but it is not very nice.
Another thing is definitely the caching in hibernate. You never know when
hibernate
actually saves the data to your DB. This makes it very difficult in an
evironment
where you access your DB from different points.
The last thing that kept us busy was the fact the (assume the schema as
above)
when you save B then A does not get updated. This means you have to take
care of updating A manually when you change B. It took some time to figure
this
one out. Well, you can always restart your server and everything is fine :)
It seems to me that this update problem is a big thing since I know that
castor JDO is struggling at the same point.
But I must also say that the reverse engineering is nice and saved us some
time.
So, I have to go back to my project and get some more experience with
hibernate.
When I stumble the next time I will let you know.

Andreas

- Original Message -
From: "kiuma" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 14, 2003 8:27 AM
Subject: Re: [JBoss-user] Re: Hibernate or ejb
 

Kevin O'Neill wrote:

   

On Thu, 13 Mar 2003 18:52:39 +0100, Andreas Mecky wrote:



 

we are currently using hibernate in a web project. Very nice. We did
   

some
 

additional code generation
and it is very handy.
BUT: stay with your EJB-CMP. It will prevent a lot of headache. There
   

are
 

certain "little things"
with hibernate that makes life as a developer painfull.
   

Can you elaborate?





 

Ok, sorry, as anyone who doesn't read messages related to topics in a
clever way I made a 'stupid' question. For those who are interested in
diffs read at this http://sourceforge.net/forum/message.php?msg_id=1867312
Anyway Kevin, please explain to us what

<>
are



---
This SF.net email is sponsored by:Crypto Challenge is now open!
Get cracking and register here for some mind boggling fun and
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
   

__

Gesendet von Yahoo! Mail - http://mail.yahoo.de
Bis zu 100 MB Speicher bei http://premiummail.yahoo.de
---
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
.

 

thx 4 explanation !



---
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Re: Hibernate or ejb

2003-03-13 Thread kiuma
Kevin O'Neill wrote:

On Thu, 13 Mar 2003 18:52:39 +0100, Andreas Mecky wrote:

 

we are currently using hibernate in a web project. Very nice. We did some
additional code generation
and it is very handy.
BUT: stay with your EJB-CMP. It will prevent a lot of headache. There are
certain "little things"
with hibernate that makes life as a developer painfull.
   

Can you elaborate?



 

Ok, sorry, as anyone who doesn't read messages related to topics in a 
clever way I made a 'stupid' question. For those who are interested in 
diffs read at this http://sourceforge.net/forum/message.php?msg_id=1867312

Anyway Kevin, please explain to us what

<>
are



---
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Hibernate or ejb

2003-03-13 Thread kiuma
Hi all,
I need an answer from you expert ones!
I'm currently using ejb-cmp to connect to my database, with a discrete 
success.
Now I see that many people are using Hibernate.
I'd like to know if there is some advant/disadv in Hibernate.
Thx,
kiuma



---
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] HELP javax.ejb.EJBException: Naming lookup failure:User not bound

2003-01-31 Thread kiuma
Solved setting:

In session:

* @ejb.ejb-ref ejb-name="User"
*  ref-name="mywebappointments/User"
*  view-type="local"

In Entity:

* @ejb.bean
 *name="User"
 *display-name="User"
 *type="CMP"
 *cmp-version="2.x"
 *schema="WaUsers"
 *jndi-name="ejb/webappointments/User"
 *jndi-name="ejb/webappointments/UserLocal"
 *view-type="local"

kiuma ha scritto:


Hello,

I have the following problem:

My session doesn't find the local EJB cmp I want to get.

So with XDoclet I've defined UserBean.java

   * @ejb.bean
   *name="User"
   *display-name="User"
   *type="CMP"
   *cmp-version="2.x"
   *schema="WaUsers"
   *jndi-name="ejb/webappointments/User"
   *view-type="local"

Then UserSessionBean.java

* @ejb.bean name="UserSession"
*   display-name="User Session Bean"
*   type="Stateless"
*   transaction-type="Container"
*   jndi-name="ejb/webappointments/UserSession"
*
* @ejb.ejb-ref ejb-name="User"
*  ref-name="mywebappointments/User"
*

and the function that throws NamingLookupException

  /**
  *
  * Find a User by his name/id
  * @param pUserId User's name.* @return Returns the User's data.
  * @throws RemoteException Idnicates that the modification process 
failed
  *
  * @ejb.interface-method view-type="remote"
  * @ejb.permission role-name="Admin,PoweredUser,User"
  *
  **/
  public UserData getUserByPrincipalId(String pPrincipalId)
 throws
RemoteException
  {
 try {
// Get User Entity Remote Interface
Context lContext = new InitialContext();
   UserLocalHome lHome = (UserLocalHome) 
PortableRemoteObject.narrow(
   lContext.lookup(
  "java:comp/env/ejb/mywebappointments/User"
   ),
   UserLocalHome.class
);
UserLocal lEntity = lHome.findByPrimaryKey( new 
UserPK(pPrincipalId) );
   UserData lData = lEntity.getValueObject();
return lData;
 }
 catch ( FinderException fe ) {throw new 
EJBException( "User not found: " +  fe.getMessage() );
 }
 catch ( NamingException ne ) {  throw new 
EJBException( "Naming lookup failure: " + ne.getMessage() );
 }   }



so the output is:


09:42:25,758 ERROR [LogInterceptor] EJBException:
javax.ejb.EJBException: Naming lookup failure: User not bound
   at 
com.wingstech.webappointments.session.UserSessionBean.getUserByPrincipalId(UserSessionBean.java:710) 

   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 

   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 

   at java.lang.reflect.Method.invoke(Method.java:324)


Jndi view says


java:comp namespace of the UserSession bean:

+- env (class: org.jnp.interfaces.NamingContext)
 |   +- ejb (class: org.jnp.interfaces.NamingContext)
 |   |   +- mywebappointments (class: org.jnp.interfaces.NamingContext)
 |   |   |   +- Role[link -> Role] (class: javax.naming.LinkRef)
 |   |   |   +- UserGroups[link -> UserGroups] (class: 
javax.naming.LinkRef)
 |   |   |   +- User[link -> User] (class: javax.naming.LinkRef)
 |   +- security (class: org.jnp.interfaces.NamingContext)
 |   |   +- subject[link -> java:/jaas/appointmentsApp/subject] 
(class: javax.naming.LinkRef)
 |   |   +- security-domain[link -> java:/jaas/appointmentsApp] 
(class: javax.naming.LinkRef)


I can't get out please help me!

Thanks in advance,
Kiuma






---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
.






---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] HELP javax.ejb.EJBException: Naming lookup failure: User not bound

2003-01-31 Thread kiuma
Hello,

I have the following problem:

My session doesn't find the local EJB cmp I want to get.

So with XDoclet I've defined UserBean.java

   * @ejb.bean
   *name="User"
   *display-name="User"
   *type="CMP"
   *cmp-version="2.x"
   *schema="WaUsers"
   *jndi-name="ejb/webappointments/User"
   *view-type="local"

Then UserSessionBean.java

* @ejb.bean name="UserSession"
*   display-name="User Session Bean"
*   type="Stateless"
*   transaction-type="Container"
*   jndi-name="ejb/webappointments/UserSession"
*
* @ejb.ejb-ref ejb-name="User"
*  ref-name="mywebappointments/User"
*

and the function that throws NamingLookupException

  /**
  *
  * Find a User by his name/id
  * @param pUserId User's name.  
  * @return Returns the User's data.
  * @throws RemoteException Idnicates that the modification process failed
  *
  * @ejb.interface-method view-type="remote"
  * @ejb.permission role-name="Admin,PoweredUser,User"
  *
  **/
  public UserData getUserByPrincipalId(String pPrincipalId)
 throws
RemoteException
  {
 try {
// Get User Entity Remote Interface

Context lContext = new InitialContext();
   
UserLocalHome lHome = (UserLocalHome) PortableRemoteObject.narrow(
   lContext.lookup(
  "java:comp/env/ejb/mywebappointments/User"
   ),
   UserLocalHome.class
);

UserLocal lEntity = lHome.findByPrimaryKey( new 
UserPK(pPrincipalId) );
   
UserData lData = lEntity.getValueObject();
return lData;
 }
 catch ( FinderException fe ) {
throw new EJBException( "User not found: " +  fe.getMessage() );
 }
 catch ( NamingException ne ) {  
throw new EJBException( "Naming lookup failure: " + 
ne.getMessage() );
 } 
  }



so the output is:


09:42:25,758 ERROR [LogInterceptor] EJBException:
javax.ejb.EJBException: Naming lookup failure: User not bound
   at 
com.wingstech.webappointments.session.UserSessionBean.getUserByPrincipalId(UserSessionBean.java:710)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)


Jndi view says


java:comp namespace of the UserSession bean:

+- env (class: org.jnp.interfaces.NamingContext)
 |   +- ejb (class: org.jnp.interfaces.NamingContext)
 |   |   +- mywebappointments (class: org.jnp.interfaces.NamingContext)
 |   |   |   +- Role[link -> Role] (class: javax.naming.LinkRef)
 |   |   |   +- UserGroups[link -> UserGroups] (class: javax.naming.LinkRef)
 |   |   |   +- User[link -> User] (class: javax.naming.LinkRef)
 |   +- security (class: org.jnp.interfaces.NamingContext)
 |   |   +- subject[link -> java:/jaas/appointmentsApp/subject] (class: javax.naming.LinkRef)
 |   |   +- security-domain[link -> java:/jaas/appointmentsApp] (class: javax.naming.LinkRef)


I can't get out please help me!

Thanks in advance,
Kiuma






---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Sharing Principal HOWTO

2003-01-23 Thread kiuma
Hello,
is it possible to share Principal credentials between different war 
(without using a DB or similar)?
If yes, I hope so ;-P, can you explain to me how or give a link to read 
about?

Thx,
Kiuma



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Session Id not reinitialized

2003-01-23 Thread kiuma
Thank you very very much!
Your solution perfectly solved the problem

Kiuma

Jules Gosnell ha scritto:


kiuma wrote:


Would you try replacing your jbossweb.sar with this one and trying 
again... - I know that a session handling problem crept into 3.0.5, I 
think this release fixed it - if not Jetty-4.2.6 (which will be in 
3.0.6) will do so.

Jules

jbossweb-3.0.5-4.2.5.sar 
<http://prdownloads.sourceforge.net/jetty/jbossweb-3.0.5-4.2.5.sar?download> 


Ok, now I can be more precise. ;-)

First I want to point out that installing my app to my customer pc 
works pretty well!

The problem is on my network in the following test:

Box1:
Linux PC with jboss-3.0.5 running.
Browser is Mozilla
IP: 192.168.100.3

Box2:
Windows 2000 with I.E.
IP: 192.168.100.4

Box3:
Gateway
IP: 192.168.100.5


I firstly log into my app with Box1
[myApp]/index.jsp -> [myApp]/login.jsp -> [myApp]/main.jsp.
browse my app a bit filling some session varibles.

The I go to Box2
[myApp]/index.jsp ->  [myApp]/main.jsp.
filled variables are the same of Box1 so Box1 and Box2 share the same 
session.


What could it be?
kiuma



Jules Gosnell ha scritto:

3.0.6 will be out soon (early next week?)

Please repeat the test in that and if the problm persists, mail 
again with more detail - i.e. a blow-by-blow account of exactly what 
you did from both boxes and what behaviour you observed.

Jules


kiuma wrote:

Hello,
I'm having the following problem:

I'm using JBoss 3.0.4 with Jetty my login.jsp is:

<%@page language="java"
   contentType="text/html;charset=UTF-8"
   session="true"
   isThreadSafe="true"
   isErrorPage="false"
   import="javax.naming.*,
  com.wingstech.webappointments.interfaces.*,
  java.util.*"
%> <%@ taglib uri="/WEB-INF/struts-html-el.tld"
   prefix="html-el" %>
<%@ taglib uri="/WEB-INF/struts-bean-el.tld"
   prefix="bean-el" %>
<%@ taglib uri="/WEB-INF/struts-logic-el.tld"
   prefix="logic-el" %>
<%@ taglib uri="/WEB-INF/c.tld"
   prefix="c" %>
<%@ taglib uri="/WEB-INF/x.tld"
   prefix="x" %>




   




 
   
 :
 
   
 
 
   
   
 
 
   
 









When I log from a computer of my lan
the other Pc shares the same connection, so it doesn't ask me to 
log into my app.

Can you explain me where is the bug?
(this is my 1st web application and so I've not much experience 
about these sort of problems)

Thanks in advance!
kiuma



---
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user









This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com



---
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
.







---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user








This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://l

Re: [JBoss-user] Session Id not reinitialized

2003-01-23 Thread kiuma
Ok, now I can be more precise. ;-)

First I want to point out that installing my app to my customer pc works 
pretty well!

The problem is on my network in the following test:

Box1:
Linux PC with jboss-3.0.5 running.
Browser is Mozilla
IP: 192.168.100.3

Box2:
Windows 2000 with I.E.
IP: 192.168.100.4

Box3:
Gateway
IP: 192.168.100.5


I firstly log into my app with Box1
[myApp]/index.jsp -> [myApp]/login.jsp -> [myApp]/main.jsp.
browse my app a bit filling some session varibles.

The I go to Box2
[myApp]/index.jsp ->  [myApp]/main.jsp.
filled variables are the same of Box1 so Box1 and Box2 share the same 
session.


What could it be?
kiuma



Jules Gosnell ha scritto:

3.0.6 will be out soon (early next week?)

Please repeat the test in that and if the problm persists, mail again 
with more detail - i.e. a blow-by-blow account of exactly what you did 
from both boxes and what behaviour you observed.

Jules


kiuma wrote:

Hello,
I'm having the following problem:

I'm using JBoss 3.0.4 with Jetty my login.jsp is:

<%@page language="java"
   contentType="text/html;charset=UTF-8"
   session="true"
   isThreadSafe="true"
   isErrorPage="false"
   import="javax.naming.*,
  com.wingstech.webappointments.interfaces.*,
  java.util.*"
%> <%@ taglib uri="/WEB-INF/struts-html-el.tld"
   prefix="html-el" %>
<%@ taglib uri="/WEB-INF/struts-bean-el.tld"
   prefix="bean-el" %>
<%@ taglib uri="/WEB-INF/struts-logic-el.tld"
   prefix="logic-el" %>
<%@ taglib uri="/WEB-INF/c.tld"
   prefix="c" %>
<%@ taglib uri="/WEB-INF/x.tld"
   prefix="x" %>




   




 
   
 :
  
   
   
 
 
   
   
 
 
   
 









When I log from a computer of my lan
the other Pc shares the same connection, so it doesn't ask me to log 
into my app.

Can you explain me where is the bug?
(this is my 1st web application and so I've not much experience about 
these sort of problems)

Thanks in advance!
kiuma



---
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user







This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com



---
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
.







---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Session Id not reinitialized

2003-01-22 Thread kiuma
Hello,
I'm having the following problem:

I'm using JBoss 3.0.4 with Jetty my login.jsp is:

<%@page language="java"
   contentType="text/html;charset=UTF-8"
   session="true"
   isThreadSafe="true"
   isErrorPage="false"
   import="javax.naming.*,
  com.wingstech.webappointments.interfaces.*,
  java.util.*"
%> 
<%@ taglib uri="/WEB-INF/struts-html-el.tld"
   prefix="html-el" %>
<%@ taglib uri="/WEB-INF/struts-bean-el.tld"
   prefix="bean-el" %>
<%@ taglib uri="/WEB-INF/struts-logic-el.tld"
   prefix="logic-el" %>
<%@ taglib uri="/WEB-INF/c.tld"
   prefix="c" %>
<%@ taglib uri="/WEB-INF/x.tld"
   prefix="x" %>




 

  





 
   
 :
  
   
   
 
 
   
   
 
 
   
 









When I log from a computer of my lan
the other Pc shares the same connection, so it doesn't ask me to log 
into my app.

Can you explain me where is the bug?
(this is my 1st web application and so I've not much experience about 
these sort of problems)

Thanks in advance!
kiuma



---
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Date and jboss

2002-12-28 Thread kiuma
Hello, I was wondering about dates and queries.
If I have a myCalendar created with new GragorianCalendar() and a where 
clause like
day = ?1.

Suppose now that myCalendar is 1/1/2003 23:59:59 99 .


What happens if i pass myCalendar.getTime() ?

If I have a row with day = 1/1/2003 15:59:59 99, Is this row in result set ?

Tahnks and Happy NY,

kiuma



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Good-bye

2002-12-21 Thread kiuma
Andy ha scritto:


Hi Geeks

Yesterday my CVS RW access to JBoss was revoked and therefore
I will not work on the JBoss project at all.
Unfortunately this also means that I cannot update my changes to the
Quick Start Guide and the EJB Timer Service I was working on.

Even though that it makes me angry that I spent many hours helping
JBoss become a success I still wish the project all the success it
deserves.

Have a nice day

Andreas Schaefer
"Code or be coded"

Check out www.madplanet.com




---
This SF.NET email is sponsored by:  The Best Geek Holiday Gifts!
Time is running out!  Thinkgeek.com has the coolest gifts for
your favorite geek.   Let your fingers do the typing.   Visit Now.
T H I N K G E E K . C O Mhttp://www.thinkgeek.com/sf/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
.

 

Thaks Andy for all your help !
Kiuma




---
This SF.NET email is sponsored by: Order your Holiday Geek Presents Now!
Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap,
MP3 Players,  XBox Games,  Flying Saucers,  WebCams,  Smart Putty.
T H I N K G E E K . C O M   http://www.thinkgeek.com/sf/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] ejbql and date comparison

2002-12-10 Thread kiuma
As u said
the possibilities are

'=', '>', '<' and '<>'

no
'<=' nor '>='

So u have to split your query to abtain a '<='
regards,
kiuma
Spam ha scritto:


Hi,
I have a CMP finder with ejbql wich has to have a WHERE criteria based on
date comparison (see below)
I need to use "superior OR equals" operator (>=) and not just "strictly
superior" (>).
When I try to deploy, It fails saying JBoss could not parse EJB-QL because
of the ">=" (see below)

I look at the ejb ql parser source code and I found this snippet, which
seems limited to '=', '>', '<' and '<>'. (see below)
Any idea ?

I am using JBoss 3.0.3, but the snippet is the same with JBoss 3.2beta2.

S.Pam




(in server\src\main\org\jboss\ejb\plugins\cmp\ejbql\EJBQLParser.jjt)

(
(

DatetimeValue()

(

 { jjtThis.opp="="; } |

 { jjtThis.opp=">"; } |

 { jjtThis.opp="<"; } |

 { jjtThis.opp="<>"; }

)

DatetimeExpression()

) #DatetimeComparison






2002-12-10 10:46:05,464 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.ContentLine.findByContentIdAn
dParamAndValidity] SQL: SELECT DISTINCT t0_c.CONTENTLINE_ID FROM CONTENTLINE
t0_c, CONTENT t1_c_content WHERE (t1_c_content.CONTENT_ID = ? AND
t0_c.PARAMETER = ? AND t0_c.ISVALID = ?) AND
(t0_c.CONTENT_ID=t1_c_content.CONTENT_ID)
2002-12-10 10:46:05,464 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.ContentLine.findByDates]
EJB-QL: SELECT DISTINCT OBJECT(c) FROM ContentLine c WHERE c.endDate >= ?1
AND c.startDate <= ?2
2002-12-10 10:46:05,474 DEBUG [org.jboss.util.NestedThrowable]
org.jboss.util.NestedThrowable.parentTraceEnabled=true
2002-12-10 10:46:05,474 DEBUG [org.jboss.util.NestedThrowable]
org.jboss.util.NestedThrowable.nestedTraceEnabled=true
2002-12-10 10:46:05,474 DEBUG [org.jboss.util.NestedThrowable]
org.jboss.util.NestedThrowable.detectDuplicateNesting=true
2002-12-10 10:46:05,484 WARN  [org.jboss.system.ServiceController] Problem
starting service
jboss.j2ee:jndiName=SMSContent.ejb.common.entity.ContentCategory,service=EJB
org.jboss.deployment.DeploymentException: Error compiling ejbql; - nested
throwable: (org.jboss.ejb.plugins.cmp.ejbql.ParseException: Encountered ">="
at line 1, column 62.
Was expecting one of:
   ">" ...
   "<" ...
   "=" ...
   "<>" ...
   )





* @ejb.finder signature="java.util.Collection
*
findByContentIdAndParamAndDateAndValidityAndAdditional(java.lang.Integer
*  id, java.lang.String parameter, java.util.Date date, boolean
validity,
*  boolean add)" result-type-mapping="Local" unchecked="true"
query="SELECT
*  DISTINCT OBJECT(c) FROM ContentLine c WHERE c.content.contentId = ?1
AND
*  c.parameter = ?2 AND c.endDate >= ?3 AND c.isValid = ?4 AND
*  c.isAdditional = ?5"










---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
.

 






---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] sotring a cmr result set

2002-11-26 Thread kiuma
Hello,
is there any possibility to sort a cmr collection without putting the 
result in a SortedSet?
regards,
kiuma



---
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] A simple question

2002-11-26 Thread kiuma
Hello,
I was wondering In an average calculation how many dyna html pages a 
programmer can produce (sessionbean + entity + struts mvc).
I'm near to 1, but I think I'm slow. (and pages are not fully debugged)

What speed should be?

Thanks,
kiuma



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


Re: [JBoss-user] JBoss-3.2.0beta2 released

2002-11-20 Thread kiuma
Thank you to all jboss develolpers

kiuma

Scott M Stark wrote:


The JBoss-3.0.2beta2 release has been made available at sourceforge. The
binaries and source may be obtained from here:
http://sourceforge.net/project/showfiles.php?group_id=22866

The release notes are available here:
http://sourceforge.net/project/shownotes.php?release_id=13


Scott Stark
Chief Technology Officer
JBoss Group, LLC



---
This sf.net email is sponsored by: To learn the basics of securing 
your web site with SSL, click here to get a FREE TRIAL of a Thawte 
Server Certificate: http://www.gothawte.com/rd524.html
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
.





---
This sf.net email is sponsored by: To learn the basics of securing 
your web site with SSL, click here to get a FREE TRIAL of a Thawte 
Server Certificate: http://www.gothawte.com/rd524.html
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] how to generate primary key

2002-11-19 Thread kiuma
download middlegen (u can find the link on xdoclet site)
and setup it for your db

It's not perfect but it can give some god sample 2 u.


regards,
Kiuma

Tania G. Ramos wrote:


Hi,

 

I wanna create beans but I my primary keys are sequences in the 
database. How can I create a bean without having

to determine this key value??? Is there any way to ask the container 
to create this sequence???

 

Thanks,

 

 

 

**_Tânia Ramos_**

Analista de Sistemas - NDS

* tania.ram [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>

**Fóton® Informática e Serviços**

( Fone: (61) 3031 5087

 





---
This sf.net email is sponsored by: To learn the basics of securing 
your web site with SSL, click here to get a FREE TRIAL of a Thawte 
Server Certificate: http://www.gothawte.com/rd524.html
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] help please with ejbql

2002-11-19 Thread kiuma
Hi all,
I'm trying to write this query

*signature="java.util.Collection findByCodes( java.util.Collection 
pCodes )"
*result-type-mapping="Local"
*query="SELECT OBJECT(Speciality) FROM WaSpeciality Speciality WHERE 
Speciality.code MEMBER OF ?1"


I think that jboss and ejb in general don't like this form.
Is there any way to extract a collection of beans matching a collection 
of id?

regards



---
This sf.net email is sponsored by: To learn the basics of securing 
your web site with SSL, click here to get a FREE TRIAL of a Thawte 
Server Certificate: http://www.gothawte.com/rd524.html
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] another cmp question

2002-11-14 Thread kiuma
Hello
I was wondering if it is possible to map a table with a cmp question, 
and doing some poeration with std SQL in a session.
Is it possible & is it syncronized?

reagards



---
This sf.net email is sponsored by: To learn the basics of securing 
your web site with SSL, click here to get a FREE TRIAL of a Thawte 
Server Certificate: http://www.gothawte.com/rd524.html
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] problem with cmr, please help

2002-11-14 Thread kiuma
Alex I'didn't understand about pk generator.
As you have suggested I'm already using a Sequence gen session bean.
I've put those directives on db, as redundant code.

Ps.:
You are a mith, thx very much ! ;-)

Alex Loubyansky wrote:


k> Alex, I've found the problem
k> if calendar id is 0 it doesn't work.

If it's the only problem, then checkout a fresh version from CVS.
I fixed it yesterday in 3.0, 3.2 and HEAD.

How do you obtain a Calendar before doing
wHome.create( pView, lCalendar )?

There is no guarantee that calendar will have the correct pk value with
such a table setup. This is why I warned you that, generally, it won't
work.
I suggest you to implement your own sequence generator pattern (or ask
me to share mine :)) or use pk-sql entity-command.

alex

Thursday, November 14, 2002, 3:17:44 PM, you wrote:

k> Alex, I've found the problem

k> if calendar id is 0 it doesn't work.

k> But I can't understand why? I've never read about it.

k> Alex Loubyansky wrote:


AFAIK, generally, this won't work.

If you would like to make use of db sequences consider pk-sql entity
command. But it's available since 3.2.

Anyway, try to fetch calendar's pk before assigning a relationship and
see what value it has. Post the results here, please.

alex

Thursday, November 14, 2002, 1:36:16 PM, you wrote:

k> Thx for your attention Alex,

k> this is a piece o sql (postgresql) I use to create tables.

k> --calendar section--
k> CREATE SEQUENCE calendar_seq;
k> CREATE TABLE calendar (
k> id INTEGER DEFAULT nextval('calendar_seq'),
k> validity_start date NOT NULL,
k> validity_end date CHECK(validity_end >= validity_start),
k> description varchar(255) NOT NULL,
k> rounds INTEGER,
k> PRIMARY KEY (id)
k> );
k> CREATE UNIQUE INDEX cal_descr_ix ON calendar(description);

k> CREATE SEQUENCE workweek_seq;
k> CREATE TABLE workweek (
k> id INTEGER DEFAULT nextval('workweek_seq') PRIMARY KEY,
k> week_day INTEGER DEFAULT 1,
k> round INTEGER,
k> start_t time DEFAULT('00:00') NOT NULL,
k> end_t time DEFAULT('23:59') CHECK (end_t > start_t),
k>   calendar_id INTEGER REFERENCES calendar(id)   
k> );


k> while in bean generated calendarPk is

k> public CalendarPK( int id )
k> {
k>this.id = id;
k> }

k> generated from

k> /**
k> * Retrieve the Calendars's id.
k> *
k> * @return Returns the id of this Calendar.
k> * @ejb.persistent-field
k> * @ejb.pk-field
k> * @jboss.column-name
k> *name="id"
k> */
k>public abstract int getId(); 

k>/**
k> * Sets the Calendar's id.
k> *
k> * @param pId The id of this Calendar.
k> */
k>public abstract void setId(int pId);  

k> I've consulted some manuals but I can's see the problem.


k> Alex Loubyansky wrote:

Hello kiuma,

what is the type of Calendar's primary key? What pk values you tried?

alex

Thursday, November 14, 2002, 11:38:27 AM, you wrote:

k> I've tryed also setting the post create method, but whit no result.

k> public WorkweekPK ejbCreate( WorkweekData pWorkweek, CalendarLocal 
k> lCalendar )
k>   throws
k>  InvalidValueException,
k>  EJBException,
k>  CreateException
k>{
k>   // Clone the given Value Object to keep changed private
k>   WorkweekData lData = (WorkweekData) pWorkweek.clone();
  
k>   // Save the new Workweek
k>   try {
k> lData.setId( generateUniqueId() );
k> setId( lData.getId() );
k>   } catch (ServiceUnavailableException e) {  
k>   System.out.println("Workweek Creation Error: \n" + 
k> e.getMessage());
k> throw new EJBException(e.getMessage());
k>   }
k>   setValueObject( lData ); 
k>   // This is only possible in CMPs. Otherwise return a valid PK.
k>   return null;
k>}

k> /**
k> */
k> public void ejbPostCreate( WorkweekData pWorkweek, CalendarLocal lCalendar )
k> {
k> setCalendar( lCalendar );
k> }


k> In my database calendar_id is always clean.

k> Please help me



k> kiuma wrote:

Hi I'm using jboss3.2b + xdoclet cvs

I've a calendar with many workweek days

so I configured xdoclet directives for

WorkweekBean
/**
* @ejb.interface-method
*view-type="local"
* @ejb.relation
*name="calendar-workweeks"
*role-name="workweek-has-calendar"
*cascade-delete="yes"
*target-ejb="Calendar"
* @jboss.relation
*fk-constraint="true"
*fk-column="calendar_id"
*related-pk-field="id"
*/

Re: [JBoss-user] problem with cmr, please help

2002-11-14 Thread kiuma
I added this code:

CalendarData cCal = lCalendar.getValueObject();
System.out.println( "Calendar pk id id: " + cCal.getId() );
wHome.create( pView, lCalendar );
return true;

Calendar pk id id: 0

The effective Calendar value .

Alex Loubyansky wrote:

AFAIK, generally, this won't work.

If you would like to make use of db sequences consider pk-sql entity
command. But it's available since 3.2.

Anyway, try to fetch calendar's pk before assigning a relationship and
see what value it has. Post the results here, please.

alex

Thursday, November 14, 2002, 1:36:16 PM, you wrote:

k> Thx for your attention Alex,

k> this is a piece o sql (postgresql) I use to create tables.

k> --calendar section--
k> CREATE SEQUENCE calendar_seq;
k> CREATE TABLE calendar (
k> id INTEGER DEFAULT nextval('calendar_seq'),
k> validity_start date NOT NULL,
k> validity_end date CHECK(validity_end >= validity_start),
k> description varchar(255) NOT NULL,
k> rounds INTEGER,
k> PRIMARY KEY (id)
k> );
k> CREATE UNIQUE INDEX cal_descr_ix ON calendar(description);

k> CREATE SEQUENCE workweek_seq;
k> CREATE TABLE workweek (
k> id INTEGER DEFAULT nextval('workweek_seq') PRIMARY KEY,
k> week_day INTEGER DEFAULT 1,
k> round INTEGER,
k> start_t time DEFAULT('00:00') NOT NULL,
k> end_t time DEFAULT('23:59') CHECK (end_t > start_t),
k>   calendar_id INTEGER REFERENCES calendar(id)   
k> );


k> while in bean generated calendarPk is

k> public CalendarPK( int id )
k> {
k>this.id = id;
k> }

k> generated from

k> /**
k> * Retrieve the Calendars's id.
k> *
k> * @return Returns the id of this Calendar.
k> * @ejb.persistent-field
k> * @ejb.pk-field
k> * @jboss.column-name
k> *name="id"
k> */
k>public abstract int getId(); 
 
k>/**
k> * Sets the Calendar's id.
k> *
k> * @param pId The id of this Calendar.
k> */
k>public abstract void setId(int pId);  

k> I've consulted some manuals but I can's see the problem.


k> Alex Loubyansky wrote:

Hello kiuma,

what is the type of Calendar's primary key? What pk values you tried?

alex

Thursday, November 14, 2002, 11:38:27 AM, you wrote:

k> I've tryed also setting the post create method, but whit no result.

k> public WorkweekPK ejbCreate( WorkweekData pWorkweek, CalendarLocal 
k> lCalendar )
k>   throws
k>  InvalidValueException,
k>  EJBException,
k>  CreateException
k>{
k>   // Clone the given Value Object to keep changed private
k>   WorkweekData lData = (WorkweekData) pWorkweek.clone();
   
k>   // Save the new Workweek
k>   try {
k> lData.setId( generateUniqueId() );
k> setId( lData.getId() );
k>   } catch (ServiceUnavailableException e) {  
k>   System.out.println("Workweek Creation Error: \n" + 
k> e.getMessage());
k> throw new EJBException(e.getMessage());
k>   }
k>   setValueObject( lData ); 
k>   // This is only possible in CMPs. Otherwise return a valid PK.
k>   return null;
k>}

k> /**
k> */
k> public void ejbPostCreate( WorkweekData pWorkweek, CalendarLocal lCalendar )
k> {
k> setCalendar( lCalendar );
k> }


k> In my database calendar_id is always clean.

k> Please help me



k> kiuma wrote:

Hi I'm using jboss3.2b + xdoclet cvs

I've a calendar with many workweek days

so I configured xdoclet directives for

WorkweekBean
/**
 * @ejb.interface-method
 *view-type="local"
 * @ejb.relation
 *name="calendar-workweeks"
 *role-name="workweek-has-calendar"
 *cascade-delete="yes"
 *target-ejb="Calendar"
 * @jboss.relation
 *fk-constraint="true"
 *fk-column="calendar_id"
 *related-pk-field="id"
 */
public abstract CalendarLocal getCalendar();

 /**
 * @ejb.interface-method
 *view-type="local"
 */
 public abstract void setCalendar(CalendarLocal pCalendarData);



while for
CalendarBean

/**
 * @ejb.relation
 *name="calendar-workweeks"
 *role-name="calendar-has-workweeks"
 * @ejb.interface-method
 *view-type="local"
 */
 public abstract Collection getWorkweeks();  /**
 * @ejb.interface-method
 *view-type="local"
 */
 public abstract void setWorkweeks(Collection pHolydays);


when in my session I execute the following commands
WorkweekLocal wEntity = wHome.create( pView );
wEntity.setCalendar( lCalendar );

Workweek is created, but no calendar_id is set.
Could 

Re: [JBoss-user] problem with cmr, please help

2002-11-14 Thread kiuma
Alex, I've found the problem

if calendar id is 0 it doesn't work.

But I can't understand why? I've never read about it.

Alex Loubyansky wrote:


AFAIK, generally, this won't work.

If you would like to make use of db sequences consider pk-sql entity
command. But it's available since 3.2.

Anyway, try to fetch calendar's pk before assigning a relationship and
see what value it has. Post the results here, please.

alex

Thursday, November 14, 2002, 1:36:16 PM, you wrote:

k> Thx for your attention Alex,

k> this is a piece o sql (postgresql) I use to create tables.

k> --calendar section--
k> CREATE SEQUENCE calendar_seq;
k> CREATE TABLE calendar (
k> id INTEGER DEFAULT nextval('calendar_seq'),
k> validity_start date NOT NULL,
k> validity_end date CHECK(validity_end >= validity_start),
k> description varchar(255) NOT NULL,
k> rounds INTEGER,
k> PRIMARY KEY (id)
k> );
k> CREATE UNIQUE INDEX cal_descr_ix ON calendar(description);

k> CREATE SEQUENCE workweek_seq;
k> CREATE TABLE workweek (
k> id INTEGER DEFAULT nextval('workweek_seq') PRIMARY KEY,
k> week_day INTEGER DEFAULT 1,
k> round INTEGER,
k> start_t time DEFAULT('00:00') NOT NULL,
k> end_t time DEFAULT('23:59') CHECK (end_t > start_t),
k>   calendar_id INTEGER REFERENCES calendar(id)   
k> );


k> while in bean generated calendarPk is

k> public CalendarPK( int id )
k> {
k>this.id = id;
k> }

k> generated from

k> /**
k> * Retrieve the Calendars's id.
k> *
k> * @return Returns the id of this Calendar.
k> * @ejb.persistent-field
k> * @ejb.pk-field
k> * @jboss.column-name
k> *name="id"
k> */
k>public abstract int getId(); 
 
k>/**
k> * Sets the Calendar's id.
k> *
k> * @param pId The id of this Calendar.
k> */
k>public abstract void setId(int pId);  

k> I've consulted some manuals but I can's see the problem.


k> Alex Loubyansky wrote:

Hello kiuma,

what is the type of Calendar's primary key? What pk values you tried?

alex

Thursday, November 14, 2002, 11:38:27 AM, you wrote:

k> I've tryed also setting the post create method, but whit no result.

k> public WorkweekPK ejbCreate( WorkweekData pWorkweek, CalendarLocal 
k> lCalendar )
k>   throws
k>  InvalidValueException,
k>  EJBException,
k>  CreateException
k>{
k>   // Clone the given Value Object to keep changed private
k>   WorkweekData lData = (WorkweekData) pWorkweek.clone();
   
k>   // Save the new Workweek
k>   try {
k> lData.setId( generateUniqueId() );
k> setId( lData.getId() );
k>   } catch (ServiceUnavailableException e) {  
k>   System.out.println("Workweek Creation Error: \n" + 
k> e.getMessage());
k> throw new EJBException(e.getMessage());
k>   }
k>   setValueObject( lData );     
k>   // This is only possible in CMPs. Otherwise return a valid PK.
k>   return null;
k>}

k> /**
k> */
k> public void ejbPostCreate( WorkweekData pWorkweek, CalendarLocal lCalendar )
k> {
k> setCalendar( lCalendar );
k> }


k> In my database calendar_id is always clean.

k> Please help me



k> kiuma wrote:

Hi I'm using jboss3.2b + xdoclet cvs

I've a calendar with many workweek days

so I configured xdoclet directives for

WorkweekBean
/**
 * @ejb.interface-method
 *view-type="local"
 * @ejb.relation
 *name="calendar-workweeks"
 *role-name="workweek-has-calendar"
 *cascade-delete="yes"
 *target-ejb="Calendar"
 * @jboss.relation
 *fk-constraint="true"
 *fk-column="calendar_id"
 *related-pk-field="id"
 */
public abstract CalendarLocal getCalendar();

 /**
 * @ejb.interface-method
 *view-type="local"
 */
 public abstract void setCalendar(CalendarLocal pCalendarData);



while for
CalendarBean

/**
 * @ejb.relation
 *name="calendar-workweeks"
 *role-name="calendar-has-workweeks"
 * @ejb.interface-method
 *view-type="local"
 */
 public abstract Collection getWorkweeks();  /**
 * @ejb.interface-method
 *view-type="local"
 */
 public abstract void setWorkweeks(Collection pHolydays);


when in my session I execute the following commands
WorkweekLocal wEntity = wHome.create( pView );
wEntity.setCalendar( lCalendar );

Workweek is created, but no calendar_id is set.
Could you help me please ?



the piece of the generated jboss_cmp is:

   calendar-workweeks

   

   
   
workweek-h

Re: [JBoss-user] problem with cmr, please help

2002-11-14 Thread kiuma
Thx for your attention Alex,

this is a piece o sql (postgresql) I use to create tables.

--calendar section--
CREATE SEQUENCE calendar_seq;
CREATE TABLE calendar (
   id INTEGER DEFAULT nextval('calendar_seq'),
   validity_start date NOT NULL,
   validity_end date CHECK(validity_end >= validity_start),
   description varchar(255) NOT NULL,
   rounds INTEGER,
   PRIMARY KEY (id)
   );
CREATE UNIQUE INDEX cal_descr_ix ON calendar(description);

CREATE SEQUENCE workweek_seq;
CREATE TABLE workweek (
   id INTEGER DEFAULT nextval('workweek_seq') PRIMARY KEY,
   week_day INTEGER DEFAULT 1,
   round INTEGER,
   start_t time DEFAULT('00:00') NOT NULL,
   end_t time DEFAULT('23:59') CHECK (end_t > start_t),
 calendar_id INTEGER REFERENCES calendar(id)   
   );


while in bean generated calendarPk is

public CalendarPK( int id )
{
  this.id = id;
}

generated from

/**
   * Retrieve the Calendars's id.
   *
   * @return Returns the id of this Calendar.
   * @ejb.persistent-field
   * @ejb.pk-field
   * @jboss.column-name
   *name="id"
   */
  public abstract int getId(); 
 
  /**
   * Sets the Calendar's id.
   *
   * @param pId The id of this Calendar.
   */
  public abstract void setId(int pId);  

I've consulted some manuals but I can's see the problem.


Alex Loubyansky wrote:

Hello kiuma,

what is the type of Calendar's primary key? What pk values you tried?

alex

Thursday, November 14, 2002, 11:38:27 AM, you wrote:

k> I've tryed also setting the post create method, but whit no result.

k> public WorkweekPK ejbCreate( WorkweekData pWorkweek, CalendarLocal 
k> lCalendar )
k>   throws
k>  InvalidValueException,
k>  EJBException,
k>  CreateException
k>{
k>   // Clone the given Value Object to keep changed private
k>   WorkweekData lData = (WorkweekData) pWorkweek.clone();

k>   // Save the new Workweek
k>   try {
k> lData.setId( generateUniqueId() );
k> setId( lData.getId() );
k>   } catch (ServiceUnavailableException e) {  
k>   System.out.println("Workweek Creation Error: \n" + 
k> e.getMessage());
k> throw new EJBException(e.getMessage());
k>   }
k>   setValueObject( lData ); 
k>   // This is only possible in CMPs. Otherwise return a valid PK.
k>   return null;
k>}

k> /**
k> */
k> public void ejbPostCreate( WorkweekData pWorkweek, CalendarLocal lCalendar )
k> {
k> setCalendar( lCalendar );
k> }


k> In my database calendar_id is always clean.

k> Please help me



k> kiuma wrote:

Hi I'm using jboss3.2b + xdoclet cvs

I've a calendar with many workweek days

so I configured xdoclet directives for

WorkweekBean
/**
  * @ejb.interface-method
  *view-type="local"
  * @ejb.relation
  *name="calendar-workweeks"
  *role-name="workweek-has-calendar"
  *cascade-delete="yes"
  *target-ejb="Calendar"
  * @jboss.relation
  *fk-constraint="true"
  *fk-column="calendar_id"
  *related-pk-field="id"
  */
public abstract CalendarLocal getCalendar();

  /**
  * @ejb.interface-method
  *view-type="local"
  */
  public abstract void setCalendar(CalendarLocal pCalendarData);



while for
CalendarBean

/**
  * @ejb.relation
  *name="calendar-workweeks"
  *role-name="calendar-has-workweeks"
  * @ejb.interface-method
  *view-type="local"
  */
  public abstract Collection getWorkweeks();  /**
  * @ejb.interface-method
  *view-type="local"
  */
  public abstract void setWorkweeks(Collection pHolydays);


when in my session I execute the following commands
WorkweekLocal wEntity = wHome.create( pView );
wEntity.setCalendar( lCalendar );

Workweek is created, but no calendar_id is set.
Could you help me please ?



the piece of the generated jboss_cmp is:

calendar-workweeks





workweek-has-calendar 

true




calendar-has-workweeks 


   
 id
 calendar_id
   









---
This sf.net email is sponsored by: To learn the basics of securing 
your web site with SSL, click here to get a FREE TRIAL of a Thawte 
Server Certificate: http://www.gothawte.com/rd524.html
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] problem with cmr, please help

2002-11-14 Thread kiuma
I've tryed also setting the post create method, but whit no result.

public WorkweekPK ejbCreate( WorkweekData pWorkweek, CalendarLocal 
lCalendar )
 throws
InvalidValueException,
EJBException,
CreateException
  {
 // Clone the given Value Object to keep changed private
 WorkweekData lData = (WorkweekData) pWorkweek.clone();

 // Save the new Workweek
 try {
   lData.setId( generateUniqueId() );
   setId( lData.getId() );
 } catch (ServiceUnavailableException e) {  
 System.out.println("Workweek Creation Error: \n" + 
e.getMessage());
   throw new EJBException(e.getMessage());
 }
 setValueObject( lData ); 
 // This is only possible in CMPs. Otherwise return a valid PK.
 return null;
  }

/**
   */
public void ejbPostCreate( WorkweekData pWorkweek, CalendarLocal lCalendar )
{
   setCalendar( lCalendar );
}


In my database calendar_id is always clean.

Please help me



kiuma wrote:

Hi I'm using jboss3.2b + xdoclet cvs

I've a calendar with many workweek days

so I configured xdoclet directives for

WorkweekBean
/**
   * @ejb.interface-method
   *view-type="local"
   * @ejb.relation
   *name="calendar-workweeks"
   *role-name="workweek-has-calendar"
   *cascade-delete="yes"
   *target-ejb="Calendar"
   * @jboss.relation
   *fk-constraint="true"
   *fk-column="calendar_id"
   *related-pk-field="id"
   */
public abstract CalendarLocal getCalendar();

   /**
   * @ejb.interface-method
   *view-type="local"
   */
   public abstract void setCalendar(CalendarLocal pCalendarData);



while for
CalendarBean

/**
   * @ejb.relation
   *name="calendar-workweeks"
   *role-name="calendar-has-workweeks"
   * @ejb.interface-method
   *view-type="local"
   */
   public abstract Collection getWorkweeks();  /**
   * @ejb.interface-method
   *view-type="local"
   */
   public abstract void setWorkweeks(Collection pHolydays);


when in my session I execute the following commands
WorkweekLocal wEntity = wHome.create( pView );
wEntity.setCalendar( lCalendar );

Workweek is created, but no calendar_id is set.
Could you help me please ?



the piece of the generated jboss_cmp is:

 calendar-workweeks

 

 
 
workweek-has-calendar 

 true
 
 
 
 
calendar-has-workweeks 

 

  id
  calendar_id

 
 




---
This sf.net email is sponsored by: To learn the basics of securing 
your web site with SSL, click here to get a FREE TRIAL of a Thawte 
Server Certificate: http://www.gothawte.com/rd522.html
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
.





---
This sf.net email is sponsored by: To learn the basics of securing 
your web site with SSL, click here to get a FREE TRIAL of a Thawte 
Server Certificate: http://www.gothawte.com/rd524.html
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] problem with cmr, please help

2002-11-12 Thread kiuma
Hi I'm using jboss3.2b + xdoclet cvs

I've a calendar with many workweek days

so I configured xdoclet directives for

WorkweekBean
/**
   * @ejb.interface-method
   *view-type="local"
   * @ejb.relation
   *name="calendar-workweeks"
   *role-name="workweek-has-calendar"
   *cascade-delete="yes"
   *target-ejb="Calendar"
   * @jboss.relation
   *fk-constraint="true"
   *fk-column="calendar_id"
   *related-pk-field="id"
   */
public abstract CalendarLocal getCalendar();

   /**
   * @ejb.interface-method
   *view-type="local"
   */
   public abstract void setCalendar(CalendarLocal pCalendarData);



while for
CalendarBean

/**
   * @ejb.relation
   *name="calendar-workweeks"
   *role-name="calendar-has-workweeks"
   * @ejb.interface-method
   *view-type="local"
   */
   public abstract Collection getWorkweeks();   
   /**
   * @ejb.interface-method
   *view-type="local"
   */
   public abstract void setWorkweeks(Collection pHolydays);


when in my session I execute the following commands
WorkweekLocal wEntity = wHome.create( pView );
wEntity.setCalendar( lCalendar );

Workweek is created, but no calendar_id is set.
Could you help me please ?



the piece of the generated jboss_cmp is:

 calendar-workweeks

 

 
 
workweek-has-calendar
 true
 
 
 
 
calendar-has-workweeks
 

  id
  calendar_id

 
 




---
This sf.net email is sponsored by: 
To learn the basics of securing your web site with SSL, 
click here to get a FREE TRIAL of a Thawte Server Certificate: 
http://www.gothawte.com/rd522.html
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] ejb-ql question cmr

2002-11-07 Thread kiuma
Hi,
I'm a bit confused about cmr & ejbql,

if a Calendar bean owns many Holyday beans and I want to find all 
holydays of a calendar (id = param1) that are > param2

is it right a select like this:

SELECT OBJECT(Holyday) FROM WaHolyday Holyday WHERE (Holyday.calendar.id 
= ?1) AND ((Holyday.absenceDay > ?2)

?

Thanks,
kiuma



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


[JBoss-user] query with a cmr field

2002-11-06 Thread kiuma
hi all,

I'd like how to formulate a query when there is a cmr field involved.


I want a query like this:
   * @ejb.finder
   *signature="java.util.Collection findInPeriod( int pCalendarId, 
java.sql.Date pFromDate, java.sql.Date pToDate )"
   *query="SELECT OBJECT(Holyday) FROM WaHolyday Holyday WHERE 
(Holyday.calendarId = ?1) AND ((Holyday.absenceDayStart > ?2) AND 
(Holyday.absenceDayEnd < ?3 ))"
   *result-type-mapping="Local"

in my HolydayBean.



but i also have:

/**
   * Retrieves the calendar Id of this holyday.
   *
   * @return Returns the calendar Id of this holyday.
   * @ejb.persistent-field
   * @jboss.column-name
   *name="calendar_id"
   */
  public abstract int getCalendarId();
 
  /**
   * Sets the Holyday's calendar.
   *
   * @param pCalendarId The id of the calendar to assign to
   */
  public abstract void setCalendarId(int pCalendarId);


So I've understood that I can't use calendar_id for cmp mapping too.( Am 
I right ?)

So how could I formulate the previous query ?



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


Re: [JBoss-user] what's now ??

2002-10-25 Thread kiuma
Sorry, some of the db table where corrupted, that was the problem :-D 
yeee.

Thx, anyway, 4 your precious help!!

kiuma wrote:

Thank u 4 help, but this doesn't solve the problem.
The strange thing is that during the deployment I don't have any 
warning message.

Here it is the beginning of my file
I haven't solved this problem jet, pleas help!

/*
* JBoss, the OpenSource J2EE webOS
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package com.wingstech.webappointments.entity;

import com.wingstech.webappointments.interfaces.*;

import java.sql.Date;
//import java.rmi.RemoteException;
import java.util.Collection;
import java.util.Iterator;

import javax.ejb.CreateException;
import javax.ejb.EJBException;
import javax.ejb.EntityBean;
import javax.ejb.EntityContext;
import javax.ejb.FinderException;
import javax.ejb.RemoveException;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.rmi.PortableRemoteObject;
  /**
   * The Entity bean represents an CustomerBean
   *
   * @author Andrea Chiumenti
   * @version $Revision: 0.1 $
   * @ejb.bean
   *name="Customer"
   *display-name="Customer"
   *type="CMP"
   *cmp-version="2.x"
   *schema="WaCustomers"
   *jndi-name="ejb/webappointments/Customer"
   *view-type="local"
   * @ejb.env-entry
   *name="CustomerSequenceName"
   *value="customers_seq"
   * @ejb.ejb-ref
   *ejb-name="SequenceGenerator"
   * @ejb.transaction
   *type="Required"
   * @ejb.data-object
   *extends="com.wingstech.webappointments.interfaces.AbstractData"
   *setdata="false"
   * @ejb.security-role-ref
   *role-name="ApplicationAdmin"
   *role-link="Admin"
   * @ejb.permission
   *role-name="Admin"
   * @ejb.finder
   *signature="java.util.Collection findAll()"
   *query="SELECT OBJECT(Customer) FROM WaCustomers Customer"
   *result-type-mapping="Local"
   * @jboss.query
   *signature="java.util.Collection findAll()"
   *query="SELECT OBJECT(Customer) FROM WaCustomers Customer ORDER 
BY Customer.id"
   *result-type-mapping="Local"
   * @ejb.finder
   *signature="java.util.Collection findByName( java.lang.String 
pCustomerName )"
   *result-type-mapping="Local"
   *query="SELECT OBJECT(Customer) FROM WaCustomers Customer WHERE 
Customer.name1 = ?1"
   *result-type-mapping="Local"
   * @ejb.finder
   *
signature="com.wingstech.webappointments.interfaces.CustomerLocal 
findById( int pId )"
   *result-type-mapping="Local"
   *query="SELECT OBJECT(Customer) FROM WaCustomers Customer WHERE 
Customer.id = ?1"
   * @ejb.persistence
   *table-name="customer"
   * @jboss.persistence
   *create-table=""
   *remove-table=""
   */
public abstract class CustomerBean implements EntityBean {

/**




McAuley, Tim wrote:

I'm using xdocletgui (i a wrong way i suppose :-) )

What's now, what this message want from me??? :-(

why Relation "customer" does not exist ?? Is my deployment file, but 
what?


it means the actual table does not exist. Most likely it is because 
you left
out the schema name for the bean.

If you're using xdocletgui, I assume you're not modifying the deployment
file directly, so add the "schema" field to your ejb:bean tag in your 
bean
class; something like this:

* @ejb:bean
*type="CMP"
*cmp-version="2.x"
*name="BasicProfileMaster"
*jndi-name="ejb/BasicProfileMasterEJB"
*local-jndi-name="ejb/BasicProfileMasterLocalEJB"
*view-type="local"
*primkey-field="attributeId"
*schema="BasicProfileMasterEJB"
*
* @ejb:finder signature="BasicProfileMasterLocal
findByDescription(java.lang.String description)"
* unchecked="true"
* query="SELECT OBJECT(p) FROM BasicProfileMasterEJB p WHERE
p.description = ?1"

schema name has to match what you use in your ejb-ql.

Tim
.





---
This sf.net email is sponsored by: Influence the future of Java(TM) 
technology. Join the Java Community Process(SM) (JCP(SM)) program now. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
.





---
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] what's now ??

2002-10-25 Thread kiuma
Thank u 4 help, but this doesn't solve the problem.
The strange thing is that during the deployment I don't have any warning 
message.

Here it is the beginning of my file
I haven't solved this problem jet, pleas help!

/*
* JBoss, the OpenSource J2EE webOS
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package com.wingstech.webappointments.entity;

import com.wingstech.webappointments.interfaces.*;

import java.sql.Date;
//import java.rmi.RemoteException;
import java.util.Collection;
import java.util.Iterator;

import javax.ejb.CreateException;
import javax.ejb.EJBException;
import javax.ejb.EntityBean;
import javax.ejb.EntityContext;
import javax.ejb.FinderException;
import javax.ejb.RemoveException;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.rmi.PortableRemoteObject;
  
/**
   * The Entity bean represents an CustomerBean
   *
   * @author Andrea Chiumenti
   * @version $Revision: 0.1 $
   * @ejb.bean
   *name="Customer"
   *display-name="Customer"
   *type="CMP"
   *cmp-version="2.x"
   *schema="WaCustomers"
   *jndi-name="ejb/webappointments/Customer"
   *view-type="local"
   * @ejb.env-entry
   *name="CustomerSequenceName"
   *value="customers_seq"
   * @ejb.ejb-ref
   *ejb-name="SequenceGenerator"
   * @ejb.transaction
   *type="Required"
   * @ejb.data-object
   *extends="com.wingstech.webappointments.interfaces.AbstractData"
   *setdata="false"
   * @ejb.security-role-ref
   *role-name="ApplicationAdmin"
   *role-link="Admin"
   * @ejb.permission
   *role-name="Admin"
   * @ejb.finder
   *signature="java.util.Collection findAll()"
   *query="SELECT OBJECT(Customer) FROM WaCustomers Customer"
   *result-type-mapping="Local"
   * @jboss.query
   *signature="java.util.Collection findAll()"
   *query="SELECT OBJECT(Customer) FROM WaCustomers Customer ORDER 
BY Customer.id"
   *result-type-mapping="Local"
   * @ejb.finder
   *signature="java.util.Collection findByName( java.lang.String 
pCustomerName )"
   *result-type-mapping="Local"
   *query="SELECT OBJECT(Customer) FROM WaCustomers Customer WHERE 
Customer.name1 = ?1"
   *result-type-mapping="Local"
   * @ejb.finder
   *
signature="com.wingstech.webappointments.interfaces.CustomerLocal 
findById( int pId )"
   *result-type-mapping="Local"
   *query="SELECT OBJECT(Customer) FROM WaCustomers Customer WHERE 
Customer.id = ?1"
   * @ejb.persistence
   *table-name="customer"
   * @jboss.persistence
   *create-table=""
   *remove-table=""
   */
public abstract class CustomerBean implements EntityBean {

/**




McAuley, Tim wrote:

I'm using xdocletgui (i a wrong way i suppose :-) )

What's now, what this message want from me??? :-(

why Relation "customer" does not exist ?? Is my deployment 
file, but what?


it means the actual table does not exist. Most likely it is because you left
out the schema name for the bean.

If you're using xdocletgui, I assume you're not modifying the deployment
file directly, so add the "schema" field to your ejb:bean tag in your bean
class; something like this:

* @ejb:bean
*type="CMP"
*cmp-version="2.x"
*name="BasicProfileMaster"
*jndi-name="ejb/BasicProfileMasterEJB"
*local-jndi-name="ejb/BasicProfileMasterLocalEJB"
*view-type="local"
*primkey-field="attributeId"
*schema="BasicProfileMasterEJB"
*
* @ejb:finder signature="BasicProfileMasterLocal
findByDescription(java.lang.String description)"
* unchecked="true"
* query="SELECT OBJECT(p) FROM BasicProfileMasterEJB p WHERE
p.description = ?1"

schema name has to match what you use in your ejb-ql.

Tim
.






---
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] what's now ??

2002-10-25 Thread kiuma
I'm using xdocletgui (i a wrong way i suppose :-) )

What's now, what this message want from me??? :-(

why Relation "customer" does not exist ?? Is my deployment file, but what?


org.jboss.ejb.plugins.cmp.jdbc.JDBCJBossQLQuery.Customer.findByName] 
Executing SQL: SELECT t0_customer.id FROM customer t0_customer WHERE 
substring(lower(t0_customer.name1) FROM 1 FOR length(?)) = lower(?) 
ORDER BY t0_customer.name1 ASC
2002-10-25 15:37:51,706 DEBUG 
[org.jboss.ejb.plugins.cmp.jdbc.JDBCJBossQLQuery.Customer.findByName] 
Find failed
java.sql.SQLException: ERROR:  Relation "customer" does not exist

please help .. again sigh!



---
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Crazy jboss 3.2b

2002-10-25 Thread kiuma
Hello,
do you remember last post about

* @ejb.finder
*  signature="java.util.Collection findInPeriod( java.util.Date 
pInDate)"
*  result-type-mapping="Local"
*  query="SELECT OBJECT(cal) FROM WaCalendar cal WHERE 
(cal.validityStart < ?1) AND (cal.validityEnd > ?1)"
* @jboss.query
*  signature="java.util.Collection findInPeriod( java.util.Date 
pInDate)"
*  result-type-mapping="Local"
*  query="SELECT OBJECT(cal) FROM WaCalendar cal WHERE 
(cal.validityStart < ?1) AND (cal.validityEnd > ?1) ORDER BY 
cal.validityEnd"
*

It's all right.

Jboss reported an error on my finder method, but the (UNREPORTED) error 
was on a wrong table mapping!!

Is this a bug on logs ?



---
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: AW: Re[2]: [JBoss-user] jboss-ql error

2002-10-24 Thread kiuma
Then, if comparisons are expressed in millis i could do and i can't use 
>=, <=

(cal.validityEnd > (?1 - 1))  ???



Dannemann, Björn wrote:

Hi,
see JBoss QuickStart.pdf


= <= are not allowed with dates in EJBQL, user < and > instead



Bjoern



-Ursprüngliche Nachricht-
Von: Alex Loubyansky [mailto:loubyansky@;ua.fm]
Gesendet: Donnerstag, 24. Oktober 2002 15:21
An: kiuma
Betreff: Re[2]: [JBoss-user] jboss-ql error


Hello kiuma,

validityStart and validityEnd are of type Date?
if so, then pass in Date type parameter.

alex

Thursday, October 24, 2002, 4:09:16 PM, you wrote:

k> Signature function is

k>  signature="java.util.Collection findInPeriod( long pInDate)

k> where pInDate is date in millis.


Hi all,
I'm haveing the following error on th

is query (jboss v3.2b)

SELECT OBJECT(cal) FROM WaCalendar cal WHERE 

(cal.validityStart <= ?1) 

AND (cal.validityEnd >= ?1) ORDER BY cal.validityEnd


cal.validityStart <= ?1 at line 1 column 51

expecting one of
ABS
LENGTH
LOCATE
..

What's wrong?

Thx in advance,
kiuma



--
Best regards,
Alex Loubyansky




---
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun

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


---
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
.





---
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] jboss-ql again

2002-10-24 Thread kiuma
Sorry guys, but I can't get out .

* @ejb.finder
*  signature="java.util.Collection findInPeriod( java.util.Date 
pInDate)"
*  result-type-mapping="Local"
*  query="SELECT OBJECT(cal) FROM WaCalendar cal WHERE 
(cal.validityStart < ?1) AND (cal.validityEnd > ?1)"
* @jboss.query
*  signature="java.util.Collection findInPeriod( java.util.Date 
pInDate)"
*  result-type-mapping="Local"
*  query="SELECT OBJECT(cal) FROM WaCalendar cal WHERE 
(cal.validityStart < ?1) AND (cal.validityEnd > ?1) ORDER BY 
cal.validityEnd"
*

19:32:37,596 INFO  [EntityContainer] Starting
19:32:37,770 ERROR [EntityContainer] Starting failed
org.jboss.deployment.DeploymentException: Query method not found: 
findInPeriod
   at 
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCQueryMetaDataFactory.getQueryMethods(JDBCQueryMetaDataFactory.java:207)
   at 
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCQueryMetaDataFactory.getQueryMethods(JDBCQueryMetaDataFactory.java:163)
..
..

Why ??
Please help!



---
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0003en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] jboss-ql error

2002-10-24 Thread kiuma
Thank you alex but now I'm a bit confused:
accordin to ejb specs v2
11.2.11 Restrinctions
Date and time values should use the standard java long ,illisecond 
value. .


What does it mean?

Do I have to use java.sql.Time in time values finder params ?



Alex Loubyansky wrote:

Hello kiuma,

validityStart and validityEnd are of type Date?
if so, then pass in Date type parameter.

alex

Thursday, October 24, 2002, 4:09:16 PM, you wrote:

k> Signature function is

k>  signature="java.util.Collection findInPeriod( long pInDate)

k> where pInDate is date in millis.


Hi all,
I'm haveing the following error on th




is query (jboss v3.2b)

SELECT OBJECT(cal) FROM WaCalendar cal WHERE (cal.validityStart <= ?1) 
AND (cal.validityEnd >= ?1) ORDER BY cal.validityEnd


cal.validityStart <= ?1 at line 1 column 51

expecting one of
ABS
LENGTH
LOCATE
..

What's wrong?

Thx in advance,
kiuma








---
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] jboss-ql error

2002-10-24 Thread kiuma
Signature function is

signature="java.util.Collection findInPeriod( long pInDate)

where pInDate is date in millis.


Hi all,
I'm haveing the following error on th



is query (jboss v3.2b)

SELECT OBJECT(cal) FROM WaCalendar cal WHERE (cal.validityStart <= ?1) 
AND (cal.validityEnd >= ?1) ORDER BY cal.validityEnd


cal.validityStart <= ?1 at line 1 column 51

expecting one of
ABS
LENGTH
LOCATE
..

What's wrong?

Thx in advance,
kiuma



---
This sf.net email is sponsored by: Influence the future of Java(TM) 
technology. Join the Java Community Process(SM) (JCP(SM)) program now. 
http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote 

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





---
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] jboss-ql error

2002-10-24 Thread kiuma
Hi all,
I'm haveing the following error on this query (jboss v3.2b)

SELECT OBJECT(cal) FROM WaCalendar cal WHERE (cal.validityStart <= ?1) 
AND (cal.validityEnd >= ?1) ORDER BY cal.validityEnd


cal.validityStart <= ?1 at line 1 column 51

expecting one of
ABS
LENGTH
LOCATE
..

What's wrong?

Thx in advance,
kiuma



---
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Help with cmr relationship please

2002-10-17 Thread kiuma
Sorry, but I can't figure out how to do:

my RoleBean.java is

  // 
-
  // Relations
  // 
- 
  /**
   * Returns a local User
   * @return a local User
   *
   * @ejb.relation
   *   name="user-roles"
   *   role-name="role-has-user"
   *   multiple="no"
   *   cascade-delete="yes"
   * 
   *  
   * @ejb.interface-method
   *   view-type="local"
   *  
   *
   * @jboss.relation
   *   fk-constraint="true"
   *   related-pk-field="principalId"
   *   fk-column="principalid"
   */
 
  public abstract UserLocal getUser();
 
  /**
   * Sets a collection of roles
   * @param pRoles a collection of local Roles
   *
   * @ejb.interface-method
   *   view-type="local"
   */
  public abstract void setUser( UserLocal pUser );



  with
 
  /**
  * Retrieve the Role's principal's id.
  *
  * @return Returns name of this role's principal.
  *
  * @ejb.persistent-field
  * @ejb.pk-field
  *
  * @jboss.column-name name="principalid"
  **/
  public abstract String getPrincipalId(); 
 
  /**
  * Sets the Role's principal's name.
  *
  * @param pPrincipalId The name of this User.
  *
  **/
  public abstract void setPrincipalId(String pPrincipalId); 



my Userbean.java  is

/**
   * Returns a Collection of local Roles
   * @return a Collection of local Roles
   *
   *  
   * @ejb.relation
   *   name="user-roles"
   *   role-name="user-has-role"
   * 
   *  
   * @ejb.interface-method
   *   view-type="local"
   *  
   * @jboss.relation-mapping
   *   style="foreign-key"
   *   
   */
  public abstract java.util.Collection getRoles();
 
  /**
   * Sets a collection of roles
   * @param pRoles a collection of local Roles
   *
   * @ejb.interface-method
   *   view-type="local"
   */
  public abstract void setRoles( java.util.Collection pRoles );


The same for principalId

I can getRoles, but I really don't know how to create a new one.

I've searched in manuals and internet but I didn't found a reply.
Please help me Alex.



Alex Loubyansky wrote:

It must be either cmp or cmr but not both at the same time.

alex

k> Yes

k> Alex Loubyansky wrote:








---
This sf.net email is sponsored by: viaVerio will pay you up to
$1,000 for every account that you consolidate with us.
http://ad.doubleclick.net/clk;4749864;7604308;v?
http://www.viaverio.com/consolidator/osdn.cfm
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Help with cmr relationship please

2002-10-17 Thread kiuma
Yes

Alex Loubyansky wrote:


do you have a principalId as cmp and cmr at the same time?

alex

Thursday, October 17, 2002, 12:48:16 PM, you wrote:

k> Hi all,

k> I've the following problem:

k> I've mapped principals and roles in a 1..n relationship

k> When I try to add a role using:
k> roleHome.create( new RoleData(pPrincipalId, "caller_principal", 
k> "CallerPrincipal") );

k> I've the following error back

k> 08:53:40,972 ERROR [LogInterceptor] EJBException:
k> javax.ejb.EJBException: Creation Role failure: Could not create 
k> entity:java.sql.SQLException: ERROR:  Attribute 'principalid' specified 
k> more than once

k> Since I'm already a newbie I can't figure out what this message means.

k> My cmr generated by xdoclet is:
k> for jboss:

k> 
k>
k>  user-roles
k>  

k>  

k> role-has-user
k>  
k>  
k>  

k> user-has-role
k>  
k> 
k>   principalId
k>   principalid
k> 
k>  
k>  
k>
k>  


k> Obviously if I don't use the relationship in my code I can add that role.





---
This sf.net email is sponsored by: viaVerio will pay you up to
$1,000 for every account that you consolidate with us.
http://ad.doubleclick.net/clk;4749864;7604308;v?
http://www.viaverio.com/consolidator/osdn.cfm
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Help with cmr relationship please

2002-10-17 Thread kiuma

Hi all,

I've the following problem:

I've mapped principals and roles in a 1..n relationship

When I try to add a role using:
roleHome.create( new RoleData(pPrincipalId, "caller_principal", 
"CallerPrincipal") );

I've the following error back

08:53:40,972 ERROR [LogInterceptor] EJBException:
javax.ejb.EJBException: Creation Role failure: Could not create 
entity:java.sql.SQLException: ERROR:  Attribute 'principalid' specified 
more than once

Since I'm already a newbie I can't figure out what this message means.

My cmr generated by xdoclet is:
for jboss:


   
 user-roles
 

 
 
role-has-user
 
 
 
 
user-has-role
 

  principalId
  principalid

 
 
   
 


Obviously if I don't use the relationship in my code I can add that role.



---
This sf.net email is sponsored by: viaVerio will pay you up to
$1,000 for every account that you consolidate with us.
http://ad.doubleclick.net/clk;4749864;7604308;v?
http://www.viaverio.com/consolidator/osdn.cfm
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Desperation

2002-10-10 Thread kiuma

Not complete but I isolated the bug , but I can't c the mistake!
It's on  tag

and my script only contains:

function selectAllChk( fromName, chkBoxName )
{
   var chkboxes = document.getElementsByTagName( 'input' );
   for (i=0; i < chkboxes.length; i++) {
   if (( chkboxes.item(i).getAttribute('type') == 'checkbox' ) &
   ( chkboxes.item(i).getAttribute('name') == chkBoxName ) )
   {
   chkboxes.item(i).checked =! 
chkboxes.item(i).checked;  }
   }
}

but it works only under Mozilla!

[EMAIL PROTECTED] wrote:

>Kiuma,
>Is this the complete output?
>First, you have two /head tags...
>Also, you need to close your tbody, table, form, body, and html
>elements before the browser can render.
>
>Hope this helps...
>
>- Mike H. 
>
>-Original Message-
>From: kiuma
>To: [EMAIL PROTECTED]
>Sent: 10/10/02 9:41 AM
>Subject: [JBoss-user] Desperation
>
><A  HREF="http://192.168.100.3:8080/webappointments/main.do">http://192.168.100.3:8080/webappointments/main.do</A>
>
>generates:
>
>
>
><html>
><head>
><base
>href="<A  HREF="http://192.168.100.3:8080/webappointments/secure/userlist.jsp"">http://192.168.100.3:8080/webappointments/secure/userlist.jsp"</A>;>
>
><title>Lista utenti</title></head> 
><link rel="stylesheet"  href="../css/common.css" TYPE="text/css"/>
><link rel="stylesheet"  href="../css/anagr.css" TYPE="text/css"/>
><script language='JavaScript'
>src='../scripts/formscripts.txt'>
>
>
>
>
>action="/webappointments/listedUser.do">
>
>
>
>
>
>
>   
>Cerca per cognome: 
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>The problem is that I'm not able to view it with ather browsers than 
>Mozilla 1.0
>
>plz help 
>
>
>
>
>---
>This sf.net email is sponsored by:ThinkGeek
>Welcome to geek heaven.
>http://thinkgeek.com/sf
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jboss-user
>.
>




---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Desperation

2002-10-10 Thread kiuma

http://192.168.100.3:8080/webappointments/main.do

generates:





http://192.168.100.3:8080/webappointments/secure/userlist.jsp";>
Lista utenti 














   
Cerca per cognome: 














The problem is that I'm not able to view it with ather browsers than 
Mozilla 1.0

plz help 




---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] How do i put a class in cron job

2002-10-09 Thread kiuma

You can create an mbean

Gangadhar wrote:

> Hi All,
>
> Can anybody tell me, how do i put a class file in the cron job of JBOSS
>
>  
>
> Thanks in Advance
>
> Gangadhar
>
>DISCLAIMER
> ---
> This email message and any attachments is confidential and intended only for
> the use of an individual or entity named above and may contain information
> that is privileged, confidential or exempt from disclosure under applicable
> law.  If you are not the intended recipient, you are notified that any
> dissemination, distribution or copying of this email is strictly prohibited.
> If you have received this email in error, please notify us immediately by
> return email or [EMAIL PROTECTED] and destroy the original message.
> Opinions, conclusions, and other information in this message that do not
> relate to the official business of SPAN, shall be understood to be neither
> given nor endorsed by SPAN
>
>Mails are Scanned and Filtered for Virus
>[EMAIL PROTECTED]
>




---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] [OT] can't run xdoclet ;(

2002-10-08 Thread kiuma

xdoclet from cvs
and last stable ant version

Markus Garscha wrote:

>No success
>
>i generated my own .ant.properties in the project directory with
>jboss.home, xdoclet.home, struts.home - but the same output. ant
>can't define the xdoclet task... perhaps i use wrong versions of
>ant, xdoclet, etc?
>which versions do you use?
>
>here my output of the build process:
>
>gama@ws:~/prog/java/test$ ant
>Buildfile: build.xml
>
>check-environment:
>
>check-jboss:
>
>wrong-jboss:
>
>check-xdoclet:
>
>wrong-xdoclet:
>
>init:
> [echo] build.compiler = ${build.compiler}
> [echo] user.home = /home/gama
> [echo] java.home = /usr/lib/j2re1.3
> [echo] ant.home = /usr/share/ant
> [echo] jboss.home = /usr/src/jboss-all/build/output/jboss-3.0.0/
> [echo] xdoclet.home = /usr/src/jboss-all/tools/
> [echo] java.class.path =
>/usr/share/java/repository:.:/usr/share/java/activation.jar:/usr/share/java/ant-1.4.1-optional.jar:/usr/share/java/ant-1.4.1.jar:/usr/share/java/ant-optional.jar:/usr/share/java/ant.jar:/usr/share/java/bsf.jar:/usr/share/java/hsql.jar:/usr/share/java/hsqldb.jar:/usr/share/java/mail.jar:/usr/share/java/oro-2.0.5.jar:/usr/share/java/oro.jar:/usr/share/java/postgresql-7.2.jar:/usr/share/java/postgresql.jar:/usr/share/java/regexp-1.2.jar:/usr/share/java/regexp.jar:/usr/share/java/servlet-2.2.jar:/usr/share/java/servlet-2.3.jar:/usr/share/java/xalan-2.0.1.jar:/usr/share/java/xalan.jar:/usr/share/java/xalan2.jar:/usr/share/java/xalanj1compat-2.0.1.jar:/usr/share/java/xalanj1compat.jar:/usr/share/java/xalansamples-2.0.1.jar:/usr/share/java/xalansamples.jar:/usr/share/java/xalanservlet-2.0.1.jar:/usr/share/java/xalanservlet.jar:/usr/share/java/xerces.jar:/usr/share/java/xercesImpl-2.0.1.jar:/usr/share/java/xercesImpl.jar:/usr/share/java/xmlParserAPIs-2.0.1.jar:/usr/share/java/xmlParserAPIs.jar:/usr/share/java/castor/castor-0.9.3.9+-xml.jar:/usr/share/java/castor/castor-0.9.3.9+.jar:/usr/share/java/castor/jdbc-se2.0.jar:/usr/share/java/castor/jta1.0.1.jar:/usr/share/ant/lib/ant-optional.jar:/usr/share/ant/lib/ant.jar:/usr/share/ant/lib/bsf.jar:/usr/share/ant/lib/oro.jar:/usr/share/ant/lib/regexp.jar:/usr/share/ant/lib/xalan2.jar:/usr/share/ant/lib/xalanj1compat.jar:/usr/share/ant/lib/xdoclet.jar:/usr/share/ant/lib/xerces.jar:/usr/lib/j2sdk1.3//lib/tools.jar
> [echo] 
>
>xdoclet-generate:
>
>BUILD FAILED
>
>/home/gama/prog/java/test/build.xml:146: taskdef class
>xdoclet.modules.ejb.EjbDocletTask cannot be found
>
>Total time: 2 seconds
>
>
>




---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Help with relationship!!

2002-10-08 Thread kiuma

Hi all,
can you please tell me what's wrong with this code?

/**
* Returns a Collection of local Roles
* @return a Collection of local Roles
*
* @ejb.relation
*   name="user-roles"
*   role-name="user-has-role"  
*   target-ejb="webappointments/RoleBean"
*   target-role-name="role-has-user"
*   target-multiple="no"
*   target-cascade-delete="yes"
* 
*  
* @ejb.interface-method
*   view-type="local"
*  
* @jboss.relation-mapping
*   style="foreign-key"
*
* @-jboss.target-relation
*   related-pk-field="principalId"
*   fk-column="principalid"
*
* @jboss.relation
*   related-pk-field="principalId"
*   fk-column="principalid"
*/
   public abstract java.util.Collection getRoles();
  
   /**
* Sets a collection of roles
* @param pRoles a collection of local Roles
*
* @ejb.interface-method
*   view-type="local"
*/
   public abstract void setRoles( java.util.Collection pRoles );



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] [OT] can't run xdoclet ;(

2002-10-08 Thread kiuma

I hope this can help


Markus Garscha wrote:

>hi,
>
>the same problem:
>
>/home/gama/prog/java/jboss/build.xml:56: taskdef class
>xdoclet.ejb.EjbDocletTask cannot be found
>
>something does goes wrong with ant. ant can't find the class, but the
>file xdoclet.jar exists and it is the correct classpath... ;(
>
>markus
>
>* kiuma <[EMAIL PROTECTED]> [2002-10-08 15:37]:
>
>>in build.xml
>>
>>
>>
>> >name="ejbdoclet">
>>
>> 
>>
>> >name="webdoclet">
>>
>> 
>>
>> >ejbspec="${ejb.version}" excludedtags="@version,@author" 
>>force="${xdoclet.force}"
>>   mergedir="${src.resources.dir}/xdoclet">
>>
>>   
>>
>>   
>>>substituteWith="interfaces"/>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>>destdir="${build.dir}/META-INF" typemapping="${type.mapping}" 
>>unauthenticatedPrincipal="${jboss.guest}" validateXml="false" 
>>version="${jboss.version}" xmlencoding="UTF-8"/>
>> 
>>
>>
>>Markus Garscha wrote:
>>
>>>Hi!
>>>
>>>ok, i included an echo tag. i got the following output:
>>>
>>>Buildfile: build.xml
>>>
>>>init:
>>>   [echo]
>>>classpath=/usr/share/ant/lib/ant.jar:/home/gama/prog/java/jboss/lib/xdoclet.jar:/home/gama/prog/java/jboss/lib/log4j.jar
>>>
>>>xdoclet:
>>>
>>>BUILD FAILED
>>>
>>>/home/gama/prog/java/jboss/build.xml:56: taskdef class
>>>xdoclet.ejb.EjbDocletTask cannot be found
>>>
>>>Total time: 2 seconds
>>>
>>>thanx
>>>markus
>>>
>>>
>>>* Jon Haugsand <[EMAIL PROTECTED]> [2002-10-08 12:39]:
>>>
>>>>* Markus Garscha
>>>>
>>>>>Hi!
>>>>>
>>>>>what's wrong? 
>>>>>---8<--
>>>>>gama@ws:~/prog/java/jboss$ ant xdoclet
>>>>>Buildfile: build.xml
>>>>>
>>>>>init:
>>>>>
>>>>>xdoclet:
>>>>>
>>>>>BUILD FAILED
>>>>>
>>>>>/home/gama/prog/java/jboss/build.xml:54: taskdef class
>>>>>xdoclet.ejb.EjbDocletTask cannot be found
>>>>> 
>>>>> 
>>>>>   >>>>   classpath="${xdoclet.classpath}"/>
>>>>>
>
>
>---
>This sf.net email is sponsored by:ThinkGeek
>Welcome to geek heaven.
>http://thinkgeek.com/sf
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jboss-user
>.
>





   
   
   
   
   
   
   
   
   
  
 Property "jboss.home" is not set. Please use the file
 ".ant.properties" in this directory ${basedir} to
 set this property. It must point to the directory which
 contains the following directory: "deploy", "conf", "tmp"
 etc.
  
   
   
   
  
 Property "jboss.home" is set but it does not seem
 to point to the right directory. The file "run.jar"
 must be available at ${jboss.home}/bin.
  
   
   
   
  
 Property "xdoclet.home" is not set. Please use the file
 ".ant.properties" in this directory ${basedir} to
 set this property. It must point to the root directory of
 XDoclet distribution.
  
   
   
   
  
 Property "xdoclet.home" is set but it does not seem
 to point to the right directory. The file "xdoclet.jar"
 must be available at ${xdoclet.home}/lib.
  
   
   
   
  
  
  
  
  
  
   
   
   
  
  
  
  
  
  
  
  
  
  
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
  
	 
  
   
   
   
  
	 
  
   
   
   
  
  
  
  
	 
 
   
   
   
   
   
  
  
  
  
  
  
  
  
  
  
  
   
   
   
   
   
   
   
  
 
  
  
  
 
  
  
  
 

 
 
 
 
 
 
	 
 
 
 
 
 
 
 
  

  
   
   
   
   
   
   
   
   

  
 
 	
  
   
   
   
   
   
   
   
  
  
  
  
  
 	 
 
 
	 
	 
 
  
  
 
 
  
   
   
   
   
   
   
 
  
  
  
 
  
  
  
 
 
  
  
 

  
 
  
  
 
  
   
   
   
   
   

   
  
  
   
 
  
   
   
 
  

   
	   
  
		 
  
  
 
 
 
 	
   
   
   
   
   
   
   
  
 
 
  
  
  
 
 
   
   
   
   
   
   
   
   
   
   
   
   
   
   

   
   
   
   
   
  
   





Re: [JBoss-user] Info about a strange behaviour

2002-10-08 Thread kiuma

The second works.

Alex Loubyansky wrote:

>Hello kiuma,
>
>could you, please, provide more info on what works and what doesn't?
>
>Thank you.
>
>alex
>
>Tuesday, October 08, 2002, 1:31:07 PM, you wrote:
>
>k> Hi all!
>k> I finally solved my previos problem it was that I wrote:
>
>k>  * @ejb.finder signature="java.util.Collection findAll()"
>k>  * @jboss.query
>k>  *  signature="java.util.Collection findAll()"
>k>  *  query="SELECT OBJECT(Agenda) FROM WaAgenda agenda ORDER BY 
>k> Agenda.serviceId, Agenda.agendaDay"
>k>  *  result-type-mapping="Local"
>
>k> instead of
>
>k>  * @ejb.finder signature="java.util.Collection findAll()"
>k>  *  query="SELECT OBJECT(Agenda) FROM WaAgenda agenda"
>k>  *  result-type-mapping="Local"
>k>  * @jboss.query
>k>  *  signature="java.util.Collection findAll()"
>k>  *  query="SELECT OBJECT(Agenda) FROM WaAgenda agenda ORDER BY 
>k> Agenda.serviceId, Agenda.agendaDay"
>k>  *  result-type-mapping="Local"
>
>
>k> The strange thing is that if only with 1 entity bean it works (in the 
>k> first form), but it stops working with more then 1 entity.
>k> This is common to both 3.0.1 and 3.2.0beta
>
>k> Bye,
>k> kiuma
>
>
>
>
>---
>This sf.net email is sponsored by:ThinkGeek
>Welcome to geek heaven.
>http://thinkgeek.com/sf
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jboss-user
>.
>




---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] [OT] can't run xdoclet ;(

2002-10-08 Thread kiuma

in build.xml



  
 
  
 
  
 
  
 
  
 

 

 
 
 
 
 
 
 
 
 
 
 
 
  


Markus Garscha wrote:

>Hi!
>
>ok, i included an echo tag. i got the following output:
>
>Buildfile: build.xml
>
>init:
> [echo]
>classpath=/usr/share/ant/lib/ant.jar:/home/gama/prog/java/jboss/lib/xdoclet.jar:/home/gama/prog/java/jboss/lib/log4j.jar
>
>xdoclet:
>
>BUILD FAILED
>
>/home/gama/prog/java/jboss/build.xml:56: taskdef class
>xdoclet.ejb.EjbDocletTask cannot be found
>
>Total time: 2 seconds
>
>thanx
>markus
>
>
>* Jon Haugsand <[EMAIL PROTECTED]> [2002-10-08 12:39]:
>
>>* Markus Garscha
>>
>>>Hi!
>>>
>>>what's wrong? 
>>>---8<--
>>>gama@ws:~/prog/java/jboss$ ant xdoclet
>>>Buildfile: build.xml
>>>
>>>init:
>>>
>>>xdoclet:
>>>
>>>BUILD FAILED
>>>
>>>/home/gama/prog/java/jboss/build.xml:54: taskdef class
>>>xdoclet.ejb.EjbDocletTask cannot be found
>>>   
>>>   
>>> classpath="${xdoclet.classpath}"/>
>>>
>>To be sure that xdoclet _really_ is in your classpath you may try the
>>following in front of :
>>
>>  
>>
>>-- 
>>  Jon Haugsand, <[EMAIL PROTECTED]>
>>  Norges Bank, 
>>
>>
>>
>>---
>>This sf.net email is sponsored by:ThinkGeek
>>Welcome to geek heaven.
>>http://thinkgeek.com/sf
>>___
>>JBoss-user mailing list
>>[EMAIL PROTECTED]
>>https://lists.sourceforge.net/lists/listinfo/jboss-use
>>
>r
>




---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Info about a strange behaviour

2002-10-08 Thread kiuma

Hi all!
I finally solved my previos problem it was that I wrote:

 * @ejb.finder signature="java.util.Collection findAll()"
 * @jboss.query
 *  signature="java.util.Collection findAll()"
 *  query="SELECT OBJECT(Agenda) FROM WaAgenda agenda ORDER BY 
Agenda.serviceId, Agenda.agendaDay"
 *  result-type-mapping="Local"

instead of

 * @ejb.finder signature="java.util.Collection findAll()"
 *  query="SELECT OBJECT(Agenda) FROM WaAgenda agenda"
 *  result-type-mapping="Local"
 * @jboss.query
 *  signature="java.util.Collection findAll()"
 *  query="SELECT OBJECT(Agenda) FROM WaAgenda agenda ORDER BY 
Agenda.serviceId, Agenda.agendaDay"
 *  result-type-mapping="Local"


The strange thing is that if only with 1 entity bean it works (in the 
first form), but it stops working with more then 1 entity.
This is common to both 3.0.1 and 3.2.0beta

Bye,
kiuma



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Please help with this error!

2002-10-08 Thread kiuma

Hello I'm using jb 3.2b and I'm having the following error.
Please could you tell me where I'm wrong ?

2002-10-08 09:23:12,944 DEBUG 
[org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.webappointments/Absence] 
Initializing CMP plugin for webappointments/Absence
2002-10-08 09:23:12,991 DEBUG [org.jboss.util.NestedThrowable] 
org.jboss.util.NestedThrowable.parentTraceEnabled=true
2002-10-08 09:23:12,994 DEBUG [org.jboss.util.NestedThrowable] 
org.jboss.util.NestedThrowable.nestedTraceEnabled=false
2002-10-08 09:23:12,995 DEBUG [org.jboss.util.NestedThrowable] 
org.jboss.util.NestedThrowable.detectDuplicateNesting=true
2002-10-08 09:23:12,983 ERROR [org.jboss.ejb.EntityContainer] Starting 
failed
org.jboss.deployment.DeploymentException: Parameter class not found: String
at 
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCQueryMetaDataFactory.convertToJavaClass(JDBCQueryMetaDataFactory.java:271)
at 
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCQueryMetaDataFactory.convertToJavaClasses(JDBCQueryMetaDataFactory.java:236)
at 
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCQueryMetaDataFactory.getQueryMethods(JDBCQueryMetaDataFactory.java:169)
at 
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCQueryMetaDataFactory.createJDBCQueryMetaData(JDBCQueryMetaDataFactory.java:41)
at 
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCEntityMetaData.(JDBCEntityMetaData.java:298)
at 
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCApplicationMetaData.(JDBCApplicationMetaData.java:117)
at 
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCXmlFileLoader.load(JDBCXmlFileLoader.java:52)
at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadJDBCEntityMetaData(JDBCStoreManager.java:677)
at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBCStoreManager.java:389)
at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:339)
at 
org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:198)
at org.jboss.ejb.EntityContainer.startService(EntityContainer.java:359)
at 
org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:196)


and my bean is:

 * @ejb.bean name="webappointments/Absence"
 *   display-name="AbsenceBean working on projects to support 
application Absence"
 *   type="CMP"
 *   cmp-version="2.x"
 * schema="WaAbsence"
 *   jndi-name="ejb/webappointments/Absence"
 *   view-type="local"
 *
 * @ejb.transaction type="Required"
 *
 * @ejb:env-entry name="AbsenceSequenceName"
 *value="absence_seq"
 *
 * @ejb.data-object 
extends="com.wingstech.webappointments.interfaces.AbstractData"
 *  setdata="false"
 *
 * @ejb.security-role-ref role-name="ApplicationAdmin"
 *role-link="Admin"
 * @ejb.permission role-name="Admin"
 *
 * @ejb.finder signature="java.util.Collection findAll()"
 * @jboss.query
 *  signature="java.util.Collection findAll()"
 *  query="SELECT OBJECT(Absence) FROM WaAbsence Absence ORDER BY 
Absence.serviceId, Absence.absence_day"
 *  result-type-mapping="Local"
 *
 * @ejb.finder
 *  signature="java.util.Collection findInPeriod( int pServiceId, 
java.util.Date pFromDate, java.util.Date pToDate )"
 *  result-type-mapping="Local"
 *  query="SELECT OBJECT(Absence) FROM WaAbsence Absence WHERE 
Absence.serviceId = ?1 AND Absence.absenceDay BETWEEN ?2 AND ?3"
 * @jboss.query
 *  signature="java.util.Collection findInPeriod( int pServiceId, 
java.util.Date pFromDate, java.util.Date pToDate )"
 *  result-type-mapping="Local"
 *  query="SELECT OBJECT(Absence) FROM WaAbsence Absence WHERE 
Absence.serviceId = ?1 AND Absence.absenceDay BETWEEN ?2 AND ?3 ORDER BY 
Absence.absenceDay"
 *
* @ejb.finder
 *  signature="java.util.Collection findAllInPeriod( java.util.Date 
pFromDate, java.util.Date pToDate )"
 *  result-type-mapping="Local"
 *  query="SELECT OBJECT(Absence) FROM WaAbsence Absence WHERE 
Absence.absenceDay BETWEEN ?1 AND ?2"
 * @jboss.query
 *  signature="java.util.Collection findAllInPeriod( java.util.Date 
pFromDate, java.util.Date pToDate )"
 *  result-type-mapping="Local"
 *  query="SELECT OBJECT(Absence) FROM WaAbsence Absence WHERE 
Absence.absenceDay BETWEEN ?1 AND ?2 ORDER BY Absence.absenceDay"
 *
 *
 *
 * @jboss.table-name table-name="absence"
 *
 * @jboss.create-table create="false"
 *
 * @jboss.remove-table remove="false"



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] principalRoles=null

2002-09-24 Thread kiuma

Hi Bruno,
at first eye:

mysql> select * from user_roles;
+--+-++
| user | role | role_group |
+--+-++
| user_admin | admin | Roles |
| user_admin | admin | CallerPrincipal |
| user_statementholder | statementholder | Roles |
| user_statementholder | statementholder | CallerPrincipal |
+--+-++

Bruno wrote:

>Has anyone found the answer to the final question in this forum thread?
>http://www.jboss.org/forums/thread.jsp?forum=49&thread=12359
>
>
>---
>This sf.net email is sponsored by:ThinkGeek
>Welcome to geek heaven.
>http://thinkgeek.com/sf
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jboss-user
>.
>




---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Bug 3.2.0b

2002-09-22 Thread kiuma

Hi,
I was playing with a simple servlet + xdoclet.
At first Iused a wrong web.xml with a wrong tag servlet-mapping (i.e. I 
mispelled xdoclet servlet-mapping directive).

Obviously my servlet didn't work.
Then I corrected the bug and tryed again but it didn't work. At first 
server replied that servlet was not initialised, after some retryes that 
service was not available.

So, since I'm relatively new to j2ee, I searched around and manuals the 
for a possible mistake without success.
I then decided to stop jboss.
Axis was died!

After a restart my servlet was working well.

Do you want my log ?



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Postgresql-ds.xml

2002-09-20 Thread kiuma

Thank u very much, now postgres is up and sunning with jboss.
Very cool xml indeed!


David Jencks wrote:

>There should be a postgres-ds.xml example in docs/examples/jca.  The files
>are now simple enough that modifying one to another should be pretty easy:
>however I recommend starting with the postgres one since the hsqldb one has
>extra stuff in it to start the hsqldb database embedded.
>
>david jencks
>
>On 2002.09.20 03:43:47 -0400 kiuma wrote:
>
>>Hello I'm trying to use jboss 3.2.0b with postgresql.
>>My postgresql.xml file worked with jb-3.0.1, Now thigs seem to be 
>>changed in simplicity, looking at hsqldb-ds.xml
>>
>>Does anyone have some hints to configure postgres. Is it only necessary 
>>to apply changes to a sole renamed hsqldb-ds.xml file with the 
>>appropriate object and DS.
>>
>>Ps. looking at xml conf files v3.2.0 seems to be a really good work 
>>towards configuration simplicity :-), that makes me very happy!
>>
>>
>>
>>---
>>This sf.net email is sponsored by:ThinkGeek
>>Welcome to geek heaven.
>>http://thinkgeek.com/sf
>>___
>>JBoss-user mailing list
>>[EMAIL PROTECTED]
>>https://lists.sourceforge.net/lists/listinfo/jboss-user
>>
>>
>
>
>---
>This sf.net email is sponsored by:ThinkGeek
>Welcome to geek heaven.
>http://thinkgeek.com/sf
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jboss-user
>.
>




---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] LIKE sql (SOLUTION FOUND!!!!)

2002-09-20 Thread kiuma

This works for shure!

WHERE SUBSTRING(LCASE(Customer.name1), 1, LENGTH(?1)) = LCASE(?1)

I hope this can be helpfull to someone.
cya,
kiuma



Marius Kotsbak wrote:

> I have done something like that in 3.0.2 as well, and it seems to work!
>
> Dain Sundstrom wrote:
>
>> If you run Branch_3_0 (no binary release yet), you can use this syntax:
>>
>> LCASE(Customer.name1) LIKE LCASE(?1)
>>
>> -dain
>>
>> kiuma wrote:
>>
>>> How can I render a case insensitive searc ?
>>>
>>> Customer.name1 LIKE ?1  is case sensitive
>>>
>>> LCASE(Customer.name1) = LCASE(?1) doesn't match partial pattern 
>>> matching
>>>
>>> Thanks,
>>> kiuma
>>
>>
>>
>>
>>
>> ---
>> This sf.net email is sponsored by:ThinkGeek
>> Welcome to geek heaven.
>> http://thinkgeek.com/sf
>> ___
>> JBoss-user mailing list
>> [EMAIL PROTECTED]
>> https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
>
>
>
>
>
> ---
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> .
>




---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Postgresql-ds.xml

2002-09-20 Thread kiuma

Hello I'm trying to use jboss 3.2.0b with postgresql.
My postgresql.xml file worked with jb-3.0.1, Now thigs seem to be 
changed in simplicity, looking at hsqldb-ds.xml

Does anyone have some hints to configure postgres. Is it only necessary 
to apply changes to a sole renamed hsqldb-ds.xml file with the 
appropriate object and DS.

Ps. looking at xml conf files v3.2.0 seems to be a really good work 
towards configuration simplicity :-), that makes me very happy!



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] LIKE sql

2002-09-19 Thread kiuma

How can I render a case insensitive searc ?

Customer.name1 LIKE ?1  is case sensitive

LCASE(Customer.name1) = LCASE(?1) doesn't match partial pattern matching

Thanks,
kiuma



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] bug in JB-3.0.1-catalina

2002-09-18 Thread kiuma

Hi I'm working with a web app (buggy) and struts 1.2b . Linux and jdk-1.4.0
While deploying and requesting page at the same time jboss sometime 
report this exception:

10:11:08,736 ERROR [STDERR] java.lang.OutOfMemoryError

I can't exit from jboss gracefully!

Does it help?



---
This SF.NET email is sponsored by: AMD - Your access to the experts
on Hammer Technology! Open Source & Linux Developers, register now
for the AMD Developer Symposium. Code: EX8664
http://www.developwithamd.com/developerlab
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Jetty and Container Managed Auth - SAME TO ME!

2002-09-10 Thread kiuma





---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] >Re: Two simple questions

2002-09-08 Thread kiuma

[EMAIL PROTECTED] wrote:

>>Jason Essington wrote:
>>Why not just have the teachers be assigned both a teacher and a student 
>>role? That way they will have access to everyting you have already 
>>permitted to student, and any new items only allowed for the teacher role.
>>
>
>I know this way. But I will have to assign each principle many roles. I'm not sure
>whether it is the appropriate way most people use. I know in Weblogic you can set
>one role(in weblogic it is called group) as the "children role(principle)" of 
>another role so any principle in children role is also in "father role". Or I need
>a custom LoginModule to do that?
>
>
>---
>This sf.net email is sponsored by: OSDN - Tired of that same old
>cell phone?  Get a new here for FREE!
>https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jboss-user
>.
>
Using DB login module, try to play with SQL, you can do the same thing.



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] (Retry) Problem with findByPrimaryKey

2002-09-06 Thread kiuma

Use the cvs version of XDoclet and c the generated xml ;-P



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user