Re: [JBoss-user] JBoss Clustering Ports

2003-08-27 Thread Bill Burke
take a look in server/all/deploy/cluster-service.xml

1100 for HA JNDI

UDP mcast_addr=228.1.2.3 mcast_port=45566
for clustering
Marek Lange wrote:

Hi all,

I would like to know which ports are necessary for clustering (either 
UDP or TCP)? We have a firewall between two JBoss instances in our 
production environment and we are not able to run the clustering between 
the machines. The second machine always hangs during startup:

INFO  [ClusterPartition] Connecting to channel

Which ports must be opened in the firewall or is it impossible to 
specify the ports?

Thanks for your hints,

-marek



---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click 
here:http://www.vmware.com/wl/offer/358/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


--

Bill Burke
Chief Architect
JBoss Group LLC.



---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] using JBoss-QL in an ejbSelect method?

2003-08-27 Thread Matthew Hixson
I was just wondering if its possible to make use of JBossQL in an 
ejbSelect method.  We've gone to the trouble of extending JBossQL to 
include now(), but I'd like to make use of it from within an ejbSelect 
method.

  /**
   * @ejb.select
   * result-type-mapping=Local
   * query=select o.contentId from v_content o
	 * where o.contract.contractId = ?1
	 * and o.availableStartDate is not NULL
	 * and o.availableEndDate is not NULL
	 * and o.contract.startDate is not NULL
	 * and o.contract.endDate is not NULL
	 * and o.approvalCode = 97
	 * and now()  o.availableStartDate and
	 * now()  o.availableEndDate
	 * and now()  o.contract.startDate and
	 * 		 now()  o.contract.endDate
	 * order by o.availableStartDate desc
   *
   * @param contractId
   * @return Collection
   * @throws FinderException
   */
  public abstract Collection 
ejbSelectAvailableContentIdsByContractId(Integer contractId) throws 
FinderException;

Is is possible to add an xdoclet tag to make that ejbSelect method use 
JBoss-QL rather than EJB-QL?
  We're using xdoclet 1.2b3.
  Thanks,
-M@



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


Re: [JBoss-user] using JBoss-QL in an ejbSelect method?

2003-08-27 Thread Nicholas
Yes. Using JBoss declared SQL, you basically override
the SQL defined in the ejb.select.

An example from our code:

 *  @ejb.finder
 *  method-intf=LocalHome
 *  signature=Collection
findMaxEventForClient(int clientId)
 *  query=SELECT OBJECT(e) FROM Event where
e.clientId = ?1
 *  result-type-mapping=Local
 [EMAIL PROTECTED]
 *  method-intf=LocalHome
 *  signature=Collection
findMaxEventForClient(int clientId)
 *  from=
 *  where=event_id = (select max(event_id) from
client c,  event e where c.client_id = e.client_id and
c.client_id = {0})
 *  order=
 *  alias=e
 *  strategy=on-load
 *  page-size=1
 *  eager-load-group=default
 *

//Nicholas


--- Matthew Hixson [EMAIL PROTECTED] wrote:
 I was just wondering if its possible to make use of
 JBossQL in an 
 ejbSelect method.  We've gone to the trouble of
 extending JBossQL to 
 include now(), but I'd like to make use of it from
 within an ejbSelect 
 method.
 
/**
 * @ejb.select
 * result-type-mapping=Local
 * query=select o.contentId from v_content o
* where o.contract.contractId = ?1
* and o.availableStartDate is not NULL
* and o.availableEndDate is not NULL
* and o.contract.startDate is not NULL
* and o.contract.endDate is not NULL
* and o.approvalCode = 97
* and now()  o.availableStartDate and
* now()  o.availableEndDate
* and now()  o.contract.startDate and
*   now()  o.contract.endDate
* order by o.availableStartDate desc
 *
 * @param contractId
 * @return Collection
 * @throws FinderException
 */
public abstract Collection 
 ejbSelectAvailableContentIdsByContractId(Integer
 contractId) throws 
 FinderException;
 
 Is is possible to add an xdoclet tag to make that
 ejbSelect method use 
 JBoss-QL rather than EJB-QL?
We're using xdoclet 1.2b3.
Thanks,
  -M@
 
 
 

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

https://lists.sourceforge.net/lists/listinfo/jboss-user


=
Nicholas Whitehead
Home: (973) 377 9335
Cell: (201) 615 2716
[EMAIL PROTECTED]
Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/


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


[JBoss-user] ALERT - GroupShield ticket number OA438_1061951107_SIERRAMAIL_1was generated

2003-08-27 Thread GroupShield for Exchange (SIERRAMAIL)
Action Taken:
The attachment was quarantined from the message and replaced with a text
file informing the recipient of the action taken.

To:
[EMAIL PROTECTED] [EMAIL PROTECTED]

From:
[EMAIL PROTECTED] [EMAIL PROTECTED]

Sent:
1649852800,29584450

Subject:
Re: Thank you!

Attachment Details:-

Attachment Name: your_details.pif
File: your_details.pif
Infected? Yes
Repaired? No
Blocked? No
Deleted? No
Virus Name: W32/[EMAIL PROTECTED]




application/ms-tnef

RE: [JBoss-user] JBoss 3.0.7 and maximum open cursors exceeded

2003-08-27 Thread Tony BenBrahim
I can confirm that you need to close result sets (as well as statements),
otherwise cursors will remain open

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Alastair
Rodgers
Sent: Tuesday, August 26, 2003 3:50 AM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] JBoss 3.0.7 and maximum open cursors exceeded


It's a while since I've used Oraclie 8i, but I think there was a discrepancy
between the JDBC spec and the 8i drivers: when you close a statement it
*should* close any associated ResultSet, but this didn't always work. So
with Oracle, you should always explicitly close each result set, statement
and connection - don't rely on the drivers to do it for you.

Regards,
Al.


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of
 Adrian Brock
 Sent: 22 August 2003 12:03
 To: [EMAIL PROTECTED]
 Subject: Re: [JBoss-user] JBoss 3.0.7 and maximum open
 cursors exceeded


 If you are closing the prepared statements that should close
 the result sets. My guess is that you are not.

 Try it with 3.2.1, it has a check for unclosed statements
 when you return the connection to the pool.

 Regards,
 Adrian

 On Fri, 2003-08-22 at 04:17, Michael Klem wrote:
  I have code in production which is currently running on JBoss 2.4.4
  and I finished migrating it to run under JBoss 3.0.7. It works but
  when I attempt to load test the app under JBoss 3.0.7 within 15
  minutes I get this exception:
  ORA-01000: maximum open cursors exceeded
 
  Here is some data from my oracle-service.xml file:
 
   depends optional-attribute-name=ManagedConnectionPool
 !--embedded mbean--
 mbean
 
 code=org.jboss.resource.connectionmanager.JBossManagedConnect
 ionPool
  name=jboss.jca:service=LocalTxPool,name=coreProvPool
 
   attribute name=MinSize20/attribute
   attribute name=MaxSize40/attribute
   attribute name=BlockingTimeoutMillis5000/attribute
   attribute name=IdleTimeoutMinutes1/attribute
   !--criteria indicates if Subject (from security domain) or
  app supplied
   parameters (such as from getConnection(user, pw)) are
  used to distinguish
   connections in the pool. Choices are
   ByContainerAndApplication (use both),
   ByContainer (use Subject),
   ByApplication (use app supplied params only),
   ByNothing (all connections are equivalent, usually if
  adapter supports
 reauthentication)--
   attribute name=CriteriaByContainer/attribute
 /mbean
   /depends
 
 
  I can run the same stress testing code for as long as I
 want when the
  app is running on JB0ss 2.4.4. The database, ( Oracle 8i ) and the
  driver, ( classes12.zip ) are used by both versions of the app. The
  code base is the same too. The only glaring difference is the JBoss
  version.
 
  My code closes the db connections and all PreparedStatements. I
  cannot see anything obvious there yet.
 
  When I get this error, I can fix it temporarily by invoking
 the flush
  method on
  org.jboss.resource.connectionmanager.JBossManagedConnectionPool.
  Also, even when  the exception occurs, the AvailableConnectionCount
  remains close to my MaxSize.
 
  I looked at the info from the mailing list and the forums but it
  looks like I am doing everything right.
 
  Is this a known issue under JB0ss 3.0.7? I will try using JB0ss 3.2
  to see if it goes away.




---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



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


[JBoss-user] syntax of LIMIT

2003-08-27 Thread Matthew Hixson
Can LIMIT be followed directly by a hard coded number or does it have 
to be a parameter?  I have a method that needs to return only the top 
10 items from the database after doing a sort.  This won't change, so 
there's no need to pass new Integer(10) into the finder and then do:

LIMIT ?1

in the query.  I'd like to just do:

LIMIT 10

but doing so causes JBoss to throw:

org.jboss.ejb.plugins.cmp.ejbql.ParseException: Encountered 10 at 
line 1, column 482.
Was expecting:
NUMERIC_VALUED_PARAMETER ...
)]

Thanks,
   -M@


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


Re: [JBoss-user] ClientLoginModule

2003-08-27 Thread Marco Tedone
I have already got a basic JAAS tutorial. I was actually looking to a
vendor-independent way to implement the mapping between the Principals
defined in the deployment descriptor and the Principals bound with a client
requesting one or more methods on the EJBs interfaces.

I discovered that this kind of mapping is vendor-dependent, therefore we're
going to build our own vendor-independent solution. I think Sun should have
provided a standard way to do this, rather then giving only the
specifications on how to implement it. Where is the 'portability' of EJBs
then?

Thanks,

