Re: [JBoss-user] Extremely slow transaction

2002-10-10 Thread marius


On Fri, Oct 11, 2002 at 08:46:58AM +0200, Jon Haugsand wrote:
> * Marius Kotsbak
> > > > >for (id=0;id++;id<1000) {
> > > > >  // Start transaction
> > > > >  Collection c=findByStatus(id,status);
> > > > >  for(i=c.iterator();i.hasNext();) {
> > > > >((EntityLocal) (i.next())) . setStatus(newStatus);
> > > > >  }
> > > > >  // End transaction
> > > > >}
> > > > >
> > > > Why not package the whole in one transaction (including the outher
> > > > for-statement), too see if this speeds things up, if it doesn't change
> > > > the semantics of your operation. Or you might start a nested
> > > > transaction for the inner for.
> > > 
> > > We can try this in order to see the effect, but we cannot change this
> > > permanently.
> > Why not?
> 
> Several reasons:
> 
>   1. The transaction will take too long time, locking other requests
>  out.
>   2. An exception would roll back all updates to the entity bean
>  instances.
> 
> Of course, no 2 can be solved by designing differently, but that is
> also a risk in our project.  No 1 has to be tested.

In this case, I miss the sql-statement
"UPDATE sometable SET status=2 WHERE status=6"
which I don't think EJB/JBoss-QL can handle. This will probably speeds things up 
considerably.

If it is an unsolvable problem, a hack would be to use a sql like that directly to the 
DB. You might then perhaps not use all commit options in jboss safely though (but I 
think the default for EJB2.x beans handles this).

You might also optimize a bit by tweaking in jbosscmp-jdbc to fetch multiple entites 
at a time, and have the status as one load group.

> 
> -- 
>   Jon Haugsand, <[EMAIL PROTECTED]>
>   Norges Bank, 
> 
> 
> 
> ---
> 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

-- 
MVH
Marius Kotsbak
Boost communications AS


---
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] Extremely slow transaction

2002-10-10 Thread Sacha Labourey

hello,

Sorry to show up so lately in your discussion but what is the real problem?
I guess it is not the transaction in itself? You seem to say that your
problem comes from the way JBossCMP loads your data, do you have more
information and what is actually happening and why you think it kills your
performance?

Thank you. Cheers,



Sacha

> -Message d'origine-
> De : [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]De la part de Jon
> Haugsand
> Envoye : vendredi, 11 octobre 2002 08:47
> A : [EMAIL PROTECTED]
> Objet : Re: [JBoss-user] Extremely slow transaction
>
>
> * Marius Kotsbak
> > > > >for (id=0;id++;id<1000) {
> > > > >  // Start transaction
> > > > >  Collection c=findByStatus(id,status);
> > > > >  for(i=c.iterator();i.hasNext();) {
> > > > >((EntityLocal) (i.next())) . setStatus(newStatus);
> > > > >  }
> > > > >  // End transaction
> > > > >}
> > > > >
> > > > Why not package the whole in one transaction (including the outher
> > > > for-statement), too see if this speeds things up, if it
> doesn't change
> > > > the semantics of your operation. Or you might start a nested
> > > > transaction for the inner for.
> > >
> > > We can try this in order to see the effect, but we cannot change this
> > > permanently.
> > Why not?
>
> Several reasons:
>
>   1. The transaction will take too long time, locking other requests
>  out.
>   2. An exception would roll back all updates to the entity bean
>  instances.
>
> Of course, no 2 can be solved by designing differently, but that is
> also a risk in our project.  No 1 has to be tested.
>
> --
>   Jon Haugsand, <[EMAIL PROTECTED]>
>   Norges Bank, 
>
>
>
> ---
> 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] Extremely slow transaction

2002-10-10 Thread Jon Haugsand
* Marius Kotsbak
> > > >for (id=0;id++;id<1000) {
> > > >  // Start transaction
> > > >  Collection c=findByStatus(id,status);
> > > >  for(i=c.iterator();i.hasNext();) {
> > > >((EntityLocal) (i.next())) . setStatus(newStatus);
> > > >  }
> > > >  // End transaction
> > > >}
> > > >
> > > Why not package the whole in one transaction (including the outher
> > > for-statement), too see if this speeds things up, if it doesn't change
> > > the semantics of your operation. Or you might start a nested
> > > transaction for the inner for.
> > 
> > We can try this in order to see the effect, but we cannot change this
> > permanently.
> Why not?

Several reasons:

  1. The transaction will take too long time, locking other requests
 out.
  2. An exception would roll back all updates to the entity bean
 instances.

Of course, no 2 can be solved by designing differently, but that is
also a risk in our project.  No 1 has to be tested.

-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, 



---
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 build JBoss-3.2 from cvs...

2002-10-10 Thread Markus Garscha

ok, i worked!

why do i have create a new directory when i have an (old) branch?
shouln't cvs manage the update automaticly?

markus

* Markus Garscha <[EMAIL PROTECTED]> [2002-10-11 08:00]:
> H,
> 
> my last update from cvs was Branch_3_0_0. i'll delete my old jboss-all
> directory and make a new co...
> 
> thanx
> markus
> 
> * Scott M Stark <[EMAIL PROTECTED]> [2002-10-11 01:09]:
> > Show the full cvs co command as I just tried:
> > cvs co -r Branch_3_2 jboss-all
> > 
> > and the code builds fine on OSX with a 1.3.1 JDK.
> > 
> > 
> > Scott Stark
> > Chief Technology Officer
> > JBoss Group, LLC
> > 
> > 
> > - Original Message - 
> > From: "Markus Garscha" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, October 10, 2002 1:07 PM
> > Subject: [JBoss-user] Can't build JBoss-3.2 from cvs...
> > 
> > 
> > 
> > 
> > ---
> > 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
> 
> -- 
> ---
>  Markus Garschaemail: [EMAIL PROTECTED] 
>  Patrichsiedlung 32  fon: +49 9142 962749
>  91757 Treuchtlingen fax: +49 89 244356966 
>  Germany   pgp-keyid: 0xEE18AF3B  
> ---
> 





msg22171/pgp0.pgp
Description: PGP signature


[JBoss-user] Re-deployment of custom XMLConfiguration

2002-10-10 Thread Keysers, Wonne
Title: Re-deployment of custom XMLConfiguration 





Hi,


I want to deploy my JAAS login configuration together with my application.
I took the code from org.jboss.test.security.service.SecurityService to create a new MBean, configured by a SAR, which also contains the login-config.xml.

Deployment works well, but there seems to be a problem with RE-deployment.
After I adjust some model-options in the XML configuration, changes in the login config are not active when I redeploy the SAR (EAR), but I have to restart the JBoss server.

Also, during debug I noticed that the initialize method on my login module is not invoked after redeployment.


Any tips?


Thanks a lot
Wonne





Re: [JBoss-user] JBoss only using 1 of 8 cpu's

2002-10-10 Thread Jules Gosnell

Alwyn Schoeman wrote:
> Hi,
> 
> I'm running JBoss 3.0.3 on a Sun Fire 880 with 8 cpu's.  Even though I
> have about 450 threads going it uses only 1 cpu and not very well at
> that.  I have tried all the JVM options for 1.4.1, but no difference.
> 
> Anyone have any ideas?
> 

