[JBoss-user] [JBoss jBPM] - Re: Assign multi-users to auto-created tasks?

2006-05-01 Thread Neelixx
Only for this task instance.  I needed a way to end the task which was 
autocreated for the actor, in this task node only.

That is why I modified the endOneTask(token, actorId).

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

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


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


[JBoss-user] [JBoss jBPM] - Re: Assign multi-users to auto-created tasks?

2006-04-30 Thread Neelixx
Completed!!  Below is the testCase that I created (modified from the 
workflowpattern#14.)

This test case shows the creation of tasks (from Wfp#14) based on the number of 
users that need to be assigned the task.  The task node IS NOT complete, until 
everyone completes their own assigned tasks.

Thanks Ronald, for your feedback.


  | public class Wfp14WithAssignment extends TestCase {
  |   
  |   public static class CreateTasks implements ActionHandler {
  | private static final long serialVersionUID = 1L;
  | public void execute(ExecutionContext executionContext) 
throws Exception {
  |   TaskMgmtDefinition tmd = (TaskMgmtDefinition) 
executionContext.getDefinition(TaskMgmtDefinition.class);
  |   Task task = tmd.getTask("watch movie amadeus");
  |   
  |   // This creates the tasks, and assigns an actor to it
  |   TaskMgmtInstance tmi = 
executionContext.getTaskMgmtInstance();
  |   for (int i = 0; i" +
  | "  " +
  | "" +
  | "  " +
  | "  " +
  | "" +
  | "  " +
  | "  " +
  | "" +
  | "  " +
  | "" +
  | "" +
  | "" +
  | "  " +
  | "  " +
  | ""
  |   );
  |   
  |   public static Node t = processDefinition.getNode("t");
  |   public static Node c = processDefinition.getNode("c");
  |   public static List userListing = new ArrayList();
  |   
  |   public void testAprioriRuntimeKnowledgeScenario4() {
  |   // 3 Users have been assigned to this task.
  |   // All 3 users MUST complete their assignments before
  |   // processing can continue
  | userListing.add("user1");
  | userListing.add("user2");
  | userListing.add("user3");
  | 
  | ProcessInstance processInstance = new 
ProcessInstance(processDefinition);
  | Token token = processInstance.getRootToken();
  | processInstance.signal();
  | processInstance.signal();
  | 
  | assertSame(t, token.getNode());
  | //End the task for user1
  | endOneTask(token,"user1");
  | //Are we still on the node 't'
  | assertSame(t, token.getNode());
  | 
  | //End the task for user2
  | endOneTask(token, "user2");
  | //Are we still on the node 't'
  | assertSame(t, token.getNode());
  | 
  | //End the task for user3
  | endOneTask(token, "user3");
  | //We should now be on node 'c'
  | assertSame(c, token.getNode());
  | 
  |   }
  |   
  |   public static void endOneTask(Token token, String 
actorId) {
  |   TaskMgmtInstance tmi = 
(TaskMgmtInstance)token.getProcessInstance().getInstance(TaskMgmtInstance.class);
  |   Iterator allTasks = 
tmi.getUnfinishedTasks(token).iterator();
  |   while (allTasks.hasNext()){
  |   TaskInstance taskInstance = 
(TaskInstance)allTasks.next();
  |   if (taskInstance.getActorId() == 
actorId) {
  |   taskInstance.end();
  |   }
  |   }
  |   }
  | 
  | }
  | 

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

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


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


[JBoss-user] [JBoss jBPM] - Re: Assign multi-users to auto-created tasks?

2006-04-30 Thread Neelixx
No, I haven't tried it yet.  I'm just now building the test case on how to do 
this.

After reading your last statement, I went back to the Javadoc and did find a 
way to assign an actor to the TaskInstance.  Thanks!!!


  |   TaskMgmtInstance tmi = 
executionContext.getTaskMgmtInstance();
  |   for (int i = 1; ihttp://www.jboss.com/index.html?module=bb&op=viewtopic&p=3940420#3940420

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


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


[JBoss-user] [JBoss jBPM] - Assign multi-users to auto-created tasks?

2006-04-29 Thread Neelixx
I've built an action (node-enter) to create a certain amount of tasks based on 
the users selected.  This is not known at design-time, but it is known at 
run-time.  

  | " +
  | "  " +
  | "" +
  | "  " +
  | "  " +
  | "" +
  | "  " +
  | "  " +
  | "" +
  | "  " +
  | "  " + 
  | "" +
  | "" +
  | "" +
  | "  " +
  | "  " +
  | ""
  | 

I'm having a very difficult time with assigning the actors to a specific 
auto-created task, and then, removing their own task when completed.

The test case is great when you only care about "the number" of tasks to 
add/remove.  And normally, that would be fine for me, if I didn't want to 
include this in their "task-lists".  However, I need each "actor" to be 
assigned to each auto-created task.

Since I can only assign the users from my AssignmentHandler class, I lose the 
ability to send, as a parameter, the number of tasks I'm creating, and 
therefore, I don't know how to assign individuals to a created task.

I first thought this would be easy, as I figured I would just include the 
setActorId() in my FOR loop creating the tasks.  Little did I know, that I have 
to implement an interface to assign the tasks.

Any ideas?
~~ Aaron

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

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


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


[JBoss-user] [JBoss jBPM] - Re: Dynamically adding Task Nodes at runtime?

2006-04-26 Thread Neelixx
Ronald, you definately pointed me in the right direction, but now I'm confused 
when I'm looking at the test cases.

In all reality, my scenario is actually Patern14 (Multiple Instances with a 
priori runtime knowledge).

In other words, I will be using a FOR loop to loop through and create the 
tasks, rather than a while loop.  Which means, that the tasks varies from the 
process definition, but I will know how many tasks to create prior to the 
transition 't' (before leaving state 'b').

However, I'm looking at the testCase for pattern14, but the testcase is not 
testing pattern14.  It's just testing a standard process definition.  Pattern 
14 states the number of tasks varies, correct?  (i.e. creating tasks based on a 
FOR loop).  But, the testcase only tests the tasks defined in the process 
definition.

H

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

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


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


[JBoss-user] [JBoss jBPM] - Re: Dynamically adding Task Nodes at runtime?

2006-04-26 Thread Neelixx
Yup!  That's exactly what I am referrng to.  You are on the ball!

Thank you Ronald.  I will look at the testcase.

~~Aaron

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

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


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


[JBoss-user] [JBoss jBPM] - Dynamically adding Task Nodes at runtime?

2006-04-26 Thread Neelixx
Hey all!  I've been scrounging through the forums and docs, but haven't really 
found anything.  I'm rumaging around in the javadocs now.

I have a process (or will have a process), that assigns users to a project 
(workflow) at runtime.  So, I'll need to have a way to load up the process 
definition, and programmatically, add a fork with as many Task Nodes per user 
that was assigned.

that way, the project is not completed, until ALL tasks are done (JOIN), but 
the users aren't defined until runtime. I haven't found a way to do this yet.  

Anyone doing this?  I'm still scrounging around in the javadoc and the online 
documentation to get a good "feel" for jBPM.

Thanks all!
~~Aaron

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

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


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


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: hbm2ddl strips trailing semicolon from import.sql??

2006-04-20 Thread Neelixx
Well, maybe it's not the trailing semicolon that is the problem.

However, I still cannot get the import.sql to work correctly.  According to 
hibernate, the export was successful.  Unfortunately, according to my DB, 
nothing was ever done:

MySQL 5.0.18
JBoss-4.0.3SP1


  | 2006-04-20 09:26:19,940 INFO  [org.hibernate.tool.hbm2ddl.SchemaExport] 
Executing import script: /import.sql
  | 2006-04-20 09:26:19,940 DEBUG [org.hibernate.tool.hbm2ddl.SchemaExport] 
INSERT INTO user (id,username,dn,fname,lname,dispName,email,info_id) VALUES 
(1,'[EMAIL 
PROTECTED]','CN=APaxson,cn=people,dc=mycompany,dc=com',NULL,NULL,'Aaron 
Paxson',NULL,NULL)
  | 2006-04-20 09:26:19,940 DEBUG [org.hibernate.tool.hbm2ddl.SchemaExport] 
INSERT INTO user (id,username,dn,fname,lname,dispName,email,info_id) VALUES 
(2,'[EMAIL PROTECTED]','CN=Amy 
Alig,cn=people,dc=mycompany,dc=com',NULL,NULL,'Amy Alig',NULL,NULL)
  | 2006-04-20 09:26:19,940 DEBUG [org.hibernate.tool.hbm2ddl.SchemaExport] 
INSERT INTO user (id,username,dn,fname,lname,dispName,email,info_id) VALUES 
(3,'[EMAIL PROTECTED]','CN=Benno 
Duenkelsbuehler,cn=people,dc=mycompany,dc=com',NULL,NULL,'Benno 
Duenkelsbuehler',NULL,NULL)
  | 2006-04-20 09:26:19,940 DEBUG [org.hibernate.tool.hbm2ddl.SchemaExport] 
INSERT INTO request (id,created,completed,owner_id,requestor_id) VALUES 
(1,'2006-04-18 13:23:24',NULL,1,2)
  | 2006-04-20 09:26:19,940 DEBUG [org.hibernate.tool.hbm2ddl.SchemaExport] 
INSERT INTO request (id,created,completed,owner_id,requestor_id) VALUES  
(2,'2006-04-18 13:24:02',NULL,1,3)
  | 2006-04-20 09:26:19,940 DEBUG [org.hibernate.tool.hbm2ddl.SchemaExport] 
INSERT INTO ticket (id,status,resolution,problem,tech_id) VALUES 
(1,'Active',NULL,'Please degragment the BzQ SQL Server again.  Things are 
running quite sluggish.',1)
  | 2006-04-20 09:26:19,940 DEBUG [org.hibernate.tool.hbm2ddl.SchemaExport] 
INSERT INTO ticket (id,status,resolution,problem,tech_id) VALUES 
(2,'Active',NULL,'My blackberry is not working anymore.',1)
  | 2006-04-20 09:26:19,940 DEBUG [org.hibernate.tool.hbm2ddl.SchemaExport] 
INSERT INTO note (id,comment,action,created,owner_id,request_id) VALUES 
(1,'Initial creation','Request Created','2006-04-18 13:23:24',1,1)
  | 2006-04-20 09:26:19,940 DEBUG [org.hibernate.tool.hbm2ddl.SchemaExport] 
INSERT INTO note (id,comment,action,created,owner_id,request_id) VALUES 
(2,'Initial creation','Request Created','2006-04-18 13:24:03',1,2)
  | 2006-04-20 09:26:19,940 INFO  [org.hibernate.tool.hbm2ddl.SchemaExport] 
schema export complete
  | 

This is really strange, and frustrating.  Can anyone shed some light?  The 
schema tables get built correctly, and the Entity Beans get mapped correctly.  
But, for some reason, my import.sql doesn't work.

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

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


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


[JBoss-user] [Beginners Corner] - Re: java.lang.OutOfMemoryError: PermGen space

2006-04-19 Thread Neelixx
What about for Windows?  My production server is linux, but I'm developing on 
Windows.  I get this message on Windows XP running JBoss-4.0.3SP1 with EJB3.

I get about 3-5 re-deployments [EAR deployments] before I get this error.

Are there any workarounds for Windows?

Thanks!
~~Aaron

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

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


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


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - hbm2ddl strips trailing semicolon from import.sql??

2006-04-18 Thread Neelixx
When deploying my application, I decided to include an import.sql file.

The file is found and executed, but none of my data is in the DB.  The PAR 
Deployer strips off the trailing semi-colon when executing, which tells MySQL 
the end of the command.

The semicolon exists in the import.sql file, but in the server logs, the 
semi-colon is stripped off, and no data is in the DB.  Hibernate doesn't 
complain though.  As far as it's concerned it finishes with "Schema export 
complete".

I have tried to escape the semicolon with the backslash (...VALUES ('blah')\; ) 
to no avail.

Has anyone else had this trouble?

Any workarounds?

Thanks All!
~~Aaron

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

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


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


[JBoss-user] [EJB 3.0] - Re: EJB3 with J2EE1.4 clients?

2006-01-31 Thread Neelixx
Ooops.  Thanks, Bill.  Sorry, i missed that one.

http://docs.jboss.org/ejb3/app-server/tutorial/ejb21_client_adaptors/ejb21_client_adaptors.html


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

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


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - EJB3 with J2EE1.4 clients?

2006-01-31 Thread Neelixx
Are these compatible?  It sounds like it would be, as JBoss is running the 
EJB3's in it's own JVM container, so why would the client care?  All it's doing 
is a lookup on an interface, right?

On the flipside, the interface is annotated using JEE5 annotations, and the 
client doesn't understand it.

The reason I ask, is my application is being built on EJB3, but I would love to 
use JSC2.

Maybe webservices would be the way to go here, but would be overkill, as my web 
application will be running on the same server as JBoss.

Has anyone done this?  What workarounds have you used, or ideas that you think 
might work?

Thanks!
~~Aaron

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

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


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: Help with Entity Query

2006-01-29 Thread Neelixx
The general Exception catch worked!!  thanks, Bill!!

Would this be something I should look at JIRA and create if necessary?  Or is 
it just a "common sense" thing. ((grin))

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

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


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: Help with Entity Query

2006-01-29 Thread Neelixx
Excellent.  Thanks for the response, Bill!

Unfortunately, I also tried to catch EntityNotFoundException with no luck.

I will try with just a generic Exception catch, and will respond back.

thanks!

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

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


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: Help with Entity Query

2006-01-29 Thread Neelixx
My sincere apologies, as I forgot to post the logs.

NOTE: most boilerplate exception lines skipped for brevity:

  | 2006-01-29 15:55:01,307 DEBUG 
[com.decorativeconcepts.techdesk.ejb.UserBean] getting User from username: 
[EMAIL PROTECTED]
  | 2006-01-29 15:55:01,307 DEBUG 
[org.jboss.ejb3.entity.ManagedEntityManagerFactory] GETTING NEW EntityManager
  | 2006-01-29 15:55:01,307 DEBUG 
[org.jboss.ejb3.entity.ManagedEntityManagerFactory] logLivedSession.get() was 
NULL
  | 2006-01-29 15:55:01,308 DEBUG 
[org.jboss.ejb3.entity.ManagedEntityManagerFactory] LONG LIVED NOT FOUND
  | 2006-01-29 15:55:01,310 DEBUG [org.hibernate.impl.SessionImpl] opened 
session at timestamp: 4663574942965760
  | 2006-01-29 15:55:01,311 DEBUG [org.hibernate.impl.SessionImpl] find: from 
User u where u.username=:upn
  | 
  | 
  | 2006-01-29 15:55:01,456 DEBUG [org.hibernate.loader.Loader] 
bindNamedParameters() [EMAIL PROTECTED] -> upn [1]
  | 2006-01-29 15:55:01,461 DEBUG [org.hibernate.type.StringType] binding 
'[EMAIL PROTECTED]' to parameter: 1
  | 2006-01-29 15:55:01,464 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to 
open ResultSet (open ResultSets: 0, globally: 0)
  | 2006-01-29 15:55:01,476 DEBUG [org.hibernate.loader.Loader] processing 
result set
  | 2006-01-29 15:55:01,476 DEBUG [org.hibernate.loader.Loader] done processing 
result set (0 rows)
  | .
  | .
  | 2006-01-29 15:55:01,490 DEBUG [org.hibernate.impl.SessionImpl] closing 
session
  | 2006-01-29 15:55:01,490 DEBUG [org.hibernate.jdbc.ConnectionManager] 
connection already null in cleanup : no action
  | 2006-01-29 15:55:01,491 DEBUG 
[org.hibernate.transaction.CacheSynchronization] transaction after completion 
callback, status: 4
  | 2006-01-29 15:55:01,491 DEBUG [org.hibernate.jdbc.JDBCContext] after 
transaction completion
  | 2006-01-29 15:55:01,491 DEBUG [org.hibernate.impl.SessionImpl] after 
transaction completion
  | 2006-01-29 15:55:01,506 ERROR 
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/TechDesk].[jsp]]
 Servlet.service() for servlet jsp threw exception
  | javax.faces.el.EvaluationException: Cannot get value for expression 
'#{currentUser.user.username}'
  | .
  | .
  | Caused by: javax.ejb.EJBException: null; CausedByException is:
  | No entity found for query
  | at 
org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:46)
  | at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:70)
  | at 
org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:134)
  | 

As you can see, not even my other log messages get called.  Does the 
EntityManager have a special method to use to check for null values?

Again, thank you all!
Aaron

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

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


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Help with Entity Query

2006-01-29 Thread Neelixx
Background:  I have a JSF application that queries for a User in the DB.  If it 
can't find the user, it looks in Active Directory.  If the User is in Active 
Directory, but not in the DB, it adds the user (persists), and returns it.

The problem is, the code never gets passed the entity query.  If it can't find 
the user, it stops and returns null.  The rest of my code never gets called.

At first, I thought it was because the query was throwing an EJBException, but 
surrounding the query in a try/catch clause didn't help.

Here is the method:

  | /**
  |  * This method integrates the DB and AD contexts for the User.  It 
firsts checks whether
  |  * the user exists in the DB.  If so, it returns the user.  If not it 
then checks AD to see 
  |  * if the user exists.  If the user exists, but not in the DB, it adds 
it.  
  |  * Returns a User object from the UPN supplied, provided the user 
exists in AD
  |  * @param String userPrincipleName
  |  * @returns User
  |  * @throws UserNotFoundException
  |  */
  | 
  | public User getUserByUPN(String upn) {
  | User user = null;
  | ADUserBean adUserBean;
  | 
  | logger.debug("getting User from username: " + upn);
  | 
  | // Let's try to get the user from the DB
  | try {
  | user = (User) em.createQuery("from User u where 
u.username=:upn")
  | .setParameter("upn",upn)
  | .getSingleResult();
  | } catch (EJBException e) {
  | logger.debug("Could not find Entity in DB for user 
"+upn);
  | }
  | 
  | if (user != null) {
  | logger.debug("Found " + upn + " in DB");
  | // user is in DB.  No need to go any further.  Return 
the DB user.
  | return user;
  | } else {
  | // could not find user in the DB.  This may be the 
first time the user
  | // has been used in the system.  Let's check AD to find 
out
  | logger.debug("Could not find " + upn + " in the DB.  
Looking at Active Directory");
  | adUserBean = new ADUserBean();
  | user = adUserBean.getUserByUPN(upn);
  | if (user != null) {
  | //user exists in AD.  Let's create a user 
object, save it to the DB
  | //and return it
  | logger.debug("Found user in Active Directory 
with username: " + upn);
  | em.persist(user);
  | return user;
  | }
  | }
  | logger.debug("Could not find " + upn +". Returning Null");
  | return null;
  | }
  | 

You can see the em.createQuery function, and I'm only interested in a single 
result.  In my logs, you can clearly see that it did not find any rows in the 
result set.  But, the rest of my code does not get called.

At the very least, the else clause of my if statement should have been called.

Am I using the createQuery() method incorrectly?  Should I be using a different 
method?

Thanks!
Aaron

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

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


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Seam Trailblazer - nullPointerException

2006-01-28 Thread Neelixx
I was just letting everyone know, as this wasn't always the case.

I've got it downloaded, but was just doing a quick reference lookup on the web.

Thanks.

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

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


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Seam Trailblazer - nullPointerException

2006-01-27 Thread Neelixx
I've searched the forum, but didn't see anything.

Was anyone aware that the Seam Trailblazer is generating a nullPointerException 
upon initial access?

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

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


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: What exactly is ProcessInstance ?

2006-01-27 Thread Neelixx
Rainer,

I see now.  Thanks for taking the extra time to explain to me.

Basically, you are saying let the processInstance be my main object, storing 
the variables I need.

That makes sense.  It keeps things simple and centralized.

Unfortunately, I think I'd rather do it the other way (i.e. Having my Entity 
Bean reference the processID), as my Entity Beans will be used by other outside 
processes (such as Crystal Reports, other external systems, etc).

So, I will need a table for my object's data, and then reference JBpm to assess 
the current state, and it's workflow.

Please correct me if I'm wrong.

I think I'm ready to start planning my architecture.  

Thanks again!

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

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


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: What exactly is ProcessInstance ?

2006-01-27 Thread Neelixx
"RAlfoeldi" wrote : 
  | isn't your processInstance your HolidayRequest?
  | 

Yes it is.  I'm using EJB3 EntityBeans for my project.

"RAlfoeldi" wrote : 
  | Things get a lot easier if the processInstance is the leading entity. 
  | 

What do you mean by "leading entity"?  Maybe that's where I'm getting confused 
at.

Thanks!!

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

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


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: What exactly is ProcessInstance ?

2006-01-27 Thread Neelixx
Thanks RAlfoeldi and enazareno!  I appreciate you taking the time to help me 
understand!

"enazareno" wrote : 
  |  The process instance has a getId() method that returns the unique 
number of your process instance. 

So, keeping with this method, I can store the processInstanceID in my objects, 
to load at any time?


  | public class Request {
  |   
  |   String name;
  |   Date dateCreated;
  |   Date dateRequested;
  |   long workflowID;
  | 
  |   public long getWorkflowID() {
  | if (workflowID == null) {
  |// obtain a JBpm session and processInstance
  |workflowID = processInstance.getId();
  |   }
  |  return workflowID;
  |   }
  | 
  |   public void setWorkflowID(long id) {
  | this.workflowID = id;
  |   }
  | }
  | 

Am I on the right track so far?  Again, keeping to this effect, I can load the 
JBpm process using:


  |   processInstance = 
graphSession.loadProcessInstance(request.getWorkflowID());
  | 

Is my understanding right?

Thanks for your help, and your time!  If I'm correct in my understanding for 
processInstances, my next learning challenge is task lists and assignments 
((grin))

Again, thanks.
~~Aaron

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

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


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - What exactly is ProcessInstance ?

2006-01-26 Thread Neelixx
All,

I'm trying to comprehend the methods used in JBpm.  I'm building a helpdesk for 
my company using JBoss, and JBpm will really help me out.

My confusion is in the ProcessDefinition and ProcessInstance.  In the tutorial 
for JBpm3.0 (Chapter 3.2 Database Example), a processDefinition is deployed 
with the name "Hello World".

Easy enough.

Where I fall short on, is how do you "attach" a java object instance to a 
specific instance in JBpm?  The tutorial loads it as:

  | JbpmSession jbpmSession = jbpmSessionFactory.openJbpmSession();
  | jbpmSession.beginTransaction();
  | jbpmSession
  | .getGraphSession()
  | .saveProcessDefinition(processDefinition);
  | . close the session and transaction 
  | 
How does JBpm know that my, lets say, HolidayRequest#1234 is the object that is 
attached to that session?

It goes on, mimicking a seperate request:

  | ProcessDefinition processDefinition = 
  | jbpmSession
  |   .getGraphSession()
  |   .findLatestProcessDefinition("hello world");
  | ProcessInstance processInstance = 
  | new ProcessInstance(processDefinition);
  | 
  | Token token = processInstance.getRootToken(); 
  | 
Okay, so I loaded up the process-definition "hello world" which is my workflow 
"map" so-to-speak, that all my HolidayRequests use.  But, again, how does JBpm 
know that I'm talking about HolidayRequest#1234 when I "getRootToken()" ?

Obviously, HolidayRequest#1234 could be in the "pending" state, while 
HolidayRequest#567 could be in the "approved" state.  How does JBpm know which 
object I'm talking about, when all I see is "findLatestProcessDefinition" and 
"getRootToken".

The HolidayRequest object is fictitious, but I could just as well be saying, 
TroubleTicket, or DocumentApproval objects.  Any objects that would be defined 
to flow through the specific Process Definition.

I hope I'm clear on my confusion.  I'm still scouring the docs, as I'm sure the 
answer is there somewhere.

Can anyone elaborate for me?

Thanks!
Aaron

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

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


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Managed-Beans -> SLSB

2006-01-25 Thread Neelixx
Just got it.  Thanks.

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

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


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Managed-Beans -> SLSB

2006-01-25 Thread Neelixx
So, in looking over 
http://anoncvs.forge.jboss.com/viewrep/JBoss/jboss-seam/src/main/org/jboss/seam/annotations/Roles.java?r=1.1,
 I would use the annotation like the following, in my case:


  | 
  | @Entity
  | @Name("user")
  | @Scope("Session")
  | @Roles("assignedUser","ownerUser")
  | public class User implements Serializable {
  | // blah
  | }
  | 
  | - JSF ---
  | 
  | 
  | 
  | 
  | 

At this point, all three context variables are valid and will be 
auto-instantiated to the User Entity Bean, if it does not currently exist.

Am I correct in thinking that?

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

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


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Managed-Beans -> SLSB

2006-01-24 Thread Neelixx
I, too, am interested in @Roles, as this seems to be the only road-block in 
using Seam for my application.

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

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


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Managed-Beans -> SLSB

2006-01-23 Thread Neelixx
I believe I have hit a time of reverence and wisdom, and would like someone to 
check my knowledge.

I think my largest problem, is in thinking that the object has to already be 
instantiated, or at least defined BEFORE calling it from a Faces page:

I guess that's not the case.  In the SessionBean, the object:

  | @Stateless
  | public class blah{
  | @In @Out private User currentUser;
  | @In private User assignedUser;
  | @In private User ownerUser;
  | }
  | 
Those objects aren't defined anywhere else.  As long as the JSF page's action 
submits to this SLSB, the objects are created (if need be) by this:

  | 
  | 
  | 
Is that correct?

And the @Out annotation can be used on the next page that's rendered.

So, if I'm correct, then here's my next question:

If the User Entity Bean is set to a SESSION context, does that mean my request 
variables also eat up memory?  

For example, only the currentUser variable should be stored in the SESSION.  
But, since assignedUser and ownerUser are both objects of the User class, 
which, in turn, is defined as a SESSION component, are those two objects also 
stored in the SESSION, even though I'm only using them as REQUEST objects?

Thanks for helping me understand.

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

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


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Managed-Beans -> SLSB

2006-01-23 Thread Neelixx
I'm having a difficult time converting my Faces app to a Seam App.  Mostly, I'm 
having a hard time with moving my managed-beans to SLSB / Entity

For example, I have a managed session bean called "currentUser" which is of 
type app.entity.User, basically doing what the DVD-Store did, by grabbing the 
username, sending it to a SLSB, and returning a User object.

I also have a 2 generic managed request beans, also of type app.entity.User.  

That's three different managed beans, all of type app.entity.User.  I have 
three of them, as there is a page that requires all three user objects to be 
instantiated with 3 different Users (the currentUser, an assignedUser, and an 
ownerUser).

But, since I no longer have managed-beans to "define" my different objects, 
where do they get defined in seam?

Obviously, I shouldn't have 3 different EntityBeans with different @Name 
annotations.

Anyone?

Thanks!!

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

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


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: Active Directory and LdapExtLoginModule?

2005-12-21 Thread Neelixx
Boy, you guys just thought of everything, huh? 

Looking through the LdapExtLoginModule code (to place a hack), I found the 
defaultRole option.  Unfortunately, this option wasn't covered in the Wiki.

Okay, so that fixes my main problem of my thousands of users who have the 
default primary group of "Domain User"

As for the rest, I'll just fix it in Active Directory by adding my own groups, 
rather than using the primary groups, and hacking into LdapExtLoginModule (or 
creating a new login module).

For those who want to use the defaultRole option, just add it to your 
configuration:


  | myDefaultRole
  | 

You can then use "myDefaultRole" as a defined role in your app.  Of course, 
I've only tested in JUnit.  I'll place it in my production-code soon.

ActiveDirectory and LdapExtLoginModule is great!

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

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


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Active Directory and LdapExtLoginModule?

2005-12-21 Thread Neelixx
By the way, kudos to the creator of LdapExtLoginModule!  I think it was Scott 
Stark??  Love the double-searching!  Makes my life so much easier in a complex 
Active Directory environment.

Okay, on to my issue.  Has anyone (other than me) used LdapExtLoginModule for 
Active Directory?  I have everything working, but as usual, Microsoft does 
things their way, making it difficult to build a true LDAP-compliant 
application.

For those that have successfully used it in an AD environment, have you gotten 
around the primary group issue?  

Microsoft leaves out the DN of the memberOf attribute for the groups that are 
set as the "Primary Group".  For general users, this would be the "Domain 
Users" group.  For others, maybe it's a "Domain Admins" group, or some other 
group.

It has taken me days of troubleshooting to figure out why my users that are 
"Domain Users" were not showing up in my Roles search, until I ran an LDIF 
export, and found the issue.

Here is what Microsoft has to say about it.  Their reason for it was because 
there is a limitation of 5000 users in a group.  But not sure how to get around 
it, without doing some hacking in the LdapExtLoginModule code.

http://support.microsoft.com/kb/275523/en-us

Anyone come across this issue?  If so, how did you get around it?

Thanks!!

--Aaron

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

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


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: Where to create a new user object in web session?

2005-12-21 Thread Neelixx
Heh!  It's almost always the simplest way, isn't it?  I guess that's just me.  
I seem to try to make things more difficult than they really need to be.

THANKS, Scott!  I probably would have never come up with that.  I probably 
would have tried to build an algorithm that solve coldfusion.

Sheesh!  I need more coffee.

Again, thanks.



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

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


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Where to create a new user object in web session?

2005-12-10 Thread Neelixx
Hey all! 

I finally got the hang of the JAAS Login Modules, and can create my own login 
modules against Active Directory.

Now, I'm struggling with where to create the "current user" object in the 
session?

I'm using EJB3 beans, and I have a User Entity Bean that I want to create when 
the user logs in, and either store in the HTTP Session, or keep it in a 
Stateful Session Bean.

Unfortunately, I'm not sure "where" to create this object?  The JAAS modules do 
not have anything to do with the web sessions, and the authentication method 
hands off to Tomcat via j_security_check.  So, I can't build the object that 
way.

I can probably do it in a filter, but I only want the creation to be AFTER just 
the authentication, not on every request, as I have pages that do not need 
authentication.

What's the general practice for creating a "currentUser" object to place in the 
session, while still maintaining container-managed security?

Thanks everyone!

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

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


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: ERROR [javax.faces.webapp.UIComponentTag] Faces context

2005-12-07 Thread Neelixx
I am also having this issue, with several of my JSF apps.  DVD and Seam 
Trailblazers work fine, but none of my JSF apps work.  Keep getting a null 
pointer exception, including apps built using Java Studio Creator 2004Q2

Any help would be great!

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

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


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: Cannot get the DVDStore to work

2005-12-04 Thread Neelixx
It seems to be having trouble with the redirection.  So, I went directly to the 
login page:

http://localhost:8080/dvd/login.jsp

But with a NullPointerException error.  Which is the same error as my other JSF 
applications.

The exception complains about not finding the FacesServlet, but it is declared 
in the DVD web.xml, as well as my other apps:


  | 15:53:57,921 ERROR [UIComponentTag] Faces context not found. 
getResponseWriter will fail. Check if the FacesServlet has been initialized at 
all in your web.xml.
  | 15:53:57,921 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
  | java.lang.NullPointerException
  | at 
javax.faces.webapp.UIComponentTag.setupResponseWriter(UIComponentTag.java:615)
  | at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:217)
  | at org.apache.myfaces.taglib.core.ViewTag.doStartTag(ViewTag.java:71)
  | at 
org.apache.jsp.login_jsp._jspx_meth_f_view_0(org.apache.jsp.login_jsp:132)
  | at org.apache.jsp.login_jsp._jspService(org.apache.jsp.login_jsp:91)
  | at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
  | at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
  | at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  | at 
org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
  | at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
  | at 
org.jboss.web.tomcat.tc5.session.ClusteredSessionValve.invoke(ClusteredSessionValve.java:81)
  | at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:407)
  | at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  | at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  | at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
  | at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
  | at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  | at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
  | at java.lang.Thread.run(Thread.java:595)
  | 

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

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


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Tomcat, HTTPD, Servlets & JSP] - Cannot get the DVDStore to work

2005-12-04 Thread Neelixx
I am using JBoss-4.0.3 with EJB3 config.  The deployment is successful, but I 
am getting the following stack trace when accessing the DVD App:

http://localhost:8080/dvd

Does anyone know why?  I'm having lots of trouble getting a simple JSF app to 
work as well.  Maybe that's why??  But the JBoss-Seam demo works.  Really wierd.


  | 15:32:02,734 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
  | java.lang.AbstractMethodError: 
javax.servlet.jsp.PageContext.getVariableResolver()Ljavax/servlet/jsp/el/VariableResolver;
  | at 
org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:922)
  | at 
org.apache.jsp.login_jsp._jspx_meth_f_view_0(org.apache.jsp.login_jsp:186)
  | at org.apache.jsp.login_jsp._jspService(org.apache.jsp.login_jsp:91)
  | at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
  | at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
  | at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
  | 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:301)
  | at 
org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:415)
  | at 