Marco
- Original Message - 
From: Holger Baxmann [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, August 26, 2003 1:36 PM
Subject: Re: [JBoss-user] ClientLoginModule


 On Mon, 25 Aug 2003 16:07:27 +0100, Marco Tedone [EMAIL PROTECTED]
wrote:

  Hi, could someone please forward me where I could find any documentation
  on
  how to use the ClientLoginModule in jboss? From the login-config.xml
  file, I
  can read that this can be used by Servlet which try to access an EJB
  (exactly what I'm going to do).
 

 A good starting point will the google search JAAS Tutorial provide ...

 for example:
 http://java.sun.com/j2se/1.4.1/docs/guide/security/jaas/tutorials/

 bax

  Thanks,
 
  Marco
 
 
 
 
 
  ---
  This SF.net email is sponsored by: VM Ware
  With VMware you can run multiple operating systems on a single machine.
  WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
  at the same time. Free trial click
  here:http://www.vmware.com/wl/offer/358/0
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  https://lists.sourceforge.net/lists/listinfo/jboss-user
 



 -- 
 Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/


 ---
 This SF.net email is sponsored by: VM Ware
 With VMware you can run multiple operating systems on a single machine.
 WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
 at the same time. Free trial click
here:http://www.vmware.com/wl/offer/358/0
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user





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


Re: [JBoss-user] [NEWBIE] Jboss and security

2003-08-27 Thread Marco Tedone
It's not exactly standard J2EE stuff, as I have to use a Jboss-specific JAAS
security model. We are deciding to implement our container-independent
solution.

Thank you for your reply.

Marco
- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, August 26, 2003 5:48 PM
Subject: RE: [JBoss-user] [NEWBIE] Jboss and security


 Standard J2EE stuff.
 Look at the EJB specification to see what needs to be defined in the
 ejb-jar.xml.
 You also have to define a JAAS security domain in JBoss and associate it
 with your EJB in the jboss.xml.
 Check JBoss documentation and samples for more details.

 PS: on the client side, you will have to also use the JAAS api. Check the
 current thread in this mailing list about the client login module for more
 details.

 Thomas Cherel

 -Original Message-
 From: Marco Tedone [mailto:[EMAIL PROTECTED]
 Sent: Monday, August 25, 2003 7:08 AM
 To: JBoss-user-list
 Subject: [JBoss-user] [NEWBIE] Jboss and security

 Hi, how could I tell Jboss that a client which wants to executed a
 restricted method on a RemoteInterface has some Principals associated with
 it (I assume that the Principals mapping between the deployment descriptor
 and the client will be performed somewhere)?

 Thanks,

 Marco





 ---
 This SF.net email is sponsored by: VM Ware
 With VMware you can run multiple operating systems on a single machine.
 WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
 at the same time. Free trial click
here:http://www.vmware.com/wl/offer/358/0
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user


 ---
 This SF.net email is sponsored by: VM Ware
 With VMware you can run multiple operating systems on a single machine.
 WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
 at the same time. Free trial click
here:http://www.vmware.com/wl/offer/358/0
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user






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


[JBoss-user] JMS Connection Factory

2003-08-27 Thread SHAHIN HADJIKULIEV
Hi all,
To configure JMS connection Factory in JBOSS-3.2.1 I have edited
jbossmq-service.xml under deploy directory.

 mbean code=org.jboss.mq.il.uil2.UILServerILService name
=jboss.mq:service=InvocationLayer,type=UIL2
  depends optional-attribute-name
=Invokerjboss.mq:service=Invoker/depends
  attribute name
=ConnectionFactoryJNDIRefConnectionFactory1/attribute
  attribute name
=XAConnectionFactoryJNDIRefXAConnectionFactory1/attribute
  attribute name=ServerBindPort8093/attribute
  attribute name=PingPeriod6/attribute
  attribute name=EnableTcpNoDelaytrue/attribute
  attribute name=ReadTimeout7/attribute
  attribute name=BufferSize2048/attribute
  attribute name=ChunkSize100/attribute
 /mbean

Where I have changed attribute name
=ConnectionFactoryJNDIRefConnectionFactory1/attribute and
attribute name
=XAConnectionFactoryJNDIRefXAConnectionFactory1/attribute fileds
After starting jboss I have got these exeptions
What I had wrong ?


8:16:50,109 ERROR [Engine] StandardContext[/web-console]: Servlet
/web-console threw load() exception
javax.servlet.ServletException: Servlet.init() for servlet J2EEFolder threw
exception
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:963)
 at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
 .
 .
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:200)
 at
org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:273)
 at
org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
 .
 .
08:16:50,125 ERROR [Engine] - Root Cause -
java.lang.NoSuchMethodError
 at
org.jboss.console.plugins.helpers.BasePluginWrapper.loadScript(BasePluginWrapper.java:177)
 at
org.jboss.console.plugins.helpers.BasePluginWrapper.init(BasePluginWrapper.java:76)
 .
 .
08:16:50,234 ERROR [Engine] StandardContext[/web-console]: Servlet
/web-console threw load() exception
javax.servlet.ServletException: Servlet.init() for servlet SystemFolder
threw exception
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:963)
 at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
 .
 .
08:16:50,250 INFO  [Engine] StandardWrapper[/web-console:default]: Loading
container servlet default
08:16:50,265 INFO  [Engine] StandardWrapper[/web-console:invoker]: Loading
container servlet invoker
08:16:50,343 INFO  [MainDeployer] Deployed package:
file:/C:/jboss-3.2.1/server/all/deploy/management/web-console.war
08:16:50,359 ERROR [URLDeploymentScanner] MBeanException: Exception in
MBean operation 'checkIncompleteDeployments()'
Cause: Incomplete Deployment listing:
Packages waiting for a deployer:
  none
Incompletely deployed packages:
[EMAIL PROTECTED] {
url=file:/C:/jboss-3.2.1/server/all/deploy/jms/jbossmq-service.xml }
  deployer: [EMAIL PROTECTED]
  status: null
  state: FAILED
  watch: file:/C:/jboss-3.2.1/server/all/deploy/jms/jbossmq-service.xml
  lastDeployed: 1061961402562
  lastModified: 1061961402531
  mbeans:
]MBeans waiting for classes:
  none
