[JBoss-user] [Security & JAAS/JBoss] - Re: Roles issue

2006-06-22 Thread tzablock
In fact the session is being invalidated and the problem still persists. Considering things you've said I think this is a JBossSX issue. Any ideas on how to flush the databaseloginmodule data? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3952658#3952658 Re

[JBoss-user] [Security & JAAS/JBoss] - Re: Roles issue

2006-06-20 Thread tzablock
Well that's not the exact point - I don't have to check the user roles at runtime or dynamically. The only thing is that (that's how I suppose it does work) the DatabaseLoginModule assigns the roles at the point when the application is started or at the first login not each time the login is pe

[JBoss-user] [Tomcat, HTTPD, Servlets & JSP] - Is it a locale issue?

2006-06-20 Thread tzablock
Here is my date issue: I'm having a java bean (it's an enterprise bean in fact but I think it doesn't matter) with a java.util.Date property. The value is set to ie. 2006-05-30. When I print the value to the console everything is allright. But in my web browser window I can see 2006-05-29. I th

[JBoss-user] [Security & JAAS/JBoss] - Roles issue

2006-06-20 Thread tzablock
Here is a brief description of my problem. I'm using JBossSX DatabaseLoginModule in my web application. In the application, there's an opportunity to change user roles by selecting particular user and assigning him the desired roles. The problem is that whenever I change the roles, and I'm logg

[JBoss-user] [EJB 3.0] - Re: EntityManager and exceptions

2006-05-28 Thread tzablock
Ok maybe I'll specify the question in a different way: How can I use a non-injected entity manager? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3947221#3947221 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3947221

[JBoss-user] [EJB 3.0] - Re: Question about merge

2006-05-25 Thread tzablock
I had some problems with creating composite fk mapping so what i always do is adding an artificial id column in such entity and then the composite mapping is not needed. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3946546#3946546 Reply to the post : http:

[JBoss-user] [EJB 3.0] - EntityManager and exceptions

2006-05-25 Thread tzablock
Here is what I would like to do: This is my bussiness interface: package pl.com.filmservice.ejb; | | import java.sql.Date; | import java.util.List; | import pl.com.filmservice.par.*; | | public interface FilmService | { | ... | public void createUser(User user); |

[JBoss-user] [EJB 3.0] - Re: Entity beans properties

2006-05-25 Thread tzablock
Works nice Thank you View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3946540#3946540 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3946540 --- All the advantages of L

[JBoss-user] [EJB 3.0] - Re: Question about merge

2006-05-24 Thread tzablock
Oh, and try to specify the cascade=CascadeType.ALL in the @OneToMany annotation View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3946276#3946276 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3946276 -

[JBoss-user] [EJB 3.0] - Re: Question about merge

2006-05-24 Thread tzablock
@OneToMany(cascade=CascadeType.ALL,fetch=FetchType.EAGER) @JoinColumn(name="MODULE_ID") Collection properties = new HashSet(); Try placing the @JoinColumn annotation on the @ManyToOne side and used mapped attribute in @OneToMany View the original post : http://www.jboss.com/index.html?module=bb

[JBoss-user] [EJB 3.0] - Entity beans properties

2006-05-24 Thread tzablock
Is it possible to have a property in an entity bean that is not being mapped to a column in the database? When I'm not using the @Column annotation, the ejb container is mapping the property using some naming rules. I'd like to have some other properties beside columns so I can use them for ie f

[JBoss-user] [EJB 3.0] - Re: A hibernate bug in 4.0.4 GA?

2006-05-24 Thread tzablock
What are the other types of associations that you are mentioning? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3946269#3946269 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3946269 ---

[JBoss-user] [EJB 3.0] - A hibernate bug in 4.0.4 GA?

2006-05-20 Thread tzablock
While using the 4.0.4GA JBoss release I can't deploy EJB3 entity beans with @OneToMany(fetch=FetchType.EAGER). In the JBoss console I can see an error: Can't fetch multiple bags simultaneously (sth like that) when I change fetch type to LAZY everything works fine, but still shouldn't EAGER fe

[JBoss-user] [EJB 3.0] - EJBException - Invalid invocation of local interface (null c

2006-05-18 Thread tzablock
The issue is: I'm using JBoss 4.0.3SP1 with EJB3 RC6 deployed. It's a web app in JSF with an EJB3 back-end. The issue is: I have a local interface, i try to access it locally (from the web package). Both packages seem to be in the same JVM. When I try to access an EJB method I get an ...some

[JBoss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: JSF

2006-05-18 Thread tzablock
Well this is a myFaces bug: http://issues.apache.org/jira/browse/MYFACES-1296 Downloading new from the jars from the apache myFaces page should solve the problem. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3944567#3944567 Reply to the post : http://www.

[JBoss-user] [EJB 3.0] - EJB3 on database views

2006-05-16 Thread tzablock
Has anybody created a entity bean on a database view? Any help, an example source, would be appreciated tzablock View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3943362#3943362 Reply to the post : http://www.jboss.com/index.html?module=bb&op=

[JBoss-user] [EJB 3.0] - EJB3 Hype talk - lookup issue...

2006-05-15 Thread tzablock
In the EJB3 Trailblazer we can read something like that: "Loose coupling: Since the client application does not directly instantiate the service objects, it does not need to know the name of the implementation class. It only needs to know the service interface and look up the service stub object

[JBoss-user] [EJB 3.0] - Name not found exception

2006-05-14 Thread tzablock
:57:20,250 INFO [STDOUT] at java.lang.Thread.run(Unknown Source) any clues? tzablock View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3943454#3943454 Reply to the post : http://www.jboss.com/index.html?module=bb&op=p

[JBoss-user] [Tomcat, HTTPD, Servlets & JSP] - JSF

2006-05-10 Thread tzablock
Hi i've got a very troubling issue with JSF (I'm using myfaces1.1.3 snapshot with tomahawk 1.1.2 build) After jumping on few links in my JSF web app i'm getting this kind of exception: javax.servlet.ServletException: null values not allowed javax.faces.webapp.FacesServlet.service(FacesServlet.j

[JBoss-user] [EJB 3.0] - Re: 4.0.3SP1 and ejb3 RC6 installation

2006-05-10 Thread tzablock
Works Thank you View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3942506#3942506 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3942506 --- Using Tomcat but need to do

[JBoss-user] [EJB 3.0] - 4.0.3SP1 and ejb3 RC6 installation

2006-05-06 Thread tzablock
In the installation instructions for 4.0.3SP1 and EJB3 RC6 there is something like this stated: WARNINGS with an 4.0.3SP1 install Because you patched 4.0.3SP1, the client jars in the jboss-4.0.3SP1/client directory will be invalid. Build your client classpath from: jboss-4.0.3SP1/lib jboss-4.0

[JBoss-user] [Tomcat, HTTPD, Servlets & JSP] - JSF selectOneRadio

2006-04-14 Thread tzablock
Here comes my troubling issue. I have a problem with selectOneRadio tag. When I submit a form every single field from the form stores its state - the textfields are filled, the checkboxes are checked but the radio buttons group lose their selection. This is the page code:

[JBoss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: JSF & stylesheets login issue

2006-03-01 Thread tzablock
Ok everything is allright it's just my fault This is the cause of the problem /* Whenever i'm trying to access any resource, including pictures or css stylesheets i'm accessing secured resource. tzablock View the original post : http://www.jboss.com/index.html?module=bb&op=

[JBoss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: JSF & stylesheets login issue

2006-02-28 Thread tzablock
my latest discovery is that the cause of the problem is that there is an issue with the background-image css attribute in fact... The image is not being displayed and later on I'm being redirected to that image! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3

[JBoss-user] [Tomcat, HTTPD, Servlets & JSP] - JSF & stylesheets login issue

2006-02-28 Thread tzablock
Ok here I go with my bizarre problem. I'm creating a webapp with JSF. There is a JBossSX based security with a form type login. This is the index.jsp file: - <%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %> - the main.jsp file is a secure resource. this is the login.js

[JBoss-user] [Tomcat, HTTPD, Servlets & JSP] - IllegalStateException

2006-02-14 Thread tzablock
Here is my troubling issue: this is the source code: public class MovieSearchControllerServlet extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { Stringoption = req

[JBoss-user] [Security & JAAS/JBoss] - j_security_check path

2006-02-14 Thread tzablock
ybe someone can give me a clue on how should I specify the action element in the login page form. tzablock View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3923529#3923529 Reply to the post : http://www.jboss.com/index.html?module=b

[JBoss-user] [Security & JAAS/JBoss] - Storing subject in the session

2006-02-07 Thread tzablock
obtain his roles and later on, personalize the web page look depending on his role set. Is it possible ? How can I do that? tzablock View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3922097#3922097 Reply to the post : http://www.jboss.com/index.html?mo

[JBoss-user] [Security & JAAS/JBoss] - Re: Obtaining user data

2006-02-07 Thread tzablock
Well the problem persists... I'm using standard installation of JBoss 4.0.3 EJB3 version. I didn't change anything about the container. Using the first option: request.getUserPrincipal() returned org.jboss.security.SimplePrincipal and this class doesn't supply me with getRoles() method. I'm q

[JBoss-user] [Security & JAAS/JBoss] - Obtaining user data

2006-02-07 Thread tzablock
The issue is - how do I obtain authenticated user data? I want to personalize the web page depending on the roles assigned to that user. How do I access the user roles from the JSP level? tzablock View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3922058

[JBoss-user] [Security & JAAS/JBoss] - Re: Authentification Struts (J_security_check)

2006-02-06 Thread tzablock
Under this URL you will find a desired LoginModule specs: http://docs.jboss.org/jbossas/jboss4guide/r4/html/ch8.chapter.html Good luck View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3921853#3921853 Reply to the post : http://www.jboss.com/index.html?module=b

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: Batch update problem.

2005-12-23 Thread tzablock
The sequences are allright, and there is no data inserted without jboss... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3914176#3914176 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3914176 --

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - EJB3 batch update persistance issue.

2005-12-23 Thread tzablock
Here is my irritating issue. I'm having two entity beans One is Film and another one is Copy. there is one to many relationship between them (there can be many copies of one film). I have created a web form were i put the film data and the count of copies. Then in the bussiness code I'm cr

[JBoss-user] [EJB 3.0] - EJB3 Batch update issue

2005-12-23 Thread tzablock
Here is my irritating issue. I'm having two entity beans One is Film and another one is Copy. there is one to many relationship between them (there can be many copies of one film). I have created a web form were i put the film data and the count of copies. Then in the bussiness code I'm cr

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Batch update problem.

2005-12-22 Thread tzablock
Here is my irritating issue. I'm having two entity beans One is Film and another one is Copy. there is one to many relationship between them (there can be many copies of one film). I have created a web form were i put the film data and the count of copies. Then in the bussiness code I'm cr

[JBoss-user] [EJB 3.0] - Batch update problem

2005-12-22 Thread tzablock
Here is my irritating issue. I'm having two entity beans One is Film and another one is Copy. there is one to many relationship between them (there can be many copies of one film). I have created a web form were i put the film data and the count of copies. Then in the bussiness code I'm creati

[JBoss-user] [EJB 3.0] - Re: Database overwritten at each JBoss startup once again.

2005-12-09 Thread tzablock
I've managed to fix this issue at last. I'm using Oracle Express database. Unfortunately JBoss is not reading this hbm2dll property while deploying the application. I had to configure the persistance.properties file in the ejb3.deployer folder. That was the solution... View the original post :

[JBoss-user] [EJB 3.0] - Database overwritten at each JBoss startup once again.

2005-12-09 Thread tzablock
Although i have his line in my persistance.xml file the database gets recreated each time the application is deployed or the server is shutdown. Any clue on what is the reason? tzablock View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3911769#391176

[JBoss-user] [EJB 3.0] - Re: org.hibernate.MappingException help needed!

2005-12-09 Thread tzablock
Ok I've already solved that one :D:D:D:D:D View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3911766#3911766 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3911766 --- Th

[JBoss-user] [EJB 3.0] - org.hibernate.MappingException help needed!

2005-12-09 Thread tzablock
Ok here's my painful problem: while deploying par file I get this sort of exception: org.hibernate.MappingException: property not found: CompanyId on entity pl.com.filmservice.par.Film at org.hibernate.mapping.PersistenetClass.getProperty(PersistentClass.java:352) and so on well this thing

[JBoss-user] [EJB 3.0] - Re: Database overwritten at each JBoss startup.

2005-12-09 Thread tzablock
Thank you very much it has solved the problem. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3911748#3911748 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3911748 --

[JBoss-user] [EJB 3.0] - Database overwritten at each JBoss startup.

2005-12-09 Thread tzablock
th new ones, so everything that was inserted into the tables is deleted. The second issue is that I don't want Jboss to create the database each time it gets up - I'd just like to map @Entities to the existing DB schema. I'd be grateful for any help. tzablock. View the origina

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Overwriting the database at JBoss startup

2005-12-09 Thread tzablock
th new ones, so everything that was inserted into the tables is deleted. The second issue is that I don't want Jboss to create the database each time it gets up - I'd just like to map @Entities to the existing DB schema. I'd be grateful for any help. tzablock. View the origina