org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
  | at 
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300)
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:95)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
  | 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:301)
  | at 
org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:238)
  | at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:446)
  | at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  | at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  | at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
  | at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
  | at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  | at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
  | at java.lang.Thread.run(Thread.java:595)
  | 15:32:02,734 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces 
Servlet threw exception
  | javax.faces.FacesException: 
javax.servlet.jsp.PageContext.getVariableResolver()Ljavax/servlet/jsp/el/VariableResolver;
  | at 
org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:421)
  | at 
org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
  | at 
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300)
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:95)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
  | at 
org.apache.catalina.core.ApplicationDispatcher.processRequ

[JBoss-user] [JBoss Seam] - Multiple instances of a Seam class

2005-12-04 Thread Neelixx
I read in the docs that you can differentiate between muliple classes by using 
the annotation injection:


  | @In(name="currentUser")
  | User currentUser;
  | 
  | @In(name="assignedUser")
  | User assignedUser;
  | 
  | @In(name="requestingUser")
  | User requestingUser;
  | 

How can I "create" these objects in my managed bean?  I mean, if I have an 
Entity Bean with a Seam name of "user", how do I reference a "new" user class.  


  | Owner information: #{user.username}
  | Requesting User: #{user.username}
  | Assigned to: #{user.username}
  | 

