[jboss-user] [Beginner's Corner] - Re: OneToOne could be null

2009-11-20 Thread swenu
Hi Wolfgang

Sorry long time ago i've posted!
I have a person which i can edit and this person could be assigend to a compnay.
But this assignment is optional!

Here's the code for the selection

  | Firma
  | 
  | 
  | 
  | 
  | 
  | 

  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  |   #{_c}
  |
  | 
  | 
  | 

Yes i got @Transient annotation used within person.java

Thanks for you advice

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266722#4266722

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266722
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginner's Corner] - Re: OneToOne could be null

2009-11-12 Thread swenu
Hi Wolfgang

This is a suggestion box. The user could not change anything of the company. 
Only selection.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4265396#4265396

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4265396
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginner's Corner] - OneToOne could be null

2009-11-11 Thread swenu
Hi 

i have a question about a OneToOne within an entity.


What i want is that this assignment is optional. 
I solved it like this:
@OneToOne(optional = true)
  | @JoinColumn(name = "company", nullable=true)

It doesn't work when i want to save a null assignment!

15:23:32,541 INFO  [STDOUT] received company within entity! null
  | 15:23:32,546 WARN  [arjLoggerI18N] 
[com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator_2] 
TwoPhaseCoordinator.beforeCompletion - failed for 
com.arjuna.ats.internal.jta.resources.arjunacore.synchronizationim...@1d5848b
  | java.lang.IllegalStateException: org.hibernate.TransientObjectException: 
object references an unsaved transient instance - save the transient instance 
before flushing: ch.emtm.entity.Person.company -> ch.emtm.entity.Company
  | at 
org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:611)
  | at 
org.hibernate.ejb.AbstractEntityManagerImpl$1.beforeCompletion(AbstractEntityManagerImpl.java:513)
  | at 
com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:101)
  | at 
com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPhaseCoordinator.java:269)
  | at 
com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:89)
  | at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:177)
  | at 
com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1423)
  | at 
com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:137)
  | at 
com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:75)
  | at 
org.jboss.tm.usertx.client.ServerVMClientUserTransaction.commit(ServerVMClientUserTransaction.java:162)
  | at 
org.jboss.seam.transaction.UTTransaction.commit(UTTransaction.java:52)
  | at 
org.jboss.seam.jsf.SeamPhaseListener.commitOrRollback(SeamPhaseListener.java:613)
  | at 
org.jboss.seam.jsf.SeamPhaseListener.commitOrRollback(SeamPhaseListener.java:604)
  | at 
org.jboss.seam.jsf.SeamPhaseListener.handleTransactionsAfterPhase(SeamPhaseListener.java:345)
  | at 
org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:245)
  | at 
org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:196)
  | at com.sun.faces.lifecycle.Phase.handleAfterPhase(Phase.java:175)
  | at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:114)
  | at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:510)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:510)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
  | at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
  | at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
  | at 
org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)
  | at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)
  | at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at or

