[JBoss-user] [Installation, Configuration & Deployment] - jboss server slow configuration problem

2005-09-16 Thread somsahi
As per buliding and running web application document on objectlearn 
documentation 
1)i created project WTP-TUTORIAL-I . but after creation there is red mark on 
file web.xml 
error is can not find declaration of web-app 
schema reference failed web-app_2_4.xsd because could not find the document 
2)every time while clicking on operation 
a window opens indicating user operation is waiting for background work to 
complete .it takes approxmately 15 minutes.I have given jboss path as 
c:\jboss4.1 
in that userfollwing lines are there 
starting server 
starting server 
starting server(Waiting) 

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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Stack Overflow using EJB3

2005-09-16 Thread evrim
ok, you are right. How do we make prePassivate() transactional?

i) with @TransactionAttribute() annotation
ii)

  | manager.getTransaction().begin(); 
  | manager.flush();
  | manager.getTransaction().commit();
  | 

I'm confused with this problem. I've tried both but failed.

Thnx.

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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [News & Announcements] - JBoss Microcontainer release 1.0.1

2005-09-16 Thread [EMAIL PROTECTED]
A bug fix release to tidyup xml schema issues:

It is currently used in the following ways:
* Embedded EJB3
* Seam
* The POJO/bean deployer to be included in JBoss-4.0.3
* Soon to be the core of JBoss5

Release Notes: http://sourceforge.net/project/shownotes.php?release_id=357079
Downloads: 
http://sourceforge.net/project/showfiles.php?group_id=22866&package_id=137237&release_id=357079

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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - java defunct processes caused by JGroups - URGENT

2005-09-16 Thread abitha
Bela,

Please see thread 
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=67846 in which I 
corresponded with you earlier. Background of our system: We use JBoss 3.2.6, 
read uncommitted and repl_async, with two appservers in the cluster. We have 
mostly plain old java objects and extensively use JBossCache for clustering 
replication. 

Earlier, we had a lot of problems in production that were not attributable to 
anything specific:
1. JVM suddenly died with java defunct processes within 1 hour of application 
starting.
2. NACKACK messages that got displayed.

You had initially suggested that I post in apache groups for the defunct 
processes problem (since we use apache load balancer). For the NACKACK problem 
you had suggested we use JBoss 2.2.9 (alpha). Replacing 2.2.8 JBossCache with 
2.2.9 alpha actually fixed the java defunct processes to a great extent. 
Instead of dying after 1 hour of starting JBoss, now the processes died after a 
week or so.

Then we had another production release, and this time both appservers in the 
cluster died within a few minutes (1-2 minutes) of starting the app servers. In 
order to find the problem, we started rolling back each JBossCache change that 
was introduced. The one rollback that made a difference was - we were creating 
a new cache that got populated on demand through a database lookup. Earlier we 
used local hashmaps. The difference between this cache and all the other caches 
we already had was: (a) the object it holds is a synchronized map (b) some 
methods are synchronized and  (c) the volume is high. There are appromixately 
6000 database calls (and therefore 6000 object replications) in a span of 1-2 
minutes. The same object is being used, and replicated (i.e, the 6000 database 
entries are all held in the same synchronized map and the entire object is 
replicated each time). We rolled back this change and use the version with 
local hashmaps and the crash did not happen anymore.

Rolling back this change has helped some, but now the jboss crash occurs 
approximately once a day - sometimes with defunct processes and sometimes 
without. There is absolutely no information in the log. But we know that this 
is somehow related to JGroups as changing from 2.2.8 to 2.2.9 has greatly 
changed the behavior.

The only other change that has not been rolled back is the introduction of a 
stateless session bean. Earlier all our code was just plain old java objects 
(not distributed), but now we have a stateless session bean that we use to 
lookup information from the other app server.

This is a production problem, so it is very urgent. We also have support 
purchased, so I am going to post there too. I would appreciate it if you could 
look at that.

Please let me know if you need any other info.

Thanks, Abitha.



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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - JBoss OneToMany Retrieval

2005-09-16 Thread andrewi
I am a newbie and am trying to get these entities to talk. 

I can write to the data to the db (I check with the db manager and the store is 
in the db) but when I retrieve the data I get the customer details including 
the address but the StoreList is empty.

Any ideas ?

Thanks

@Entity
  | @Table(name = "CUSTOMER")
  | public class CustomerCMP implements java.io.Serializable{
  | 
  | private Long id;
  | private String name;
  | private String contact;
  | private AddressCMP address;
  | private List StoreList;
  | 
  | public CustomerCMP(){} 
  | 
  | public CustomerCMP(String Name, String Contact) 
  | {
  | //  Debug.print("Create", this);
  | this.name = Name;
  | this.contact = Contact;
  | }
  | 
  | @Id(generate = GeneratorType.AUTO)
  | @Column(name = "customerId", nullable = false)
  | public Long getId() {
  | return id;
  | }
  | public void setId(Long id) {
  | this.id = id;
  | }
  | 
  | @Column(name="NAME")
  | public String getName() {
  | return name;
  | }
  | public void setName(String name) {
  | this.name = name;
  | }
  | 
  | @Column(name="CONTACT")
  | public String getContact() {
  | return contact;
  | }
  | public void setContact(String contact) {
  | this.contact = contact;
  | }
  | 
  | @OneToOne(cascade = {CascadeType.ALL})
  | @JoinColumn(name = "addressId")
  | public AddressCMP getAddress() {
  | return address;
  | }
  | public void setAddress(AddressCMP address) {
  | this.address = address;
  | }
  | 
  | @OneToMany(targetEntity=com.meerkat.jfr.par.StoreCMP.class, 
  | cascade={CascadeType.ALL}, 
  | fetch=FetchType.EAGER, 
  | mappedBy="customer")
  | public List getStoreList()
  | {
  | return StoreList;
  | }
  | public void setStoreList(List StoreList)
  | {
  | this.StoreList = StoreList;
  | }
  | 
  | public StoreCMP addToStoreList(StoreCMP store)
  | {
  | if (this.StoreList == null)
  | {
  | this.StoreList = new ArrayList();
  | }
  | store.setCustomer(this);
  | getStoreList().add(store);
  | return store;
  | }
  | public StoreCMP removeFromStoreList(StoreCMP store)
  | {
  | getStoreList().remove(store);
  | store.setCustomer(null);
  | return store;
  | }
  | }
  | 
  | @Entity
  | @Table(name = "STORE")
  | public class StoreCMP implements Serializable 
  | {
  | private Long id;
  | private String name;
  | private AddressCMP address;
  | private String code;
  | private CustomerCMP customer;
  | 
  | public StoreCMP()
  | {
  | }
  | public StoreCMP(Long id, String Name, AddressCMP address, String code ) 
  | {
  | setId(id);
  | setName(name);
  | setAddress(address);
  | setCode(code);
  | }
  | 
  | @Id(generate = GeneratorType.AUTO)
  | @Column(name="StoreId", nullable=false)
  | public Long getId() {
  | return id;
  | }
  | public void setId(Long id) {
  | this.id = id;
  | }
  | 
  | @OneToOne(cascade = {CascadeType.ALL}, fetch=EAGER)
  | @JoinColumn(name = "ADDRESSID")
  | public AddressCMP getAddress() {
  | return address;
  | }
  | public void setAddress(AddressCMP address) {
  | this.address = address;
  | }
  | @Column(name="CODE")
  | public String getCode() {
  | return code;
  | }
  | public void setCode(String code) {
  | this.code = code;
  | }
  | @Column(name="NAME")
  | public String getName() {
  | return name;
  | }
  | public void setName(String name) {
  | this.name = name;
  | }
  | @ManyToOne
  | @JoinColumn(name="customerId")
  | //@JoinColumn(name="customerId", nullable=false)
  | public CustomerCMP getCustomer()
  | {
  | return customer;
  | }
  | public void setCustomer(CustomerCMP customer)
  | {
  | this.customer = customer;
  | }
  | }
  | 

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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists

[JBoss-user] [J2EE Design Patterns] - Should I do hierarchical EJB3s?