MBeans waiting for other MBeans:
[ObjectName: jboss.mq:service=InvocationLayer,type=HTTP
 state: CONFIGURED
 I Depend On:   jboss.mq:service=Invoker
  jboss.web:service=WebServer

 Depends On Me: , ObjectName:
jboss.mq.destination:service=Topic,name=testTopic
 state: CONFIGURED
 I Depend On:   jboss.mq:service=DestinationManager
  jboss.mq:service=SecurityManager

 Depends On Me: , ObjectName:
jboss.mq.destination:service=Topic,name=securedTopic
 state: CONFIGURED
 I Depend On:   jboss.mq:service=DestinationManager
  jboss.mq:service=SecurityManager

 Depends On Me: , ObjectName:
jboss.mq.destination:service=Topic,name=testDurableTopic
 state: CONFIGURED
 I Depend On:   jboss.mq:service=DestinationManager
  jboss.mq:service=SecurityManager

 Depends On Me: , ObjectName:
jboss.mq.destination:service=Queue,name=testQueue
 state: CONFIGURED
 I Depend On:   jboss.mq:service=DestinationManager
  jboss.mq:service=SecurityManager

 Depends On Me: , ObjectName: jboss.mq.destination:service=Queue,name=A
 state: CONFIGURED
 I Depend On:   jboss.mq:service=DestinationManager

 Depends On Me: , ObjectName: jboss.mq.destination:service=Queue,name=B
 state: CONFIGURED
 I Depend On:   jboss.mq:service=DestinationManager

 Depends On Me: , ObjectName: jboss.mq.destination:service=Queue,name=C
 state: CONFIGURED
 I Depend On:   jboss.mq:service=DestinationManager

 Depends On Me: , ObjectName: jboss.mq.destination:service=Queue,name=D
 state: CONFIGURED
 I Depend On:   jboss.mq:service=DestinationManager

 Depends On Me: , ObjectName: jboss.mq.destination:service=Queue,name=ex
 state: CONFIGURED
 I Depend On:   jboss.mq:service=DestinationManager

 Depends On 

[JBoss-user] jb4 cvs build

2003-08-27 Thread Ionel Gardais
Hi all,

got a problem building JBoss4 from a cvs co.
the ant scripts doesn't find the xdoclet packages but they are present 
in the thirdparty directory, in my home directory and in the classpath.

I am using XP Home, ANT_HOME, JAVA_HOME and CLASSPATH set.

Any ideas ?

thanks,
ionel


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


Re: [JBoss-user] Which Jboss version supports axis 1_1RC2?

2003-08-27 Thread Stephane Nicoll




If you want to use Axis 1.1 RC2 in any release of JBoss, then just download the RC2 from the official website, find the axis directory contained in the webapp dir of the distribution and then copy this directory in the deploy directory of your server

(rename axis to axis.war to allow deployment)

and that's it.

Regards,

Stphane
On Tue, 2003-08-26 at 21:13, [EMAIL PROTECTED] wrote:

hi all,
	i am writing a J2ME client that communicates to a servlet running
on Jboss using ksoap.
i found out that ksoap-SOAP messages work fine with axis1_1RC2. I am currently
running the servlet on jboss3.2.1, which unfortunately does not use the same version(at least
i think so, since i got exception when axis code try to read the SOAP message issued by
the J2ME client).

does jboss4.0.0 support axis1_1RC2?

with best regards
	marco


---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





Re: [JBoss-user] JMS Connection Factory

2003-08-27 Thread Adrian Brock
Looks like your broke jbossmq-service.xml
My guess is it no longer valid xml?

You should have a message further back in the log.

Regards,
Adrian

On Wed, 2003-08-27 at 06:26, SHAHIN HADJIKULIEV wrote:
 Hi all,
 To configure JMS connection Factory in JBOSS-3.2.1 I have edited
 jbossmq-service.xml under deploy directory.
 
  mbean code=org.jboss.mq.il.uil2.UILServerILService name
 =jboss.mq:service=InvocationLayer,type=UIL2
   depends optional-attribute-name
 =Invokerjboss.mq:service=Invoker/depends
   attribute name
 =ConnectionFactoryJNDIRefConnectionFactory1/attribute
   attribute name
 =XAConnectionFactoryJNDIRefXAConnectionFactory1/attribute
   attribute name=ServerBindPort8093/attribute
   attribute name=PingPeriod6/attribute
   attribute name=EnableTcpNoDelaytrue/attribute
   attribute name=ReadTimeout7/attribute
   attribute name=BufferSize2048/attribute
   attribute name=ChunkSize100/attribute
  /mbean
 
 Where I have changed attribute name
 =ConnectionFactoryJNDIRefConnectionFactory1/attribute and
 attribute name
 =XAConnectionFactoryJNDIRefXAConnectionFactory1/attribute fileds
 After starting jboss I have got these exeptions
 What I had wrong ?
 
 
 8:16:50,109 ERROR [Engine] StandardContext[/web-console]: Servlet
 /web-console threw load() exception
 javax.servlet.ServletException: Servlet.init() for servlet J2EEFolder threw
 exception
  at
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:963)
  at
 org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
  .
  .
 org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:200)
  at
 org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:273)
  at
 org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
  .
  .
 08:16:50,125 ERROR [Engine] - Root Cause -
 java.lang.NoSuchMethodError
  at
 org.jboss.console.plugins.helpers.BasePluginWrapper.loadScript(BasePluginWrapper.java:177)
  at
 org.jboss.console.plugins.helpers.BasePluginWrapper.init(BasePluginWrapper.java:76)
  .
  .
 08:16:50,234 ERROR [Engine] StandardContext[/web-console]: Servlet
 /web-console threw load() exception
 javax.servlet.ServletException: Servlet.init() for servlet SystemFolder
 threw exception
  at
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:963)
  at
 org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
  .
  .
 08:16:50,250 INFO  [Engine] StandardWrapper[/web-console:default]: Loading
 container servlet default
 08:16:50,265 INFO  [Engine] StandardWrapper[/web-console:invoker]: Loading
 container servlet invoker
 08:16:50,343 INFO  [MainDeployer] Deployed package:
 file:/C:/jboss-3.2.1/server/all/deploy/management/web-console.war
 08:16:50,359 ERROR [URLDeploymentScanner] MBeanException: Exception in
 MBean operation 'checkIncompleteDeployments()'
 Cause: Incomplete Deployment listing:
 Packages waiting for a deployer:
   none
 Incompletely deployed packages:
 [EMAIL PROTECTED] {
 url=file:/C:/jboss-3.2.1/server/all/deploy/jms/jbossmq-service.xml }
   deployer: [EMAIL PROTECTED]
   status: null
   state: FAILED
   watch: file:/C:/jboss-3.2.1/server/all/deploy/jms/jbossmq-service.xml
   lastDeployed: 1061961402562
   lastModified: 1061961402531
   mbeans:
 ]MBeans waiting for classes:
   none
 MBeans waiting for other MBeans:
 [ObjectName: jboss.mq:service=InvocationLayer,type=HTTP
  state: CONFIGURED
  I Depend On:   jboss.mq:service=Invoker
   jboss.web:service=WebServer
 
  Depends On Me: , ObjectName:
 jboss.mq.destination:service=Topic,name=testTopic
  state: CONFIGURED
  I Depend On:   jboss.mq:service=DestinationManager
   jboss.mq:service=SecurityManager
 
  Depends On Me: , ObjectName:
 jboss.mq.destination:service=Topic,name=securedTopic
  state: CONFIGURED
  I Depend On:   jboss.mq:service=DestinationManager
   jboss.mq:service=SecurityManager
 
  Depends On Me: , ObjectName:
 jboss.mq.destination:service=Topic,name=testDurableTopic
  state: CONFIGURED
  I Depend On:   jboss.mq:service=DestinationManager
   jboss.mq:service=SecurityManager
 
  Depends On Me: , ObjectName:
 jboss.mq.destination:service=Queue,name=testQueue
  state: CONFIGURED
  I Depend On:   jboss.mq:service=DestinationManager
   jboss.mq:service=SecurityManager
 
  Depends On Me: , ObjectName: jboss.mq.destination:service=Queue,name=A
  state: CONFIGURED
  I Depend On:   jboss.mq:service=DestinationManager
 
  Depends On Me: , ObjectName: jboss.mq.destination:service=Queue,name=B
  state: CONFIGURED
  I Depend On:   jboss.mq:service=DestinationManager
 
  Depends On Me: , ObjectName: jboss.mq.destination:service=Queue,name=C
  state: CONFIGURED
  I Depend On:   

RE: [JBoss-user] JNDI Name

2003-08-27 Thread Danny . Yates
Title: Message



The 
java:/ context is only available within the same VM as the 
server.

-- 
Danny Yates


  
  -Original Message-From: Rod Macpherson 
  [mailto:[EMAIL PROTECTED] Sent: 27 August 2003 
  00:12To: [EMAIL PROTECTED]Subject: 
  [JBoss-user] JNDI Name
  JBoss is binding 
  my datasource just fine and my webapp works but trying to connect from a 
  stand-alone client outside of the server fails: 
  
  14:25:52,704 
  INFO [FoobarDS] Bound connection factory for resource adapter for 
  ConnectionManager 'jboss.jca:service=LocalTxCM,name=FoobarDS to JNDI name 
  'java:/FoobarDS'
  
  The datasource is 
  FoobarDS and we lookup the string java:/FoobarDS and that works fine within 
  our J2EE application. Only fails from a remote client (fabled option D 
  did not work either:)
  
  TIA,
  
  Rod
  
  



_ 

Notice to recipient: 

The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. 


When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. 


If this email originates from the U.K. please note that Bank of America, N.A., London Branch, Banc of America Securities Limited and Banc of America Futures Incorporated are regulated by the Financial Services Authority.

_ 




[JBoss-user] VIRUS IN IHRER NACHRICHT AN thorsten@ipcon.de

2003-08-27 Thread virusmaster
   V I R U S  A L A R M

  Der Virenscanner der IPCON Informationssysteme hat in Ihrer
  Nachricht an [EMAIL PROTECTED]
  einen Virus gefunden.

  Die Nachricht wurde aus Sicherheitsgruenden nicht zugestellt!

  Ueberpruefen Sie Ihr System auf Viren.


Zur Orientierung hier der Kopf der betroffenen Nachricht:

- ANFANG 
Received: (qmail 10290 invoked for bounce); 27 Aug 2003 08:25:41 -
Received: from unknown (HELO SSQIAO) (221.136.114.188)
  by www.ipcon.de with SMTP; 27 Aug 2003 08:25:41 -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Your application
Date: Wed, 27 Aug 2003 16:03:07 +0800
X-MailScanner: Found to be clean
Importance: Normal
X-Mailer: Microsoft Outlook Express 6.00.2600.
X-MSMail-Priority: Normal
X-Priority: 3 (Normal)
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary=_NextPart_000_018F50F9
X-AntiVirus: scanned for viruses by IPCON Informationssysteme v0.986
-- ENDE -



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


[JBoss-user] unsubscribe

2003-08-27 Thread Jim Morrison
unsubscribe


From: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: JBoss-user digest, Vol 1 #4913 - 8 msgs
Date: Wed, 27 Aug 2003 01:09:04 -0700
Send JBoss-user mailing list submissions to
[EMAIL PROTECTED]
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.sourceforge.net/lists/listinfo/jboss-user
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]
You can reach the person managing the list at
[EMAIL PROTECTED]
When replying, please edit your Subject line so it is more specific
than Re: Contents of JBoss-user digest...
Today's Topics:

   1. syntax of LIMIT (Matthew Hixson)
   2. Re: [NEWBIE] Jboss and security (Marco Tedone)
   3. Re: ClientLoginModule (Marco Tedone)
   4. JMS Connection Factory (SHAHIN HADJIKULIEV)
   5. jb4 cvs build (Ionel Gardais)
   6. Re: Which Jboss version supports  axis 1_1RC2? (Stephane Nicoll)
   7. Re: JMS Connection Factory (Adrian Brock)
   8. RE: JNDI Name ([EMAIL PROTECTED])
--__--__--

Message: 1
Date: Tue, 26 Aug 2003 21:14:41 -0700
From: Matthew Hixson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [JBoss-user] syntax of LIMIT
Reply-To: [EMAIL PROTECTED]
Can LIMIT be followed directly by a hard coded number or does it have
to be a parameter?  I have a method that needs to return only the top
10 items from the database after doing a sort.  This won't change, so
there's no need to pass new Integer(10) into the finder and then do:
LIMIT ?1

in the query.  I'd like to just do:

LIMIT 10

but doing so causes JBoss to throw:

org.jboss.ejb.plugins.cmp.ejbql.ParseException: Encountered 10 at
line 1, column 482.
Was expecting:
 NUMERIC_VALUED_PARAMETER ...
 )]
Thanks,
-M@


--__--__--

Message: 2
From: Marco Tedone [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] [NEWBIE] Jboss and security
Date: Tue, 26 Aug 2003 19:29:27 +0100
Reply-To: [EMAIL PROTECTED]
It's not exactly standard J2EE stuff, as I have to use a Jboss-specific 
JAAS
security model. We are deciding to implement our container-independent
solution.

Thank you for your reply.

Marco
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, August 26, 2003 5:48 PM
Subject: RE: [JBoss-user] [NEWBIE] Jboss and security
 Standard J2EE stuff.
 Look at the EJB specification to see what needs to be defined in the
 ejb-jar.xml.
 You also have to define a JAAS security domain in JBoss and associate it
 with your EJB in the jboss.xml.
 Check JBoss documentation and samples for more details.

 PS: on the client side, you will have to also use the JAAS api. Check 
the
 current thread in this mailing list about the client login module for 
more
 details.

 Thomas Cherel

 -Original Message-
 From: Marco Tedone [mailto:[EMAIL PROTECTED]
 Sent: Monday, August 25, 2003 7:08 AM
 To: JBoss-user-list
 Subject: [JBoss-user] [NEWBIE] Jboss and security

 Hi, how could I tell Jboss that a client which wants to executed a
 restricted method on a RemoteInterface has some Principals associated 
with
 it (I assume that the Principals mapping between the deployment 
descriptor
 and the client will be performed somewhere)?

 Thanks,

 Marco





 ---
 This SF.net email is sponsored by: VM Ware
 With VMware you can run multiple operating systems on a single machine.
 WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
 at the same time. Free trial click
here:http://www.vmware.com/wl/offer/358/0
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user


 ---
 This SF.net email is sponsored by: VM Ware
 With VMware you can run multiple operating systems on a single machine.
 WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
 at the same time. Free trial click
here:http://www.vmware.com/wl/offer/358/0
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user






--__--__--

Message: 3
From: Marco Tedone [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] ClientLoginModule
Date: Tue, 26 Aug 2003 17:39:30 +0100
Reply-To: [EMAIL PROTECTED]
I have already got a basic JAAS tutorial. I was actually looking to a
vendor-independent way to implement the mapping between the Principals
defined in the deployment descriptor and the Principals bound with a client
requesting one or more methods on the EJBs interfaces.
I discovered that this kind of mapping is vendor-dependent, therefore we're
going to build our own vendor-independent solution. I think Sun should have
provided a standard way to do this, rather then giving only the
specifications on how to implement it. Where is the 'portability' of EJBs
then?
Thanks,

Marco
- Original Message -

[JBoss-user] where to place libraries while developing

2003-08-27 Thread Milen Dyankov
Hi,

I have MyApp-ejb.jar containing my module and MyApp-lib.jar with library classes 
used by the application.
The reason I have this separated is that MyApp-lib.jar is also needed by the client 
application.
When I put MyApp-lib.jar in /jboss/server/default/lib everything works just fine.
The problem is that any change in MyApp-lib.jar requires restart of JBoss, which is 
a real problem
when the application is in developing stage.
I have tried to pack MyApp-ejb.jar and MyApp-lib.jar in MyApp.ear but it didn't 
seemed to work.
I was about to start playing with CLASSPATH but some people have advised that it not a 
good idea.
Is there any general solution for this problem?
Where application libraries should be located?
Will setting CLASSPATH in META-INF of MyApp-ejb.jar or MyApp.ear solve this issue?
regards,
Milen Dyankov


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


Re: [JBoss-user] where to place libraries while developing

2003-08-27 Thread Stephane Nicoll




Hello,

You can, for instance create a directory lib in your ear and put your jar files there. Then in the META-INF of your jar (MyApp-ejb.jar) you can add a classpath ref that points to

lib/MyApp-lib.jar)