If you are doing web work with Jetty, try upping the Min and Max thread 
settings in deploy/jbossweb.sar/META-INF/jboss-service.xml.

If the concurrency goes up, it might spill over onto more cpus...

Jules




---
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[2]: [JBoss-user] Value Objects...

2002-10-10 Thread Alex Loubyansky

Hello Markus,

I think currently no. But there was an attempt and saw a patch for
xdoclet. But at that time unknown-pk element didn't have a fixed
structure. Write about it to XDoclet guys.
Though, I think entity-command could be changed or,more
exactly, extended soon.

alex

Thursday, October 10, 2002, 7:44:35 PM, you wrote:

>> Here is an example (jbosscmp-jdbc.xml):
>>   
>>  UnknownPkBean
>>  true
>>  true
>>  
>> 
>> 
>>  
>> java.lang.Integer
>> genid
>> INTEGER
>> INTEGER
>>  
>>  
>> SELECT CURRENT_TIMESTAMP
>>  
>>   
>> 

MG> i looked at xdoclet.sf.net to find @tags for xdoclet code generation,
MG> but it seems not to be supported yet. i there any way to automate this
MG> task?

MG> thanx
MG> markus

-- 
Best regards,
 Alex Loubyansky




---
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] How do i Integrete JBOSS 3.0.0 with Tomcat 4.0.1

2002-10-10 Thread Gangadhar



Hi,
 
I have JBOSS 3.0.0 and TomCat 4.0.1 
installed separately in my machine.
I would like to use Tomcat as a webserver 
for JBOSS how do i use it.
 
Please tell me if you guys know how to 
integrete?.
 
Thanks 
Gangadhar
 

DISCLAIMER
 ---
 This email message and any attachments is confidential and intended only for
 the use of an individual or entity named above and may contain information
 that is privileged, confidential or exempt from disclosure under applicable
 law.  If you are not the intended recipient, you are notified that any
 dissemination, distribution or copying of this email is strictly prohibited.
 If you have received this email in error, please notify us immediately by
 return email or [EMAIL PROTECTED] and destroy the original message.
 Opinions, conclusions, and other information in this message that do not
 relate to the official business of SPAN, shall be understood to be neither
 given nor endorsed by SPAN

Mails are Scanned and Filtered for Virus
[EMAIL PROTECTED]





[JBoss-user] JBoss only using 1 of 8 cpu's

2002-10-10 Thread Alwyn Schoeman

Hi,

I'm running JBoss 3.0.3 on a Sun Fire 880 with 8 cpu's.  Even though I
have about 450 threads going it uses only 1 cpu and not very well at
that.  I have tried all the JVM options for 1.4.1, but no difference.

Anyone have any ideas?

-- 
Alwyn Schoeman
SMART Money Inc.

"The clock on the wall keeps moving, time stands still...
 No matter how the dice may fall, someone else always gets to call the number..."



msg22166/pgp0.pgp
Description: PGP signature


[JBoss-user] Re:URGENT: how to set up 1->N and N->1 relationship with XDoclet v1.2b1

2002-10-10 Thread Gene Ge

Hi,Herve:
I'm using 1.1.2 and have made it successfully.
1:N
At the One side EJB:

@ejb:interface-method view-type="local"
* @ejb:relation
*name="One-Many"
*role-name="One"
*target-role-name="Many"
*target-ejb="TargetEJB"
*target-multiple="no"
*
*
* @jboss:target-relation  related-pk-field="PKofOneSide"
* fk-column="FKofManySide"
And you don't need to do anything at the Many side.

N:1:
 * @ejb:interface-method
 * @ejb:relation
 *name="Many-One"
 *role-name="Many"
 *target-role-name="One"
 *target-ejb="Major"
 *target-multiple="yes"
 *
 *
 * @jboss:relation  related-pk-field="PKofOneSide"
 * fk-column="FKofManySide"
And still you needn't do anything at the one side.

Both of the way above is in unidirectional situation. If you want your beans 
to be bidirectional:
1:N
At the One side:
 * @ejb:relation
 *name="One-Many"
 *role-name="One"

At the N Side:
 * @ejb:relation
 *name="One-Many"
 *role-name="Many"
 *
 * @jboss:relation  related-pk-field="PKofOneSide"
 * fk-column="FKofManySide"

Hope it's helpful

good luck
Gene

_
Chat with friends online, try MSN Messenger: http://messenger.msn.com



---
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] Does anybody work with XA driver for MS SQL Server?

2002-10-10 Thread Robson Miranda

Does anybody work with XA driver for MS SQL Server?It seems that with MS
JDBC driver you don't need to use more than one datasource to have problems.
I'm always getting deadlock in the database when I have more than one user.
I just tried with SapDB, just to make sure I didn't nothing wrong, and my
application worked fine.

Robson.

- Original Message -
From: Alexey Yudichev
To: [EMAIL PROTECTED]
Sent: Thursday, October 10, 2002 12:04 PM
Subject: [JBoss-user] Does anybody work with XA driver for MS SQL Server?


  After I am tired of deadlock exeptions I tried to use XA jdbc drivers fro
MS SQL server. I asked admin to install a dll on the sqlserver side as it is
specified in MS JDBC driver docs. But it never worked for me. There're
different exceptions that are listed below.
  Please tell me if really all the jboss 3.x.x users always use single
datasource for their ejb applications so that do not face these XA problems?
I cannot find a way how I can use more than one datasource in application...