2005-09-16 Thread platinumdragon
I would love to get opinions on this.  The example is a bit contrived, but 
hopefully it will get across what I'm after.

Let's say we have a doctor EJB3:


  | @Stateless
  | public class DoctorBean implements Doctor
  | {
  |public Patient getPatient(String patientNumber);
  | }
  | 

Now, in addition to some basic information, Patient has a lot of complex data 
coming from, say, a database.  I'm thinking that Patient should also be an EJB. 
 That way I'm not getting the hi-res image of every X-ray taken of them 
needlessly serialized, when all I wanted is the last date of X-ray.

The problem I see with this design is that it works great as long as the client 
is local.  If I want to access this remotely, then I have to create an entirely 
different DoctorBean (DoctorRemoteBean) so that the Patient is also a 
RemotePatient.


  | @Stateless
  | public class DoctorRemoteBean implements RemoteDoctor
  | {
  |public RemotePatient getPatient(String patientNumber);
  | }
  | 

Does this make sense?

Thanks,
Mike

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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JNDI/Naming/Network] - Re: no security manager: RMI class loader disabled

2005-09-16 Thread csimon
You need a security manager.

Sample code:
System.setProperty("java.security.policy", "client.policy");
if (System.getSecurityManager() == null)
System.setSecurityManager(new 
RMISecurityManager());
Properties env = new Properties();
// Definir las propiededes y ubicacion de busqueda de 
Nombres JNDI.
env.setProperty("java.naming.factory.initial",  
"org.jnp.interfaces.NamingContextFactory");
env.setProperty("java.naming.provider.url",  
"localhost:1099");
env.setProperty("java.naming.factory.url.pkgs",  
"org.jboss.naming");
context = new InitialContext(env);

where the archive client.policy is in root dir and contain for example (this 
exaple is totally unsecure!):
grant {
permission java.security.AllPermission;
};

Hope it helps.

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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Login automatically after registration

2005-09-16 Thread javatwo
After user registration(username, password, ...), how to let the user 
automatially login into the system? Right now user have to go through a form to 
login after registration. In other words, how to populate session with 
authenticate info? Can someone help me or point me to some documentation? 
Thanks. Have a nice day!

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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - jbossws-samples-4.0.3.zip

2005-09-16 Thread hsutarwala
Can anyone tell me how and from where to download "jbossws-samples-4.0.3.zip"? 
I have not been able to find it.

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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: JBossWS doesn't seem to pick up my webservice

2005-09-16 Thread platinumdragon
Hmmm...

Deploying to JBoss on my laptop gets a little further.  Same version, I don't 
get what the difference is.  I'll have to do a new install and see which way it 
goes.

It looks like it's trying on this one, but because I'm using JAX-WS 2.0, I 
don't have a jaxrpc-mapping.xml file, which is apparently required.

Does anyone know a way around this?  I can't get a response from the JAX-WS 
community.  I am using wsimport to create my stubs from a WSDL.

Thanks,
Mike


  | 13:12:52,296 DEBUG [ServiceController] Starting dependent components for: 
jboss.web.deployment:war=jmx-console.war,id=1901914517 dependent components: []
  | 13:12:52,296 DEBUG [ServiceDeployer] handleNotification: 
org.jboss.deployment.SubDeployer.start,jmx-console.war
  | 13:12:52,312 DEBUG [MainDeployer] End deployment start on package: 
jmx-console.war
  | 13:12:52,312 DEBUG [MainDeployer] Deployed package: 
file:/C:/Java/jboss-4.0.3RC1/server/mycompany/deploy/jmx-console.war/
  | 13:12:52,312 DEBUG [URLDeploymentScanner] Watch URL for: 
file:/C:/Java/jboss-4.0.3RC1/server/mycompany/deploy/jmx-console.war/ -> 
file:/C:/Java/jboss-4.0.3RC1/server/mycompany/deploy/jmx-console.war/WEB-INF/web.xml
  | 13:12:52,312 DEBUG [MainDeployer] Starting deployment of package: 
file:/C:/Java/jboss-4.0.3RC1/server/mycompany/deploy/udbms-server-ws.war
  | 13:12:52,312 DEBUG [MainDeployer] Starting deployment (init step) of 
package at: 
file:/C:/Java/jboss-4.0.3RC1/server/mycompany/deploy/udbms-server-ws.war
  | 13:12:52,312 DEBUG [MainDeployer] Copying 
file:/C:/Java/jboss-4.0.3RC1/server/mycompany/deploy/udbms-server-ws.war -> 
C:\Java\jboss-4.0.3RC1\server\mycompany\tmp\deploy\tmp27791udbms-server-ws.war
  | 13:12:52,343 DEBUG [MainDeployer] using deployer 
MBeanProxyExt[jboss.web:service=WebServer]
  | 13:12:52,343 DEBUG [Tomcat5] Begin init
  | 13:12:52,359 DEBUG [Tomcat5] Unpacking war to: 
C:\Java\jboss-4.0.3RC1\server\mycompany\tmp\deploy\tmp27791udbms-server-ws-exp.war
  | 13:12:53,578 DEBUG [Tomcat5] Replaced war with unpacked contents
  | 13:12:53,578 DEBUG [Tomcat5] webContext: null
  | 13:12:53,578 DEBUG [Tomcat5] warURL: 
file:/C:/Java/jboss-4.0.3RC1/server/mycompany/tmp/deploy/tmp27791udbms-server-ws-exp.war/
  | 13:12:53,578 DEBUG [ServiceDeployer] handleNotification: 
org.jboss.deployment.SubDeployer.init,udbms-server-ws.war
  | 13:12:53,578 DEBUG [Tomcat5] End init
  | 13:12:53,578 DEBUG [DeploymentInfo] createLoaderRepository from config: 
LoaderRepositoryConfig(repositoryName: 
JMImplementation:service=LoaderRepository,name=Default, repositoryClassName: 
null, configParserClassName: null, repositoryConfig:
  |  null)
  | 13:12:53,578 DEBUG [UnifiedClassLoader] New jmx UCL with url 
file:/C:/Java/jboss-4.0.3RC1/server/mycompany/tmp/deploy/tmp27791udbms-server-ws-exp.war/
  | 13:12:53,578 DEBUG [RepositoryClassLoader] setRepository, [EMAIL 
PROTECTED], [EMAIL PROTECTED] 
url=file:/C:/Java/jboss-4.0.3RC1/server/mycompany/tmp/deploy/tmp2
  | 7791udbms-server-ws-exp.war/ ,addedOrder=0}
  | 13:12:53,578 DEBUG [RepositoryClassLoader] setRepository, [EMAIL 
PROTECTED], [EMAIL PROTECTED] 
url=file:/C:/Java/jboss-4.0.3RC1/server/mycompany/tmp/deploy/tmp2
  | 7791udbms-server-ws-exp.war/ ,addedOrder=0}
  | 13:12:53,578 DEBUG [UnifiedLoaderRepository3] Adding [EMAIL PROTECTED] 
url=file:/C:/Java/jboss-4.0.3RC1/server/mycompany/tmp/deploy/tmp27791udbms-server-ws-exp.war/
 ,addedOrder=0}
  | 13:12:53,593 DEBUG [MainDeployer] found 0 subpackages of 
file:/C:/Java/jboss-4.0.3RC1/server/mycompany/deploy/udbms-server-ws.war
  | 13:12:53,593 DEBUG [MainDeployer] Watching new file: 
file:/C:/Java/jboss-4.0.3RC1/server/mycompany/deploy/udbms-server-ws.war
  | 13:12:53,593 DEBUG [MainDeployer] create step for deployment 
file:/C:/Java/jboss-4.0.3RC1/server/mycompany/deploy/udbms-server-ws.war
  | 13:12:53,593 DEBUG [ServiceController] Creating service 
jboss.web.deployment:war=udbms-server-ws.war,id=492048131
  | 13:12:53,593 DEBUG [ServiceController] adding depends in 
ServiceController.register: []
  | 13:12:53,593 DEBUG [WebModule] Creating 