Obviously, this will reference the same "user" instantiation.  How can I create 
a NEW user instantiation, so I can do this:


  | Owner information: #{currentUser.username}
  | Requesting User: #{requestingUser.username}
  | Assigned User: #{assignedUser.username}
  | 

Thanks for your advice!!  I feel that this is something super simple, but I 
cannot think of it.


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

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


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Get DN from LdapExtLoginModule

2005-11-20 Thread Neelixx
Hey everyone.

Is there a way to get the DN returned by the LdapExtLoginModule into the WAR?

Obviously, I can do it myself, but am trying to save the trouble of issuing 
another query if LdapExtLoginModule already got it.

I know the ExtendedFormAuthenticator will pass the j_username into the session 
context, but not the DN from the LdapExtLoginModule.

Any ideas?



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

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


---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: Using the LdapExtLoginModule in a Web Application

2005-11-20 Thread Neelixx
Hi Neil,

Do you need a user to bind to, before querying the LDAP Directory?  I left a 
response on your other thread.

If you want to know more about what's going on behind the scenes, try turning 
DEBUG logging on for the security module "org.jboss.security".  You should see 
more information in the server.log.

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

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


---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JNDI/Naming/Network] - Re: LDAP Intergration

2005-11-19 Thread Neelixx
First off, I don't see how a servlet filter will help with a JUnit test case.  
If he/she was using Cactus, maybe but this is an issue with the login 
module.

