[JBoss-user] [EJB 3.0] - Re: Relationships destroyed at ManyToMany merge on owning si

2006-07-10 Thread squishy
I have a user with id 1 and name "A" and a group with id 24 and name "B".
They're in a relationship with an entry in the Join-table. 
Then i update "A" by doing

  | User u = new User();
  | u.setId(1);
  | u.setName("Z");
  | manager.merge(u);
  | 

and after that the entry in the join-table is gone. I can change the group like 
this without destroying the relationship, though.

fundamental mistake on my side? :)


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956554


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Relationships destroyed at ManyToMany merge on owning side

2006-07-10 Thread squishy
Hello,
I have two Entities, User & Group, in an m:m relationship, User is the owning 
side, eager loading.
Problem: if i update a user entity, its relationships are destroyed. updating a 
group works.

How can i solve this ? 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956527


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: Dissolving a many to many relationship

2006-06-28 Thread squishy
Don't you have a relationship on EJB level so you can do student.getSubjects() 
instead of going through the trouble of doing a query? Looks awful complicated 
to me :)

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3953977

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: Dissolving a many to many relationship

2006-06-27 Thread squishy
I think you get the ConcurrentModificationException because you remove objects 
from the list while you're iterating over it. 
If you go through the list with a simple 
for (int i = 0; i < subjects.size(); i++) 
maybe it will work?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3953889

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: Problem with delete through helper method in SessionBean

2006-06-27 Thread squishy
if i go through the user's groups and delete the user from them before i delete 
 the user it works fine. Looks like it was repersisted through the cascading..

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3953888

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Problem with delete through helper method in SessionBean

2006-06-26 Thread squishy
Hello,
I have the following problem:

I have a User entity with a ManyToMany relationship to Group, persist and merge 
cascading.
I have a UserMgrBean session bean to access the Users. 
If i delete a User with a relationship by calling
(umgr being a UserMgr instance)

  | umgr.delete(umgr.get(1));
  | 
It works fine, user is deleted along with relationship.

However, in UserMgr i also have a method that actually does the same...


  | public void DWRDelete(int userId) {
  | manager.remove(manager.find(User.class, userId));
  | }
  | 

... but results in this error:


  | org.hibernate.ObjectDeletedException: deleted entity passed to persist: 
[ejbframe.entity.User#]

If i call DWRDelete on a User without a relationship it works.

That method is for when i access the bean via javascript and i cant do without 
it.

How can i fix this?



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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3953403

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: EmbeddedId and GeneratedValue

2006-06-08 Thread squishy
http://jira.jboss.org/jira/browse/EJBTHREE-508

You'll have to do without a composite key :)

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3949805


___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - ManyToMany: cannot simultaneously fetch multiple bags

2006-05-26 Thread squishy
I've already read a few topics about the "cannot simultaneously fetch multiple 
bags" problem in 4.0.4.GA, but it seems like it only applies to OneToMany 
relationships.

I have an entity with 2 ManyToMany relationships, eager fetching, and i get the 
same error. 
The relationships are done with Lists.



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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3946765


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Number is first char in column name leads to error (MSSQL)

2006-04-12 Thread squishy
Hello,
I have to use an old and big database in my application and it is best if i 
don't change anything like column names and stuff.
Problem is, someone named a column "4_a_prinzip". Now if hibernate queries that 
table i get the following error:

Caused by: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for 
JDBC][SQLServer]Line 1: Incorrect syntax near '.4'.

in order to make it work the column name would have to be surrounded by [] 
ie
 select * from foo where foo.[4_a_prinzip] = 1 

is there a way to tell jboss to do so?

thanks in advance

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3936852


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: EmbeddedId and GeneratedValue

2006-04-05 Thread squishy
Entity Class:

  | package ejbframe.entity;
  | 
  | import javax.persistence.*;
  | 
  | @Entity
  | @IdClass(UserPK.class)
  | @Table(name = "users")
  | public class User {
  | 
  | private int userId;
  | private String name;
  | private String password;
  | 
  | @Id @GeneratedValue(strategy = GenerationType.TABLE)
  | public int getUserId() {
  | return userId;
  | }
  | public void setUserId(int userId) {
  | this.userId = userId;
  | }
  | 
  | public String getName() {
  | return name;
  | }
  | public void setName(String name) {
  | this.name = name;
  | }
  | 
  | public String getPassword() {
  | return password;
  | }
  | public void setPassword(String password) {
  | this.password = password;
  | }
  | }
  | 

PK class:


  | package ejbframe.entity;
  | 
  | import java.io.Serializable;
  | 
  | public class UserPK implements Serializable {
  | 
  | private int userId;
  | 
  | public UserPK ()  {}
  | 
  | 
  | public int getUserId() {
  | return userId;
  | }
  | 
  | public void setUserId(int userId) {
  | this.userId = userId;
  | }
  | }
  | 