[jboss-user] [Beginner's Corner] - Re: ManyToMany problem

2009-11-08 Thread swenu
hi Wolfgang

as you wrote in your first post - reading the link will help!
Now it works! Thanks for your tirelessly help!

Best regards, Sven

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4264438#4264438

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4264438
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginner's Corner] - Re: ManyToMany problem

2009-11-04 Thread swenu
Yesterday i moved the code from the entity to the RoleHome.
Now looks like this in RoleHome.java
package ch.emtm.session;
  | 
  | import java.util.ArrayList;
  | import java.util.List;
  | 
  | import javax.persistence.EntityManager;
  | 
  | import org.jboss.seam.annotations.Begin;
  | import org.jboss.seam.annotations.In;
  | import org.jboss.seam.annotations.Logger;
  | import org.jboss.seam.annotations.Name;
  | import org.jboss.seam.annotations.web.RequestParameter;
  | import org.jboss.seam.framework.EntityHome;
  | import org.jboss.seam.log.Log;
  | 
  | import ch.emtm.entity.Function;
  | import ch.emtm.entity.Role;
  | import ch.emtm.entity.RoleFunction;
  | 
  | @Name("roleHome")
  | public class RoleHome extends EntityHome
  | {   
  | @RequestParameter Long roleId;
  | 
  | @Logger 
  | private Log log;
  | 
  | @In (required=false)
  | Function function;
  | 
  | EntityManager em = this.getEntityManager();
  | 
  | @Override
  | public Object getId()
  | {
  | if (roleId == null)
  | {
  | return super.getId();
  | }
  | else
  | {
  | return roleId;
  | }
  | }
  | 
  | @Override @Begin
  | public void create() {
  | super.create();
  | }
  | 
  | @Override
  | public String persist(){
  | String returnVal = super.persist();
  | this.roleId=this.instance.getId();  
  | setFunctions(this.instance.getFunctions());
  | return returnVal;
  | }
  | 
  | @Override
  | public String update(){
  | String returnVal = super.update();
  | this.roleId=this.instance.getId();
  | setFunctions(this.instance.getFunctions());
  | return returnVal;
  | }
  | 
  | public List getFunctions(){
  | return this.instance.getFunctions();
  | }
  | 
  | public void setFunctions(List functions){
  | //no function assigned
  | if(functions.size() == 0){
  | for(RoleFunction 
rf:this.instance.getRoleFunctions()){
  | removeAssignment(rf);
  | }
  | this.instance.getRoleFunctions().clear();
  | }else{
  | //there are entries within functions
  | if(this.instance.getRoleFunctions() == null || 
this.instance.getRoleFunctions().size() < 1){
  | //No entries within RoleFunctions, so 
we could add all!
  | for(Function f:functions){
  | addAssignment(f);
  | }
  | }else{
  | //there are already entries within 
RoleFunctions
  | compareAssignments(functions);
  | }
  | }
  | }
  | 
  | private void compareAssignments(List functions) {
  | log.info("received a list to compare!Assigned are {0} entries - 
comparing list contains {1} entries",this.instance.getRoleFunctions().size(), 
functions.size());
  | for(Function f:functions){
  | boolean newAssignment = true;
  | for(RoleFunction rf:this.instance.getRoleFunctions()){
  | if(rf.getFunction().getId().equals(f.getId()))
  | newAssignment = false;
  | }
  | if(newAssignment)
  | addAssignment(f);
  | }
  | List rmRf = new ArrayList();
  | for (int i = this.instance.getRoleFunctions().size() - 1; i >= 
0; i--){
  | boolean unusedAssignment = true;
  | for(Function f:functions){
  | 
if(this.instance.getRoleFunctions().get(i).getFunction().getId().equals(f.getId()))
  | unusedAssignment = false;
  | }
  | if(unusedAssignment)
  | 
rmRf.add(this.instance.getRoleFunctions().get(i));
  | }
  | for(RoleFunction rf:rmRf){
  | removeAssignment(rf);
  | this.instance.getRoleFunctions().remove(rf);
  | }
  | }
  | 
  | private void addAssignment(Function f) {
  | RoleFunction rf = new RoleFunction();
  | rf.setFunction(f);
  | rf.setRole(this.instance);
  | this.instance.getRoleFunctions().add(rf);
  | }
  | 
  | private void removeAssignment(RoleFunction rf) {
  | this.em.remove(rf);
  | }
  | }
RoleFu

[jboss-user] [Beginner's Corner] - Re: ManyToMany problem

2009-11-03 Thread swenu
Hi Wolfgang 

close to Germany from [ + ] ;)

thanks i will have a look at it again - hope to get it work now.
Will return if i get questions or if it's done.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263792#4263792

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263792
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginner's Corner] - Re: ManyToMany problem

2009-11-03 Thread swenu
Sorry back again *grml*

I don't get it - cause i'm doing the assignment in the entity not in the bean. 
Imho there's a difference to the text you've wrote.

I tried to remove the refernces within the remove loop from both sides. No 
effect =(

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263803#4263803

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263803
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginner's Corner] - Re: ManyToMany problem

2009-11-03 Thread swenu
Booah thanks for the fast answer :D

New to all the things here - i'm so sorry!

Next question i got!
After i remover the roleFunction from the listRoleFunctions (i've checked, it's 
okay) and save the removed item is still available in the database!
Bad news: there's no stack trace neither in console nor server.log!

Hope this issue is as simple to solve as the last one =)

Thanks for your assistance!

Best regards, Sven

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263718#4263718

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263718
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginner's Corner] - Re: ManyToMany problem

2009-11-03 Thread swenu
Hi again :D

i found a solution - at least i'm close to a solution.

I added this function to the Role.

  | @OneToMany(mappedBy="role")
  | private List listRoleFunctions;
  | ...
  | public List getFunctions(){
  | List functions = new ArrayList();
  | if(this.listRoleFunctions != null){
  | for(RoleFunction rf:this.listRoleFunctions){
  | Function f = new Function();
  | f = rf.getFunction();
  | functions.add(f);
  | }
  | }
  | return functions;
  | }
  | 
  | public void setFunctions(List functions){
  | if(functions.size() > this.listRoleFunctions.size()){
  | //New function to add
  | for(Function f:functions){
  | boolean add = true;
  | for(RoleFunction 
roleFunction:this.listRoleFunctions){
  | 
if(roleFunction.getId().equals(f.getId())){
  | add = false;
  | break;
  | }
  | 
  | }
  | if(add){
  | RoleFunction rf = new RoleFunction();
  | rf.setFunction(f);
  | rf.setRole(this);
  | System.out.println("Adding (rf from 
lRF)"+rf.getRole().getName() +"."+rf.getFunction().getName());
  | this.listRoleFunctions.add(rf);
  | }
  | }
  | }else{
  | //Function to remove
  | System.out.println("remove function");
  | for(RoleFunction roleFunction:this.listRoleFunctions){
  | boolean remove = true;
  | for(Function f:functions){
  | 
if(roleFunction.getId().equals(f.getId())){
  | remove = false;
  | break;
  | }
  | }
  | if(remove){
  | 
this.listRoleFunctions.remove(roleFunction);
  | }
  | }
  | }
  | }
  | 

The only thing which doesn't work is if a user deselect a already saved 
function assignment.

I always get this error:
10:49:58,960 INFO  [STDOUT] remove function
  | 10:49:58,960 SEVERE [component] /roleList.xhtml @72,106 
value="#{roleHome.instance.functions}": Error writing 'functions' on type 
ch.emtm.entity.Role
  | java.util.ConcurrentModificationException
  | at 
java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
  | at java.util.AbstractList$Itr.next(AbstractList.java:343)
  | at 
org.hibernate.collection.AbstractPersistentCollection$IteratorProxy.next(AbstractPersistentCollection.java:577)
  | ...

Hope someone got input to solve this issue!
Thanks in advance for any hint

Greets

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263631#4263631

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263631
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginner's Corner] - Re: ManyToMany problem

2009-10-31 Thread swenu
one step closer :D

i got the problem - at least i think i'm close to!
on roleList.xhtml i got:

  | 
  | Function
  
  |   
  |   
  | 
  | 

and when i save i receive the following error:
23:33:05,776 SEVERE [application] java.lang.ClassCastException: 
ch.emtm.entity.Function cannot be cast to ch.emtm.entity.RoleFunction

i understood the problem, but for the moment i have no idea how to solve.
i think your code posted above with the new rolefunction() will solve - but i 
couldn't get.

Do you have a hint for me ;)