2002-10-10 17:52:18,066 WARN  [org.jboss.tm.TxCapsule] XAException:
tx=XidImpl [FormatId=257, GlobalId=xxx.xxx.com//444, BranchQual=]
errorCode=XAER_PROTO
javax.transaction.xa.XAException: Transaction has to commit/rollback before
another transaction starts.
at
com.microsoft.jdbcx.sqlserver.SQLServerImplXAResource.start(Unknown Source)
at com.microsoft.jdbcx.base.BaseXAResource.start(Unknown Source)
at org.jboss.tm.TxCapsule.startResource(TxCapsule.java:1232)
...



2002-10-10 17:52:18,082 WARN  [org.jboss.tm.TxCapsule] XAException:
tx=XidImpl [FormatId=257, GlobalId=xxx.xxx.com//444, BranchQual=]
errorCode=XAER_RMERR
javax.transaction.xa.XAException: [Microsoft][SQLServer 2000 Driver for
JDBC][SQLServer]No matched thread found for XaEnd
at
com.microsoft.jdbcx.sqlserver.SQLServerImplXAResource.executeXaRpc(Unknown
Source)
at com.microsoft.jdbcx.sqlserver.SQLServerImplXAResource.end(Unknown
Source)
at com.microsoft.jdbcx.base.BaseXAResource.end(Unknown Source)
at org.jboss.tm.TxCapsule.endResource(TxCapsule.java:1289)
at org.jboss.tm.TxCapsule.delistResource(TxCapsule.java:620)
...


2002-10-10 17:52:18,088 WARN  [org.jboss.tm.TxCapsule] XAException:
tx=XidImpl [FormatId=257, GlobalId=xxx.xxx.com//444, BranchQual=]
errorCode=XAER_RMERR
javax.transaction.xa.XAException: [Microsoft][SQLServer 2000 Driver for
JDBC][SQLServer]xa_rollback (0) returns -4
at
com.microsoft.jdbcx.sqlserver.SQLServerImplXAResource.executeXaRpc(Unknown
Source)
at
com.microsoft.jdbcx.sqlserver.SQLServerImplXAResource.rollback(Unknown
Source)
at com.microsoft.jdbcx.base.BaseXAResource.rollback(Unknown Source)
at org.jboss.tm.TxCapsule.rollbackResources(TxCapsule.java:1779)
...
2002-10-10 17:52:18,098 ERROR [org.jboss.ejb.plugins.LogInterceptor]
EJBException, causedBy:
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for
JDBC][SQLServer]Distributed transaction completed. Either enlist this
session in a new transaction or the NULL transaction.
at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown
Source)
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown
Source)
at
com.microsoft.jdbc.sqlserver.tds.TDSRequest.processErrorToken(Unknown
Source)
at
com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReplyToken(Unknown
Source)
at
com.microsoft.jdbc.sqlserver.tds.TDSRPCRequest.processReplyToken(Unknown
Source)
at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReply(Unknown
Source)
at
com.microsoft.jdbc.sqlserver.tds.TDSCursorRequest.openCursor(Unknown Source)
at
com.microsoft.jdbc.sqlserver.SQLServerImplStatement.execute(Unknown Source)
at com.microsoft.jdbc.base.BaseStatement.commonExecute(Unknown
Source)
at
com.microsoft.jdbc.base.BaseStatement.executeQueryInternal(Unknown Source)
at
com.microsoft.jdbc.base.BasePreparedStatement.executeQuery(Unknown Source)
at
com.microsoft.jdbcx.base.BasePreparedStatementWrapper.executeQuery(Unknown
Source)
at
com.tw.eazybuild.ejb.BannerBean.ejbFindByCategoryBanners(BannerBean.java:218
)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.ejb.plugins.BMPPersistenceManager.callFinderMethod(BMPPersistenceM
anager.java:638)
...


Best wishes,
  Alexei Yudichev   mailto:[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



[JBoss-user] error msg add ',' to sig

2002-10-10 Thread G.L. Grobe

I have a session bean calling invoke on a method in my mbean service that
seems to be successful in calling the method, but is getting the following
error. It's adding a ',' to the scheduleJob sig in the error, not sure what
that means.

19:01:55,159 ERROR [TaskSchedulerBean] Exception in MBean operation
'scheduleJob(,com.neuroquest.cais.objects.BuildObj)'

Any help much appreciated.

--- session bean code snippet

   public void scheduleTask(FieldObj fInfo) throws RemoteException {

  Object result = null;

  try {
 List lServers = MBeanServerFactory.findMBeanServer(null);

 MBeanServer lServer = (MBeanServer) lServers.get(0);

 ObjectName name = new
ObjectName("DefaultDomain:service=Scheduler");

 Object[] args = { fInfo };
 String[] sig = { FieldObj.class.getName() };

 lServer.invoke(name, "scheduleJob", args, sig);


--- ServiceMBeanSupport

public void scheduleJob() throws Exception {
   log.debug(Scheduler.class, "calling scheduleJob()");
...
return;
}

public void scheduleJob(FieldObj obj) throws Exception {
   log.debug(Scheduler.class, "calling scheduleJob(obj)");
...
return;
}

--- ServiceMBean interface

public void scheduleJob() throws Exception;
public void scheduleJob(FieldObj obj) throws Exception;





---
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 build JBoss-3.2 from cvs...

2002-10-10 Thread Markus Garscha

H,

my last update from cvs was Branch_3_0_0. i'll delete my old jboss-all
directory and make a new co...

thanx
markus

* Scott M Stark <[EMAIL PROTECTED]> [2002-10-11 01:09]:
> Show the full cvs co command as I just tried:
> cvs co -r Branch_3_2 jboss-all
> 
> and the code builds fine on OSX with a 1.3.1 JDK.
> 
> 
> Scott Stark
> Chief Technology Officer
> JBoss Group, LLC
> 
> 
> - Original Message - 
> From: "Markus Garscha" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, October 10, 2002 1:07 PM
> Subject: [JBoss-user] Can't build JBoss-3.2 from cvs...
> 
> 
> 
> 
> ---
> 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

-- 
---
 Markus Garschaemail: [EMAIL PROTECTED] 
 Patrichsiedlung 32  fon: +49 9142 962749
 91757 Treuchtlingen fax: +49 89 244356966 
 Germany   pgp-keyid: 0xEE18AF3B  
---




msg22162/pgp0.pgp
Description: PGP signature


RE: [JBoss-user] Netboot issues

2002-10-10 Thread Jason Westra

It works fine for me under a local Apache instance.  Haven't tried it
remotely.  It is really cool, but takes forever to boot since it copies the
jars thru http: rather than a nice local copy.  My version is
jboss3.0.2-tomcat4.0.4 and there is no crimson.jar.

Jason

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of David Jencks
Sent: Thursday, October 10, 2002 3:53 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Netboot issues


Probably the file lists are out of date... we should look for a way to make
the lists generated dynamically from the build.  I don't think crimson.jar
is used in any 3.0++ version any more.

I haven't tried this stuff, where are the files one needs?

thanks
david jencks

On 2002.10.10 16:16:08 -0400 "Sonnek, Ryan" wrote:
> has anyone out there used the netboot functionality of jboss 3.x??  i've
> been working on it for a couple days with the example docs online now
> with
> no luck.
> my setup is:
>   an apache 2.0 server hosting the jboss files at
> http://localhost/jboss/server/default
>  .
>   client is using this batch file run, \bin\run.bat --netboot
> http://localhost/jboss   --config default
>
> the client hangs with no responce, and the apache logs don't show
> anything
> till i cancel the netboot client.  then, apache shows that the client was
> trying to get jboss/lib/crimson.jar.
> with no activity or errors, i'm at a loss.  anyone used this REALLY
> APEALLING feature?
>
>
> 
> 
> 
>
>
> 
> 
>  size=2>has
> anyone out there used the netboot functionality of jboss 3.x??  i've
> been
> working on it for a couple days with the example docs online now with no
> luck.  
>  size=2>my
> setup is:
>  class=060051120-10102002>   class=060051120-10102002>an
> apache 2.0 server hosting the jboss files at 
href="http://localhost/jboss/server/default";>http://localhost/jboss/server/d
efault. 
>
> 
>  class=060051120-10102002>  client is using this batch file
> run,
> \bin\run.bat --netboot  href="http://localhost/jboss";>http://localhost/jboss --config
> default
>  class=060051120-10102002> 
>  class=060051120-10102002>the client hangs with no responce, and the
> apache logs
> don't show anything till i cancel the netboot client.  then, apache
> shows
> that the client was trying to get
> jboss/lib/crimson.jar.
>  class=060051120-10102002>with no activity or errors, i'm at a loss. 
> anyone
> used this REALLY APEALLING feature?
>  
>


---
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] Netboot issues

2002-10-10 Thread David Jencks

Probably the file lists are out of date... we should look for a way to make
the lists generated dynamically from the build.  I don't think crimson.jar
is used in any 3.0++ version any more.

I haven't tried this stuff, where are the files one needs?

thanks
david jencks

On 2002.10.10 16:16:08 -0400 "Sonnek, Ryan" wrote:
> has anyone out there used the netboot functionality of jboss 3.x??  i've
> been working on it for a couple days with the example docs online now
> with
> no luck.  
> my setup is:
>   an apache 2.0 server hosting the jboss files at
> http://localhost/jboss/server/default
>  .  
>   client is using this batch file run, \bin\run.bat --netboot
> http://localhost/jboss   --config default
>  
> the client hangs with no responce, and the apache logs don't show
> anything
> till i cancel the netboot client.  then, apache shows that the client was
> trying to get jboss/lib/crimson.jar.
> with no activity or errors, i'm at a loss.  anyone used this REALLY
> APEALLING feature?
>  
> 
> 
> 
> 
> 
> 
> 
> 
>  size=2>has 
> anyone out there used the netboot functionality of jboss 3.x??  i've
> been 
> working on it for a couple days with the example docs online now with no 
> luck.  
>  size=2>my 
> setup is:
>  class=060051120-10102002>   class=060051120-10102002>an 
> apache 2.0 server hosting the jboss files at  
>href="http://localhost/jboss/server/default";>http://localhost/jboss/server/default. 
> 
> 
>  class=060051120-10102002>  client is using this batch file
> run, 
> \bin\run.bat --netboot  href="http://localhost/jboss";>http://localhost/jboss --config 
> default
>  class=060051120-10102002> 
>  class=060051120-10102002>the client hangs with no responce, and the
> apache logs 
> don't show anything till i cancel the netboot client.  then, apache
> shows 
> that the client was trying to get 
> jboss/lib/crimson.jar.
>  class=060051120-10102002>with no activity or errors, i'm at a loss. 
> anyone 
> used this REALLY APEALLING feature?
>  
> 


---
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 build JBoss-3.2 from cvs...

2002-10-10 Thread Scott M Stark

Show the full cvs co command as I just tried:
cvs co -r Branch_3_2 jboss-all

and the code builds fine on OSX with a 1.3.1 JDK.


Scott Stark
Chief Technology Officer
JBoss Group, LLC


- Original Message - 
From: "Markus Garscha" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 10, 2002 1:07 PM
Subject: [JBoss-user] Can't build JBoss-3.2 from cvs...




---
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 build JBoss-3.2 from cvs...

2002-10-10 Thread Markus Garscha

Ok,

same error! 

thanx
markus

* Andreas Wollschlaeger <[EMAIL PROTECTED]> [2002-10-10 23:09]:
> On Thursday 10 October 2002 22:07, you wrote:
> > Hi!
> >
> > i just did a cvs -z3 co -r Branch_3_2, changed to the build directory
> > and called ./build.sh.
> > ant aborts with the following trace:
> >
> 
> quick educated guess:
> 
> try ./build/build.sh one dir above 
> 
> HTH
> Andreas
> 
> 
> ---
> 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



msg22158/pgp0.pgp
Description: PGP signature


Re: [JBoss-user] Can't build JBoss-3.2 from cvs...

2002-10-10 Thread Andreas Wollschlaeger

On Thursday 10 October 2002 22:07, you wrote:
> Hi!
>
> i just did a cvs -z3 co -r Branch_3_2, changed to the build directory
> and called ./build.sh.
> ant aborts with the following trace:
>

quick educated guess:

try ./build/build.sh one dir above 

HTH
Andreas


---
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] JBoss/Jetty: Realm Not Configured

2002-10-10 Thread David Ward

Scott,

This was it.  Once again, you've saved the day.

Much thanks,
David

--

Scott M Stark wrote:
> This looks to be a bug in Jetty and FORM based logins. It requires a
> realm-name element in the web.xml descriptor even though this is not
> a required element in the login-config, and is only meaningful for BASIC
> auth.
> 
> 
> Scott Stark
> Chief Technology Officer
> JBoss Group, LLC
> 
> 
> - Original Message - 
> From: "David Ward" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, October 07, 2002 6:01 AM
> Subject: Re: [JBoss-user] JBoss/Jetty: Realm Not Configured
> 
> 
> 
>>Scott,
>>
>>Thanks for your reply.  Actually, there are no spaces in the real file. 
>>  I think my email client decided to add them in from my copy/paste 
>>(tried to format it).  I know that sounds weird, but I've seen it happen 
>>before.
>>
>>Any other ideas?
>>
>>Thanks again,
>>David
> 



---
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] RunAsLoginmodule still not working / solving the problem...