Also, NTLM is not being used here.  Neillane is using LDAP, not Windows.  So 
Samba shouldn't be required.

Neillane,

For starters

  | 
  | 
  | options.put("java.naming.provider.url", 
"ldap://192.168.1.2:389/,o=,dc=,dc=,dc=";); 
  | 
  | 

Is the trailing ",o=,dc=,dc=,dc=" required?  I have never used that in my 
naming URL, but then, I've never gone against an OpenLDAP server, just general 
LDAP systems.  I believe this should just be the system name, directing JNDI to 
bind to the server.  The options do the rest.


  | options.put("java.naming.security.authentication", "simple"); 
  | 
  | options.put("bindDN", "cn=bob"); 
  | 
  | options.put("bindCredential", "pwd"); 
  | 

Your BindDN should be a fully-qualified DN.  For example:

cn=bob,cn=Users,dc=mycompany,dc=com


  | options.put("baseCtxDN", ""); 
  | 

I'm not sure, but it may help to put a baseDN for your search, rather than 
blank.  If it's for the entire organization, then just include the DC's.  For 
example:


  | options.put("baseCtxDN","dc=mycompany,dc=com").  
  | 
If all your users are in the Users container, then you should use that as your 
base:

  | options.put("baseCtxDN","cn=Users,dc=mycompany,dc=com").
  | options.put("baseFilter", "(cn={0})"); 
  | 