will be loaded by the JAR deployer

Regards,

Stphane


On Wed, 2003-08-27 at 11:03, Milen Dyankov wrote:

Hi,

I have MyApp-ejb.jar containing my module and MyApp-lib.jar with library classes used by the application.
The reason I have this separated is that MyApp-lib.jar is also needed by the client application.

When I put MyApp-lib.jar in /jboss/server/default/lib everything works just fine.
The problem is that any change in MyApp-lib.jar requires restart of JBoss, which is a real problem
when the application is in developing stage.

I have tried to pack MyApp-ejb.jar and MyApp-lib.jar in MyApp.ear but it didn't seemed to work.
I was about to start playing with CLASSPATH but some people have advised that it not a good idea.

Is there any general solution for this problem?
Where application libraries should be located?
Will setting CLASSPATH in META-INF of MyApp-ejb.jar or MyApp.ear solve this issue?


regards,
Milen Dyankov



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





Re: [JBoss-user] Deployment warning on jboss 3.2.2RC3

2003-08-27 Thread Christofer Dutz
I have found the solution to my deployment warnings and 
load-balancing problems.

I simply forgot to set the configuration-name to Clustered CMP 2.x EntityBean

I could punch myself for this. Now everythng is working fine. 
Now I can cun the benchmark with extremly higher injection-rates ...

Thanx once again,

Chris



Zitat von Christofer Dutz [EMAIL PROTECTED]:

 Unfortunately that didn't help. The Messages are still the same.
 I have read in the current Jboss 3.2.x docs that there is something called
 detached invokers (funny I haven't heard from them bevore).
 
 The book is telling me that I have to configure invokers with a
 invoker-bindings tag in jboss.xml
 After studying the detached invoker Chapter a little, I have to admint,
 I am quite confused.
 Mabe I should have a night of sleep and try it again tomorow.
 Or does anyone in this list have tip for me to get me started ?
 
 Is there a how-to that tells me How to make an Application Cluster-Aware
 
 Chris
 
 Bill Burke wrote:
 
  You have to run with the 'all' configuraiton
 
  run.sh -c all
 
  Bill
 
  Christofer Dutz wrote:
 
  Hi,
  I am geting some strange warnings on RC3 with my application. The 
  warning has
  the folowing text:
  WARN  [org.jboss.ejb.EntityContainer] *** EJB 'OrderLineEnt' deployed as
  CLUSTERED but not a single clustered-invoker is bound to container ***
 
  At first I thought this was because of the container being the first 
  in the line
  to start, but all other cluster nodes show this message.
 
  Could this be the reason why I have this strange load-distribution 
  (100% CPU
  usage on one machine and 30% on all other nodes) on the cluster.
 
  What else do I have to do for seting up the beans as clustered 
  Entities ?
 
 
  Christofer Dutz
 
  -
  This mail sent through IMP: http://horde.org/imp/
 
 
  ---
  This SF.net email is sponsored by: VM Ware
  With VMware you can run multiple operating systems on a single machine.
  WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
  at the same time. Free trial click 
  here:http://www.vmware.com/wl/offer/358/0
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  https://lists.sourceforge.net/lists/listinfo/jboss-user
 
 
 
 
 
 
 
 
 
 ---
 This SF.net email is sponsored by: VM Ware
 With VMware you can run multiple operating systems on a single machine.
 WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
 at the same time. Free trial click
 here:http://www.vmware.com/wl/offer/358/0
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 


-- 
Gruß,
 Christofer Dutz

-
This mail sent through IMP: http://horde.org/imp/


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


[JBoss-user] [OT] Jboss/Tomcat on Windows 2000

2003-08-27 Thread Sheldon Hearn
Has anyone here managed to get jboss-3.2.1-tomcat-4.1.24 to handle 200
or more simultaneous HTTP requests using either HttpConnector or
CoyoteConnector on Windows 2000 Advanced Server?

I've spent hours googling and playing with -Xss, -Xms and -Xmx and can't
get more than about 100 simultaneous processors (as specified by the
maxProcessors attribute of the connector).

I've even tried using the Java Service Wrapper to start jboss, and
manually stuffing MaxThreads into the registry entyr for the service.

I get an OutOfMemoryError, with reason unable to create native thread.
This is on a dual-Xeon with 4GB of RAM (with /3G added to boot.ini).
This is with the Sun JDK-1.4.2.

That sounds a _lot_ like Windows is limiting the number of threads of my
JVM process.  But I'm at a loss for how to bump that limit.

I've tried using Apache2 on the same box, because Apache's a known
quantity for me (I'm not a Windows person by any stretch of the
imagination).  Apache also fails to create more than about 100 worker
threads.

So I realize this is a little off-topic, since my problem seems to have
more to do with this Wintendo rubbish than it does with Java.

All I can offer in my defense is a look of crazed desperation glaring
out from my sunken, bloodshot eyes. :-)

Clues?

Ciao,
Sheldon.


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


Re: [JBoss-user] Deadlock following rollout to 3.2.2 (RC2 or RC3)

2003-08-27 Thread Alexey Loubyansky
You should provide relevant source code snippets.
Plus you use EJB-based implementatoin of sequnces, right? What are the 
tx attributes for relevant methods?

alex

Stephane Nicoll wrote:
Hi,

Our application runs 'fine' on JBoss 3.2.1 using intensively JMS and 
Entity beans in CMP mode. I tried to rollout this application on both 
3.2.2 RC2 and RC3 but we have deadlocks very quickly.

I don't know exactly what kind of information is relevant. Could you 
please, in a first stage, help me figuring out what could be relevant? 
Anyway It seems that the deadlock occurs on read only data! (I mean read 
only in our mind but maybe not declared as read only)

The part of the application which crashes is quite simple.

An MBean pools a directory containing XML file and sends one TextMessage 
per XML file to a queue. Then an MDB proceses the TextMessage, translate 
the XML into an instruction and create an entity. An entity has some 
link to other entity so the MDB makes sure those link (id) refers to 
existing entities (theses are the read only stuff)

With RC2 deadlock occurs after 5 min of load:

2003-08-20 16:36:39,827 WARN  
[org.jboss.ejb.plugins.AbstractInstanceCache] Unable to passivate due to 
ctx lock, id=10
2003-08-20 16:37:06,132 WARN  
[org.jboss.ejb.plugins.AbstractInstanceCache] Unable to passivate due to 
ctx lock, id=354
2003-08-20 16:37:15,677 WARN  
[org.jboss.ejb.plugins.AbstractInstanceCache] Unable to passivate due to 
ctx lock, id=1
2003-08-20 16:37:45,228 WARN  
[org.jboss.ejb.plugins.AbstractInstanceCache] Unable to passivate due to 
ctx lock, id=3196
2003-08-20 16:37:49,308 WARN  
[org.jboss.ejb.plugins.AbstractInstanceCache] Unable to passivate due to 
ctx lock, id=1
2003-08-20 16:37:54,480 WARN  
[org.jboss.ejb.plugins.AbstractInstanceCache] Unable to passivate due to 
ctx lock, id=1fc48af1c0a8062100476e345d7090a8
2003-08-20 16:38:00,548 WARN  
[org.jboss.ejb.plugins.AbstractInstanceCache] Unable to passivate due to 
ctx lock, id=1
2003-08-20 16:38:02,328 WARN  
[org.jboss.ejb.plugins.AbstractInstanceCache] Unable to passivate due to 
ctx lock, id=9980001
2003-08-20 16:38:11,878 WARN  
[org.jboss.ejb.plugins.AbstractInstanceCache] Unable to passivate due to 
ctx lock, id=1
2003-08-20 16:38:19,818 WARN  
[org.jboss.ejb.plugins.AbstractInstanceCache] Unable to passivate due to 
ctx lock, id=NL
2003-08-20 16:40:39,076 WARN  
[org.jboss.ejb.plugins.AbstractInstanceCache] Unable to passivate due to 
ctx lock, id=9980001
2003-08-20 16:40:39,076 WARN  
[org.jboss.ejb.plugins.AbstractInstanceCache] Unable to passivate due to 
ctx lock, id=3196
2003-08-20 16:40:39,080 WARN  
[org.jboss.ejb.plugins.AbstractInstanceCache] Unable to passivate due to 
ctx lock, id=NL
2003-08-20 16:40:39,082 WARN  
[org.jboss.ejb.plugins.AbstractInstanceCache] Unable to passivate due to 
ctx lock, id=3196
2003-08-20 16:40:39,120 WARN  
[org.jboss.ejb.plugins.AbstractInstanceCache] Unable to passivate due to 
ctx lock, id=1
2003-08-20 16:40:39,121 WARN  
[org.jboss.ejb.plugins.AbstractInstanceCache] Unable to passivate due to 
ctx lock, id=9980001

where 9980001 is the ID of an existing entity (DSP), 3196 the ID of 
another existing entity (KP) and NL the ID of one existing Language entity.

With RC3 deadlock occurs at the very start of the processing:

2003-08-26 11:43:47,412 ERROR [com.kiala.kialapointserver.jms.AdminMDB] 
Could not process admin instruction [Create [translation] instruction].
com.kiala.kialapointserver.admin.processor.ProcessorException: Remote 
error [Application deadlock detected]
Caused by: org.jboss.util.deadlock.ApplicationDeadlockException: 
Application deadlock detected
at 
org.jboss.util.deadlock.DeadlockDetector.deadlockDetection(DeadlockDetector.java:45)
at 
org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.waitForTx(QueuedPessimisticEJBLock.java:276)
at 
org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.doSchedule(QueuedPessimisticEJBLock.java:212)
at 
org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.schedule(QueuedPessimisticEJBLock.java:159)
at 
org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:85)
at 
org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterceptor.java:53)
at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:320)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:128)
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.EntityContainer.internalInvoke(EntityContainer.java:490)
at org.jboss.ejb.Container.invoke(Container.java:700)
at 
org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:353)
at 

Re: [JBoss-user] JNDI Name

2003-08-27 Thread Alexey Loubyansky
Everything under 'java:/' is not remotely accessible.

alex

Rod Macpherson wrote:

JBoss is binding my datasource just fine and my webapp works but trying 
to connect from a stand-alone client outside of the server fails:
 
14:25:52,704 INFO  [FoobarDS] Bound connection factory for resource 
adapter for ConnectionManager 'jboss.jca:service=LocalTxCM,name=FoobarDS 
to JNDI name 'java:/FoobarDS'
 
The datasource is FoobarDS and we lookup the string java:/FoobarDS and 
that works fine within our J2EE application.  Only fails from a remote 
client (fabled option D did not work either:)
 