2002-10-10 Thread Marius Kotsbak

I inserted this line:
"System.out.println( "Current run-as role: " +
SecurityAssociation.peekRunAsRole() );"
right before the line

PersonLocal pLocal = ph.findByPhoneNumber(usrName);

that fails. As you can see in the first line before the stacktrace
below, the run-as role seems to be right.

But the principal is null. Is it still an issue that it gets no
principal? What can be done?


22:36:02,157 INFO  [STDOUT] Current run-as role: LoginModule
22:36:02,162 ERROR [SecurityInterceptor] Authentication exception,
principal=null
22:36:02,163 ERROR [LogInterceptor] EJBException, causedBy:
java.lang.SecurityException: Authentication exception, principal=null
at
org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(SecurityInterceptor.java:173)
at
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:94)
at
org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:129)
at
org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:487)
at
org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invokeHome(BaseLocalContainerInvoker.java:230)
at
org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:110)
at $Proxy155.findByPhoneNumber(Unknown Source)
at
no.boostcom.security.MedlemsregisterLoginModule.getPersonLocal(MedlemsregisterLoginModule.java:390)
at
no.boostcom.security.MedlemsregisterLoginModule.getUsersPasswordInt(MedlemsregisterLoginModule.java:327)
at
no.boostcom.security.MedlemsregisterLoginModule.getUsersPassword(MedlemsregisterLoginModule.java:294)
at
org.jboss.security.auth.spi.UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:143)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
javax.security.auth.login.LoginContext.invoke(LoginContext.java:675)
at
javax.security.auth.login.LoginContext.access$000(LoginContext.java:129)
at
javax.security.auth.login.LoginContext$4.run(LoginContext.java:610)
at java.security.AccessController.doPrivileged(Native Method)
at
javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:607)
at
javax.security.auth.login.LoginContext.login(LoginContext.java:534)
at
org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:381)
at
org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:347)
at
org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:215)
at
org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(SecurityInterceptor.java:169)
at
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:94)
at
org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:129)
at
org.jboss.ejb.StatelessSessionContainer.invokeHome(StatelessSessionContainer.java:300)
at org.jboss.ejb.Container.invoke(Container.java:730)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at
org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:381)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:536)
22:36:02,177 ERROR [SecurityInterceptor] Authentication exception,
principal=91102868
22:36:02,178 ERROR [LogInterceptor] EJBException, causedBy:
java.lang.SecurityException: Authentication exception,
principal=91102868
at
org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(SecurityInterceptor.java:173)
at
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:94)
at
org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:129)
at
org.jboss.ejb.StatelessSessionContainer.invokeHome(StatelessSessionContainer.java:300)
at org.jboss.ejb.Container.invoke(Container.java:730)
at
org.jboss.mx.server.MBeanServerImpl.inv

[JBoss-user] Netboot issues

2002-10-10 Thread Sonnek, Ryan