Can you post your LDIF data as well?


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

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


---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: Mail not bound error

2005-10-24 Thread Neelixx
Post back with your stacktrace (if any), along with the log information from 
server.log during your access of the mail service.

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

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


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: reloading one war within an instance

2005-10-23 Thread Neelixx
If you are using a *NIX system, then just touch the file.


Otherwise, the easiest way is to just copy the war file over the existing one, 
or delete the deployed war, and copy the new one over.

JBoss hot deploy will take over.  That is, assuming you are not packaging your 
war files in an ear file.

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

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


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: configuration of Tomcat (not sure)

2005-10-23 Thread Neelixx
Firewall issues?  I'm not familiar with how ScrumWorks packages Tomcat.

Have you tried swapping ports?  Running JBoss on 8000 and Apache on 8080, to 
see if the problem follows?

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

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


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - To merge() or not to merge() ??

2005-10-22 Thread Neelixx
I am building my first EJB3 app.  The question is... should I work with 
detached instances, and then re-attach with merge()?

Or should I just keep loading the objects as needed, supplying the ids via the 
request.

SURVEY:  Are you using detached instances?  Why?

--Aaron

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

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


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: Help me please!! Mapping Problems with JBoss 4.0.3

2005-10-22 Thread Neelixx
There is a problem with those jars.  If you look at your build path, you'll see 
some of your jars have warnings in them.  Each of those jars with warnings are 
not pulling over to your build path. (you can see the yellow " ! " by the jars).

Those jars are:

hibernate3.jar
ejb3.jar
ejb3x.jar
jboss-remoting.jar

You do not need the jboss-remoting at this point, but those other three are 
critical to developing EJB3 projects.  

Expand those jars, and see if they are available.  Could it be because ehy are 
conflicting with the jars in your lib?

Find out why you have warnings on those jars.  Each jar that has a warning is 
not brought over into your project.


--Aaron



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

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


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: Help me please!! Mapping Problems with JBoss 4.0.3

2005-10-21 Thread Neelixx
If you are using libraries included with JBoss, the best way to do it, is to 
reference the libraries through Eclipse, and not in your lib, as you would not 
need to export those libraries.  They are already on the server.

However, you obviously need to have those libraries available to you in 
Eclipse, or your objects won't resolve.

If you are using Eclipse-IDE (which you should be using.  I'm using 1.5), then 
those libraries are already installed in Eclipse, you just need to add them to 
your build path.

Right-click on your project, and choose properties.  Go into your build-path.

Under the libraries tab, choose the "Add Libraries" button.  From there, again, 
IF you are using JBoss-IDE, you should choose, at a minimum, "J2EE1.4 
Libraries" and "JBoss EJB3 Libraries".  Those libraries are now available on 
your build path.

As far as "how" you include your libraries is a matter of preference.  Every 
developer is different.  As long as they get included is what's important.

If you are not using JBoss-IDE, or a version of JBoss-IDE that does not include 
EJB3, then you should create a "user library" that contains ejb3.jar and 
ejb3x.jar.  Call the library EJB3 and add it.

Hoffe das ich dir geholfen habe

Tschuss Aaron

(My wife helped me ((grin)) )

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

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


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: Single developer using JBoss

2005-10-20 Thread Neelixx
I love that book!  Read it from cover to cover.

The security and logging portions were the best!

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

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


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration & Deployment] - Re: how do you map multiple context paths to the same web ap

2005-10-20 Thread Neelixx
Use virtual hosts:

http://wiki.jboss.org/wiki/Wiki.jsp?page=VirtualHosts

Also, for mapping the virtual hosts to a single web app, this was taken from 
the above URL
anonymous wrote : 
  | Also, a single war can be deployed to mulitple virtual hosts through the 
jboss-web.xml virtual-host element. To make the jmx-console available on 
localhost, vhost1 and vhost2, edit the jmx-console.war/WEB-INF/jboss-web.xml
  | 
  | 
  |
  |localhost
  |vhost1.mydot.com
  |vhost2-alias
  | 
  | 

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

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


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: Incomplete Deployment Listing

2005-10-19 Thread Neelixx
kweiner,

http://wiki.jboss.org/wiki/Wiki.jsp?page=ServerConfiguration

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

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


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: Help me please!! Mapping Problems with JBoss 4.0.3

2005-10-19 Thread Neelixx
Yes, I'm using Eclipse3.1 with JBossIDE1.5.  In my build path, I have:

J2EE 1.4 libraries (JBoss-IDE) - included with JBoss-IDE1.5
JBoss-EJB3 libraries (JBoss-IDE) - included with JBoss-IDE1.5

Along-side those, I do alot of unit testing, so I also have JUnit and Cactus 
libraries.  But that's it.

I then package all my ear, war, ejb3, and par files using the "Packaging 
Configuration" in Eclipse.

On a side note, the ejb3x.jar defines the ejb annotations, whereas the ejb3.jar 
defines your EJB's (session, stateless, entity, persistence, etc)

I'm looking at my library list now, and this is what's included in the EJB3.0 
libraries:

http://www.thepaxson5.org/Members/Aaron/ejb3Libraries

Hope this helps!

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

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


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: Single developer using JBoss

2005-10-19 Thread Neelixx
If you already have object-oriented programming experience, then picking up 
Java won't be extremely hard.

I, myself, am a single developer learning J2EE on JBoss.  After 2 months, I am 
at a point where my helpdesk system is kicking of nicely for my company at an 
enterprise level.

Can you do it?  With motivation and perserverence, absolutely!

Read the JBoss Get Started Guides and the Administrator's Guide, and you'll be 
on your way!  Just like me.

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

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


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: Help me please!! Mapping Problems with JBoss 4.0.3

2005-10-19 Thread Neelixx
I, myself, am learning the EJB3.0 and JBoss system (and Java for that matter), 
so bear with me.

"jbossChecker" wrote : 
  | 
  | 1) How do I handle the use case, that someone puts somthing into the cart, 
but doesn't proceed, How do I terminate the EJB3 sfsb? 
  | I know the @Remove annotation, but who/what should invoke such a method? Or 
schoul I better work with timer objects and timeouts?

The container manages the session.  If someone was to just close out the 
browser, or go to another site without "checking-out" or "logging-out", then 
the container is responsible for timing-out the session.  When the session gets 
removed, I believe that's when the @Remove annotation is called.