Thanks in advance

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263326#4263326

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263326
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginner's Corner] - Re: ManyToMany problem

2009-10-31 Thread swenu
Sorry :)

I just stuck here and have no idea what the problem is.

Hope someone got input for me!

Here my classes:
package ch.emtm.entity;
  | 
  | import java.io.Serializable;
  | import java.util.List;
  | 
  | import javax.persistence.Entity;
  | import javax.persistence.GeneratedValue;
  | import javax.persistence.Id;
  | import javax.persistence.JoinColumn;
  | import javax.persistence.OneToMany;
  | import javax.persistence.OneToOne;
  | import javax.persistence.Version;
  | 
  | import org.hibernate.validator.Length;
  | import org.hibernate.validator.NotNull;
  | import org.jboss.seam.annotations.Name;
  | 
  | @Entity
  | @Name("role")
  | public class Role implements Serializable
  | {
  | /**
  |  * 
  |  */
  | private static final long serialVersionUID = 1L;
  | 
  | @Id
  | @GeneratedValue
  | private Long id;
  | @Version
  | private Integer version;
  | @Length(max=64)
  | @NotNull
  | private String name;
  | @OneToMany(mappedBy="role")
  | private List functions;
  | @NotNull
  | @OneToOne
  | @JoinColumn(name = "status")
  | private RecordStatus recordStatus = new RecordStatus();
  | 
  | /**
  |  * @return the id
  |  */
  | public Long getId() {
  | return id;
  | }
  | /**
  |  * @param id the id to set
  |  */
  | public void setId(Long id) {
  | this.id = id;
  | }
  | /**
  |  * @return the version
  |  */
  | public Integer getVersion() {
  | return version;
  | }
  | /**
  |  * @param version the version to set
  |  */
  | public void setVersion(Integer version) {
  | this.version = version;
  | }
  | /**
  |  * @return the name
  |  */
  | public String getName() {
  | return name;
  | }
  | /**
  |  * @param name the name to set
  |  */
  | public void setName(String name) {
  | this.name = name;
  | }
  | /**
  |  * @return the functions
  |  */
  | public List getFunctions() {
  | return functions;
  | }
  | /**
  |  * @param functions the functions to set
  |  */
  | public void setFunctions(List functions) {
  | this.functions = functions;
  | }
  | /**
  |  * @return the recordStatus
  |  */
  | public RecordStatus getRecordStatus() {
  | return recordStatus;
  | }
  | /**
  |  * @param recordStatus the recordStatus to set
  |  */
  | public void setRecordStatus(RecordStatus recordStatus) {
  | this.recordStatus = recordStatus;
  | }
  | 
  | }
  | 