no ids are generated, no tables for id generation created.
If i comment out the @IdClass it works perfectly.
help please :(

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3935230


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: EmbeddedId and GeneratedValue

2006-04-05 Thread squishy
just realized the overiding happens because i used manager.merge instead of 
manager.persist . 
Doesn't solve my problem though..

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3934998


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: EmbeddedId and GeneratedValue

2006-04-05 Thread squishy
I tested the same beans with new Jboss 4.0.4CR2 + EJB3CR6, the only thing 
that's different is that i get no errors, because the row with id 0 is simply 
overridden by each new entity that is added to the database. (no errors there!)
No HIBERNATE_SEQUENCES table is created either.

Could you be so kind to show me a working example? (or point me to where i find 
one :)
im totally lost here..

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3934996


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: EmbeddedId and GeneratedValue

2006-04-03 Thread squishy
apparently hibernate does not create an entry in HIBERNATE_SEQUENCES for  my 
Bean with the PK class, but for the same one without pk class..
Uhm.. can you give me a hint on how to find a test suit that tests this.. ? (no 
clue of them test suits :o)

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3934492


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: EmbeddedId and GeneratedValue

2006-04-03 Thread squishy
(the class has @IdClass with appropriate PK-class)

  | @Id @GeneratedValue(strategy=GenerationType.TABLE)
  | public int getUserId() {
  | return userId;
  | }
  | 
leads to a 
java.sql.BatchUpdateException: failed batch 

on the 2nd insert into the database.
1 Entity is wrote to the database, its Id is 0.

is this how it is supposed to be? :o




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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3934316


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: NamedQuery or Facade-Bean with Finder methods?

2006-04-03 Thread squishy
i thought i wouldnt declare them as NamedQueries, but only as plain Strings in 
the stateless's methods. 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3934288


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: NamedQuery or Facade-Bean with Finder methods?

2006-04-03 Thread squishy
thanks alot, this quits my worries

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3934294


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: EmbeddedId and GeneratedValue

2006-04-03 Thread squishy
uh, there is one? tried several things with @GeneratedValue Annotation, but the 
only id i got generated was 0 :o

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3934291


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: NamedQuery or Facade-Bean with Finder methods?

2006-04-03 Thread squishy
well, but i have about 300 named queries if i do it with them, so i'm not sure 
if thats really the way to go..

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3934276


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - NamedQuery or Facade-Bean with Finder methods?

2006-04-02 Thread squishy
Is it better to have lots of NamedQueries (distinguished by class, eg 
"Team.findAll" ) or to have  Stateless Beans that execute the queries?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3934241


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: EmbeddedId and GeneratedValue

2006-04-01 Thread squishy
i thoguht so. do you have an idea for working solution? i'd be very thankful :)

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3934141


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: EmbeddedId and GeneratedValue

2006-03-31 Thread squishy
I think it's surprising that there's so little about composite primary keys 
with auto generated values yet..

Isn't it also possible that, evertime you add a new entry to the database you 
do a query like (Role is the entity i tried with)

  | "SELECT MAX(r.roleId) + 1 FROM Role r"
  | 
and take it as the ID?
I don't like it this way, because the code isnt in the entity itself, but i 
prefer it over creating a whole new table for primary keys, which doesn't 
appear very clean to me...

Isn't there a proper implementation for @GeneratedValue by the 
container/hibernate yet??

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3933989


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: encapsulate entity beans?

2006-03-24 Thread squishy
that would interest me a lot too, because i'm going to port many ejb 2.0 
entities that use value objects to ejb 3.0 and i'm not sure if it's good to 
keep the value objects either.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3932419


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Re: Bean refuses to use custom datasource in jbosscmp-jdbc.x

2006-03-08 Thread squishy
hmm works with mysql..


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3928709


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Bean refuses to use custom datasource in jbosscmp-jdbc.xml

2006-03-08 Thread squishy
Hello,
i wrote a very simple Entity Bean with a few cmp fields. I want the bean to 
store the fields in my postgreSQL database.
I have put the postgres-ds.xml properly into the deploy folder with JNDI name 
PostgresDS.

in jbosscmp-jdbc.xml i specified:


  | 
  |
  |  java:PostgresDS
  |  PostgreSQL 7.2
  |  true
  |
  |
  | 
  |   
  |  Cabin
  |  Cabin
  |  
  | shipId
  |  etc ...
  | 

But still the Bean uses the default JBoss database.
What am i doing wrong?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3928685


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JNDI/Naming/Network] - Communication Exception: Failed to retrieve stub from server

2006-03-07 Thread squishy
hello,
I'm using JBoss 4.0.3SP1 with Elcipse 3.1 Jboss IDE 1.5.
I wrote a simple EntityBean which seems to deploy fine (no errors).
But when i try to access it with my test client app, i get the following error