You can modify your session timeout values in your descriptors.

"jbossChecker" wrote : 2) Would you ammotate this Bean as @Remote? Is ist 
possible to make an interface both (remotely and locally) available? 
  | 

It depends on how you want to run your application.  Running your beans with a 
@Remote interface, means other JVM's can access your bean (such as two seperate 
JBoss Servers).  If you plan on running your application in the same JVM (such 
as a single server), then you will only need a local interface.

There are exceptions to the rule, such as clustering JBoss servers, and your 
application architecture.  However, if you are just learning the EJB and JBoss 
technologies, I'd stick with local interfaces for now.

Also, I'm used to the bad english grammer, as my wife is also german (though 
her accent is nearly gone), and I'm used to reading her typing.  :)

Good luck!  Hope this helps!

--Aaron

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

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


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: Hibernate 3.0 select query fails with exception java.lan

2005-10-18 Thread Neelixx
It's hard to say, as you don't provide the actual line number that it is 
failing on.  But, from the looks of things, you probably don't have a required 
jar file in your classpath.

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

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


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: Help me please!! Mapping Problems with JBoss 4.0.3

2005-10-18 Thread Neelixx
You can set the log values two ways:  Through the log4j.xml file, or via the 
jmx-console.

I prefer the jmx-console, as it is easy access, but either way works.

Go to your jmx-console (http://localhost:8080/jmx-console)

Scroll down to the heading "jboss.system" and choose the 
"service=Logging,type=Log4jService".

Scroll down to "void setLoggerLevel()".  There are two parameters.  The log 
that you want to set, and the level that logging should happen.

For the "logger" parameter, type in "org.jboss.EJB3".  For the level parameter, 
type in "DEBUG".  Do the same for "org.hibernate".

Redeploy your app, and view the log file in /server/default/log/server.log.
anonymous wrote : But why does it work on the "NON PRODUCTION" version of 
jboss? 
I apologize if this is a stupid question, but I don't follow you by saying 
"NON-PRODUCTION" version.  I am running JBoss4.0.3 final.  Not RC1 or RC2.

Not sure why it runs in your "NON-PRODUCTION" version, other than code changes.

anonymous wrote : I am using the "jboss 4.0.3 production version" but I guess 
you are speaking of another thing, don't you?
  | No! It is my own pc at home. I am developing a little application for my 
study. So I could easily change everything I have to change. 

I was referring to a "production" server or "development" server.  YOu answered 
the question correctly by specifying running it on your home machine.

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

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


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: Help me please!! Mapping Problems with JBoss 4.0.3

2005-10-18 Thread Neelixx
Yes I do, and am using EJB3.0 entity and session beans.  I had the problem, 
where my session beans couldn't load the EntityManager.  That was because I had 
mapping issues with my EntityBeans, which showed up in my log.

If the tables can't be created, then your entity beans can't be initialized.  
Ergo, your EM won't be bound.

If you already have your tables in your DB, turn off hbm2ddl.  It looks like 
you have it set at "create-drop".  Every time you deploy your application, it 
will try to drop your tables, and recreate them.

Is this running on a production server?  If not, change your log settings to 
the following:

org.jboss.EJB3 = DEBUG
org.hibernate = DEBUG

Redeploy your app, and view the server log.  Maybe that will give you more 
insight.

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

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


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Insert SQL on deploy with hbm2ddl?

2005-10-18 Thread Neelixx
I have hbm2ddl running as "drop-create".  As I re-deploy my development EAR, it 
re-creates by tables.  Good.

Is there a way to have hbm2ddl auto-run a sql script after creating the tables? 
 It's a pain to keep running my sql script for my Unit Tests.

I thought I saw a parameter when JBoss starts up, that it was looking for a sql 
script when deploying my app, but now when I'm looking for it, I can't seem to 
find it.

Anyone point me in the right direction?

THanks!

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

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


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: Help me please!! Mapping Problems with JBoss 4.0.3

2005-10-18 Thread Neelixx
Check your log files for DEBUG messages.  I have found, when working with 
EJB3.0 and EntityManagers, that if you have a failure for one of your beans, 
the EntityManager will not bind the name declared in your persistence.xml file.

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

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


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: LdapExtLoginModule throws NullPointerException during ro

2005-10-03 Thread Neelixx
Thanks for the reply, niwhsa!

The good news is that LdapExtLoginModule does allow you to map roles with LDAP 
Groups, no matter the name, which is why I'm so excited about it.

I found the bug, and submitted it to JIRA.  It was put into 4.0.3Final.

http://jira.jboss.org/jira/browse/JBAS-2316

I finally got it working to map ANY roles I created to ANY groups already 
defined in my AD Environment.  What a lifesaver!  Love it!

--Aaron

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

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


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: Updating user credentials

2005-10-02 Thread Neelixx
tremalnaik,

While doing some research on a project I'm working on, I ran across this on the 
Wiki.  Haven't used it, but sounds like it may help:

http://wiki.jboss.org/wiki/Wiki.jsp?page=CachingLoginCredentials

HTH.

Good Luck!

--Aaron

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

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


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: Question about configure of jboss server in eclipse

2005-10-02 Thread Neelixx
The best way to configure JBoss inside Eclipse is to use the JBoss-IDE

http://www.jboss.com/products/jbosside

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

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


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: JAAS Security in JBOSS 4.0 ISSUES??

2005-10-02 Thread Neelixx
Also,

I finished up the database portion just so you can look at it.

If you are asking about a book, most of my knowledge came from the JBoss Wiki, 
the JBoss Admin Guide, and the book JBoss: A Developer's Notebook.

I highly recommend the Developer's Notebook, as it gives you a hand's on guide 
to doing common operations.  It's a small and cheap book, but gives you some 
great knowledge!

HTH!

Aaron

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

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


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: pictures are not loaded every time

2005-10-02 Thread Neelixx
Eric,

Is Internet Explorer using a proxy server?  Also, you may want to include in 
your HTTP headers no caching.

<%
response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setDateHeader ("Expires", 0); //prevents caching at the proxy server
%>

Also, if you are using Internet Explorer 5, look at these links to see if you 
are affected:

http://support.microsoft.com/support/kb/articles/Q222/0/64.ASP
http://support.microsoft.com/support/kb/articles/Q234/2/47.ASP 

Cheers,

--Aaron

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

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


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: Force reloading a servlet in JBoss

2005-10-02 Thread Neelixx
"Touching" is a unix/linux term.  To "touch" a file, means to update it's 
"lastModified" attribute, without really modifying it.

If you are running JBoss on Unix or Linux you simply run "touch ".  If you are 
running JBoss on Windows, but you have access to a Linux/Unix 
server/workstation, you can setup a mount to JBoss, and touch it that way.

In Windows, the best way to "touch" the web.xml is to open it in notepad, save 
it, then close it.

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

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


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: Updating user credentials

2005-10-02 Thread Neelixx
H. 

I don't think it's the browser cache, as that would mean you are using cookies? 
 If you are storing their logon in their session, how about this:

1).  Store the page they are currently at in a variable
2).  Store the username and password from the updatePassword form.
3).  Upon successful completion of changing their password send them to a 
servlet (say updateLogonServlet).
4).  updateLogonServlet should logoff their session, and then logon using their 
new password
5).  redirect them back to the page they were at.

Haven't tried this myself, but it sounds like it would work.

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

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


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: JAAS Security in JBOSS 4.0 ISSUES??

2005-10-02 Thread Neelixx
angelzworld,

I just wrote up a quick article on using JBoss's security architecture.  
Although it's not really needed, as there are a slew of articles out there (not 
to mention on this site in particular).  

I only write these articles to help my understanding, and for note taking.  You 
can find it here:

http://www.thepaxson5.org/Members/Aaron/JBoss/jboss-jaas-intro

This article shows how to use the flat file for users and roles, and I plan on 
doing the database in the very near future.  Until then, you can follow the 
article, and instead of using the UsersRolesLoginModule, look at the 
"http://wiki.jboss.org/wiki/Wiki.jsp?page=DatabaseServerLoginModule"; and it's 
options.

The only thing different you'll have to do, that my article doesn't show, would 
be to bind the database to use for your logins, into JNDI.

HTH,

Good Luck!

--Aaron

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

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


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: JAAS Security in Jboss - Password Capture

2005-10-02 Thread Neelixx
If the user is submitting their credentials in an HTML form, then you already 
have their credentials.

If you are using Browser-based logon, then you'll have to write your own 
LoginModule.

JBoss does have a way of doing SSO (Single Sign On) but I haven't delved too 
much into that aspect yet.

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

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


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: Jboss classpath

2005-10-02 Thread Neelixx
Need to know more about your environment.  Specifically, are you using a 
different JDK version than the one used for WebLogic?