package ch.emtm.entity;
  | 
  | import java.io.Serializable;
  | import java.util.ArrayList;
  | import java.util.List;
  | 
  | import javax.persistence.Entity;
  | import javax.persistence.GeneratedValue;
  | import javax.persistence.Id;
  | import javax.persistence.JoinColumn;
  | import javax.persistence.OneToMany;
  | import javax.persistence.OneToOne;
  | import javax.persistence.Version;
  | 
  | import org.hibernate.validator.Length;
  | import org.hibernate.validator.NotNull;
  | import org.jboss.seam.annotations.Name;
  | 
  | @Entity
  | @Name("function")
  | public class Function implements Serializable
  | {
  | /**
  |  * 
  |  */
  | private static final long serialVersionUID = 1L;
  | 
  | @Id 
  | @GeneratedValue
  | private Long id;
  | @Version
  | private Integer version;
  | @Length(max = 64)
  | @NotNull
  | private String name;
  | @OneToMany(mappedBy="function")
  | private List roles = new ArrayList();
  | @NotNull
  | @OneToOne
  | @JoinColumn(name = "status")
  | private RecordStatus recordStatus = new RecordStatus();
  | 
  | public Long getId() {
  | return id;
  | }
  | 
  | public void setId(Long id) {
  | this.id = id;
  | }
  | 
  | public Integer getVersion() {
  | return version;
  | }
  | 
  | @SuppressWarnings("unused")
  | private void setVersion(Integer version) {
  | this.version = version;
  | }
  | 
  | public String getName() {
  | return name;
  | }
  | 
  | public void setName(String name) {
  | this.name = name;
  | }
  | 
  | /**
  |  * @return the roles
  |  */
  | public List getRoles() {
  | return roles;
  | }
  | 
  | /**
  |  * @param roles the roles to set
  |  */
  | public void setRoles(List roles) {
  | this.roles = roles;
  | }
  | 
  | /**
  |  * @return the recordStatus
  |  */
  | public RecordStatus getRecordStatus() {
  | return recordStatus;
  | }
  | 
  | /**
  |  * @param recordStatus the recordStatus to set
  |  */
  | public void setRecordStatus(RecordStatus recordStatus) {
  |  

[jboss-user] [Beginner's Corner] - Re: ManyToMany problem

2009-10-31 Thread swenu
Hi Wolfgang

Thanks for your input.
I need the generated id to reference to this pair (role - function).

I tried to do it as it is described here:
http://en.wikibooks.org/wiki/Java_Persistence/ManyToMany#Additional_columns_in_join_table.

for the moment it doesn't work. I'll keep going on this way.
Perhaps i will return a few hours later again with more questions.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263319#4263319

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263319
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginner's Corner] - Re: ManyToMany problem

2009-10-30 Thread swenu
Hi Wolfgang

Thanks for your input.
So far i got it already. The role_function is generated automaticly

But now i got 
role_id | function_id

What should i do if like a generated id within this table?

Thanks a lot

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263101#4263101

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263101
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginner's Corner] - ManyToMany problem

2009-10-29 Thread swenu
Hi all

playing around with Seam and trying to fill a manytomany join table. Following 
situation: A person has multiple roles (based on work, not as a role known from 
the security). A role could have 0..n functions (specialised education). so i 
tried the follwing:

Role and Funtion joined on role_function (join table, for the moment only 
role_id and function_id, in future with a generated id) The qualification table 
contains person_id and role_function_id.

Now the questions:

1) How to autogenerate an role_function_id on assigning a function to a role?
2) Do i have to develop a seperate bean for the qualification?

Sorry if the question is clear for all. Searched for the answer and didn't find 
something which will helps out a newbie like me! Hope someone will clear my 
questions. Thanks in advance.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4262947#4262947

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4262947
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools Users] - Re: Sharing Seam projects with SVN