TIA,
 
Rod
 
 


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


Re: [JBoss-user] syntax of LIMIT

2003-08-27 Thread Alexey Loubyansky
Looks like it requires a parameter.

alex

Matthew Hixson wrote:

Can LIMIT be followed directly by a hard coded number or does it have to 
be a parameter?  I have a method that needs to return only the top 10 
items from the database after doing a sort.  This won't change, so 
there's no need to pass new Integer(10) into the finder and then do:

LIMIT ?1

in the query.  I'd like to just do:

LIMIT 10

but doing so causes JBoss to throw:

org.jboss.ejb.plugins.cmp.ejbql.ParseException: Encountered 10 at line 
1, column 482.
Was expecting:
NUMERIC_VALUED_PARAMETER ...
)]

Thanks,
   -M@


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


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


[JBoss-user] Connecting to JBoss from Eclipse plug-in

2003-08-27 Thread Eric Jain
When trying to connect to JBoss from an Eclipse plug-in, I either get
the following exception:

 javax.naming.CommunicationException [Root exception is
 java.rmi.UnmarshalException: Error unmarshaling return; nested
  exception is: java.net.SocketException: Connection reset]

or:

 javax.naming.CommunicationException [Root exception is
 java.rmi.ServerException: RemoteException occurred in server thread;
nested
  exception is:
 java.rmi.UnmarshalException: error unmarshalling arguments; nested
  exception is:
 java.net.MalformedURLException: no protocol: and]

The failure occurs at context.lookup(...); even context.lookup(bla)
fails.

  Properties p = new Properties();
  p.setProperty(InitialContext.INITIAL_CONTEXT_FACTORY,
org.jnp.interfaces.NamingContextFactory);
  p.setProperty(InitialContext.PROVIDER_URL,
jnp:// + host + :1099);
  p.setProperty(InitialContext.URL_PKG_PREFIXES,
org.jboss.naming:org.jnp.interfaces);
  Thread.currentThread()
.setContextClassLoader(getClass().getClassLoader());
  Context context = new InitialContext(p);
  Object ref = context.lookup(TestRemoteSessionHome.JNDI_NAME); // FAIL
  TestRemoteSessionHome home = (TestRemoteSessionHome)
PortableRemoteObject.narrow(ref, EJBHome.class);
  TestRemoteSession session = home.create();
  ...

Note that if I do not change the class loader, the InitialContext can't
be created. Switching the original class loader back immediately after
creating the InitialContext doesn't change anything.

Any ideas?

--
Eric Jain



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


RE: [JBoss-user] Can't find connection left open

2003-08-27 Thread Brian McSweeney
Hi Alex,
Thanks for the reply.

This solved the problem. Thanks very much for your help.
Brian


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Alexey
Loubyansky
Sent: 26 August 2003 18:02
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Can't find connection left open

It seems to be ok. One nuance, though.
You are reusing variables stmt and rs for two PreparedStatement and 
ResultSet instances.

  stmt = conn.prepareStatement(
  SQL_FIND_PRODUCTS_COUNT_BY_CATEGORY,
ResultSet.TYPE_SCROLL_INSENSITIVE,
  ResultSet.CONCUR_READ_ONLY );

and then

  stmt = conn.prepareStatement(
SQL_FIND_PRODUCTS_BY_CATEGORY,
  ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY );

The same for rs. In finally, you close only the last statement and 
result set, while the first ones are left open. Try to close all of 
them. Please, let us know if it solves the problem.

alex

Brian McSweeney wrote:

 Hi everyone,
 
  
 
 I have a problem where JBoss is telling me that it’s
 
  
 
 “closing a connection you left open. Please do your own housekeeping.”
 
  
 
 However, I can’t see where I’m leaving the connection open.
 
  
 
 I’m using JBoss 3.2.1 and my database is mysql.
 
 I’m doing a page-by-page iterator and in order to do it I have to
 
 Execute two prepared statements on mysql – one to get the count of all
 
 relevant items, and the other to get only the relevant ones for
whatever 
 page
 
 the user is on.
 
  
 
 The way I do it is through a session façade which uses the fast-lane
reader
 
 pattern to access MySql through a DAO object.
 
  
 
 Perhaps someone who knows a bit about closing connections could have a
 
 Quick scan of the code to see if they can spot what I’m leaving open.
 
  
 
 Thanks very much indeed,
 
 Brian.
 
  
 
  
 
  
 
  
 
 In my session façade I have the following method to
getProductsByCategory:
 
  
 
  
 
 /**
 
  * @ejb.interface-method
 
  * @ejb.transaction
 
  *  type=NotSupported
 
  */
 
 public Page getProductsByCategory( Integer categoryId, int 
 currentPage, int numberToShow, boolean fastLane )
 
 throws FinderException {
 

 
 log.info(Starting getProductsByCategory. FastLaneReader is: 
 +fastLane);
 
 if(fastLane){
 
 Connection conn = null;
 
 try {
 
 conn = getConnection();
 
 MySqlDAO dao = new MySqlDAO( );
 
 return dao.findProductsByCategory(conn, categoryId, 
 currentPage, numberToShow);
 
 }
 
 catch ( SQLException sql ) {
 
 throw new EJBException( sql );
 
 }
 
 finally{
 
 if ( conn != null ) {
 
 try {
 
 conn.close();
 
 }
 
 catch( Exception e ) {
 
 throw new EJBException( Unable to close the 
 connection, e );
 
 }
 
 }
 
 }
 
 }
 
 else {
 
 try {
 
 Collection products =
 
 
 ProductUtil.getLocalHome().findProductsByCategory(categoryId);
 
 log.info(products was : +products+ with a size of: 
 +products.size());
 

 
 return PageUtil.toPage( products, currentPage, 
 numberToShow, ProductValue.class );
 
 }
 
 catch( NamingException n ) {
 
 throw new EJBException( n );
 
 }
 
 }
 
 } 
 
  
 
  
 
  
 
  
 
 private Connection getConnection(  ) {
 
 try {
 
 InitialContext ic = new InitialContext(  );
 
 DataSource ds = ( DataSource ) ic.lookup( 
 JNDINames.DATASOURCE );
 
 return ds.getConnection(  );
 
 }
 
 catch ( Exception e ) {
 
 throw new EJBException(  );
 
 }
 
 }
 
  
 
  
 
  
 
 Then in my MySqlDAO class I call the following method to actually get 
 the objects:
 
 Note that I’m running two queries off the same statement, because
using 
 mysql I couldn’t
 
 find the count and get the information effectively in one statement.
 
  
 
  
 
  
 
  
 
   public Page findProductsByCategory( Connection conn, Integer 
 categoryId, int currentPage, int numberToShow )
 
 throws SQLException {
 
 log.info(***);
 
 log.info();
 
 log.info(starting the findProductsByCategoryAnd method);
 
 log.info( categoryId: +categoryId+, currentPage: 
 +currentPage+, numberToShow: +numberToShow );
 
 log.info();
 
 log.info(***);
 

 
 PreparedStatement stmt = null;
 
 ResultSet rs = null;
 
 Page page = new Page();
 

 
 try{
 
 stmt = conn.prepareStatement( 
 SQL_FIND_PRODUCTS_COUNT_BY_CATEGORY,
ResultSet.TYPE_SCROLL_INSENSITIVE, 
 ResultSet.CONCUR_READ_ONLY 

[JBoss-user] How to use SAP Connection Pool inJboss?

2003-08-27 Thread Marco.Mistroni
hi all,
can anyone tell me how to use SAP connection pool
in jboss?
do i still have to have the SAP Java Connector in order to use the connection pool?

regards
marco


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


[JBoss-user] PB: The system cannot find the file specified !

2003-08-27 Thread Alban Soupper
Hi all,

from time to time, I have a session statefull bean that is not retrieve
but JBoss 3.0.4 return a RemoteException.

Here is the a part of the stack trace:
java.rmi.NoSuchObjectException: Could not activate; CausedByException is:

C:\dev\jboss-3.0.4_tomcat-4.1.12\server\InformationSystem\db\sessions\FundCo
ntrollerEJBBean\1061985263872.ser (The system cannot find the file
specified)
at
org.jboss.ejb.plugins.AbstractInstanceCache.get(AbstractInstanceCache.java:1
86)
at
org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSess
ionInstanceInterceptor.java:212)
at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor
.java:107)
at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
java:178)
at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60)
at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:204)
at
org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContainer.java:
380)
at org.jboss.ejb.Container.invoke(Container.java:712)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at
org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:98)
at
org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:102)
at
org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:77
)
at
org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:80)
at
org.jboss.proxy.ejb.StatefulSessionInterceptor.invoke(StatefulSessionInterce
ptor.java:117)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
at $Proxy112.endCache(Unknown Source)
at
com.eim.business.control.facade.fullfund.fund.ejb.FundFacadeEJBBean.endCache
(FundFacadeEJBBean.java:376)


What can be the reasons, that such a file cannot be retrieve?

Thanks by advance for any help, we're stuck with this.
Alban.



***

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager to [EMAIL PROTECTED]

***



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


Re: [JBoss-user] A bile interview with Marc Fleury: 5 minutes offun

2003-08-27 Thread Vladyslav Kosulin
Vladyslav Kosulin wrote:

http://www.freeroller.net/page/fate/20030826#a_bile_interview_with_marc
Well, here is correct URL:
http://www.javablogs.com/Jump.jspa?id=48360
And please, folks, don't take it serious/personal, just smile ;-)
Vlad




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


RE: [JBoss-user] PB: The system cannot find the file specified !