Also, try using the newer version of JBoss 4.0.x.

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

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


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: JBoss JNDI Datasources - Move to LDAP?

2005-10-02 Thread Neelixx
My first advice to you is... "Secure your files".

Secondly, anything is possible, as JBoss is open-source.  Whether it can be 
done "out-of-the-box", I'm not sure.

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

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


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: BindException Cannot assign request adress

2005-10-02 Thread Neelixx
I've never used the Cluster Config service for Tomcat5 before, but I can read.  
At the top of your config file, it says to turn loopback to "True" for 
Windows-based machines.

Your's is set to false.  Try that.

HTH

Aaron

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

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


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: Two instances

2005-10-02 Thread Neelixx
Realistically, you can serve hundreds of web applications from a single 
server you'll just need to set the context path of each application.

If you can't do this, can you post more about your environment?  I'm not 
understanding your question.

WebApp1:  context root = /webapp1
WebApp2:  context root = /webapp2

You access webapp1 by http://server/webapp1
You access webapp2 by http://server/webapp2

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

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


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: 403 Access Denied instead of redirect to login page ...

2005-09-29 Thread Neelixx
You can get more information in your log file if you set org.jboss.security to 
Debug.

Go to your JMX-Console, and find the system mbean.  You'll see your log4j 
logging service/type.  One of those methods allows you to change the logging 
level.

Place "org.jboss.security" as the first parameter, and DEBUG as the second 
parameter.

Or, you can modify the log4j.xml file.

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

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


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: Authentication : URGENT

2005-09-29 Thread Neelixx
Shankar,

Authentication is done with LoginModules in JBoss.  If you just want to specify 
users in a flatfile, you can use this as a guide:

http://wiki.jboss.org/wiki/Wiki.jsp?page=UsersRolesLoginModule

The UsersRolesLoginModule allows you to specify users, passwords, and their 
roles, and tie it into an application authentication mechanism.

I believe those files are stored at:

$JBOSS_HOME/server/[serverconfig]/conf

you authentication configurations happen in multiple files:

$JBOSS_HOME/server/[serverconfig]/conf/login-config.xml  -->  This specifies 
your loginModule configurations, and which application uses which modules
$WEBAPP_HOME/WEB-INF/web.xml -->  As normal, this specifies your roles and 
which servlets are protected
$WEBAPP_HOME/WEB-INF/jboss-web.xml  -->  This links your web application to the 
application-policy stated in the login-config.xml


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

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


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - LdapExtLoginModule throws NullPointerException during rolesS

2005-09-26 Thread Neelixx
Please forgive the duplicate post.  I'm not sure what I could have done to the 
previous post, but the forums didn't like something.  Because of that, I'm 
submitting a link. 

My apologies for doing it this way.

Please let me know if this is a bug, and I'll submit it in JIRA.  I did not see 
any references to this yet.

http://aaron.thepaxson5.org/blog/2005/09/26/1127784334273.html

Thanks so much!

~~Aaron

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

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


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


[JBoss-user] [Security & JAAS/JBoss] - Re: Running JUnit test cases for LoginModules?

2005-09-26 Thread Neelixx
My apologies everyone.  I was trying to run a testCase in Eclipse, but it kept 
bombing out on me and thought there was some "special way" of unit-testing 
JBoss security.  My assumption was, since the project was using JBoss-IDE, all 
the required libraries should have been there.

Poor assumption.  Make sure to add the jbosssx.jar from the 
server/configuration/lib directory.

Sorry all!  Dumb mistake!

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

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


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


[JBoss-user] [Security & JAAS/JBoss] - Running JUnit test cases for LoginModules?

2005-09-24 Thread Neelixx
I am attempting to create a new LDAPLoginModule which will allow for redundant 
LDAP servers.  However, I think my configuration for LDAPLoginModule is wrong, 
so I need that working before I can build onto it.

I found a testCase to help me on my way with testing, but I'm not sure how to 
launch it, as I'm still learning JUnit.  I would imagine it requires 
"in-container" testing, but not sure.  Can someone give me a hand with how to 
launch 
http://wiki.jboss.org/wiki/attach?page=LdapExtLoginModule%2FLoginModulesTestCase.java
 found on the LDAPLogin Wiki?

Once I can launch the test case, I can test several scenarios, and then I can 
build onto the LDAPLoginModule, and test my new code.  

I would love any guidance with using JUnit with JBoss.  Even a link to general 
JBoss testing would be a start.  It's unfortunate that the JBoss Developer's 
notebook didn't include that.  Wishlist maybe?  

Thank you!!

--Aaron[/url]

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

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


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


[JBoss-user] [Security & JAAS/JBoss] - Simple DB Authentication?

2005-09-18 Thread Neelixx
Can someone help me out with a trivial DB Login?  I'm just now getting into the 
JAAS of things (if you pardon the pun), and am having difficulty authenticating 
to a MySQL Database.

I authenticate correctly, as you can see in these logs.  And I get assigned the 
correct roles:

  | 2005-09-18 13:37:39,962 TRACE 
[org.jboss.security.auth.spi.DatabaseServerLoginModule] User 'apaxson' 
authenticated, loginOk=true
  | 2005-09-18 13:37:39,962 TRACE 
[org.jboss.security.auth.spi.DatabaseServerLoginModule] commit, loginOk=true
  | 2005-09-18 13:37:39,972 TRACE 
[org.jboss.security.auth.spi.DatabaseServerLoginModule] Assign user to role 
TechDesk-Admin
  | 2005-09-18 13:37:39,972 TRACE 
[org.jboss.security.auth.spi.DatabaseServerLoginModule] Assign user to role 
JBoss-JMX-Admin
  | 

Specifically, take note that I was assigned the role "JBoss-JMX-Admin".  You 
can see from the following logs, that it cannot see that I have that role:


  | 2005-09-18 13:37:39,993 DEBUG 
[org.apache.catalina.authenticator.AuthenticatorBase] Authenticated 'apaxson' 
with type 'BASIC'
  | 2005-09-18 13:37:39,993 DEBUG 
[org.apache.catalina.authenticator.AuthenticatorBase]  Calling accessControl()
  | 2005-09-18 13:37:39,993 DEBUG [org.apache.catalina.realm.RealmBase]   
Checking roles GenericPrincipal[apaxson()]
  | 2005-09-18 13:37:39,993 DEBUG [org.apache.catalina.realm.RealmBase] 
Username apaxson does NOT have role JBoss-JMX-Admin
  | 2005-09-18 13:37:39,993 DEBUG [org.apache.catalina.realm.RealmBase] No role 
found:  JBoss-JMX-Admin
  | 2005-09-18 13:37:39,993 DEBUG 
[org.apache.catalina.authenticator.AuthenticatorBase]  Failed accessControl() 
test
  | 

I'm sure it's something very simple.  I just created a quick DB for learning 
the authentication process.  Can someone give me a hand?

Here's my login-config.xml


  | 
  |
  |   
  |  guest
  |  java:/UserAuthDB
  |  SELECT password FROM 
principles WHERE PrincipleID=?
  |  SELECT Role, RoleGroup FROM 
ROLES WHERE PrincipleID=?
  |   
  |
  | 
  | 

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

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


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


[JBoss-user] [Security & JAAS/JBoss] - Re: Support for multiple LDAP Servers?

2005-08-21 Thread Neelixx
Also,

I've heard LDAPExtLoginModule doesn't support referrals, which is absolutely 
critical to my app that I'm starting to build.  We have 4 unique LDAP servers 
(AD Domains), each having a redundant backup but each knowing the others.  
(Active Directory)

Am I correct in thinking that?

Thanks!

--JBoss Newbie

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

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


---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Support for multiple LDAP Servers?

2005-08-21 Thread Neelixx
Does LDAPLoginModule support multiple/redundant ldap servers, or should I 
extend this class into my own, and manually try to bind?  For example:

  | 
  | 
  | 
  | 
  | ldap://host1.jboss.org:3268/
  | ldap://host2.jboss.org:3268/
  | ldap://host3.jboss.org:3268/
  | 
  | cn=Users,dc=ldaphost,dc=jboss,dc=org
  | false
  | @ldaphost.jboss.org
  | sAMAccountName
  | memberOf
  | true
  | name
  | 
  | 
  | 
  | 

I'm not exactly sure how I would extend this to include binding to a 
second/third server, if the first one fails.

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

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


---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: JUnit testing ?

2005-08-19 Thread Neelixx
Well, I won't be testing any EJB's, but I will be testing JNDI Datasources, 
JBoss Authentication, servlet filters, and hibernate archives, all of which 
have to be accessed from inside the container.

Is this correct?

I apologize for the newbie questions.  I have just started getting into the 
"Unit Testing" for TDD, and trying to get a feel for how others test.  I'm 
learning JUnit, but that will only help me for POJO classes, and not my web 
apps inside JBoss.

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

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


