[JBoss-user] [Persistence CMP/JBoss] - Re: Catching TransactionRolledbackException

2004-07-03 Thread loubyansky
You could updateCountry in RequiresNew and catch the exception.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3840844#3840844

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3840844


---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence CMP/JBoss] - Re: Relationship mapping in jbosscmp-jdbc.xml (another probl

2004-07-03 Thread loubyansky
What SQL query caused this?

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3840845#3840845

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3840845


---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence CMP/JBoss] - Re: Relationships

2004-07-03 Thread loubyansky
The datasource is not available. Make sure it is deployed successfully and you can see 
it in JNDIView.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3840846#3840846

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3840846


---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence CMP/JBoss] - Re: finder methods not working

2004-07-03 Thread loubyansky
Change
anonymous wrote : !DOCTYPE ejb-jar PUBLIC -//Sun Microsystems, Inc.//DTD Enterprise 
JavaBeans 1.1//EN http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd;
to
anonymous wrote : !DOCTYPE ejb-jar PUBLIC -//Sun Microsystems, Inc.//DTD Enterprise 
JavaBeans 2.0//EN http://java.sun.com/dtd/ejb-jar_2_0.dtd;

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3840847#3840847

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3840847


---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: ejb-ql with date problem

2004-07-03 Thread loubyansky
What is the full message?

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3840848#3840848

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3840848


---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Performance Tuning] - Re: UPDATE after INSERT in CMR

2004-07-03 Thread loubyansky
Because the spec says insert after ejbCreate and before ejbPostCreate.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3840849#3840849

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3840849


---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation Configuration] - WebApp deployment in JBoss 3.2.3 and 3.2.5

2004-07-03 Thread Varshney
Hi All,

I am new to JBoss 3.2.5

I wrote a web app (which uses Jasper reports) and packaged it into an ear and then 
deployed it on JBoss 3.2.3 and it works fine. The Web app is a normal webapp having 
jsp and servlets (no struts or any EJBs)

I downloaded JBoss 3.2.5 and then tried deploying the same ear on JBoss 3.2.5 and 
found it to crash giving me a java.lang.NoSuchMethodError for some method from Jasper 
reports(Please see the bottom of the mail for a full stack trace)

I have included the jasperreports.jar, jasper-compiler.jar and jasper-runtime.jar in 
the WEB-INF/lib folder in my webapp.

My question is : Why such a different behavior of the same ear file on 3.2.3 and 
3.2.5? Is it beacuse 3.2.3 has Tomcat 4.1.29 and 3.2.5 had Tomcat 5.0.6 embedded in 
it? What do I need to do to make my web app work on JBoss 3.2.5 ?

My second question is...Doesn't JBoss have the Jasper libraries by itself? Do I 
explicitly need to add the jasper libraries into my app?

Lastly I found that 3.2.3 had a javax.servlet.jar in the 
$JBOSS_HOME/server/default/lib. This is missing in JBoss 3.2.5. Then where does JBoss 
3.2.5 get the JSP/Servlet classes from?

I am working on Windows 2000 SP4. 

Please do reply to this or mail me at [EMAIL PROTECTED] if you can give any pointers.

Thanks and Regards,
Anurag Varshney

- STACK TRACE -
14:20:13,281 ERROR [Engine] ApplicationDispatcher[/myContext] Servlet.service() for 
servlet ReportPane threw exception
java.lang.NoSuchMethodError: org.apache.jasper.runtime.JspRuntimeLibrary.include
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;
Ljava/lang/String;Ljavax/servlet/jsp/JspWriter;Z)V
at jsp.MenuPane._jspService(Unknown Source)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:703)
at 
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
at com.myapp.servlets.MyWebRequestInfo.forward(MyWebRequestInfo.java:319)
at com.myapp.servlets.MyControllerServlet.doPost(MyControllerServlet.java:976)
at com.myapp.servlets.MyControllerServlet.doGet(MyControllerServlet.java:217)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:72)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at 
org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:275)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 

[JBoss-user] [Beginners Corner] - Problems starting transaction from a servlet

2004-07-03 Thread millenium
Hi out there,
i have a little problem with transactions (its my first try to use them...).
Following Scenario:
I want to call 2 methods of a Session Bean from a Servlet. Both methods are creating a 
new CMP-Object.
Well...the first Object should be removed from Database if the second fails...So I 
thought why not using Transactions. 
This looks like the following:

javax.naming.Context jndiContext = new javax.naming.InitialContext();
  | javax.transaction.UserTransaction ut = (javax.transaction.UserTransaction) 
jndiContext.lookup(UserTransaction);
  | ut.begin();
  | User user=sessionbean1.createNewUser();
  | Adress adress=sessionbean2.createNewAdress();
  | ut.commit;