javax.naming.CommunicationException: Failed to retrieve stub from server 
192.168.10.160:1100 [Root exception is java.io.StreamCorruptedException: 
unexpected block data]
  | at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:248)
  | at 
org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1294)
  | at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1431)
  | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:579)
  | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
  | at javax.naming.InitialContext.lookup(Unknown Source)
  | at Client1.main(Client1.java:24)
  | Caused by: java.io.StreamCorruptedException: unexpected block data
  | at java.io.ObjectInputStream.readObject0(Unknown Source)
  | 

the line it occurs in is:


  | Object ref = c.lookup("ejb/Cabin");
  | 

as context properties i use server/default/conf/jndi.properties
im not logged on as admin but as mere user, maybe thats important.

how can i fix this?


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3928403


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration & Deployment] - cant find org.jnp.interfaces.NamingContextFactory (Eclipse 3

2006-03-06 Thread squishy
I wrote a very simple stateless session bean to test the IDE.
It only has 1 business method and i followed the steps in the java boss IDE 
tutorial to set up the jndi-name etc and it deploys fine.

Then i wrote a simple client application in java, that is supposed to call that 
1 method.
But i get a problem with initializing the Naming Context. i took the method 
from the o'reilly book"Enterprise JavaBeans" 2002 edition. 
it works as follows



  | public static Context getInititalContext() throws NamingException{
  | Properties p = new Properties( );
  | try {
  | p.load(new 
java.io.FileInputStream("C:/jboss6/server/default/conf/jndi.properties"));
  | } catch (FileNotFoundException e) {
  | // TODO Auto-generated catch block
  | e.printStackTrace();
  | } catch (IOException e) {
  | // TODO Auto-generated catch block
  | e.printStackTrace();
  | }
  | return new InitialContext(p);
  | }
  | 

but running the code i get


  | javax.naming.NoInitialContextException: Cannot instantiate class: 
org.jnp.interfaces.NamingContextFactory  [Root exception is 
java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory ]
  | at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
  | at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
  | at javax.naming.InitialContext.init(Unknown Source)
  | at javax.naming.InitialContext.(Unknown Source)
  | at Client_1.getInitialContext(Client_1.java:48)
  | 

Yes, jboss6\client\jnp-client.jar is in my classpath.

any idea why else it wont find the class? im desperate :O

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3928134


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Re: Error: can't find data source: java:/MSSQLDS

2006-02-28 Thread squishy
still the same error as before


  | org.jboss.deployment.DeploymentException: Error in jbosscmp-jdbc.xml : 
datasource-mapping MSSQLSERVER2000 not found 
  | 

with a fresh install (standard files are all standard)

nowhere in my files "MSSQLSERVER2000" is mentioned! i only use "MS 
SQLSERVER2000" !

help please :o

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3926798


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Re: Error: can't find data source: java:/MSSQLDS

2006-02-28 Thread squishy
Okay thanks a lot that seems to have done the trick with the database.
thanks alot!

got another error now tho ;)

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3926762


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Re: Error: can't find data source: java:/MSSQLDS

2006-02-28 Thread squishy
i took fresh files and removed the entry from mssql-ds.xml
still the same error. :(

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3926754


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Re: Error: can't find data source: java:/MSSQLDS

2006-02-28 Thread squishy
if i do that the error message changes to
org.jboss.deployment.DeploymentException: Error in jbosscmp-jdbc.xml : 
datasource-mapping MSSQLSERVER2000 not found
which is the name from before :o
seems like a quandary to me 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3926746


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Re: Error: can't find data source: java:/MSSQLDS

2006-02-28 Thread squishy
is there an edit button in this forum??

the error message i get (i get about 100 of the same type, but i'll post only 1 
:-) )


  | org.jboss.deployment.DeploymentException: Error: can't find data source: 
java:/MSSQLDS; - nested throwable: (javax.naming.NameNotFoundException: MSSQLDS 
not bound)
  | 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3926731


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Error: can't find data source: java:/MSSQLDS

2006-02-28 Thread squishy
Hello,
I'm trying to run JBoss 4.03SP1 together with MS SQLSERVER 2000 for a company 
page using JSP. 
But I'm stuck on configuring the database. 

I donwloaded and installed the JDBC drivers for MSSQL2000.

my mssql-ds.xml looks as follows:


  | 
  |   
  | MSSQLSERVER2000
  | 
jdbc:microsoft:sqlserver://w2k-praktikant\webfactory;SelectMethod=cursor;DatabaseName=KVN_Allershausen
  | 
com.microsoft.jdbc.sqlserver.SQLServerDriver
  | sa
  | webfactory
  | 
  | 
  | 
  |   
  |   
  |  MSSQLSERVER2000
  |   
  |   
  | 
  | 

I changed the standardjbosscmp-jdbc.xml maybe that isnt such a good idea?

in it i changed: 

  |   MSSQLDS
  |   MSSQLSERVER2000
  | 

nothing else changed.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3926730


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user