has 
anyone out there used the netboot functionality of jboss 3.x??  i've been 
working on it for a couple days with the example docs online now with no 
luck.  
my 
setup is:
  an 
apache 2.0 server hosting the jboss files at http://localhost/jboss/server/default.  

  client is using this batch file run, 
\bin\run.bat --netboot http://localhost/jboss --config 
default
 
the client hangs with no responce, and the apache logs 
don't show anything till i cancel the netboot client.  then, apache shows 
that the client was trying to get 
jboss/lib/crimson.jar.
with no activity or errors, i'm at a loss.  anyone 
used this REALLY APEALLING feature?
 


[JBoss-user] Can't build JBoss-3.2 from cvs...

2002-10-10 Thread Markus Garscha

Hi!

i just did a cvs -z3 co -r Branch_3_2, changed to the build directory
and called ./build.sh.
ant aborts with the following trace:


--8<---
compile-classes:
[javac] Compiling 57 source files to
/usr/src/jboss-all/jmx/output/classes
[execmodules]

/usr/src/jboss-all/jmx/src/main/org/jboss/mx/loading/UnifiedLoaderRepository2.java:43:
getInstance() in org.jboss.mx.loading.UnifiedLoaderRepository2
cannot implement getInstance() in
org.jboss.mx.loading.UnifiedLoaderRepositoryMBean; attempting to use
incompatible return type
[execmodules] found   : org.jboss.mx.loading.LoaderRepository
[execmodules] required: org.jboss.mx.loading.UnifiedLoaderRepository
[execmodules] public class UnifiedLoaderRepository2 extends
LoaderRepository
[execmodules]^

--8<---

i use j2sdk 1.3.1 under linux (debian)

thanx
markus




msg22153/pgp0.pgp
Description: PGP signature


[JBoss-user] Cannot get remote client to connect thru firewall.

2002-10-10 Thread Vincent Wong

Im trying to get a remote client to connect thru a firewall.  so far i have the firewall opening port 8080 and forwarding to an internal host.  
heres what im doing.public static Context getHTTPClientInitialContext() throws javax.naming.NamingException {Properties p = new Properties();p.put(javax.naming.Context.PROVIDER_URL, "http://www.somesite.com:8080/invoker/JNDIFactory");p.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.HttpNamingContextFactory");return new javax.naming.InitialContext(p);} try {System.out.println("3");Context ctx = EJBHelper.getHTTPClientInitialContext();Object obj = ctx.lookup("ejb/RemoteHome");System.out.println("4");RemoteHome sHome = (RemoteHome)PortableRemoteObject.narrow(obj, RemoteHome.class); System.out.println("5");RemoteRemote remoteconv = sHome.create(); <--freezes hereSystem.out.println("6");} catch (catch exceptions) .
jboss.xml
            HTTP Stateless SessionBean    jboss:service=invoker,type=http    jboss:service=invoker,type=http        

      RemoteEJB  HTTP Stateless SessionBean  ejb/RemoteHome  ejb/LocalHome     

The OS is windows XP.  It works perfectly if i connect internally behind the firewall.  I also deployed this on a multihomed linux box with success where a remote client outside the firewall could connect.  Ports were redirected to the interal interface/ip.  Since im freezing at #6 can i assume that the lookup was succesful, and something else is happening?The server is running behind a firewall. The firewall opens/forwards port 80 80. Everything is logged up to "6" where it just drops/hangs. Nothing is thrown. no messages. nothing is logged in server.log. stack trace is empty.  Am i missing something? Thanks in advance.
Send and receive Hotmail on your mobile device: Click Here


---
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] "removing bean lock and it has tx set" - question

2002-10-10 Thread Michael Bartmann

or even to 2.4.x where we had the same problem...

Michael

Michael Bartmann wrote:
> Adrian found something wrt 3.2 this very morning.
> His solution might be applicable to 3.0?
> 
> I just want to avoid double work, thanks,
> 
> Michael
> 
> Bill Burke wrote:
> 
>> Can you log a bug on this, copy this email, and assign to me?
>>
>> patriot1burke
>>
>> Thanks,
>>
>> Bill
>>
>>  
>>
>>> -Original Message-
>>> From: [EMAIL PROTECTED]
>>> [mailto:[EMAIL PROTECTED]]On Behalf Of Michael
>>> Rudorfer
>>> Sent: Thursday, October 10, 2002 11:38 AM
>>> To: [EMAIL PROTECTED]
>>> Subject: [JBoss-user] "removing bean lock and it has tx set" - question
>>>
>>>
>>> Hi there!
>>>
>>> I have the following problem:
>>>
>>> I am using Jboss 2.4.6 with CMP (jaws) and Container
>>> Managed Transaction.
>>> I have a Stateful Session bean with a bussiness method,
>>> that utilizes entity beans. The transaction type of that bussiness
>>> method is set to "required". When there are many entity beans
>>> to be accessed, jboss crashes with the follwing error message:
>>>
>>> [16:22:34,047,AttributeDetailBean] TRANSACTION ROLLBACK EXCEPTION:
>>> javax.transaction.TransactionRolledbackException: removing bean lock and
>>> it has tx set!; nested exception is:
>>> java.lang.IllegalStateException: removing bean lock and it has tx set!
>>> java.lang.IllegalStateException: removing bean lock and it has tx set!
>>> at
>>> org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.removeRef(Queu
>>> edPessimisticEJBLock.java:468)
>>>
>>> at org.jboss.ejb.BeanLockManager.removeLockRef(BeanLockManager.java:78)
>>>
>>> at
>>> org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInter
>>> ceptor.java:142)
>>>
>>> 
>>>
>>> My guess is, that some of the entity beans are beeing passivated
>>> during the transaction, because the problem gets worse if you set
>>> the "max-capacity"-parameter in standardjboss.xml to a smaller value.
>>> Of course setting the value to a higher number helps in the first place,
>>>
>>> but isn't a solution to the problem.
>>>
>>> Any thoughts on that?
>>>
>>> What is the desired way to use transactions for a bussiness method
>>> that itself calls many different methods on a lot of other beans?
>>> What happens to a container managed transaction
>>> if one of the beans that it utilized is passivated?
>>>
>>> Any help would be appreciated.
>>>
>>> Thanks
>>> Michael
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> ---
>>> 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
>>
>>  
>>
> 
> 
> 
> 
> 
> ---
> 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] testsuite/src/resources/hello

2002-10-10 Thread Vincent Wong

Anyone know where i can find this? thanks so much.MSN Photos is the easiest way to share and print your photos: Click Here


---
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] RE: Jboss303 topic - applet JMS not receiving the message topic

2002-10-10 Thread Marcos Oliva

Hello , it is me again

when I swith to the 
 > TopicConnectionFactory factory =
 > (TopicConnectionFactory)jndiContext.lookup("ConnectionFactory");
I get:
org.jboss.mq.SpyJMSException: Cannot start a the client IL service; - nested
throwable: (java.security.AccessControlException: access denied
(java.net.SocketPermission localhost:1024- listen,resolve))

why is this ?

I have already open my java.policy file to include the following

 permission java.net.SocketPermission "*", "connect";
 permission java.util.PropertyPermission "*", "read,write";

thanks

marcos oliva