This code seems to work fine. If sessionbean2 fails, the correct ut.rollback() in the 
catch-Block (not shown above) is used (thanks to the debugger;)). But if I look in the 
Database, the entry from sessionbean1 is not removed...
Where is the problem? 
Session Beans and CMP'S are both set to transaction type supports (with xdoclet). 
I'm using MySQL 4.0.15-nt (perhaps the database is the problem?).
Cant I start transactions from the servlet???

Bye

Mark

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3840851#3840851

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3840851


---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - how to find jboss server status, if it is stopped

2004-07-03 Thread maheedhar
Hi,

Can any one suggest, how to find the jboss server status?

My application has a requirement to start the jboss server only if it is not already 
started. 

I am able to find the status, if the server is already running, by accessing the 
respective MBean (jboss.system:type=Server MBean has a read only attribute 
Started). 

Following is the code snippet I used.


  | InitialContext ic;
  | Properties jndiProperties;
  | RMIAdaptor server;
  | ObjectName name;
  | MBeanInfo info;
  | try {
  | jndiProperties = new Properties();
  | jndiProperties.put(Context.INITIAL_CONTEXT_FACTORY, 
org.jnp.interfaces.NamingContextFactory );
  | jndiProperties.put(Context.PROVIDER_URL, localhost:1099);
  | ic = new InitialContext(jndiProperties);
  | server = (RMIAdaptor) ic.lookup(jmx/rmi/RMIAdaptor);
  | name = new ObjectName(jboss.system:type=Server);
  | boolean serverStatus;
  | serverStatus = ((Boolean)server.getAttribute(name, Started)).booleanValue();
  | System.out.println(serverStatus=+serverStatus);
  | }   catch(Exception ex)
  | {
  | ex.printSTackTrace();
  | }
  | 

By the way, Does Pinging 1099 port help in identifying the server status?

TIA

Maheedhar

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3840852#3840852

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3840852


---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Performance Tuning] - Re: Regarding maximum number of JAVA,JAVAC pids

2004-07-03 Thread plat
Chronological PID's are adding up memory leak??  is that your problem..

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3840853#3840853

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3840853


---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: Migration from websphere to JBoss

2004-07-03 Thread fbiaggi
Hi,
we develop with WSAD and deploy to JBoss without problems.
The only things are special JBOSS-QL statements.
Try it maybe it works without any changes, just only add the required jar's to JBoss 
(like  ivjejb35.jar if required).

Ciao

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3840854#3840854

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3840854


---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Re: Generate GUID

2004-07-03 Thread gorano
If you want a home made solution, you can always create a UUID table in your database.

Create one field with the name and one field with
value.

You can implement a cmp, bmp or session bean to read the table, increase value and 
update.

By creating a generic interface and a factory class you can make several 
implementations. You can for example take advantage of Oracle sequences in one of your 
implementations.

Generic methods could be:

getValue(String name);
getNextValue(String name);
setValue(String name, int val);

e.t.c.

This can be a nice solution, but it will of course
give a certain overhead you should be aware of.

By looking up Ids in the beginning of a transaction you can create nice asynchronous 
B2B solutions that can handle a very high temporary load (preliminary check of request 
data and id sent back as transaction id for later reference).

/Goran



View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3840859#3840859

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3840859


---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Re: how to find jboss server status, if it is stopped

2004-07-03 Thread lretief
What operating system and jboss version?

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3840862#3840862

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3840862


---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence CMP/JBoss] - Re: OFFSET LIMIT does not make it into the generated sql

2004-07-03 Thread greiezer
Thanks for the reply Joachim.

OK,  I have 107 products which are related to a category.
CategoryLocal cat = CategoryUtil.getLocalHome(  ).findByPrimaryKey( categoryId );
  | Collection products = cat.getActiveProducts( offset, limit )

At this point I would expect that 'products' has size=limit, but the actual size is 
107.

So to actually actually access the wanted data in the first run, one must use a for 
loop.

  | for ( int i = 0, imax = offset + limit; ( i  imax )  it.hasNext(  ); i++ )
  | {
  | _log.debug(  -- for : i :  + i );
  | Object obj = it.next(  );
  | if ( i = offset )
  | {
  |  _log.debug(  -- lst.add( getData( obj, type ) ) :  + obj + ,  + type 
);
  |  lst.add( getData( obj, type ) );
  | }
  | }
  | 

Is this also the case for you, or can you just iterate over a 'limit'-sizes collection?

Andreas

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3840863#3840863

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3840863


---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - Re: ManagedConnection [InUse/Avalilable/Max]: [-1/9/40] bug?

2004-07-03 Thread genman