jboss.web.deployment:war=udbms-server-ws.war,id=492048131
  | 13:12:53,593 DEBUG [WebModule] Created 
jboss.web.deployment:war=udbms-server-ws.war,id=492048131
  | 13:12:53,593 DEBUG [ServiceController] Creating dependent components for: 
jboss.web.deployment:war=udbms-server-ws.war,id=492048131 dependents are: []
  | 13:12:53,593 DEBUG [ServiceDeployer] handleNotification: 
org.jboss.deployment.SubDeployer.create,udbms-server-ws.war
  | 13:12:53,734 DEBUG [MainDeployer] Done with create step of deploying 
udbms-server-ws.war
  | 13:12:53,734 DEBUG [MainDeployer] Begin deployment start 
file:/C:/Java/jboss-4.0.3RC1/server/mycompany/deploy/udbms-server-ws.war
  | 13:12:53,734 DEBUG [ServiceController] starting service 
jboss.web.deployment:war=udbms-server-ws.war,id=492048131
  | 13:12:53,734 DEBUG [WebModule] Starting 
jboss.web.deployment:war=udbms-server-ws.war,id=492048131
  | 13:12:53,734 DEBUG [TomcatD

[JBoss-user] [Messaging, JMS & JBossMQ] - Re: jbossmq-state.xml contains ClientIDs for same MDB

2005-09-16 Thread sschmidt
I found navigating this site for an answer to this problem very frustrating and 
confusing, as much was contrdictory and it was often difficult to see which 
version of JBoss it applied to, but the answer I found was that you can specify 
the mdb-user and mdb-passwd tags in the jboss.xml file and to assign the value 
from the mdb-subscription-id tag to the users in jbossmq-state.xml.  This way, 
the mdbs get deployed with a specific ID rather than a system assigned ID that 
might change on a restart.
from jboss.xml...

  | 
  | 
  | myMDB1
  | topic/MDBTopic
  | jane
  | thread
  | myMDB1
  | Standard Message Driven 
Bean
  | 
  | jms/TopicConnectionFactory
  | ConnectionFactory
  | 
  | 
  | jms/MDBTopic
  | topic/MDBTopic
  | 
  | 
  | 
from jbossmq-state.xml


  | 
  | jane
  | thread
  | myMDB1
  | 
  | 
  | 
  | 
  | guest
  | john
  | 
  | 
  | john
  | jane
  | 
  | 
  | john
  | dynsub
  | 
  | 
  | john
  | dynsub
  | jane
  | 
  | 

The durable subscriptions get added to the file on deployment as:

  | 
  | 
  | myMDB1
  | myMDB1
  | MDBTopic
  | 
  | 
  | myMDB2
  | myMDB2
  | MDBTopic
  | 
  | 
  | 
myMDB2 was another one assigned to john.

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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Distinguishing members

2005-09-16 Thread [EMAIL PROTECTED]
Only when the cache is replicated; and started

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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JNDI/Naming/Network] - Re: Starting failed jboss:service=Naming java.lang.ClassCast

2005-09-16 Thread [EMAIL PROTECTED]
More details about the jdk are required. On your jdk the default InitialContext 
environment is seen to contain entries other than the expected string/string 
key/value properties from the server conf/jndi.properties file. Create a bug 
report in jira with the details. Since you have already done some hacking, 
simply dump the env by updating the "InitialContext Environment: " debug line:


  |   Hashtable env = iniCtx.getEnvironment();
  |   if (debug)
  |  log.debug("InitialContext Environment: "+env);
  | 
  | 

and attach the jdk and debug info to the following jira issue:
http://jira.jboss.com/jira/browse/JBAS-2265


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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Re: Problem while accessing Oracle datasource from outside o

2005-09-16 Thread [EMAIL PROTECTED]
Unless there is a bug report/feature request for such issues, its not going to 
move forward. Using a DataSource outside of the server is an anti-pattern as 
far as we are concerned, so unless there is a significant number of requests 
its not much of a priority for improvement.


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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - Override Portlet Renderer Class(es)

2005-09-16 Thread Dan Simon
Is it possible to override the renderer classes used to render a given portlet 
(or perhaps region) within a given portal page?

I know that within the *-portal.xml files you can define a renderer set to be 
used for the entire portal (org.jboss.portal.property.renderSet), but is it 
possible to override this value at a more granular level (page, region, window, 
or portlet)?

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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Advanced Documentation] - I have this problem -- am new to JBoss --- plz help

2005-09-16 Thread jvm_expert
Iam trying to deploy my application on JBoss, I had it on weblogic before, I 
had built  the ear using the same ant script and copied the ear into 
default/deploy folder. Now it gives the following exception, dunno whatz wrong 
... can anyone help ???

10:41:58,702 ERROR [BaseModelMBean] Exception invoking method addChild
java.lang.IllegalArgumentException: 
javacc,ant,commons-collections,log4j,junit-Extension-Name
at java.util.jar.Attributes$Name.(Attributes.java:434)
at java.util.jar.Attributes.getValue(Attributes.java:97)
at 
org.apache.catalina.util.ManifestResource.getRequiredExtensions(ManifestResource.java:199)
at 
org.apache.catalina.util.ManifestResource.processManifest(ManifestResource.java:168)
at org.apache.catalina.util.ManifestResource.(ManifestResource.java:52)
at 
org.apache.catalina.util.ExtensionValidator.validateApplication(ExtensionValidator.java:189)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4187)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
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)

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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: J2EE Client Authenticated but Subject has no Principals

2005-09-16 Thread [EMAIL PROTECTED]
anonymous wrote : The ClientLoginModule only started doing this as of 
jboss-3.2.4 ...

I'm using the ClientLoginModule along with a custom server login module.  The 
sessionContext.getCallerPrincipal() returns the principal I set in the commit 
phase of my custom server login module, the client's 
loginContext.getSubject().getPrincipals(), however, does not show that 
principal.  It only shows the SimplePrincipal with the name passed to the 
NameCallback.  Is there a way to have the ClientLoginModule's Subject 
synchronized with the custom server login module's Subject.?

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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: web app deployment

2005-09-16 Thread jopaki
Ok, it works BUT there is an important unstated requirement:  

the app directory name must end in .war.

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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Tomcat, HTTPD, Servlets & JSP] - classloader issue on jboss3.2.2 for tomcat4.1

2005-09-16 Thread liobod
Hello world,
 
For some reason, i had to change default conf of my jboss 3.2.2 in order to 
avoid the use of jboss class loader.
It's now set in [jboss]\deploy\jbossweb-tomcat41.sar\META-INF\jboss-service.xml 
in this way :
false  

The problem is now my webapp does not even see/load my jars in my 
war/WEB-INF/lib

What's the hint?

Please help,

thx


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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: JB's Developer Notebook - Omission and Error