2009-10-09 Thread swenu
hi 

back again on the problem!
today the mate checked out the project and started the jboss from eclipse.
While deploying the ear we get this error:

DEPLOYMENTS MISSING DEPENDENCIES:
  |   Deployment "persistence.unit:unitName=emtm-ear.ear/emtm-ejb.jar#emtm" is 
missing the following dependencies:
  | Dependency "jboss.jca:name=emtmDatasource,service=DataSourceBinding" 
(should be in state "Create", but is actually in state "** NOT FOUND Depends on 
'jboss.jca:name=emtmDatasource,service=DataSourceBinding' **")
  | 
  | DEPLOYMENTS IN ERROR:
  |   Deployment "jboss.jca:name=emtmDatasource,service=DataSourceBinding" is 
in error due to the following reason(s): ** NOT FOUND Depends on 
'jboss.jca:name=emtmDatasource,service=DataSourceBinding' **
  | 
  | at 
org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:993)
  | at 
org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:939)
  | at 
org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:873)
  | at 
org.jboss.system.server.profileservice.repository.MainDeployerAdapter.checkComplete(MainDeployerAdapter.java:128)
  | at 
org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:369)
  | at 
org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)
  | at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
  | at 
java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
  | at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
  | at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
  | at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
  | at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
  | at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
  | at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
  | at java.lang.Thread.run(Thread.java:619)
  | 

On my local workspace (also on a second one in a diffrent local location) i 
don't get any errors while deploying the things.

Any idea?

Setting update to create won't work neither.

Thanks for the fish ;)

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4259564#4259564

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4259564
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools Users] - Re: Sharing Seam projects with SVN

2009-10-07 Thread swenu
thanks for all your answers!

I don't know the differences what i've done yesterday and today. Now it seems 
to work!

Thanks all!

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4259053#4259053

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4259053
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools Users] - Sharing Seam projects with SVN

2009-10-06 Thread swenu
I'm not sure, if it's the right place - if not, please move to the right one!

I created a Seam web project with the jboss tools wizard. Now i want to share 
it with some other developers. 

Which files i have to ignore before i commit?

Thanks in advance,swenu

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4258974#4258974

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4258974
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user