Hmm, sounds like a bug that was fixed in 3.2.4.  This was a JCA issue.  Perhaps you 
could have found your answer through the forum Search or release notes?

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3840864#3840864

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3840864


---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [The Lizzard's corner] - Re: What is the biggest site using JBoss ?

2004-07-03 Thread jaap
Well

I have got a small site running JBoss. About 1000 visitors a day. The site is 
reasonably complex - light pages are about 10 database requests, the heavier pages 
need up till 1000 database requests.

Before JBoss I had the same war's where running flawlessly on Tomcat (for years). 
Since i moved to JBoss there are a dozen different reasons that crashed my website. 
Crash means crash and no recovery. With help of the the server.log I have solved most 
of problems but still the website by far lacks the stability of my previous Tomcat set 
up.

For Bolt - do decent load testing. My JBoss worked fine in development - but the first 
days in production it had a TTL of 1 - 2 hours. (Now the TTL is about 24 hours - just 
enough to restart it only once a day!)

To get my website running production level with Tomcat is a matter of weeks. With 
JBoss you should be counting on a learning curve of several months (i am not there 
yet!). Unless of course you have a Mickey Mouse website.

Jaap

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3840866#3840866

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3840866


---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Nukes User] - RC 1.1 Candidate Fails On This Install

2004-07-03 Thread lane
env:
  mysql 4.0.20a
  win2000

error on exection of ddl scripts per the install instruction:

C:\mysql\binmysql -u root -e create database nukes

C:\mysql\binmysql -u root -D nukes -e source e:\deploy\releases\nukes\prepare.
ddl
ERROR 1221 at line 20 in file: 'e:\deploy\releases\nukes\prepare.ddl': Wrong usa
ge of DB GRANT and GLOBAL PRIVILEGES

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3840867#3840867

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3840867


---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security JAAS/JBoss] - limitations of ClientLoginModule and security model

2004-07-03 Thread danorris
All,

My apologies in advance if this has already been answered... I have looked at past 
posts but haven't seen anything definitive.

I have two questions. The first is about ClientLoginModule and the underlying security 
classes. It seems these classes are hard-coded to use NameCallback and 
PasswordCallback to extract the username/password. These are somehow sent to JBoss, 
which reconstructs a UsernamePasswordHandler object which it passes to the login 
modules.

It seems to me that this is a serious limitation. A username string and password 
string are not enough for some applications (like mine). My life would be much easier 
if I were able to define my own callback handler class, implement Serializable, and 
have ClientLoginModule send it over to the server without modification.

Is anything like this possible in the 4.0 development branch? If not, are there any 
plans for this kind of thing in the future? Am I missing some fundamental alternate 
way of doing this?

My second question probably stems from a lack of knowledge of the J2EE declarative 
security model, so please forgive my ignorance! I have a User CMP entity bean which 
only exposes local interfaces. I then have an Authenticator session facade bean. The 
Authenticator uses run-as to gain enough privileges to access the appropriate methods 
of the User bean and do its magic. I'd like my JAAS login module to be able to 
instantiate an Authenticator bean and delegate authentication to it.

The problem is that even when I specify unchecked permissions for the Authenticator 
methods in ejb-jar.xml, JBoss still seems to want an authenticated principal. It 
doesn't care what roles that principal have, but it needs to be authenticated with my 
login module, which is impossible because it's my login module that needs to access 
the bean! The only way I could find to allow unauthenticated access to the bean is by 
removing the assembly-descriptor section altogether, along with the security-domain 
element in jboss.xml. But of course if I do that I lose declarative security on all 
the other beans.

Is there a way to do what I'm describing, without creating a separate deployment 
descriptor and archive just for the Authenticator bean?

Thanks in advance. I've been pleased with JBoss and J2EE and if I can get these snags 
resolved, I'll truly be a believer.

Happy Independence Day to the other Americans out there!

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3840868#3840868

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3840868


---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] [Beginners Corner] - Problems starting transaction from a servlet

2004-07-03 Thread Dasarath Weeratunge
Hi,

Check and see when the ejb methods are executed,
whether there is a transaction context -- you can use
UserTransaction.getStatus from within those methods.

Good luck,
Dasarath