2005-09-16 Thread [EMAIL PROTECTED]
Ok, that's a relief.  Since you are in Austin, if you have any 
questions/comments about the book, you can catch me at the Austin Java User's 
Group.  (http://www.austinjug.org/)  I'm there every month I'm in town, and I'm 
always eager to hear about what readers liked/disliked about the book. 

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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - JBossWS doesn't seem to pick up my webservice

2005-09-16 Thread platinumdragon
I am attempting to deploy my web application using JAX-WS 2.0 and JBoss 4.0.3.  
I have the WEB-INF/web.xml and WEB-INF/webservices.xml (I'll post if it will 
help).  As you can see below from the log, my web app (udbms-server-ws.war) is 
being picked up, but I don't see anywhere where the WSDL is being processed.  
The only thing I can see that I'm doing differently from the tutorials, is that 
there is no mapping file (JAX-WS 2.0 doesn't seem to have the option of 
producing one).  Could this be the problem, or is it likely something else I'm 
not doing?

Thanks,
Mike


  | 08:56:07,970 DEBUG [MainDeployer] Starting deployment of package: 
file:/C:/Program Files/jboss-4.0.3RC1/server/default/deploy/udbms-server-ws.war
  | 08:56:07,970 DEBUG [MainDeployer] Starting deployment (init step) of 
package at: file:/C:/Program 
Files/jboss-4.0.3RC1/server/default/deploy/udbms-server-ws.war
  | 08:56:07,970 DEBUG [MainDeployer] Copying file:/C:/Program 
Files/jboss-4.0.3RC1/server/default/deploy/udbms-server-ws.war -> C:\Program 
Files\jboss-4.0.3RC1\server\default\tmp\deploy\tmp34836udbms-server-ws.war
  | 08:56:08,001 DEBUG [MainDeployer] using deployer 
MBeanProxyExt[jboss.web:service=WebServer]
  | 08:56:08,001 DEBUG [Tomcat5] Begin init
  | 08:56:08,001 DEBUG [Tomcat5] Unpacking war to: C:\Program 
Files\jboss-4.0.3RC1\server\default\tmp\deploy\tmp34836udbms-server-ws-exp.war
  | 08:56:08,392 DEBUG [Tomcat5] Replaced war with unpacked contents
  | 08:56:08,392 DEBUG [Tomcat5] webContext: null
  | 08:56:08,392 DEBUG [Tomcat5] warURL: file:/C:/Program 
Files/jboss-4.0.3RC1/server/default/tmp/deploy/tmp34836udbms-server-ws-exp.war/
  | 08:56:08,407 DEBUG [Tomcat5] End init
  | 08:56:08,407 DEBUG [DeploymentInfo] createLoaderRepository from config: 
LoaderRepositoryConfig(repositoryName: 
JMImplementation:service=LoaderRepository,name=Default, repositoryClassName: 
null, configParserClassName: null, repositoryConfig: null)
  | 08:56:08,407 DEBUG [UnifiedClassLoader] New jmx UCL with url 
file:/C:/Program 
Files/jboss-4.0.3RC1/server/default/tmp/deploy/tmp34836udbms-server-ws-exp.war/
  | 08:56:08,407 DEBUG [RepositoryClassLoader] setRepository, [EMAIL 
PROTECTED], [EMAIL PROTECTED] url=file:/C:/Program 
Files/jboss-4.0.3RC1/server/default/tmp/deploy/tmp34836udbms-server-ws-exp.war/ 
,addedOrder=0}
  | 08:56:08,407 DEBUG [RepositoryClassLoader] setRepository, [EMAIL 
PROTECTED], [EMAIL PROTECTED] url=file:/C:/Program 
Files/jboss-4.0.3RC1/server/default/tmp/deploy/tmp34836udbms-server-ws-exp.war/ 
,addedOrder=0}
  | 08:56:08,407 DEBUG [UnifiedLoaderRepository3] Adding [EMAIL PROTECTED] 
url=file:/C:/Program 
Files/jboss-4.0.3RC1/server/default/tmp/deploy/tmp34836udbms-server-ws-exp.war/ 
,addedOrder=0}
  | 08:56:08,407 DEBUG [MainDeployer] found 0 subpackages of file:/C:/Program 
Files/jboss-4.0.3RC1/server/default/deploy/udbms-server-ws.war
  | 08:56:08,407 DEBUG [MainDeployer] Watching new file: file:/C:/Program 
Files/jboss-4.0.3RC1/server/default/deploy/udbms-server-ws.war
  | 08:56:08,407 DEBUG [MainDeployer] create step for deployment 
file:/C:/Program Files/jboss-4.0.3RC1/server/default/deploy/udbms-server-ws.war
  | 08:56:08,407 DEBUG [ServiceController] Creating service 
jboss.web.deployment:war=udbms-server-ws.war,id=-1676855006
  | 08:56:08,407 DEBUG [ServiceController] adding depends in 
ServiceController.register: []
  | 08:56:08,423 DEBUG [WebModule] Creating 
jboss.web.deployment:war=udbms-server-ws.war,id=-1676855006
  | 08:56:08,423 DEBUG [WebModule] Created 
jboss.web.deployment:war=udbms-server-ws.war,id=-1676855006
  | 08:56:08,423 DEBUG [ServiceController] Creating dependent components for: 
jboss.web.deployment:war=udbms-server-ws.war,id=-1676855006 dependents are: []
  | 08:56:08,423 DEBUG [MainDeployer] Done with create step of deploying 
udbms-server-ws.war
  | 08:56:08,439 DEBUG [MainDeployer] Begin deployment start file:/C:/Program 
Files/jboss-4.0.3RC1/server/default/deploy/udbms-server-ws.war
  | 08:56:08,439 DEBUG [ServiceController] starting service 
jboss.web.deployment:war=udbms-server-ws.war,id=-1676855006
  | 08:56:08,439 DEBUG [WebModule] Starting 
jboss.web.deployment:war=udbms-server-ws.war,id=-1676855006
  | 08:56:08,439 DEBUG [TomcatDeployer] webContext: null
  | 08:56:08,454 DEBUG [TomcatDeployer] warURL: file:/C:/Program 
Files/jboss-4.0.3RC1/server/default/tmp/deploy/tmp34836udbms-server-ws-exp.war/
  | 08:56:08,454 DEBUG [TomcatDeployer] webAppParser: [EMAIL PROTECTED]
  | 08:56:08,454 DEBUG [WebPermissionMapping] Qualified url patterns: 
{/=PatternInfo[pattern=/,type=3,isOverriden=false,qualifiers=[]]}
  | 08:56:08,454 INFO  [TomcatDeployer] deploy, ctxPath=/udbms-server-ws, 
warUrl=file:/C:/Program 
Files/jboss-4.0.3RC1/server/default/tmp/deploy/tmp34836udbms-server-ws-exp.war/
  | 08:56:08,454 DEBUG [TomcatDeployer] 
AbstractWebContainer.parseWebAppDescriptors, Begin
  | 08:56:08,470 DEBUG [TomcatDeployer] Creating ENC using ClassLoader: [EMAIL 
PROTECTED]
  | 08:56:

[JBoss-user] [JBossCache] - Re: Distinguishing members

2005-09-16 Thread Motormind
"[EMAIL PROTECTED]" wrote : TreeCache.getLocalAddress() return an instance of 
org.jgroups.stack.IpAddress. The problem is that JBoss already uses the 
additional bytes to stick the logical node name into the IpAddress...

Hmm.. TreeCache.getLocalAddress() actually returns a null on my system

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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: EJB on jboss4.0.3 - HELP

2005-09-16 Thread darranl
"achetan" wrote : 
  | Please suggest which i should go for?
  | 

RC means Release Candidate i.e. It could be released as a production release 
but there may be other issues found that need to be addressed before it can be 
released.

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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Distinguishing members

2005-09-16 Thread [EMAIL PROTECTED]
TreeCache.getLocalAddress() return an instance of org.jgroups.stack.IpAddress. 
The problem is that JBoss already uses the additional bytes to stick the 
logical node name into the IpAddress...

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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: ws4ee-client not bound

2005-09-16 Thread Jana
The samples were really helpfull. So, in my case it is an app client so I 
packed a jar with application-client.xml and jboss-client.xml in the META-INF.
After deploying I can see the service via JNDI.

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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Distinguishing members

2005-09-16 Thread Motormind
"[EMAIL PROTECTED]" wrote : You can attach some bytes to a JGroups IpAddress, 
check out HAPartitionImpl in JBoss for how to do this

I thought about that, but didn't see a way to obtain the IP-address & port of a 
process that uses the cache. 

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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Distinguishing members

2005-09-16 Thread [EMAIL PROTECTED]
You can attach some bytes to a JGroups IpAddress, check out HAPartitionImpl in 
JBoss for how to do this

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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Problems with a primary-key from an entity-bean

2005-09-16 Thread Oliver Roell
Hi,

I am using JBoss 4.0.2 with the embedded HSQLDB, and I have written an 
entity-bean with a specific Primary-Key-Compound-class, and it doesn't work. 
All my other entity-beans with Integer or String as PK work well.

This is my PK-class:

public class RecipePosPK {
public int recipeId;
public int position;

public RecipePosPK() { }

public boolean equals(Object obj) {
if (this.getClass().equals(obj.getClass())) {
RecipePosPK other = (RecipePosPK) obj;
return (this.recipeId == other.recipeId
 && this.position == other.position);
}
return false;
}

public int hashCode() {
return(("" + recipeId + position).hashCode());
}
}

And this is an excerpt from my Entity-Bean-class:

/**
 * Create method
 * @ejb.create-method  view-type = "local"
 */
public RecipePosPK ejbCreate(int recipeID, RecipePos pos) 
throws javax.ejb.CreateException {

RecipePosPK key = new RecipePosPK();
key.recipeId = recipeID;
key.position = pos.getPos();
setRecipePosPK(key);

setSide(pos.getSide());
setWorkDesc(pos.getWorkDesc());
setMachine(pos.getMachine());
setCount(pos.getCount());
setColor(pos.getColor());
setRecipeDesc(pos.getRecipeDesc());
setComment(pos.getComment());
return null;
}

/**
 * Post Create method
 */
public void ejbPostCreate(int recipeID, RecipePos pos) 
throws javax.ejb.CreateException {
}

/**
 * Getter for CMP Field recipePosPK
 *
 * @ejb.pk-field
 * @ejb.persistent-field
 * @ejb.interface-method   view-type="local"
 */
public abstract entitybeans.interfaces.RecipePosPK getRecipePosPK();
public abstract void setRecipePosPK(entitybeans.interfaces.RecipePosPK 
value);


When I deploy this entity-bean in JBoss, the following exception was thrown 
from the app-server:

Starting failed jboss.j2ee:jndiName=RecipeDescLocal,service=EJB
org.jboss.deployment.DeploymentException: Error while creating table RECIPEPOS; 
- nested throwable: 
(java.sql.SQLException: Unexpected token: ) in statement 
[CREATE TABLE RECIPEPOS (recipePosPK VARCHAR(100), side VARCHAR(100), workDesc 
VARCHAR(100), machine VARCHAR(100), count VARCHAR(100), color VARCHAR(100), 
recipeDesc VARCHAR(100), comment VARCHAR(100), CONSTRAINT PK_RECIPEPOS PRIMARY 
KEY ()])


I am not sure whether the PK-class is responsible for the error, but I think 
so, because it's the only entity-bean that does not work, and it's my first 
entity-bean with a PK-compound-class, so I think, that the PK-class is the 
cause of the error.

Could anyone please check my code and give me an advice?

I don't know whether my handling of the PK-compound-class is correct.

Thanks in advance.

Regards,
Oliver


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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Transactional behavior when creating new nodes

2005-09-16 Thread dpinkney
Hello,
First, thanks for putting this great project out.

I have a question regarding transaction behavior when creating new nodes. I'm 
trying to figure out how to atomically create a node and update it within a 
single transaction.  Using a REPEATABLE_READ transaction level, the assertion 
on line 8 below fails if node "/a/b" does not exist - is this expected?  

The behavior I was expecting is that one of the transactions would throw an 
exception on commit, such that only one transaction modified the node.  If node 
"/a/b/" exists at the start, then thread 2 will get an exception trying to 
upgrade the read lock on line 6.


  |  T1 T2
  | 1  tx1.begin()
  | 2  tx2.begin()
  | 3  get("/a/b", "foo")  get("/a/b", "foo")
  | 4  put("/a/b", "foo", "bar")
  | 5  tx1.commit()
  | 6  put("/a/b", "foo", "qux")
  | 7  tx2.commit()
  | 
  | 8 assertEquals("bar", get("/a/b", "foo"))
  | 

Thanks,
--
dave

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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Distinguishing members

2005-09-16 Thread Motormind
I have two sorts of processes using a certain cache: some non-interactive 
(functioning more like servers) and interactive ones with a gui. How can I 
distinguish between the two when I see a view change? I tried to distinguish by 
hostname, but that is not possible since both the clients and the servers can 
run on the same machine. Then I tried to distinguish by port namne, but I have 
no idea how a member can find out its own port under which it made a cache.

Does anyone have any insights? Thanks in advance!

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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: JBOSS and ADF FACES

2005-09-16 Thread mtigua
OK. Thanks!

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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Getting Started Documentation] - Re: use an EJB as client of a web service

2005-09-16 Thread Jana
The same here... :(

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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: JB's Developer Notebook - Omission and Error

2005-09-16 Thread arnieAustin
My bad...I had been using mySQL with other tools and IDEs so I knew it was 
working. But JBoss didn't have a copy of the jdbc driver in its /lib folder.

DOH! But it is really odd that it would say it had a db table creation error 
when it could even communicate with the db!

Looks like something wasn't coming to the surface. Argh.

All fine now.

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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - JBoss Portal versus Zope

2005-09-16 Thread nareshag
Hi,

I am a researcher from Singapore. I need to evaluate JBoss Portal and Zope for 
use in a university module.

I'd be grateful if you could kindly help me answer these (possibly w.r.t. both 
JBoss Portal and Zope), or from the perspective of JBoss Portal.

1. Are they portal framework? 
2. Can they be used to deploy Java web application? Concept of portlet exists? 
3. User management. Do they have APIs to query user information from third part 
software? 
4. web service capable. This is for interoperability across different 
programming languages 
5. portal development ? can they be used to create portals? 
6. application integration ? can be they used to integrate 3rd party software 
applications? 

Thank you so much.

Warm regards,
Naresh

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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - Re: JBoss portal table doesn't exist - Starting failed porta

2005-09-16 Thread [EMAIL PROTECTED]
And from the documentation: 
http://docs.jboss.com/jbportal/v2.0Final/user-guide/en/html/installation.html#d0e679

"If you encounter that the Hibernate dialect is not working properly and would 
like to override the default behaviour, you simply need to modify 
jboss-portal.sar/conf/hibernate/hibernate.cfg.xml."

That's if you don't want to use the autodetection.


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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - Re: JBoss portal table doesn't exist - Starting failed porta

2005-09-16 Thread [EMAIL PROTECTED]
"litherm" wrote : 
  | There are other problems as well.  The install says: 
  | >The downloaded archive contains the following files:
  | >
  | >* jboss-portal.sar
  | >* portal-forums.ear
  | >* /setup/portal-*-ds.xml 
  | 

portal-forums in now available from another archive.
jboss-portal.sar and /setup/portal-*-ds.xml are available in the binary package.
(.sar as a compressed file or a directory does not make any difference inside 
JBoss)

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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - How to get access to OracleDriver java.sql implementations ?

2005-09-16 Thread preitsma
Hi,

I am working on JBoss 4.0.2. and configured a local tx datasource to an Oracle 
9.2 database using Oracle's ojdbc14 driver of same version.

I managed to get a handle to the java.oracle.BLOB using this code.

rs = pstmt.executeQuery();
  | rs.next(); 
  |  
  | //fetch the underlying resultset from the JBoss Wrap
  | ResultSet underlyingResultSet = 
((org.jboss.resource.adapter.jdbc.WrappedResultSet)rs).getUnderlyingResultSet();
  |
  | //then cast to the OracleResultSet to get an Oracle BLOB
  | oracle.sql.BLOB blob  = 
((oracle.jdbc.driver.OracleResultSet)underlyingResultSet).getBLOB("BLOB");

However, this doesn't work anymore. 

For some reason I now get Classcast exceptions. It seems that all java.sql 
classes like the Connection, ResultSet, PreparedStatement and even the 
DataSource suddenly are dynamic proxies which can't be cast to anything except 
the interface they implement. Where are the wrappers ?

How can I get access to the Oracle classes and still use a datasource 
configuration ? 
Do I need to use the XADatasource and a ConnectionPoolDataSource? 
Or does anybody know if and how it is possible to insert an Oracle BLOB using 
plain JDBC ?


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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - Re: JBoss portal table doesn't exist - Starting failed porta

2005-09-16 Thread litherm
Hi again,

It looks like the "right" place to configure your hibernate for portal is in 
this file:

jboss-portal.sar/conf/hibernate/hibernate.cfg.xml