2003-08-27 Thread Rupp, Heiko
Hi,

 ntrollerEJBBean\1061985263872.ser (The system cannot find the file
 What can be the reasons, that such a file cannot be retrieve?

If the passivated bean has not been accessed for some time it is
cleaned out by the system.

Have a look at standardjboss.xml for the container configs of stateful
session beans.

  Heiko
-- 
Heiko W. Rupp   EMail: [EMAIL PROTECTED]
Senior Consultant   Telefon: +49 711 222 992 - 900
Cellent AG Finance SolutionsTelefax: +49 711 222 992 - 999
Calwer Str. 33  D-70173 Stuttgart


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


[JBoss-user] instance/lib directory

2003-08-27 Thread Poppe, Troy

I have a properties file that I would like to place at the JBoss instance level
to provide some properties to my applications (to make them aware of the
environment they are running in).

I tried to place my .properties file in instance/lib, but I've noticed that the
ClassLoader will not find the properties.

Is there a preferred way in which to load properties that will allow me to have
different properties at the instance level?  (I am running 5 different instances
out of the same JBoss home directory.)

The code I am using to load the properties is as follows:

String name = environment.properties;
InputStream is = null;
instance = new EnvironmentProperties();
ClassLoader classLoader =
Thread.currentThread().getContextClassLoader();

is = classLoader.getResourceAsStream(name);
if (is != null)
{
try
{
instance.load(is);
}
catch (IOException e)
{
System.err.println(IOException on load:
 + e);
}
finally
{
try
{
is.close();
}
catch (IOException e)
{
System.err.println(IOException
on close:  + e);
}
}

I've seen the properties-service.xml, but I'm trying to do this in a manner that
is portable across containers.

Troy



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


Re: [JBoss-user] Postgres character fields and JBoss-QL

2003-08-27 Thread Alexey Loubyansky
char is a numeric type.

11.2.7.1 Literals
An exact numeric literal is a numeric value without a decimal point, 
such as 57, -957, +62. Exact
numeric literals support numbers in the range of Java long. Exact 
numeric literals use the Java integer
literal syntax.

alex

Matthew Hixson wrote:

I have a JBoss-QL query that contains

o.approvalCode = 'a'

in the where clause.  This is causing JBoss to throw:

nested throwable: (org.jboss.ejb.plugins.cmp.ejbql.ParseException: 
Encountered \'a\' at line 1, column 229.
Was expecting one of:
ABS ...
LENGTH ...
LOCATE ...
SQRT ...
( ...
+ ...
- ...
INTEGER_LITERAL ...
FLOATING_POINT_LITERAL ...
NUMERIC_VALUED_PARAMETER ...
NUMERIC_VALUED_PATH ...
)]

This same query works just fine with Resin so I'm fairly certain that I 
haven't hosed the rest of the query.

I am using Postgres and have setup my datasource as PostgresDS using a 
datasource mapping of PostgreSQL 7.2.  In that portion of 
standardjbosscmp-jdbc.xml there is this mapping:

   mapping
java-typejava.lang.Character/java-type
jdbc-typeCHAR/jdbc-type
sql-typeCHAR(1)/sql-type
 /mapping
In jbosscmp-jdbc.xml the field is described as:

 cmp-field
field-nameapprovalCode/field-name
column-nameapproval/column-name
/cmp-field
The approval column's data type is a 'char' in Postgres.

Is there some other syntax I need to use in order to hard code the 'a' 
into my JBoss-QL query?  Some mapping that I've neglected to setup?
  Any help is greatly appreciated,
   -M@



---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click 
here:http://www.vmware.com/wl/offer/358/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



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


Re: [JBoss-user] instance/lib directory

2003-08-27 Thread Adrian Brock
Put your file in conf/ alongside the other configuration files.
The directory is the first classloader in jboss.

Regards,
Adrian

On Wed, 2003-08-27 at 14:24, Poppe, Troy wrote:
 I have a properties file that I would like to place at the JBoss instance level
 to provide some properties to my applications (to make them aware of the
 environment they are running in).
 
 I tried to place my .properties file in instance/lib, but I've noticed that the
 ClassLoader will not find the properties.
 
 Is there a preferred way in which to load properties that will allow me to have
 different properties at the instance level?  (I am running 5 different instances
 out of the same JBoss home directory.)
 
 The code I am using to load the properties is as follows:
 
   String name = environment.properties;
   InputStream is = null;
   instance = new EnvironmentProperties();
   ClassLoader classLoader =
 Thread.currentThread().getContextClassLoader();
 
   is = classLoader.getResourceAsStream(name);
   if (is != null)
   {
   try
   {
   instance.load(is);
   }
   catch (IOException e)
   {
   System.err.println(IOException on load:
  + e);
   }
   finally
   {
   try
   {
   is.close();
   }
   catch (IOException e)
   {
   System.err.println(IOException
 on close:  + e);
   }
   }
 
 I've seen the properties-service.xml, but I'm trying to do this in a manner that
 is portable across containers.
 
 Troy
 
 
 
 ---
 This sf.net email is sponsored by:ThinkGeek
 Welcome to geek heaven.
 http://thinkgeek.com/sf
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user



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


Re: [JBoss-user] How to use SAP Connection Pool inJboss?

2003-08-27 Thread Sheldon Hearn
On (2003/08/27 15:24), [EMAIL PROTECTED] wrote:

   can anyone tell me how to use SAP connection pool
 in jboss?

Doesn't sapdb-ds.xml from docs/examples/jca work?

Ciao,
Sheldon.


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


RE: [JBoss-user] PB: The system cannot find the file specified !

2003-08-27 Thread Kevin Conner
  ntrollerEJBBean\1061985263872.ser (The system cannot find the file
  What can be the reasons, that such a file cannot be retrieve?
 
 If the passivated bean has not been accessed for some time it is
 cleaned out by the system.
 
 Have a look at standardjboss.xml for the container configs of stateful
 session beans.

We are running on a modified version of 3.0.2 and we came across this
when the session bean could not be passivated because of a serialisation
issue.  The bean is just thrown away but the system believes it has
passivated it and tries to activate it as normal.

Kev


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


Re: [JBoss-user] Help with memory leak issue

2003-08-27 Thread Tim McAuley
Jon Barnett wrote:

Have you logged information on pool sizes, bean lifecycles (particularly
for the stateful session beans) and so on? You'll probably want to monitor
activity on the servlets as well - session expiry probably being an
important event. No session expiry on servlets results in a memory leak.
The Postgresql driver has not exhibited any leakage in my experience under
any of the 7.2.x and 7.3.x implementations.
Are there any other strange issues? Large number of open connections to
hsqldb? Some people have experienced this with JBoss under Linux. We
usually don't see that as we run with no port for the hsqldb (in-process).
Have you tried with various JVMs as well?

Do you get any log messages showing any errors and do you ever run out of
memory?
Perhaps outline the JVMs used and the -X options used.

That's all I can think of at the moment. Others might have some better
suggestions.
JonB.
 

Jon,

Thanks for the reply. I have at last managed to track down the problem.

Just after sending the first email I decided to remove the call to 
message bean altogether. This worked and JBoss ran for 6 hours without 
any problems. After a bit of work I tracked this down to the fact that 
when calling a stored procedure the leak seemed to occur as opposed to 
calling a basic sql query.

It ended up that the stored procedure was producing NOTICE messages 
and these were being received by the jdbc driver. The jdbc driver was 
storing these SQLWarning messages under the connection and because 
JBoss does not actually close the connection but returns it to the pool, 
the messages weren't being purged.

I now have calls to read all the SQLWarnings from any jdbc calls being 
made and this seems to be doing the job. These messages are then traced 
out by log4j for safety.  I have also lowered the level of the messages 
being outputted so that fewer messages will be received.

Took a while but it was worth it.

Now I just have to figure out why I'm getting so many COMMIT: no 
transaction in progress messages from Postgresql. Have to examine our 
transaction handling I guess.

All the best,

Tim



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


[JBoss-user] Entity Bean Deployment problem - JBoss 3.2.2.RC2 - Please Help

2003-08-27 Thread Sasidharan, Manoj
Hello All,

I am trying to deploy one of my EJBs (Entity Beans) in JBoss. The deployment
descriptors are generated using JBuilder/Enterprise Wizard for JBoss and
JBuilder8 version 3..

Session Beans work fine.

The error on the console is shown below. 

Could somebody suggest what could be the issue?

Thanks in advance.

rgds
MS

15:58:35,601 INFO  [EjbModule] Creating
15:58:35,621 INFO  [EjbModule] Deploying UserEntity
15:58:35,671 INFO  [EntityContainer] Creating
15:58:35,671 INFO  [EntityInstancePool] Creating
15:58:35,671 INFO  [EntityInstancePool] Created
15:58:35,681 INFO  [EntityContainer] Created
15:58:35,681 INFO  [EjbModule] Created
15:58:35,701 INFO  [EjbModule] Starting
15:58:35,701 INFO  [EntityContainer] Starting
15:58:36,201 ERROR [XmlFileLoader] XmlFileLoader: File
jar:file:/D:/Downloads/jb
oss-3.2.2RC2/server/default/tmp/deploy/tmp17593user.jar!/META-INF/jbosscmp-j
dbc.
xml process error. Line: 81. Error message: The content of element type
entity
 must match
(ejb-name,(datasource,datasource-mapping)?,create-table?,remove-tab
le?,post-table-create?,read-only?,read-time-out?,row-locking?,pk-constraint?
,rea
d-ahead?,list-cache-max?,fetch-size?,table-name?,cmp-field*,load-groups?,eag
er-l
oad-group?,lazy-load-groups?,query*,unknown-pk?,entity-command?,optimistic-l
ocki
ng?,audit?).
15:58:36,201 ERROR [EntityContainer] Starting failed
org.jboss.deployment.DeploymentException: Invalid XML:
file=jar:file:/D:/Downloa
ds/jboss-3.2.2RC2/server/default/tmp/deploy/tmp17593user.jar!/META-INF/jboss
cmp-
jdbc.xml
at
org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:296)
at
org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:247)
at
org.jboss.metadata.XmlFileLoader.getDocumentFromURL(XmlFileLoader.jav
a:219)
at
org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:203)
at
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCXmlFileLoader.load(JDBCXm
lFileLoader.java:74)
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadJDBCEntityMetaDat
a(JDBCStoreManager.java:739)
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBC
StoreManager.java:430)
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManage
r.java:372)
at
org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManag
er.java:160)
at
org.jboss.ejb.EntityContainer.startService(EntityContainer.java:340)
at
org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:1
92)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
nDispatcher.java:284)


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


Re: [JBoss-user] Entity Bean Deployment problem - JBoss 3.2.2.RC2- Please Help

2003-08-27 Thread Adrian Brock
The xml elements must be in the order specified in
the dtd. Or turn off dtd validation.

Regards,
Adrian