---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - JUnit testing ?

2005-08-19 Thread Neelixx
How does everyone go about testing inside the JBoss container?  I've seen that 
JBoss has an org.jboss.test.JBossTestCase class, but how do I use it?



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

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


---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Unit Testing - Hibernate Archives and WAR

2005-08-16 Thread Neelixx
Hey all!  I'm building a web application that uses JBoss4.x hibernate archives, 
but I'm just now getting into the whole "unit testing" phase, so I am still 
quite a newbie.

What would be the best way to test my DAO classes that use the hibernate 
session bound to JNDI?  I would want to unit test the smallest component 
(getting data from hibernate), but also an entire request (where a servlet 
calls to load data from a DAO, and the servlet filter completes the 
transaction).

I'm learning JUnit, but is everyone using Cactus?

Any thoughts and practices are appreciated!  Thank you!

--Aaron

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

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


---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: Communication Between 2 different WAR files

2005-07-30 Thread Neelixx
Hmmm I guess that all depends on what you are trying to accomplish.  A few 
things come to mind, although, they may be overkill on what you want to do:

First you have the Java Messenging system, where you can have java objects send 
messages to a "queue", and have another object pick those messages up.

You also have the EJB philosophy, where you can implement an object in an EJB, 
and call on that EJB from your different WAR applications.

The last option I can think of, would be to implement a Web Service of some 
kind.

Also, I'm curious on what you mean by "same session".  It was my understanding 
that each application has it's "own session" and that the sessions aren't 
shareable.



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

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


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: hibernate class not found?

2005-07-30 Thread Neelixx
Ooops.  Code got stripped out:
For example:

  | 
  | 

Rather than:

  | 
  | 


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

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


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: hibernate class not found?

2005-07-30 Thread Neelixx
qwidjibo,

Can you post your hbm.xml files, as well as the structure of your har file?

Normally, when you create your hbm.xml files, you must define the classes you 
are persisting.  Since you have a many-to-one with another class, but that 
class is in a different package, you'll have to use the full package name.  
i.e.  rather than just .

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

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


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: deploy and hibernate

2005-07-30 Thread Neelixx
chwang,

The deploy directory is meant for you to deploy all of your applications.  
Tomcat is used as an embedded service, so you should never deploy your 
applications in the Tomcat.sar folder.  Also, I do not think the tomcat.sar 
folder is monitored for hot-deploy.  So, if you ever replace your deployment, 
JBoss probably won't undeploy and re-deploy your application.

Basically, do not deploy your apps in Tomcat, but rather, in the 
/server/default/deploy directory.

In Tomcat, the context is based on the directory your application is in.  I 
wonder if this is why you are deploying in Tomcat.  If you want to set the 
context of your application when you deploy your app to the "deploy" directory, 
you'll have to add a "jboss-web.xml" file to your WEB-INF directory with the 
following:


  | 
  | MyAppContext
  | 
  | 

This will deploy your app to the //server/MyAppContext/ URL.  You can verify 
this by watching your logs when you place your app in the deploy directory.

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

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


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: Cannot Load Hibernate object

2005-07-27 Thread Neelixx
My apologies, but it seems as if this is a hibernate issue, and not a JBoss 
issue.  I've moved my post to the Hibernate forums.  If you have any questions 
about this post, please post there.

Sorry for the cross-posting!

http://forum.hibernate.org/viewtopic.php?p=2252760#2252760

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

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


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Cannot Load Hibernate object

2005-07-26 Thread Neelixx
Hibernate3.0, JBoss4.0.2, JDK-1.4.2_01

I have two files.  techdesk.har and techdesk.war.  The har file has only three 
classes made persistent, and deploys correctly, and the SessionFactory bound 
correctly in JNDI:

anonymous wrote : 2005-07-26 22:40:52,511 INFO  
[org.jboss.hibernate.jmx.Hibernate] SessionFactory successfully built and bound 
into JNDI [java:/TechDesk/SessionFactory]

However, when I access my servlet with code to load a class from hibernate, 
nothing comes back (not even errors or exceptions).  I even have ShowSQL=true 
in my hibernate parameters, but no SQL statements were output'd.  Here is the 
log from when I access the servlet:

anonymous wrote : 2005-07-26 22:30:30,557 DEBUG 
[org.hibernate.impl.SessionFactoryObjectFactory] JNDI lookup: 
TechDesk/SessionFactory
  | 2005-07-26 22:30:30,557 DEBUG 
[org.hibernate.impl.SessionFactoryObjectFactory] lookup: 
uid=8a8be5ef0555af6a010555af8d9e0001
  | 2005-07-26 22:30:30,557 DEBUG [org.hibernate.jdbc.JDBCContext] no active 
transaction, could not register Synchronization
  | 2005-07-26 22:30:30,557 DEBUG [org.hibernate.impl.SessionImpl] opened 
session at timestamp: 4597479139561472
  | 2005-07-26 22:30:30,567 DEBUG [org.hibernate.transaction.JTATransaction] 
begin
  | 2005-07-26 22:30:30,567 DEBUG [org.hibernate.transaction.JTATransaction] 
Looking for UserTransaction under: UserTransaction
  | 2005-07-26 22:30:30,567 DEBUG [org.hibernate.transaction.JTATransaction] 
Obtained UserTransaction
  | 2005-07-26 22:30:30,567 DEBUG [org.hibernate.transaction.JTATransaction] 
Began a new JTA transaction
  | 2005-07-26 22:30:30,577 DEBUG [org.hibernate.jdbc.JDBCContext] successfully 
registered Synchronization
  | 2005-07-26 22:30:30,697 DEBUG [org.hibernate.transaction.JTATransaction] 
commit
  | 2005-07-26 22:30:30,697 DEBUG 
[org.hibernate.transaction.CacheSynchronization] transaction before completion 
callback
  | 2005-07-26 22:30:30,697 DEBUG 
[org.hibernate.transaction.CacheSynchronization] automatically flushing session
  | 2005-07-26 22:30:30,697 DEBUG [org.hibernate.impl.SessionImpl] 
automatically flushing session
  | 2005-07-26 22:30:30,697 DEBUG [org.hibernate.jdbc.JDBCContext] before 
transaction completion
  | 2005-07-26 22:30:30,697 DEBUG [org.hibernate.impl.SessionImpl] before 
transaction completion
  | 2005-07-26 22:30:30,697 DEBUG 
[org.hibernate.transaction.CacheSynchronization] transaction after completion 
callback, status: 3
  | 2005-07-26 22:30:30,697 DEBUG [org.hibernate.jdbc.JDBCContext] after 
transaction completion
  | 2005-07-26 22:30:30,697 DEBUG [org.hibernate.impl.SessionImpl] after 
transaction completion
  | 2005-07-26 22:30:30,697 DEBUG 
[org.hibernate.transaction.CacheSynchronization] automatically closing session
  | 2005-07-26 22:30:30,697 DEBUG [org.hibernate.impl.SessionImpl] 
automatically closing session
  | 2005-07-26 22:30:30,697 DEBUG [org.hibernate.impl.SessionImpl] closing 
session
  | 2005-07-26 22:30:30,697 DEBUG [org.hibernate.transaction.JTATransaction] 
Committed JTA UserTransaction
  | 2005-07-26 22:30:36,536 DEBUG [org.hibernate.jdbc.JDBCContext] running 
Session.finalize()

Here is a snip of the code that calls the hibernate lookup:


  | Transaction tx = null;
  | Session session = null;
  | try {
  | InitialContext ctx = new InitialContext();
  | SessionFactory factory = (SessionFactory) ctx
  | 
.lookup("java:/TechDesk/SessionFactory");
  | session = factory.openSession();
  | } catch (NamingException e) {
  | // TODO Auto-generated catch block
  | e.printStackTrace();
  | }
  | 
  | PrintWriter out = resp.getWriter();
  | tx = session.beginTransaction();
  | try {
  | List results = 
session.createCriteria(Ticket.class).list();
  | for (Iterator i = results.iterator(); i.hasNext();) {
  | Ticket ticket = (Ticket) i.next();
  | out.println(ticket.getId() + " " + 
ticket.getProblem());
  | if (ticket.getOwner() != null) {
  | 
out.println(ticket.getOwner().getUsername());
  | } else {
  | out.println("No Owner");
  | }
  | }
  | } catch (HibernateException e) {
  | e.printStackTrace();
  | } finally {
  | tx.commit();
  | }
  | 

Can anyone point out what I'm doing wrong?  I've been staring at this code for 
too long, and need a fresh set of (experienced) eyes.  This code works 
correctly outside of JBoss and Tomcat using a POJO.

Thanks so much!
--Aaron

View the original post : 
http://www.jboss.org/index.html?module=bb&op