I would ask someone at JBoss to please update their docs to include this 
information as well as other incorrect information about the portal install.

Thanks,
M Litherland

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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - Re: JBoss portal table doesn't exist - Starting failed porta

2005-09-16 Thread litherm
Hi,

I'm having the same problem trying to get JBoss Portal installed.  As far as 
I'm concerned it is a portal problem if I'm following the install instructions 
and it neglects to mention something like this that prevents the product from 
working.

There are other problems as well.  The install says: 
>The downloaded archive contains the following files:
>
>* jboss-portal.sar
>* portal-forums.ear
>* /setup/portal-*-ds.xml 

But that looks nothing like what the zip file contains.  In reality it contains 
a directory called "jboss-portal.sar" and none called "portal-forums.ear".  So 
right off the bat we know there's an issue with the documentation.

At any rate, I can't find anywhere that tells me the right place to set the 
hibernate.property dialect.  There are .properties files all over the place and 
it would be nice to know that I'm doing things the right way instead of 
fumbling around until it works.

Thanks,


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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Re: Problem while accessing Oracle datasource from outside o

2005-09-16 Thread Joster
To be honest we tried to use JBoss datasources outside JBoss and it was a 
disaster.

The performance were so slow very SLO. The problem was within the 
while(rs.next()).
-  0.5s using JDBC instantiation ( DriverManager)
- 15s with JBoss datasource !

No way to fix this issue.

We decided to use c3p0

We are not very happy with JBoss regarding this issue and we've problems with 
the xa ds. Maybe it should be better to fix the existing code instead of 
developing new trendy stuff.

J.



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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Session bean hangs when sending message

2005-09-16 Thread FrereTuck
"Thread-29" daemon prio=1 tid=0x086bb7d8 nid=0x5187 in Object.wait() 
[8e603000..8e6038c8]
at java.lang.Object.wait(Native Method)
- waiting on <0x4b110c70> (a 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Object.wait(Object.java:429)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:595)
- locked <0x4b110c70> (a 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Thread.run(Thread.java:534)

"Thread-28" daemon prio=1 tid=0x086bb5c8 nid=0x5186 in Object.wait() 
[8c601000..8c6018c8]
at java.lang.Object.wait(Native Method)
- waiting on <0x4b110ce8> (a 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Object.wait(Object.java:429)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:595)
- locked <0x4b110ce8> (a 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Thread.run(Thread.java:534)

"Connection Monitor Thread" daemon prio=1 tid=0x090c4948 nid=0x439f waiting for 
monitor entry [8e98a000..8e98a8c8]
at org.jboss.mq.il.oil.OILServerIL.ping(OILServerIL.java:421)
- waiting to lock <0x4d407f18> (a org.jboss.mq.il.oil.OILServerIL)
at org.jboss.mq.Connection.pingServer(Connection.java:1141)
at org.jboss.mq.Connection$PingTask.run(Connection.java:1307)
at 
EDU.oswego.cs.dl.util.concurrent.ClockDaemon$RunLoop.run(ClockDaemon.java:364)
at java.lang.Thread.run(Thread.java:534)

"RMI LeaseChecker" daemon prio=1 tid=0x091daaa0 nid=0x3cbc waiting on condition 
[8e684000..8e6848c8]
at java.lang.Thread.sleep(Native Method)
at sun.rmi.transport.DGCImpl$LeaseChecker.run(DGCImpl.java:307)
at java.lang.Thread.run(Thread.java:534)

"Thread-27" daemon prio=1 tid=0x09123c30 nid=0x3b07 runnable 
[89a05000..89a068c8]
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
- locked <0x4d41eb60> (a java.io.BufferedInputStream)
at 
java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2133)
at 
java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(ObjectInputStream.java:2313)
at 
java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStream.java:2380)
at 
java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:2452)
at 
java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputStream.java:2601)
at java.io.ObjectInputStream.readByte(ObjectInputStream.java:845)
at org.jboss.mq.il.oil.OILServerIL.waitAnswer(OILServerIL.java:601)
at org.jboss.mq.il.oil.OILServerIL.addMessage(OILServerIL.java:219)
- locked <0x4d41e9d8> (a org.jboss.mq.il.oil.OILServerIL)
at org.jboss.mq.Connection.sendToServer(Connection.java:1243)
at org.jboss.mq.SpySession.sendMessage(SpySession.java:729)
at org.jboss.mq.SpyQueueSender.internalSend(SpyQueueSender.java:118)
at org.jboss.mq.SpyQueueSender.send(SpyQueueSender.java:68)
at 
com.questel.jeddy.session.EddySessionBean.placeEddyOrder(EddySessionBean.java:119)
at 
com.questel.jeddy.session.EddySessionBean.placeOrder(EddySessionBean.java:72)
at sun.reflect.GeneratedMethodAccessor257.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:683)
at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)
at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
at 
org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:144)
at 
org.jboss.ejb.plugins.TxInterceptorBMT.invoke(TxInterceptorBMT.java:62)
at 
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:72)
at 
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:118)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
at 
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
at 
org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:331)
at org.jboss.ejb.Container.invoke(Container.java:700)
at sun.reflect.GeneratedMethodAccessor51.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMetho

[JBoss-user] [JBossWS] - Minimal ws4ee deployment

2005-09-16 Thread dannox02
We are using JBoss 4.0.2 as our application server, but at this only need bare 
bones installation. We have removed all the files from the 
server/default/deploy/ directory except the jbossweb-tomcat55.sar which leaves 
with enough to serve up JSP/JSF etc.

Now we are adding web service support, so I've added in jboss-ws4ee.sar. This 
works fine, and my services deploy etc. but on startup I get the following 
error:

08:02:19,765 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

--- MBeans waiting for other MBeans ---
ObjectName: jboss.ws4ee:service=ServiceDeployerEJB
  State: CONFIGURED
  I Depend On:
jboss.ejb:service=EJBDeployer
jboss.system:service=MainDeployer

--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss.ejb:service=EJBDeployer
  State: NOTYETINSTALLED
  Depends On Me:
jboss.ws4ee:service=ServiceDeployerEJB

I've tried figuring out what other files I need to deploy, but just end up with 
more dependancies.

What else do I need to deploy?

Thanks,

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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Some remote clients not receiving messages

2005-09-16 Thread srose
anyone else have this problem? Or any ideas what it could be ?

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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - EJB on jboss4.0.3 - HELP

2005-09-16 Thread achetan
Hi all,

I have an application currently running on jboss4.0.1 . Now i want to migrate 
to 4.0.2 or 4.0.3(RC) .

Please suggest which i should go for?

Also on 4.0.2/4.0.3 when i am trying to create a stateless session bean using 
home.create() method , i am getting following exception on client side:

java.rmi.ServerException: Could not get EJBObject; nested exception is: 
java.lang.NullPointerException

at 
org.jboss.proxy.ejb.handle.StatefulHandleImpl.getEJBObject(StatefulHandleImpl.java:159)

Please somebody help.
Thanks 
Chetan


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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: Yet another Class Loader problem - Please Help

2005-09-16 Thread gulaplaarajasekhar
I have to try it now and see it.

Thanks


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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: java.lang.NullPointerException

2005-09-16 Thread kalipannan
Hey, I am really sorry for wasting so much of you guys' time. I found the 
mistake.. How silly and dumb of me. I am closing the connection myself in the 
finally block...

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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: SOAPConnection Problem

2005-09-16 Thread Jonathan.Martin
OK,
The previous problem seems to be my fault, beleive it or not :-) I had forgot 
to tell my ide not to package the dependant jars into the web-app and therefore 
had loads of unwelcome stuff in my lib directory.

Now I seem to be getting the original problem, I cannot make a call from the 
connection object, and I cant get it to throw an exception. It doesnt matter 
what the value in the URL object is it always  continues through till it thinks 
it has completed succesfully. When in fact the URL value I have never existed ?

Again any comments would be useful.

Cheers,

JonnyEmm.

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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Running JBoss under Linux

2005-09-16 Thread darranl
Can you post the top section of the ejb-jar.xml that is packaged within your 
jar.