On Wed, 2003-08-27 at 16:12, Sasidharan, Manoj wrote:
 Hello All,
 
 I am trying to deploy one of my EJBs (Entity Beans) in JBoss. The deployment
 descriptors are generated using JBuilder/Enterprise Wizard for JBoss and
 JBuilder8 version 3..
 
 Session Beans work fine.
 
 The error on the console is shown below. 
 
 Could somebody suggest what could be the issue?
 
 Thanks in advance.
 
 rgds
 MS
 
 15:58:35,601 INFO  [EjbModule] Creating
 15:58:35,621 INFO  [EjbModule] Deploying UserEntity
 15:58:35,671 INFO  [EntityContainer] Creating
 15:58:35,671 INFO  [EntityInstancePool] Creating
 15:58:35,671 INFO  [EntityInstancePool] Created
 15:58:35,681 INFO  [EntityContainer] Created
 15:58:35,681 INFO  [EjbModule] Created
 15:58:35,701 INFO  [EjbModule] Starting
 15:58:35,701 INFO  [EntityContainer] Starting
 15:58:36,201 ERROR [XmlFileLoader] XmlFileLoader: File
 jar:file:/D:/Downloads/jb
 oss-3.2.2RC2/server/default/tmp/deploy/tmp17593user.jar!/META-INF/jbosscmp-j
 dbc.
 xml process error. Line: 81. Error message: The content of element type
 entity
  must match
 (ejb-name,(datasource,datasource-mapping)?,create-table?,remove-tab
 le?,post-table-create?,read-only?,read-time-out?,row-locking?,pk-constraint?
 ,rea
 d-ahead?,list-cache-max?,fetch-size?,table-name?,cmp-field*,load-groups?,eag
 er-l
 oad-group?,lazy-load-groups?,query*,unknown-pk?,entity-command?,optimistic-l
 ocki
 ng?,audit?).
 15:58:36,201 ERROR [EntityContainer] Starting failed
 org.jboss.deployment.DeploymentException: Invalid XML:
 file=jar:file:/D:/Downloa
 ds/jboss-3.2.2RC2/server/default/tmp/deploy/tmp17593user.jar!/META-INF/jboss
 cmp-
 jdbc.xml
 at
 org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:296)
 at
 org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:247)
 at
 org.jboss.metadata.XmlFileLoader.getDocumentFromURL(XmlFileLoader.jav
 a:219)
 at
 org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:203)
 at
 org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCXmlFileLoader.load(JDBCXm
 lFileLoader.java:74)
 at
 org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadJDBCEntityMetaDat
 a(JDBCStoreManager.java:739)
 at
 org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBC
 StoreManager.java:430)
 at
 org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManage
 r.java:372)
 at
 org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManag
 er.java:160)
 at
 org.jboss.ejb.EntityContainer.startService(EntityContainer.java:340)
 at
 org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:1
 92)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
 java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
 sorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at
 org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
 nDispatcher.java:284)
 
 
 ---
 This sf.net email is sponsored by:ThinkGeek
 Welcome to geek heaven.
 http://thinkgeek.com/sf
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user



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


Re: [JBoss-user] Help with memory leak issue

2003-08-27 Thread Stephane Nicoll




Hello,

We had exactly the same problem! 

Using Jboss 3.2.1 with the pg73jdbc3 driver solves our problem.

Regards,

Stphane Nicoll

On Wed, 2003-08-27 at 17:14, Tim McAuley wrote:


Thanks for the reply. I have at last managed to track down the problem.

Just after sending the first email I decided to remove the call to 
message bean altogether. This worked and JBoss ran for 6 hours without 
any problems. After a bit of work I tracked this down to the fact that 
when calling a stored procedure the leak seemed to occur as opposed to 
calling a basic sql query.

It ended up that the stored procedure was producing NOTICE messages 
and these were being received by the jdbc driver. The jdbc driver was 
storing these SQLWarning messages under the connection and because 
JBoss does not actually close the connection but returns it to the pool, 
the messages weren't being purged.

I now have calls to read all the SQLWarnings from any jdbc calls being 
made and this seems to be doing the job. These messages are then traced 
out by log4j for safety.  I have also lowered the level of the messages 
being outputted so that fewer messages will be received.

Took a while but it was worth it.

Now I just have to figure out why I'm getting so many COMMIT: no 
transaction in progress messages from Postgresql. Have to examine our 
transaction handling I guess.

All the best,

Tim



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





[JBoss-user] Entity Bean Deployment problem - JBoss 3.2.0.RC4, 3.2.1, 3.2.2.RC2 - Please Help

2003-08-27 Thread Sasidharan, Manoj
 Hello All,
 
 I am trying to deploy one of my EJBs (Entity Beans) in JBoss. The
 deployment descriptors are generated using JBuilder/Enterprise Wizard for
 JBoss and JBuilder8 version 3..
 
 Session Beans work fine.
 
 The error on the console is shown below and also enclosed is the
 jbosscmp.xml file generated by the plug-in. 
 
Can someone please help me resolve this issue.

 Thanks in advance.
 
 rgds
 MS
 
 15:58:35,601 INFO  [EjbModule] Creating
 15:58:35,621 INFO  [EjbModule] Deploying UserEntity
 15:58:35,671 INFO  [EntityContainer] Creating
 15:58:35,671 INFO  [EntityInstancePool] Creating
 15:58:35,671 INFO  [EntityInstancePool] Created
 15:58:35,681 INFO  [EntityContainer] Created
 15:58:35,681 INFO  [EjbModule] Created
 15:58:35,701 INFO  [EjbModule] Starting
 15:58:35,701 INFO  [EntityContainer] Starting
 15:58:36,201 ERROR [XmlFileLoader] XmlFileLoader: File
 jar:file:/D:/Downloads/jb
 oss-3.2.2RC2/server/default/tmp/deploy/tmp17593user.jar!/META-INF/jbosscmp
 -jdbc.
 xml process error. Line: 81. Error message: The content of element type
 entity
  must match
 (ejb-name,(datasource,datasource-mapping)?,create-table?,remove-tab
 le?,post-table-create?,read-only?,read-time-out?,row-locking?,pk-constrain
 t?,rea
 d-ahead?,list-cache-max?,fetch-size?,table-name?,cmp-field*,load-groups?,e
 ager-l
 oad-group?,lazy-load-groups?,query*,unknown-pk?,entity-command?,optimistic
 -locki
 ng?,audit?).
 15:58:36,201 ERROR [EntityContainer] Starting failed
 org.jboss.deployment.DeploymentException: Invalid XML:
 file=jar:file:/D:/Downloa
 ds/jboss-3.2.2RC2/server/default/tmp/deploy/tmp17593user.jar!/META-INF/jbo
 sscmp-
 jdbc.xml
 at
 org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:296)
 at
 org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:247)
 at
 org.jboss.metadata.XmlFileLoader.getDocumentFromURL(XmlFileLoader.jav
 a:219)
 at
 org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:203)
 at
 org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCXmlFileLoader.load(JDBCXm
 lFileLoader.java:74)
 at
 org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadJDBCEntityMetaDat
 a(JDBCStoreManager.java:739)
 at
 org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBC
 StoreManager.java:430)
 at
 org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManage
 r.java:372)
 at
 org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManag
 er.java:160)
 at
 org.jboss.ejb.EntityContainer.startService(EntityContainer.java:340)
 at
 org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:1
 92)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
 java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
 sorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at
 org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
 nDispatcher.java:284)
 
jbosscmp-jdbc.xml

?xml version=1.0 encoding=UTF-8?
!DOCTYPE jbosscmp-jdbc PUBLIC -//JBoss//DTD JBOSSCMP-JDBC 3.2//EN
http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_3_2.dtd;
jbosscmp-jdbc
defaults
datasourceefwXADataSource/datasource
datasource-mappingOracle8/datasource-mapping
/defaults
enterprise-beans
entity
ejb-nameUserEntity/ejb-name
table-nameUSERS/table-name
datasourceefwXADataSource/datasource
datasource-mappingOracle8/datasource-mapping
create-tablefalse/create-table
remove-tablefalse/remove-table
read-onlyfalse/read-only
cmp-field
field-nameuserId/field-name
column-nameUSER_ID/column-name
/cmp-field
cmp-field
field-nameloginName/field-name
column-nameLOGIN_NAME/column-name
/cmp-field
cmp-field
field-namepassword/field-name
column-namePASSWORD/column-name
/cmp-field
cmp-field
field-namefirstName/field-name
column-nameFIRST_NAME/column-name
/cmp-field
cmp-field
field-namemiddleName/field-name
column-nameMIDDLE_NAME/column-name
/cmp-field
cmp-field
field-namelastName/field-name
column-nameLAST_NAME/column-name
/cmp-field
cmp-field
field-namemapNameId/field-name
column-nameMAP_NAME_ID/column-name
/cmp-field
cmp-field
field-nameactNameId/field-name
column-nameACT_NAME_ID/column-name
/cmp-field
cmp-field
field-nameloginLimit/field-name

Re: [JBoss-user] Postgres character fields and JBoss-QL

2003-08-27 Thread Matthew Hixson
Thanks, Alex.  We have a workaround in place now by comparing against 
97, the ASCII value of 'a'.  This will work for now, and we'll probably 
just leave it that way as this query will likely never change.
  Thanks again,
   -M@

On Wednesday, August 27, 2003, at 06:36  AM, Alexey Loubyansky wrote:

char is a numeric type.

11.2.7.1 Literals
An exact numeric literal is a numeric value without a decimal point, 
such as 57, -957, +62. Exact
numeric literals support numbers in the range of Java long. Exact 
numeric literals use the Java integer
literal syntax.

alex

Matthew Hixson wrote:

I have a JBoss-QL query that contains
o.approvalCode = 'a'
in the where clause.  This is causing JBoss to throw:
nested throwable: (org.jboss.ejb.plugins.cmp.ejbql.ParseException: 
Encountered \'a\' at line 1, column 229.
Was expecting one of:
ABS ...
LENGTH ...
LOCATE ...
SQRT ...
( ...
+ ...
- ...
INTEGER_LITERAL ...
FLOATING_POINT_LITERAL ...
NUMERIC_VALUED_PARAMETER ...
NUMERIC_VALUED_PATH ...
)]
This same query works just fine with Resin so I'm fairly certain that 
I haven't hosed the rest of the query.
I am using Postgres and have setup my datasource as PostgresDS using 
a datasource mapping of PostgreSQL 7.2.  In that portion of 
standardjbosscmp-jdbc.xml there is this mapping:
   mapping
java-typejava.lang.Character/java-type
jdbc-typeCHAR/jdbc-type
sql-typeCHAR(1)/sql-type
 /mapping
In jbosscmp-jdbc.xml the field is described as:
 cmp-field
field-nameapprovalCode/field-name
column-nameapproval/column-name
/cmp-field
The approval column's data type is a 'char' in Postgres.
Is there some other syntax I need to use in order to hard code the 
'a' into my JBoss-QL query?  Some mapping that I've neglected to 
setup?
  Any help is greatly appreciated,
   -M@
---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single 
machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click 
here:http://www.vmware.com/wl/offer/358/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


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


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


RE: [JBoss-user] JNDI Name

2003-08-27 Thread Rod Macpherson
Ah, light comes on. In any event, I specified FoobarDS and since JBoss plunked it down 
in java:/FoobarDS am I correct in assuming that direct access to datasources is not 
supported? Normally we use session beans and delegate database access through the 
session beans. In this case I wanted to cobble together a quick 'n dirty test app that 
used the datasource on a running instance of JBoss. Should I use the session façade in 
this case also or is there a way to get the datasource remotely?

-Original Message-
From: Alexey Loubyansky [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 27, 2003 4:37 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] JNDI Name