-Original Message-
From: Marcos Oliva 
Sent: Thursday, October 10, 2002 10:32 AM
To: '[EMAIL PROTECTED]'
Subject: [JBoss-user] RE: Jboss303 topic - applet JMS not receiving the
message topic


Hello guys, 

I am a newbie with JBoss but I manage to create a Topic and a client app
that will receive it, when I create the message for the topic my client app
works with no problem, now I created an applet that will received the
message by means of a separate class - thread , I am subscribing to the
topic (I have put traces ) but when I generate the message my applet
onMessage listener does not seems to receive the message..
if I have both my applet and the app runing at the same time only my app
works, 

I am using JBoss303 on a Win2000 machine, both appserver and applet are
local

thanks 

public class JmsClient_1 implements javax.jms.MessageListener {
.
.
.


Properties jndiProps = new Properties() ;
jndiProps.setProperty("java.naming.factory.initial",
"org.jnp.interfaces.NamingContextFactory" ) ;
jndiProps.setProperty("java.naming.factory.url.pkgs",
"org.jboss.naming:org.jnp.interfaces" ) ;
jndiProps.setProperty("java.naming.provider.url", "localhost:1099" ) ;

Context jndiContext = new InitialContext(jndiProps);

System.out.println(" the jndiContext is .."+ jndiContext.toString());

TopicConnectionFactory factory =
(TopicConnectionFactory)jndiContext.lookup("UILConnectionFactory");


System.out.println(" the factory is .."+ factory);

Topic topic = (Topic) jndiContext.lookup("topic/titan-TicketTopic");

System.out.println(" the topic is .."+ topic);

TopicConnection connect = factory.createTopicConnection();

System.out.println(" the CONNECT is .."+ connect);

TopicSession session =
connect.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);

TopicSubscriber subscriber = session.createSubscriber(topic);

System.out.println(" the Subscriber is .."+ subscriber);

subscriber.setMessageListener(this);

System.out.println("Listening for messages on topic/titan-TicketTopic...");
connect.start();

.
.
}

public void onMessage(Message message) {
try {
TextMessage textMsg = (TextMessage)message;
String text = textMsg.getText();
String msgCorID = message.getJMSType() ;

System.out.println("\n RESERVATION RECEIVED:\n"+text +"\n CorrID : " +
msgCorID + "\n");

// thechatclient.SendMessage("Person1", "ChatMessage", "ellotext");

} catch(JMSException jmsE) {
jmsE.printStackTrace();
}
} 


---
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] JBoss/Jetty: Realm Not Configured

2002-10-10 Thread Scott M Stark

This looks to be a bug in Jetty and FORM based logins. It requires a
realm-name element in the web.xml descriptor even though this is not
a required element in the login-config, and is only meaningful for BASIC
auth.


Scott Stark
Chief Technology Officer
JBoss Group, LLC


- Original Message - 
From: "David Ward" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 07, 2002 6:01 AM
Subject: Re: [JBoss-user] JBoss/Jetty: Realm Not Configured


> Scott,
> 
> Thanks for your reply.  Actually, there are no spaces in the real file. 
>   I think my email client decided to add them in from my copy/paste 
> (tried to format it).  I know that sounds weird, but I've seen it happen 
> before.
> 
> Any other ideas?
> 
> Thanks again,
> David



---
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] Does anybody work with XA driver for MS SQL Server?

2002-10-10 Thread Alexey Yudichev
Title: RE: [JBoss-user] Does anybody work with XA driver for MS SQL Server?





Just tried 3.2. Still get


javax.transaction.xa.XAException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]xa_end (400) returns -6
    at com.microsoft.jdbcx.sqlserver.SQLServerImplXAResource.executeXaRpc(Unknown Source)
    at com.microsoft.jdbcx.sqlserver.SQLServerImplXAResource.end(Unknown Source)
    at com.microsoft.jdbcx.base.BaseXAResource.end(Unknown Source)
    at org.jboss.tm.TransactionImpl.endResource(TransactionImpl.java:1056)
    at org.jboss.tm.TransactionImpl.endResources(TransactionImpl.java:1118)
    at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:332)
    at org.jboss.ejb.plugins.TxInterceptorCMT.endTransaction(TxInterceptorCMT.java:308)
    at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:194)
    at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:66)
    at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:130)
    at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
    at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:154)
    at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:481)
    at org.jboss.ejb.Container.invoke(Container.java:671)
...


Seems some real problem with MS driver...


Best wishes,
  Alexei Yudichev   mailto:[EMAIL PROTECTED]