It looks as if you might have specified an invalid DOCTYPE

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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: I have problems running an example HelloWorldTest. It do

2005-09-16 Thread gulaplaarajasekhar
The information given is not enough.Can you please provide more??



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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: ManyToOne question

2005-09-16 Thread gulaplaarajasekhar
I am not sure, but it seems that the relationships are configured in the 
web.xml.

Thanks



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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: web app deployment

2005-09-16 Thread gulaplaarajasekhar
jopaki,


   You just have to copy that particular directory in the  webapp/ directory. 

  Now start the jboss and see it the browser.

Thanks

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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: standalone EJB client and JASS

2005-09-16 Thread wats
When I try to use DatabaseServerLoginModule defined in the following local 
myLogin.conf file


  | ehelp {
  | org.jboss.security.auth.spi.DatabaseServerLoginModule required
  | dsJndiName="java:/PostgresDS"
  | principalsQuery="select hashedpassword from EMPLOYEES where login=?"
  | rolesQuery="select privelages, 'Roles' from EMPLOYEES where login=?"
  | unauthenticatedIdentity=VIEWER
  | hashAlgorithm=MD5
  | hashEncoding=BASE64
  | ;
  | }
  | 

the following exception occurs when executing "lc.login();"


  | javax.security.auth.login.LoginException: 
javax.naming.NameNotFoundException: PostgresDS not bound
  | 

Now, I'm not sure whether it is allowed to access JCA DataSource outside of the 
application server at all...

Martin.

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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: standalone EJB client and JASS

2005-09-16 Thread jaikiran
Ya, you are right, that code wont be working for the requirement you are 
mentioning.

"wats" wrote : I tried using DatabaseServerLoginModule, but it seems it is not 
able to acces the DataSource in the application server. 
  | 

Whats the exact problem you are facing while using DatabaseServerLoginModule. 
Can you post relevant extracts from your jaas login code?

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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: standalone EJB client and JASS

2005-09-16 Thread wats
Hello,

Thanks jaikiran for your help, but the solution you posted is not what I was 
looking for. I was using similiar code in my app (ClientLoginModule etc.) and 
also tested yours, but the authentication seems to work every time, whatever 
the login/pass values are. If the login information is not valid there is an 
Authentication failure exception, but only after I try to access EJB methods. I 
would rather that the exception occured after:


  | lc.login();
  | 

Is there an easy way to accomplish that ?


I'm using DynamicLoginConfig with DatabaseServerLoginModule on the server

ehelp-login-service.xml

  | 
  | ehelp-login-config.xml
  | 
  | jboss.security:service=XMLLoginConfig
  | 
  | 
  | jboss.security:service=JaasSecurityManager
  | 
  | 
  | 

ehelp-login-config.xml

  | 
  | 
  | 
  | 
  | VIEWER
  | java:/PostgresDS
  | 
  | select hashedpassword from EMPLOYEES where login=?
  | 
  | 
  | select privelages, 'Roles' from EMPLOYEES where login=?
  | 
  | MD5
  | BASE64
  | 
  | 
  | 
  | 
  | 

Thanks in advance...
Martin.

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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Tomcat, HTTPD, Servlets & JSP] - Examples with EJB3

2005-09-16 Thread infodavid
Hello,

Is there some examples using JSP and servlets with EJB3 ?

Thanks.

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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration & Deployment] - Re: JBoss 4.0.1 (on debian) startup stalls on jdk1.5, ok on

2005-09-16 Thread irahayes
My mistake - it's JBoss 4.0.2

I've been looking at the screen for too long :(

Cheers

Andy

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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: SOAPConnection Problem

2005-09-16 Thread Jonathan.Martin
Im sure this is turning into a silly question, but here goes.

I took a step back and have written a servlet outside the world of struts which 
when called calls:

SOAPConnectionFactory soapConnectionFactory = 
SOAPConnectionFactory.newInstance();
SOAPConnection connection = soapConnectionFactory.createConnection();
connection.call(messageFactory.createMessage(),new URL("http://:8080/soapservice/listener"));
connection.close();


This now produces the error message:
Failed to create SOAPConnectionFactory: 
org.jboss.webservice.soap.SOAPConnectionFactoryImpl


I'm not really sure why this is happening, especially when the same code works 
inside an EJB.

Im presuming now that this same exception is being thrown inside my Action 
class but is being caught/wrapped by the strutts environment and isn't rethrown 
to the caller/client.

Any suggestions would be appreciated as I dont really want to seperate this 
piece of client code into a seperate EJB as it isnt quite logical.

Cheers,

JonnyEmm

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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JNDI/Naming/Network] - Re: Starting failed jboss:service=Naming java.lang.ClassCast

2005-09-16 Thread jjvangils
I did the following to get this working (JBoss 4.0.2). I'm still hoping for a 
better way though, or an explanation why it failed in the first place.

In NamingService.java (\server\src\main\org\jboss\naming), change the line:
String value = (String) env.get(key);
into:
String value = env.get(key).toString();



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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: standalone EJB client and JASS

2005-09-16 Thread jaikiran
Hi,
 You can use the "client-login" LoginModule for the JAAS login. As you mention, 
that this is a standalone client accessing an ejb, you would require a file(say 
myLogin.conf) containing the login modules as follows:

 client-login{
  |org.jboss.security.ClientLoginModule required;
  |};
  | 
  |other{
  |org.jboss.security.auth.spi.UsersRolesLoginModule required;
  |};

In your code, you will do a JAAS login as follows:


final String authFile = "myLogin.conf";
  | System.setProperty("java.security.auth.login.config", authFile);

  | //System.setProperty("java.security.auth.login.config","jaas.crm");
  | MyCallbackHandler handler = new 
MyCallbackHandler(userName,password);
  | LoginContext lc = new LoginContext("client-login",handler);
  | lc.login();

You would require a callback handler which will verify the username and 
password:

public class MyCallbackHandler implements CallbackHandler {
  |  
  | /**
  |  * Username which will be set in the NameCallback, when NameCallback is 
handled
  |  */
  | private String username;
  |
  | /**
  |  * Password which will be set in the PasswordCallback, when 
PasswordCallback is handled
  |  */
  | private String password; 
  | 
  | /**
  |  * Constructor 
  |  * @param username The username 
  |  * @param password The password
  |  */
  | public MyCallbackHandler(String username, String password) { 
  | this.username = username; 
  | this.password = password; 
  | } 
  | 
  | /**
  |  * @param callbacks Instances of Callbacks
  |  * @throws IOException IOException 
  |  * @throws UnsupportedCallbackException If Callback is other than 
NameCallback or PasswordCallback
  |  */
  | public void handle(Callback[] callbacks) throws IOException, 
UnsupportedCallbackException { 
  | 
  | for (int i = 0; i < callbacks.length; i++) { 
  | if (callbacks instanceof NameCallback) {
  | //if the Callback is for NameCallback, then set the name of 
the NameCallback to 'userName'
  | NameCallback nc = (NameCallback) callbacks; 
  | nc.setName(username);
  | 
  | } else if (callbacks instanceof PasswordCallback) { 
  | //if the Callback is for PasswordCallback, then set the 
name of the PasswordCallback to 'password'
  | PasswordCallback pc = (PasswordCallback) callbacks; 
  | pc.setPassword(password.toCharArray());
  | 
  | } else {
  | //if Callback is NOT NameCallback or PasswordCallback then 
throw UnsupportedCallbackException
  | throw new UnsupportedCallbackException(callbacks, 
"Unrecognized Callback"); 
  | } 
  | } 
  | }
  | }



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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration & Deployment] - JBoss 4.0.1 (on debian) startup stalls on jdk1.5, ok on jdk1

2005-09-16 Thread irahayes
This has been bugging me for a couple of days now... 

I have a cheap "virtual" server run by an ISP which we use to stage 
applications.

When I start jboss using the sun j2sdk1.4.2_09 the server starts up ok.

When I use the sun jdk1.5.0_04, the startup process "stalls" at a random point 
in the startup process (not always the same point - just somewhere before the 
applications are deployed).