Everything under 'java:/' is not remotely accessible.

alex

Rod Macpherson wrote:

 JBoss is binding my datasource just fine and my webapp works but 
 trying
 to connect from a stand-alone client outside of the server fails:
  
 14:25:52,704 INFO  [FoobarDS] Bound connection factory for resource
 adapter for ConnectionManager 'jboss.jca:service=LocalTxCM,name=FoobarDS 
 to JNDI name 'java:/FoobarDS'
  
 The datasource is FoobarDS and we lookup the string java:/FoobarDS and
 that works fine within our J2EE application.  Only fails from a remote 
 client (fabled option D did not work either:)
  
 TIA,
  
 Rod
  
  



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


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


RE: [JBoss-user] Entity Bean Deployment problem - JBoss 3.2.0.RC4, 3.2.1, 3.2.2.RC 2 - Please Help

2003-08-27 Thread Rod Macpherson
Just my personal experience but JBuilder cannot be relied on to create
correct let alone portable deployment descriptors. I ditched it and
started using Xdoclet to generator descriptors and Eclipse as my IDE and
have never had a problem since. It happens to be a free solution but
that was never a driving factor in the selection.

Regarding your specific problem, ensure that your ejb reference indeed
matches this definition. Must haves, optionals, zero or mores and so on.
I will bet dollars to donuts (an analogy that is slowly losing its
meaning:) there is an error. 

ejb-name,(datasource,datasource-mapping)?,create-table?,remove-table?,po
st-table-create?,read-only?,read-time-out?,row-locking?,
pk-constraint?,read-ahead?,list-cache-max?,fetch-size?,table-name?,cmp-f
ield*,load-groups?,eager-load-group?,lazy-load-groups?,query*,unknown-pk
?,
entity-command?,optimistic-locking?,audit?)




 

-Original Message-
From: Sasidharan, Manoj [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 27, 2003 9:49 AM
To: '[EMAIL PROTECTED]'
Cc: Sasidharan, Manoj
Subject: [JBoss-user] Entity Bean Deployment problem - JBoss 3.2.0.RC4,
3.2.1, 3.2.2.RC 2 - Please Help


 Hello All,
 
 I am trying to deploy one of my EJBs (Entity Beans) in JBoss. The 
 deployment descriptors are generated using JBuilder/Enterprise Wizard 
 for JBoss and JBuilder8 version 3..
 
 Session Beans work fine.
 
 The error on the console is shown below and also enclosed is the 
 jbosscmp.xml file generated by the plug-in.
 
Can someone please help me resolve this issue.

 Thanks in advance.
 
 rgds
 MS
 
 15:58:35,601 INFO  [EjbModule] Creating
 15:58:35,621 INFO  [EjbModule] Deploying UserEntity 15:58:35,671 INFO

 [EntityContainer] Creating 15:58:35,671 INFO  [EntityInstancePool] 
 Creating 15:58:35,671 INFO  [EntityInstancePool] Created
 15:58:35,681 INFO  [EntityContainer] Created
 15:58:35,681 INFO  [EjbModule] Created
 15:58:35,701 INFO  [EjbModule] Starting
 15:58:35,701 INFO  [EntityContainer] Starting
 15:58:36,201 ERROR [XmlFileLoader] XmlFileLoader: File
 jar:file:/D:/Downloads/jb

oss-3.2.2RC2/server/default/tmp/deploy/tmp17593user.jar!/META-INF/jbossc
mp
 -jdbc.
 xml process error. Line: 81. Error message: The content of element
type
 entity
  must match
 (ejb-name,(datasource,datasource-mapping)?,create-table?,remove-tab

le?,post-table-create?,read-only?,read-time-out?,row-locking?,pk-constra
in
 t?,rea

d-ahead?,list-cache-max?,fetch-size?,table-name?,cmp-field*,load-groups?
,e
 ager-l

oad-group?,lazy-load-groups?,query*,unknown-pk?,entity-command?,optimist
ic
 -locki
 ng?,audit?).
 15:58:36,201 ERROR [EntityContainer] Starting failed
 org.jboss.deployment.DeploymentException: Invalid XML:
 file=jar:file:/D:/Downloa

ds/jboss-3.2.2RC2/server/default/tmp/deploy/tmp17593user.jar!/META-INF/j
bo
 sscmp-
 jdbc.xml
 at
 org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:296)
 at
 org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:247)
 at
 org.jboss.metadata.XmlFileLoader.getDocumentFromURL(XmlFileLoader.jav
 a:219)
 at
 org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:203)
 at
 org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCXmlFileLoader.load(JDBCXm
 lFileLoader.java:74)
 at
 org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadJDBCEntityMetaDat
 a(JDBCStoreManager.java:739)
 at
 org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBC
 StoreManager.java:430)
 at
 org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManage
 r.java:372)
 at
 org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManag
 er.java:160)
 at
 org.jboss.ejb.EntityContainer.startService(EntityContainer.java:340)
 at
 org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:1
 92)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
 java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
 sorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at
 org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
 nDispatcher.java:284)
 
jbosscmp-jdbc.xml

?xml version=1.0 encoding=UTF-8?
!DOCTYPE jbosscmp-jdbc PUBLIC -//JBoss//DTD JBOSSCMP-JDBC 3.2//EN
http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_3_2.dtd;
jbosscmp-jdbc
defaults
datasourceefwXADataSource/datasource
datasource-mappingOracle8/datasource-mapping
/defaults
enterprise-beans
entity
ejb-nameUserEntity/ejb-name
table-nameUSERS/table-name
datasourceefwXADataSource/datasource
datasource-mappingOracle8/datasource-mapping
create-tablefalse/create-table
remove-tablefalse/remove-table
read-onlyfalse/read-only
cmp-field

RE: [JBoss-user] No hair left, help is needed on $Proxy23.clinitNoSuchMethodError

2003-08-27 Thread Cor Hofman
Hi Bavo, Alex and Julien,

It turned that the following was the case:
o I had the object EmailZip as an argument to the sendEmail2Businesses()
method.
o The EmailZip was packed in 2 different jars (let's say ext.jar and
web-inf.jar).
  I wasn't aware of this :-(
o ext.jar jar was located at the lib/ext of the jre, web-inf.jar in the
WEB-INF/lib
  So EmailZip could be loaded either from lib/ext or via WEB-INF/lib. Where
classes
  shared between EJB server and the client need to be at lib/ext. However I
found
  out that the EmailZip was loaded from WEB-INF/lib, which leaded to a class
definition
  conflict at the time the dynamic stub generator compared the class types
  of the methods of the EmailCrmSession bean. Because of the different
classloaders used
  the EmailZip class at the EJB-server side and the client-side were not the
same.
  They were the same name-wise, but not class loader wise.

The fix:
Removing EmailZip from web-inf.jar, the jar that was located at WEB-INF/lib,
solved this issue.
The EmailZip class was now correctly loaded from the ext.jat at lib/ext

My hair will now grow back shortly... I hope :-)

Thank you all for setting me on the right track.

Regards,

  Cor.

-Original Message-
From: Bavo De Ridder [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 27, 2003 13:11
To: [EMAIL PROTECTED]; Cor Hofman
Subject: Re: [JBoss-user] No hair left,help is needed on
$Proxy23.clinit NoSuchMethodError


Hi,

I would check this:

1) if this happens on two servers, are they identical in client libraries? I
have encountered numerous situations where even a minor version number
difference of jboss caused casting and serialization issues. A 3.1.1 and a
3.2 will not be able to call EJB from one to the other without having
problems sooner or later.

2) did you use any special class loader issues while deploying the
applications? I am thinking of unified class loaders here ... Look for
loader-repository directives in .xml files.

My guess would be the client versions. Make sure you have one and only one
JBoss version deployed, down to the minor version numbers.

I solved all my EJB problems by switching to SOAP with the JWSDP from Sun :)


B.

On Tuesday 26 August 2003 12:41, Cor Hofman wrote:
 Hi all,

 No response yet, so let me toss in a suggestion.
 Could it be that this is a classloader issue?

 Regards,

Cor.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Cor Hofman
 Sent: Monday, August 25, 2003 20:56
 To: Jboss
 Subject: [JBoss-user] No hair left, help is needed on $Proxy23.clinit
 NoSuchMethodError


 Hi all,

 Your help is much appreciated on this one, because this one is driving me
 nuts!

 java.lang.NoSuchMethodError: sendEmail2Businesses
 [Mon Aug 25 20:43:50 CEST 2003]   at $Proxy23.clinit(Unknown Source)
 [Mon Aug 25 20:43:50 CEST 2003]   at

sun.reflect.GeneratedSerializationConstructorAccessor64.newInstance(Unknown
 Source)
 [Mon Aug 25 20:43:50 CEST 2003]   at
 java.lang.reflect.Constructor.newInstance(Constructor.java:274)
 [Mon Aug 25 20:43:50 CEST 2003]   at
 java.io.ObjectStreamClass.newInstance(ObjectStreamClass.java:759)
 [Mon Aug 25 20:43:50 CEST 2003]   at
 java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1621)
 [Mon Aug 25 20:43:50 CEST 2003]   at
 java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1264)
 [Mon Aug 25 20:43:50 CEST 2003]   at
 java.io.ObjectInputStream.readObject(ObjectInputStream.java:322)
 [Mon Aug 25 20:43:50 CEST 2003]   at
 java.rmi.MarshalledObject.get(MarshalledObject.java:135)
 [Mon Aug 25 20:43:50 CEST 2003]   at

org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invokeHome(HomeProxy.java:2
5 8)
 [Mon Aug 25 20:43:50 CEST 2003]   at
 org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:182)
 [Mon Aug 25 20:43:50 CEST 2003]   at $Proxy22.create(Unknown Source)
 [Mon Aug 25 20:43:50 CEST 2003]   at

org.companion.tag.crm.EmailBusinessThread.load(EmailBusinessThread.java:71)
 [Mon Aug 25 20:43:50 CEST 2003]   at
 org.companion.tag.EmailThread.run(EmailThread.java:52)

 I have 2 installation. On 2 of them the above exeception is never thrown.
 On the third one I keep
 getting this NoSuchMethodError Exception at $Proxy23.clinit, which I
 cannot explain.
 Unfortunately this is our production environment.

 The situation is the following:
 I am running JBOSS 2.4.6. From within a servlet I create a thread and
 within the thread
 I call the method EmailCrmSession.sendEmail2Businesses().
 EmailCrmSession is a stateless Session bean which sends Emails.

 Now what is going on?

 Your input is much appreciated.

 Regards Cor.



 ---
 This SF.net email is sponsored by: VM Ware
 With VMware you can run multiple operating systems on a single machine.
 WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
 at the same time. Free trial click