--- millenium [EMAIL PROTECTED] wrote:
 Hi out there,
 i have a little problem with transactions (its my
 first try to use them...).
 Following Scenario:
 I want to call 2 methods of a Session Bean from a
 Servlet. Both methods are creating a new CMP-Object.
 Well...the first Object should be removed from
 Database if the second fails...So I thought why not
 using Transactions. 
 This looks like the following:
 
 javax.naming.Context jndiContext = new
 javax.naming.InitialContext();
   | javax.transaction.UserTransaction ut =
 (javax.transaction.UserTransaction)
 jndiContext.lookup(UserTransaction);
   | ut.begin();
   | User user=sessionbean1.createNewUser();
   | Adress adress=sessionbean2.createNewAdress();
   | ut.commit;
 
 This code seems to work fine. If sessionbean2 fails,
 the correct ut.rollback() in the catch-Block (not
 shown above) is used (thanks to the debugger;)). But
 if I look in the Database, the entry from
 sessionbean1 is not removed...
 Where is the problem? 
 Session Beans and CMP'S are both set to transaction
 type supports (with xdoclet). I'm using MySQL
 4.0.15-nt (perhaps the database is the problem?).
 Cant I start transactions from the servlet???
 
 Bye
 
 Mark
 
 View the original post :

http://www.jboss.org/index.html?module=bbop=viewtopicp=3840851#3840851
 
 Reply to the post :

http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3840851
 
 

---
 This SF.Net email sponsored by Black Hat Briefings 
 Training.
 Attend Black Hat Briefings  Training, Las Vegas
 July 24-29 - 
 digital self defense, top technical experts, no
 vendor pitches, 
 unmatched networking opportunities. Visit
 www.blackhat.com
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]

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




__
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 


---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Nukes User] - Re: RC 1.1 Candidate Fails On This Install

2004-07-03 Thread lane
The user is created but the grant command fails. I am now using this instead as my 
grants:

GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER, 
INDEX ON nukes.* TO 'nukes'@'localhost' WITH GRANT OPTION;

GRANT FILE, RELOAD, 
REFERENCES ON *.* TO 'nukes'@'localhost';

I am trying this out instead.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3840870#3840870

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3840870


---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence CMP/JBoss] - how to use QL to have a case insensitive String compare?

2004-07-03 Thread WebSel
Hi!

I'm trying to build a finder that uses user input to lookup entries in a database. I'm 
using CMP and a finder. The finder is case sensitive and that is highly generating 
errors as the words are sometimes typed in with capitals.

Can i fix this in QL or do i need to create work around?


Wessel

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3840872#3840872

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3840872


---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Nukes User] - Re: RC 1.1 Candidate Fails On This Install

2004-07-03 Thread lane
Following the install.txt script to the letter. this is the start of the error report 
to the console:


  | 13:18:03,750 INFO  [EARDeployer] Init J2EE application: 
file:/E:/deploy/releases/jboss-3.2.5/server/default/deploy/nukes.ear
  | 13:18:04,968 WARN  [DeploymentInfo] Only the root deployment can set the loader 
repository, ingoring config=null
  | 13:18:05,296 WARN  [NestedThrowable] Duplicate throwable nesting of same base 
type: class org.jboss.deployment.DeploymentException is assignable from: class 
org.jboss.deployment.DeploymentException
  | 13:18:05,296 ERROR [MainDeployer] could not create deployment: 
file:/E:/deploy/releases/jboss-3.2.5/server/default/tmp/deploy/tmp55215nukes.ear-contents/nukes.sar
  | org.jboss.deployment.DeploymentException: create operation failed for package 
file:/E:/deploy/releases/jboss-3.2.5/server/default/tmp/deploy/tmp55215nukes.ear-contents/nukes.sar;
 - nested throwable: (org.jboss.deployment.DeploymentException: - nested throwable: 
(java.lang.reflect.UndeclaredThrowableException))
  | at org.jboss.deployment.SARDeployer.create(SARDeployer.java:227)
  | 



View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3840873#3840873

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3840873


---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Nukes User] - Re: RC 1.1 Candidate Fails On This Install

2004-07-03 Thread jae77
i am aware of the problems w/ the grant syntax and am working on a solution for this. 
(i already know what the correct syntax is, i'm looking to see if i can make the setup 
even easier).

as for the other problem, nukes will not be = 3.2.4 compatible until after the 1.1 
release. you will not be able to run it using jboss 3.2.5.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3840874#3840874

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3840874


---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss.NET SOAP] - Re: how to get start to learn JBoss.NETSOAP

2004-07-03 Thread [EMAIL PROTECTED]
... except that the link

http://www.nsdev.org/jboss/stories/jboss-net.html 
 
appears to be dead.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3840875#3840875

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3840875


---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Nukes User] - Re: BB question

2004-07-03 Thread lonicera
Thank you for your help.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3840879#3840879

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3840879


---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Re: how to find jboss server status, if it is stopped

2004-07-03 Thread genman

Install this:

http://cr.yp.to/daemontools.html

Once you get it going, you can control your service and find its status using the 
command line.  You don't want to check a socket on JBoss to find out if it's running, 
because the socket isn't created until a few seconds after start-up; you may end up 
starting multiple processes.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3840880#3840880

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3840880


---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user