The CLASSPATH environmen variable is blank.  JAVA_HOME is set to the relevant 
jdk root directory and JBOSS_HOME is also set.

This is a "fresh" install, I'm trying to start the default server.  The only 
changes I've made are to set the tomcat parent loader and unified class loader 
elements to true in the tomcat jboss-service.xml file (not that chaning those 
values back makes any difference...).

The console output looks like:
=
  | 
  |   JBoss Bootstrap Environment
  | 
  |   JBOSS_HOME: /home/reds/sync/pkgs/jboss-4.0.2
  | 
  |   JAVA: /home/reds/pkgs/java/jdk1.5.0_04/bin/java
  | 
  |   JAVA_OPTS: -server -Xms128m -Xmx128m -Dprogram.name=run.sh
  | 
  |   CLASSPATH: 
/home/reds/sync/pkgs/jboss-4.0.2/bin/run.jar:/home/reds/pkgs/java/jdk1.5.0_04/lib/tools.jar
  | 
  | =
  | 
  | 08:47:17,222 INFO  [Server] Starting JBoss (MX MicroKernel)...
  | 08:47:17,227 INFO  [Server] Release ID: JBoss [Zion] 4.0.2 (build: 
CVSTag=JBoss_4_0_2 date=200505022023)
  | 08:47:17,229 INFO  [Server] Home Dir: /home/reds/sync/pkgs/jboss-4.0.2
  | 08:47:17,230 INFO  [Server] Home URL: file:/home/reds/sync/pkgs/jboss-4.0.2/
  | 08:47:17,232 INFO  [Server] Library URL: 
file:/home/reds/sync/pkgs/jboss-4.0.2/lib/
  | 08:47:17,236 INFO  [Server] Patch URL: null
  | 08:47:17,237 INFO  [Server] Server Name: default
  | 08:47:17,238 INFO  [Server] Server Home Dir: 
/home/reds/sync/pkgs/jboss-4.0.2/server/default
  | 08:47:17,239 INFO  [Server] Server Home URL: 
file:/home/reds/sync/pkgs/jboss-4.0.2/server/default/
  | 08:47:17,241 INFO  [Server] Server Data Dir: 
/home/reds/sync/pkgs/jboss-4.0.2/server/default/data
  | 08:47:17,242 INFO  [Server] Server Temp Dir: 
/home/reds/sync/pkgs/jboss-4.0.2/server/default/tmp
  | 08:47:17,243 INFO  [Server] Server Config URL: 
file:/home/reds/sync/pkgs/jboss-4.0.2/server/default/conf/
  | 08:47:17,245 INFO  [Server] Server Library URL: 
file:/home/reds/sync/pkgs/jboss-4.0.2/server/default/lib/
  | 08:47:17,322 INFO  [Server] Root Deployment Filename: jboss-service.xml
  | 08:47:17,346 INFO  [Server] Starting General Purpose Architecture (GPA)...
  | 08:47:19,095 INFO  [ServerInfo] Java version: 1.5.0_04,Sun Microsystems Inc.
  | 08:47:19,097 INFO  [ServerInfo] Java VM: Java HotSpot(TM) Server VM 
1.5.0_04-b05,Sun Microsystems Inc.
  | 08:47:19,098 INFO  [ServerInfo] OS-System: Linux 2.4.25-1um,i386
  | 08:47:21,633 INFO  [Server] Core system initialized
  | 08:47:32,801 INFO  [Log4jService$URLWatchTimerTask] Configuring from URL: 
resource:log4j.xml
  | 08:47:35,601 INFO  [WebService] Using RMI server codebase: 
http://openiaa2.miniserver.com:8083/
  | 08:47:36,954 INFO  [NamingService] Started jndi bootstrap jnpPort=1099, 
rmiPort=1098, backlog=50, bindAddress=/0.0.0.0, Client SocketFactory=null, 
Server [EMAIL PROTECTED]
  | 08:47:55,587 INFO  [Embedded] Catalina naming disabled
  | 

I'm running out of things to try, anyone have any suggestions?

Thanks

Andy.

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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Expert advice needed:Database users with database security f

2005-09-16 Thread Katukas
We plan to use EJB. In the previous applications we used Oracle DB with oracle 
specific database security features where every user used to have his own 
connection, with specific permissions and so on...
Is there any way to use multiple database users (each user opens it?s own db 
connection) and BMP or CMP? My colleagues argue that there should be a way.  I 
think there is no any way because entity beans are independent of user sessions 
and all BMP beans should work using the same predefined user.
I think the only way to implement this is to use session beans only but this 
will hurt performance, scalability and so on...

One more question: Is there any way to encrypt db user?s password in xml files?


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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Running JBoss under Linux

2005-09-16 Thread alanwang
Hello

An application was developed under JBoss 4.0.1sp1. It is working well under 
windows. But It cannot deploy EJB under Linux.

The error as following


  | 16:48:24,067 ERROR [MainDeployer] could not create deployment: 
file:/home/alanwang/jboss-4.0.1sp1/server/PD/tmp/deploy/tmp45723pdr.ear-contents/catalog.jar
  | org.jboss.deployment.DeploymentException: Unknown PUBLIC id in ejb-jar.xml: 
-//JBoss//DTD JBOSS 3.2//EN
  | at 
org.jboss.metadata.ApplicationMetaData.importEjbJarXml(ApplicationMetaData.java:307)
  | at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:151)
  | at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:484)
  | at org.jboss.deployment.MainDeployer.create(MainDeployer.java:918)
  | at org.jboss.deployment.MainDeployer.create(MainDeployer.java:910)
  | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:774)
  | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
  | at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:324)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
  | at 
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:122)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
  | at 
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
  | at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
  | at $Proxy8.deploy(Unknown Source)
  | at 
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:305)
  | at 
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:481)
  | at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204)
  | at 
org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:277)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
  | at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:324)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
  | at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
  | at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:891)
  | at $Proxy0.start(Unknown Source)
  | at 
org.jboss.system.ServiceController.start(ServiceController.java:416)
  | at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:324)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
  | at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
  | at $Proxy4.start(Unknown Source)
  | at org.jboss.deployment.SARDeployer.start(SARDeployer.java:261)
  | at org.jboss.deployment.MainDeployer.start(MainDeployer.java:964)
  | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:775)
  | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
  | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:722)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 

[JBoss-user] [Management, JMX/JBoss] - Need help with startup service

2005-09-16 Thread scanzano
Hi all,

I have written a MBean service that deploys ok, however, it does not seem that 
the start method is being fired.

Here is the code.

IntaglioUserServerServiceMBean.class and IntaglioUserServerService.class are 
put into a jar file and deployed into the ...\server\default\lib directory

The intaglio-service.xml is deployed to the ..\server\default\deploy directory

I am expecting the System.out.println("\n\n\n Starting the 
IntaglioUserServer...\n\n\n\n");
to fire and I am not seeing it.

Why???



package com.intaglio.userserver.startup;

import org.jboss.system.ServiceMBean;

public interface IntaglioUserServerServiceMBean extends ServiceMBean {

}



package com.intaglio.userserver.startup;

import org.jboss.system.ServiceMBeanSupport;

public class IntaglioUserServerService extends ServiceMBeanSupport implements 
IntaglioUserServerServiceMBean {

public String getName() {
return 
"com.intaglio.userserver.startup:service=IntaglioUserServerStartup";
}

public int getState() {
return 0;
}

public String getStateString() {
return null;
}

public void jbossInternalLifecycle(String arg0) throws Exception {
}

public void create() throws Exception {
}

public void start() throws Exception {
System.out.println("\n\n\n Starting the 
IntaglioUserServer...\n\n\n\n");
}

public void stop() {
}

public void destroy() {
}

}





http://www.jboss.org/j2ee/dtd/jboss-service_4_0.dtd";>






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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: class must define a set accessor

2005-09-16 Thread sanshew
Never mind, a kind gentleman over google groups pointed it out! the getters are 
returning integers and the setters are taking in strings. My BAD.

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

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


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user