-Original Message-
From: David Jencks [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 6:40 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Does anybody work with XA driver for MS SQL
Server?



I didn't read your earlier messages carefully.  Deadlock is unlikely to be
related to local or xa tx, but rather varying resource ordering.


The first message you show here seems to indicate that the driver is not
fully xa compliant, and doesn't support suspend/resume.  You could try
using 3.2 and setting the TrackConnectionByTx attribute to true: this will
prevent trying to do suspend/resume calls.


david jencks


On 2002.10.10 11:04:53 -0400 Alexey Yudichev wrote:
>   After I am tired of deadlock exeptions I tried to use XA jdbc drivers
> fro
> MS SQL server. I asked admin to install a dll on the sqlserver side as it
> is
> specified in MS JDBC driver docs. But it never worked for me. There're
> different exceptions that are listed below. 
> 
>   Please tell me if really all the jboss 3.x.x users always use single
> datasource for their ejb applications so that do not face these XA
> problems?
> I cannot find a way how I can use more than one datasource in
> application...
>   
> 
> 2002-10-10 17:52:18,066 WARN  [org.jboss.tm.TxCapsule] XAException:
> tx=XidImpl [FormatId=257, GlobalId=xxx.xxx.com//444, BranchQual=]
> errorCode=XAER_PROTO
> javax.transaction.xa.XAException: Transaction has to commit/rollback
> before
> another transaction starts.
>   at
> com.microsoft.jdbcx.sqlserver.SQLServerImplXAResource.start(Unknown
> Source)
>   at com.microsoft.jdbcx.base.BaseXAResource.start(Unknown Source)
>   at org.jboss.tm.TxCapsule.startResource(TxCapsule.java:1232)
> ...
> 
> 
> 
> 2002-10-10 17:52:18,082 WARN  [org.jboss.tm.TxCapsule] XAException:
> tx=XidImpl [FormatId=257, GlobalId=xxx.xxx.com//444, BranchQual=]
> errorCode=XAER_RMERR
> javax.transaction.xa.XAException: [Microsoft][SQLServer 2000 Driver for
> JDBC][SQLServer]No matched thread found for XaEnd
>   at
> com.microsoft.jdbcx.sqlserver.SQLServerImplXAResource.executeXaRpc(Unknown
> Source)
>   at com.microsoft.jdbcx.sqlserver.SQLServerImplXAResource.end(Unknown
> Source)
>   at com.microsoft.jdbcx.base.BaseXAResource.end(Unknown Source)
>   at org.jboss.tm.TxCapsule.endResource(TxCapsule.java:1289)
>   at org.jboss.tm.TxCapsule.delistResource(TxCapsule.java:620)
> ...
> 
> 
> 2002-10-10 17:52:18,088 WARN  [org.jboss.tm.TxCapsule] XAException:
> tx=XidImpl [FormatId=257, GlobalId=xxx.xxx.com//444, BranchQual=]
> errorCode=XAER_RMERR
> javax.transaction.xa.XAException: [Microsoft][SQLServer 2000 Driver for
> JDBC][SQLServer]xa_rollback (0) returns -4
>   at
> com.microsoft.jdbcx.sqlserver.SQLServerImplXAResource.executeXaRpc(Unknown
> Source)
>   at
> com.microsoft.jdbcx.sqlserver.SQLServerImplXAResource.rollback(Unknown
> Source)
>   at com.microsoft.jdbcx.base.BaseXAResource.rollback(Unknown
> Source)
>   at org.jboss.tm.TxCapsule.rollbackResources(TxCapsule.java:1779)
> ...
> 
> 2002-10-10 17:52:18,098 ERROR [org.jboss.ejb.plugins.LogInterceptor]
> EJBException, causedBy:
> java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for
> JDBC][SQLServer]Distributed transaction completed. Either enlist this
> session in a new transaction or the NULL transaction.
>   at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown
> Source)
>   at com.microsoft.jdbc.base.BaseExceptions.getException(

[JBoss-user] RE: Jboss303 topic - applet JMS not receiving the message topic

2002-10-10 Thread Marcos Oliva

Hello guys, 

I am a newbie with JBoss but I manage to create a Topic and a client app
that will receive it, when I create the message for the topic my client app
works with no problem, now I created an applet that will received the
message by means of a separate class - thread , I am subscribing to the
topic (I have put traces ) but when I generate the message my applet
onMessage listener does not seems to receive the message..
if I have both my applet and the app runing at the same time only my app
works, 

I am using JBoss303 on a Win2000 machine, both appserver and applet are
local

thanks 

public class JmsClient_1 implements javax.jms.MessageListener {
.
.
.


Properties jndiProps = new Properties() ;
jndiProps.setProperty("java.naming.factory.initial",
"org.jnp.interfaces.NamingContextFactory" ) ;
jndiProps.setProperty("java.naming.factory.url.pkgs",
"org.jboss.naming:org.jnp.interfaces" ) ;
jndiProps.setProperty("java.naming.provider.url", "localhost:1099" ) ;

Context jndiContext = new InitialContext(jndiProps);

System.out.println(" the jndiContext is .."+ jndiContext.toString());

TopicConnectionFactory factory =
(TopicConnectionFactory)jndiContext.lookup("UILConnectionFactory");


System.out.println(" the factory is .."+ factory);

Topic topic = (Topic) jndiContext.lookup("topic/titan-TicketTopic");

System.out.println(" the topic is .."+ topic);

TopicConnection connect = factory.createTopicConnection();

System.out.println(" the CONNECT is .."+ connect);

TopicSession session =
connect.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);

TopicSubscriber subscriber = session.createSubscriber(topic);

System.out.println(" the Subscriber is .."+ subscriber);

subscriber.setMessageListener(this);

System.out.println("Listening for messages on topic/titan-TicketTopic...");
connect.start();

.
.
}

public void onMessage(Message message) {
try {
TextMessage textMsg = (TextMessage)message;
String text = textMsg.getText();
String msgCorID = message.getJMSType() ;

System.out.println("\n RESERVATION RECEIVED:\n"+text +"\n CorrID : " +
msgCorID + "\n");

// thechatclient.SendMessage("Person1", "ChatMessage", "ellotext");

} catch(JMSException jmsE) {
jmsE.printStackTrace();
}
} 


---
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] "removing bean lock and it has tx set" - question

2002-10-10 Thread Michael Bartmann

Adrian found something wrt 3.2 this very morning.
His solution might be applicable to 3.0?

I just want to avoid double work, thanks,

Michael

Bill Burke wrote:

>Can you log a bug on this, copy this email, and assign to me?
>
>patriot1burke
>
>Thanks,
>
>Bill
>
>  
>
>>-Original Message-
>>From: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED]]On Behalf Of Michael
>>Rudorfer
>>Sent: Thursday, October 10, 2002 11:38 AM
>>To: [EMAIL PROTECTED]
>>Subject: [JBoss-user] "removing bean lock and it has tx set" - question
>>
>>
>>Hi there!
>>
>>I have the following problem:
>>
>>I am using Jboss 2.4.6 with CMP (jaws) and Container
>>Managed Transaction.
>>I have a Stateful Session bean with a bussiness method,
>>that utilizes entity beans. The transaction type of that bussiness
>>method is set to "required". When there are many entity beans
>>to be accessed, jboss crashes with the follwing error message:
>>
>>[16:22:34,047,AttributeDetailBean] TRANSACTION ROLLBACK EXCEPTION:
>>javax.transaction.TransactionRolledbackException: removing bean lock and
>>it has tx set!; nested exception is:
>> java.lang.IllegalStateException: removing bean lock and it has tx set!
>>java.lang.IllegalStateException: removing bean lock and it has tx set!
>> at
>>org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.removeRef(Queu
>>edPessimisticEJBLock.java:468)
>>
>> at org.jboss.ejb.BeanLockManager.removeLockRef(BeanLockManager.java:78)
>>
>> at
>>org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInter
>>ceptor.java:142)
>>
>>
>>
>>My guess is, that some of the entity beans are beeing passivated
>>during the transaction, because the problem gets worse if you set
>>the "max-capacity"-parameter in standardjboss.xml to a smaller value.
>>Of course setting the value to a higher number helps in the first place,
>>
>>but isn't a solution to the problem.
>>
>>Any thoughts on that?
>>
>>What is the desired way to use transactions for a bussiness method
>>that itself calls many different methods on a lot of other beans?
>>What happens to a container managed transaction
>>if one of the beans that it utilized is passivated?
>>
>>Any help would be appreciated.
>>
>>Thanks
>>Michael
>>
>>
>>
>>
>>
>>
>>
>>---
>>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
>
>  
>





---
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] "removing bean lock and it has tx set" - question

2002-10-10 Thread Bill Burke

Can you log a bug on this, copy this email, and assign to me?

patriot1burke

Thanks,

Bill

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Michael
> Rudorfer
> Sent: Thursday, October 10, 2002 11:38 AM
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] "removing bean lock and it has tx set" - question
> 
> 
> Hi there!
> 
> I have the following problem:
> 
> I am using Jboss 2.4.6 with CMP (jaws) and Container
> Managed Transaction.
> I have a Stateful Session bean with a bussiness method,
> that utilizes entity beans. The transaction type of that bussiness
> method is set to "required". When there are many entity beans
> to be accessed, jboss crashes with the follwing error message:
> 
> [16:22:34,047,AttributeDetailBean] TRANSACTION ROLLBACK EXCEPTION:
> javax.transaction.TransactionRolledbackException: removing bean lock and
> it has tx set!; nested exception is:
>  java.lang.IllegalStateException: removing bean lock and it has tx set!
> java.lang.IllegalStateException: removing bean lock and it has tx set!
>  at
> org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.removeRef(Queu
> edPessimisticEJBLock.java:468)
> 
>  at org.jboss.ejb.BeanLockManager.removeLockRef(BeanLockManager.java:78)
> 
>  at
> org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInter
> ceptor.java:142)
> 
> 
> 
> My guess is, that some of the entity beans are beeing passivated
> during the transaction, because the problem gets worse if you set
> the "max-capacity"-parameter in standardjboss.xml to a smaller value.
> Of course setting the value to a higher number helps in the first place,
> 
> but isn't a solution to the problem.
> 
> Any thoughts on that?
> 
> What is the desired way to use transactions for a bussiness method
> that itself calls many different methods on a lot of other beans?
> What happens to a container managed transaction
> if one of the beans that it utilized is passivated?
> 
> Any help would be appreciated.
> 
> Thanks
> Michael
> 
> 
> 
> 
> 
> 
> 
> ---
> 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] clearing Entity cache

2002-10-10 Thread Bill Burke

Yes, in 3.0 you can do this.  Find the EntityContainer in the jmxconsole and
then you will find cacheFlush button.

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Anthony
> Geoghegan
> Sent: Thursday, October 10, 2002 11:05 AM
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] clearing Entity cache
>
>
> Is it possible to manually force a complete cache flush of all the entity
> beans of a certain type using JMX or some other mechanism?
>
> Best Regards,
> Anthony Geoghegan.
> J2EE Developer
> CPS Ireland Ltd.
>
>
>
> ---
> 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] JBoss 3.0.3 & tomcat 4.1.12 Can't Deploy Web Application

2002-10-10 Thread Theo Harper

Thanks Liam.

JBoss's ClassLoaders are always a source of much amusement here ;-).

Send the patch and I'd give it a try on my JBoss code.

Thanks again.

Theo
-Original Message-
From: Liam Magee [mailto:[EMAIL PROTECTED]]
Sent: 10 October 2002 16:42
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] JBoss 3.0.3 & tomcat 4.1.12 Can't Deploy Web
Application


Hi Theo,

I've tracked down at least part of the problem:

1.  Tomcat 4.1.12 and Struts require the use of the
org.apache.commons.digester package. 
2.  Struts (ActionServlet.java, line 1087) has:
>> configDigester.setUseContextClassLoader(true);
3.  Tiles uses the org.apache.commons.validator package, which in
turn uses org.apache.commons.digester. Part of the validator library,
ValidatorResourcesInitializer, does not set the useContextClassLoader
property. As a consequence, when it uses the Digester, it uses the
calling class' ClassLoader, which cannot find the classes required.

I've patched a copy of the validator library, and tested this with the
struts-blank.war app. It seems to work (although my struts source is an
out-of-date CVS download, and the app itself won't work, for other
reasons). If you want, I can send you the patch to see if it works with
your app. 

As to why this has happened with Tomcat 4.1.12, I don't know - it may be
any number of things (changes to Jboss' classloader, more recent version
of the Apache commons packages etc.). 

Regards,

Liam.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Theo Harper
Sent: Thursday, October 10, 2002 5:19 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [JBoss-user] JBoss 3.0.3 & tomcat 4.1.12 Can't Deploy Web
Application


Hi Liam,

JDK 1.4.1 FCS
Windows 2000 SP3
Fresh download of JBoss-3.0.3_Tomcat-4.1.12

http://jakarta.apache.org/builds/jakarta-struts/release/v1.1-b2/jakarta-
stru
ts-1.1-b2-blank.war

I have reproduced the same behaviour on three machine.

Running JBoss with default server config.

I spent some time debugging this yesterday and it it seems that one of
the classes is being loaded by the system class loader and not from
within the WebAppClassLoader.

Any suggestions?

Theo

-Original Message-
From: Liam Magee [mailto:[EMAIL PROTECTED]]
Sent: 10 October 2002 00:40
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] JBoss 3.0.3 & tomcat 4.1.12 Can't Deploy Web
Application


Hi Theo,

Could you describe your environment? I've had struts working with no
problem for some time.

Regards,

Liam.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Theo Harper
Sent: Wednesday, October 09, 2002 8:41 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [JBoss-user] JBoss 3.0.3 & tomcat 4.1.12 Can't Deploy Web
Application


I have tried using jakarta-struts-1.1-b2-blank.war from the Struts site,
and this deploys fine win JBoss-3.0.2_Tomcat-4.0.4 but not with
JBoss-3.0.3_Tomcat-4.1.12 .  It gives the same ClassNotFoundException
for XmlDefinition.

Theo


-Original Message-
From: Theo Harper 
Sent: 09 October 2002 08:49
To: '[EMAIL PROTECTED]'
Subject: [JBoss-user] JBoss 3.0.3 & tomcat 4.1.12 Can't Deploy Web
Application


Hi,

I am having problems using struts (and tiles) with
JBoss-3.0.3_Tomcat-4.1.12. 

My application uses the following in the struts-config.xml file.

 
   

The tiles-defs.xml file contains the following (cut down):




   

 


I have traced the error down to the class loader being used by
commons-digester, when it creates the XmlDefinition class. It does not
seem to be the class loader I would expect for my web app, i.e. the
WebappClassLoader. Should the digester be set to use the
Thread.currentThread().getContextClassLoader()?

The CL I get is:

org.jboss.mx.loading.UnifiedClassLoader@17e4dee{ url=file:/E:/My
Projects/EvoDev/jboss-3.0.3_tomcat-4.1.12/server/evo/tmp/deploy/tomcat-4
.1.x
/server/lib/commons-digester.jar/79.commons-digester.jar }

The struts.jar is definitely in the WEB-INF/lib dirctory.

The error is as follows: 

java.lang.ClassNotFoundException:
org.apache.struts.tiles.xmlDefinition.XmlDefinition
at
org.jboss.mx.loading.UnifiedLoaderRepository2.loadClass(UnifiedLoaderRep
osit
ory2.java:166)
at
org.jboss.mx.loading.UnifiedClassLoader.loadClass(UnifiedClassLoader.jav
a:28
3)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at
org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java
:252
)
at org.apache.commons.digester.Digester.startElement(Digester.java:1237)
at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)
at
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLVal
idat
or.java:1284)
at
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentSc
anne
r.java:1806)
at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatc
h(XM
LDocumentScanner.java:1182)
at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScan
ner.
java:381)
at org

Re: [JBoss-user] Desperation

2002-10-10 Thread kiuma

Not complete but I isolated the bug , but I can't c the mistake!
It's on  tag

and my script only contains:

function selectAllChk( fromName, chkBoxName )
{
   var chkboxes = document.getElementsByTagName( 'input' );
   for (i=0; i < chkboxes.length; i++) {
   if (( chkboxes.item(i).getAttribute('type') == 'checkbox' ) &
   ( chkboxes.item(i).getAttribute('name') == chkBoxName ) )
   {
   chkboxes.item(i).checked =! 
chkboxes.item(i).checked;  }
   }
}

but it works only under Mozilla!

[EMAIL PROTECTED] wrote:

>Kiuma,
>Is this the complete output?
>First, you have two /head tags...
>Also, you need to close your tbody, table, form, body, and html
>elements before the browser can render.
>
>Hope this helps...
>
>- Mike H. 
>
>-Original Message-
>From: kiuma
>To: [EMAIL PROTECTED]
>Sent: 10/10/02 9:41 AM
>Subject: [JBoss-user] Desperation
>
>http://192.168.100.3:8080/webappointments/main.do
>
>generates:
>
>
>
>
>
>href="http://192.168.100.3:8080/webappointments/secure/userlist.jsp";>
>
>Lista utenti 
>
>
>