[JBoss-user] [Beginners Corner] - Problem in Deploying MyBank

2004-08-19 Thread kpraveena
Hi,
I am unable to deploy the mybank bean in chapter 1...error is..0:57:40,436 ERROR 
[URLDeploymentScanner] MBeanException: Exception in MBean operation 
'checkIncompleteDeployments()' 
Cause: Incomplete Deployment listing: 
Packages waiting for a deployer: 

Incompletely deployed packages: 

MBeans waiting for classes: 

MBeans waiting for other MBeans: 
[ObjectName: jboss:service=HAJNDI 
state: FAILED 
I Depend On: jboss:service=DefaultPartition 

Depends On Me: java.lang.NoClassDefFoundError: gnu/regexp/UncheckedRE] 

using eclispe 2.1,lomboz.212,jboss-3.2.1 

i have tried with eclipse 2.1.1 and lomboz.212.p1 with jboss-3.2.1..with No 
success..

Please help me...Its urgent...
Thanku 
praveena



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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: How to connect to HyperSonic DB on JBoss?

2004-08-19 Thread kpraveena
Hi,

Which version u r using?With jboss-3.2.1 and latter u will find embedded hybersonic DB.

Praveena

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Preoblems with JNI-modules

2004-08-19 Thread frodeh
When I run JBoss on a Windows-server, and uses InfoZoom-generated classes for 
accessing a DCOM-server, I am not able to redeploy my webapp.

The server says :"java.lang.UnsatisfiedLinkError: Native Library C:\Program 
Files\infozoom\izmjnicom.dll already loaded in another classloader"

Is there possibly a way to load this DLL elsewhere, and make JBoss only link to the 
loaded module rather than trying to load it again ?

Why is the LIB not unloaded when the webapp undeploys ?

Frode Halvorsen

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Custom Authentication

2004-08-19 Thread dhill
Is there a way to use custom authentication within jboss so that all request will have 
a principal assocaited with them, I am trying to get around the j2ee security 
constraint, what I mean is I don't want to have to use this method, I would like to 
just call a JBossAuthenticator in my login portlet and then be authenticated.

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Cannot keep login data

2004-08-19 Thread ltcmelo
Hi,
i thought that my question would better fit in the JAAS forum, but as it's a very 
ordinary theme, i decided to come over here and ask people (how knows a little about 
login stuff) to take a look there

http://jboss.org/index.html?module=bb&op=viewtopic&p=3845677#3845677

I'd really appreciate any help!

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Problems to keep login data

2004-08-19 Thread ltcmelo
Hi,
i got a real big problem that i must figure out a way out of it.

I got my application protected with JAAS, so users cannot access any pages or servles 
withou a login. There's only one servlet (wich is not secure) that is the one that 
actually logs the user in.

Heres the code of my login servlet.

  | //...
  | String j_username = (String)request.getParameter("j_username");
  | String x = (String)request.getParameter("j_password");
  | 
  | if (x != null){
  | j_password = x.toCharArray();
  | handler = new UsernamePasswordHandler(j_username, j_password);
  | }
  |
  | LoginContext lc = null;
  | 
  | try {
  | lc = new LoginContext("example2", handler);
  | lc.login();
  | 
  | 
  | //this part doesn't matter very much
  | Subject subject = lc.getSubject();
  | Set principals = subject.getPrincipals();
  | Principal user = new SimplePrincipal(j_username);
  | principals.add(user);
  | 
  | } catch (LoginException e) {
  | // TODO Auto-generated catch block
  | e.printStackTrace();
  | throw new Exception();
  | }
  | 
  | // redirect to other page...
  | 

The above code runs perfectly! It logs the user correctly and then i'm forwared to 
some other page.
But, when i get to this other page, everything is gone!!! I'm not logged anymore. If i 
try to access another page in my application, i'm redirect to the login.jsp page 
again!!!

I heard that this is because the multi-thread characteristic of the servlets, but 

how can i workaround this??? how can i make this maintain my login through the rest of 
my session???


Here's a piece of login-config.xml

  | 
  |
  |   
  |   
  |
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | java:/DefaultDS
  | Select Password 
from Principals where PrincipalID =?
  | Select Role 'Roles', 
RoleGroup 'RoleGroups' from Roles where PrincipalID =?
  | 
  | 
  | 
  | 

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: Compile of Duke's Bank app failed

2004-08-19 Thread rhook
Rantless response. To get over that particular hurdle, I had to do the following:


1. Edit the build.properties file in the j2eetutorial directory to make sure the 
servlet.jar line read:

servlet.jar=${jboss.server}/deploy/jbossweb-tomcat50.sar/servlet-api.jar

2. Edit the jboss-build.xml file in the j2eetutorial\bank directory to make sure the 
section near the top "class for running the client" looked like this:


  |   
  | 
  |   
  | 

Having said that, I've done that much and the tutorial build still fails because there 
are dozens of other classes that cannot be found. thinking is in progress.

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: Compile of Duke's Bank app failed

2004-08-19 Thread rhook
"hbaxmann" wrote : your ant script environment is missing some impotent .jar files 
(servlet.jar in this case)
  | 
  | bax 



{Rant mode enabled}
rrrgghhht!!! Just what I like about the FOSS world. An answer that is:

a) misspelt;

b) risible due to incorrect spelling;

c) accurate, but completely useless.

That's nice. We know that servlet.jar is missing. Some of us can tell that there are 
other things missing. If you've solved this issue, why not SAY WHAT THE SOLUTION IS 
rather than saying "there is a solution"
{Rant Mode disabled}

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Nukes User] - Re: Time out in index writer...

2004-08-19 Thread MilesParker

I tried changing that value (MaxUploadSize) to a very large value -- but after 
experimenting it appears that this is the problem. I had it at 80MB. For whatever 
reason hanging it back to a lower value worked for smaller (600k) files. I am going to 
try it on intermediate sized files now, but it looks like very large files won't work.


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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - how to invoke securable ejbs?

2004-08-19 Thread mayue00
Hi,
I have a swing application running as a client that needs to invoke ejbs deployed on a 
remote Jboss server. How should I pass the authentication to the Jboss so that those 
securable ejbs can be invoked?

Thanks a lot!

Mark Ma


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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - RMI/Naming with Multiple Site Hosting

2004-08-19 Thread grinch
Dear Friends, 

We are currently hosting multiple JBOSS sessions by running different jboss server 
instances on different JVM ports.  I have created a client app than connects to the a 
server instance, but when I try to create an initial contect to a machine it always 
get connection refused. 

If I connect to a machine that is running a single instance of jboss via:
java.naming.provider.url=IP:1099
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory

It works fine.  I think somthing is is going wrong trying to connect to a server that 
supports mutiple instances of JBOSS. I have even tried using Naming over HTTP and get 
the same result. Does anyone have a clue as to what is going on here?

Thanks, 
Scott

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: why i can't invoke bmp method

2004-08-19 Thread osataken
thank you for the answer jamesstrachan
but when i run client i cannot  see "ejbCreate() Called" in Server Console and no 
information insert in database , i think the method "ejbCreate()" was not invoked. 

did i miss something???

(my English skill is not very well) sorry, if it has some mistakes.^^

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Re: Having trouble connecting jboss 3.2.2 to Oracle 10g

2004-08-19 Thread lafr
Your configuration is not quiet clear to me.
On the box where jboss is running you have 10g installed ?
You use a 9i instance on another box ?

You should use oci instead of oci8 in your protocol definition.
Environment variable ORACLE_HOME must be set and point to the oracle 10g software dir.
Environment variable LD_LIBRARY_PATH must include the dir with libocijdbc9.so in it.
This is $ORACLE_HOME/lib or $ORACLE_HOME/lib32 depending if you have 32 or 64 bit 
version of oracle installed.


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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Javassist user questions] - Re: bug in ExprEditor.edit(NewExpr call) when in try-catch-b

2004-08-19 Thread fedor
// code to patch class-file:
  | 
  | import javassist.*;
  | import javassist.expr.*;
  | import java.io.*;
  | import java.util.*;
  | public class Patch
  | {
  | public static void main(String args[])
  | throws Exception
  | {
  | File f=new File(args[0]);
  | FileInputStream fis=new FileInputStream(f);
  | ClassPool cp=new ClassPool();
  | cp.appendSystemPath();
  | CtClass c=cp.makeClass(fis);
  | c.instrument(
  | new ExprEditor()
  | {
  | public void edit(NewExpr call)
  | throws CannotCompileException
  | {
  | if 
("java.util.ArrayList".equals(call.getClassName()))
  | {
  | call.replace("$_=new 
ArrayListWrapper(\"hi there\",$$);")
  | ;
  | }
  | }
  | });
  | c.writeFile("patched");
  | c.detach();
  | fis.close();
  | }
  | }
  | 
  | // the wrapper:
  | 
  | public class ArrayListWrapper extends java.util.ArrayList
  | {
  | public ArrayListWrapper(String bla,int size)
  | {
  | }
  | public ArrayListWrapper(String bla)
  | {
  | }
  | }
  | 
  | // class to patch:
  | 
  | import java.util.*;
  | public class Test
  | {
  | public static void test()
  | {
  | try
  | {
  | ArrayList h=new ArrayList();
  | }
  | catch (Exception e)
  | {
  | e.printStackTrace();
  | }
  | }
  | public static void main(String args[])
  | {
  | test();
  | }
  | }

When I run Patch on Test.class and decompile the created Test.class jad complains:

Parsing Test.class...Overwrite Test.jad [y/n/a/s] ? y
 Generating Test.jad
Couldn't fully decompile method test
Couldn't resolve all exception handlers in method test

Perhaps I'm relying on jad too much... the class seems to work, but the strange thing 
is, that jad does not complain when puting somehting (which will not be removed by the 
optimizer :)) before the new ArrayList statement in my Test-class.

What I'm seeing now is that the code, which cannot be decompiled by jad, seems to run. 
 Maybe I should forget about jad :)

I saw this at work when trying to patch some class-files compiled by some jdk from IBM 
(1.3). The problem described above occured during patching a class which contains a 
couple of nop's in the byte-code at the beginning of bytecode of a method like the one 
in Test.class.  Perhaps that was the problem...I'm still not sure. I got VerifyErrors 
and even Web$phere-crashes, but that's regular stuff :) 

I'm still not sure about this. Perhaps it's a problem of jad, but I've never had any 
problems with jad.

I'm using Sun's JDK 1.4.1_03 on Linux. At work it's 1.3 on Window$.  Same behavior.



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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: javax.ejb.ObjectNotFoundException: No such entity!

2004-08-19 Thread balteo
Hello Loubyansky,

First of all thanks for taking the time to respond. I tried the following test as you 
suggested:

1. I try to access the record through a ejbhome findByPrimaryKey
2. I try to access the record through plain jdbc

Here is the code:

  | <%@ page import ="javax.ejb.*" %>
  | <%@ page import ="javax.naming.*" %>
  | <%@ page import ="java.util.*" %>
  | <%@ page import ="java.rmi.*" %>
  | <%@ page import ="com.softwareag.test_guide.establishmentEJB.*" %>
  | 
  | 
  | <%@ page import ="javax.sql.*" %>
  | <%@ page import ="java.sql.*" %>
  | 
  | 
  | <%
  | 
  | try{
  | Properties p = new Properties();
  | p.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
  | p.put(Context.PROVIDER_URL,"127.0.0.1:1099");
  | p.put(Context.SECURITY_PRINCIPAL,"sa");
  | p.put(Context.SECURITY_CREDENTIALS,"");
  | Context context = new InitialContext(p);
  | PGEstablishmentLocalHome home = (PGEstablishmentLocalHome) 
context.lookup("PGEstablishmentHome_L");
  | PGEstablishmentLocal establishment = home.findByPrimaryKey(new Integer(12));
  | out.println(establishment.getId());
  | }
  | catch(FinderException e){
  | e.printStackTrace();
  | }
  | 
  | %>
  | 
  | <% System.out.println("---");%>
  | 
  | <%
  | try{
  | Properties p = new Properties();
  | p.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
  | p.put(Context.PROVIDER_URL,"127.0.0.1:1099");
  | Context context = new InitialContext(p);
  | DataSource ds = (DataSource) context.lookup("java:/test_guia");
  | Connection con = ds.getConnection();
  | Statement st = con.createStatement();
  | ResultSet rs = st.executeQuery("select db_establishment_id from establishments 
where db_establishment_id = 12");
  | rs.next();
  | out.println(rs.getInt(1));
  | con.close();
  | }
  | catch(SQLException e){
  | e.printStackTrace();
  | }
  | %>
  | 

The first section (access record from ejb home) throws the same exception ie:

  | 1:30:46,937 INFO  [EARDeployer] Started J2EE application: 
file:/D:/system/jboss-4.0.0/server/default/deploy/test_guide.ear
  | 1:31:46,703 INFO  [STDOUT] javax.ejb.ObjectNotFoundException: No such entity!
  | 1:31:46,703 INFO  [STDOUT] at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCFindByPrimaryKeyQuery.execute(JDBCFindByPrimaryKeyQuery.java:133)
  | 1:31:46,703 INFO  [STDOUT] at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCFindEntityCommand.execute(JDBCFindEntityCommand.java:43)
  | 1:31:46,703 INFO  [STDOUT] at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.findEntity(JDBCStoreManager.java:582)
  | 1:31:46,703 INFO  [STDOUT] at 
org.jboss.ejb.plugins.CMPPersistenceManager.findEntity(CMPPersistenceManager.java:310)
  | 1:31:46,703 INFO  [STDOUT] at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.findEntity(CachedConnectionInterceptor.java:300)
  | 1:31:46,703 INFO  [STDOUT] at 
org.jboss.ejb.EntityContainer.findSingleObject(EntityContainer.java:1084)
  | 1:31:46,703 INFO  [STDOUT] at 
org.jboss.ejb.EntityContainer.findLocal(EntityContainer.java:674)
  | 1:31:46,703 INFO  [STDOUT] at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 1:31:46,703 INFO  [STDOUT] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 1:31:46,703 INFO  [STDOUT] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 1:31:46,703 INFO  [STDOUT] at java.lang.reflect.Method.invoke(Method.java:324)
  | 1:31:46,703 INFO  [STDOUT] at 
org.jboss.invocation.Invocation.performCall(Invocation.java:345)
  | 1:31:46,703 INFO  [STDOUT] at 
org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:)
  | 1:31:46,703 INFO  [STDOUT] at 
org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:90)
  | 1:31:46,703 INFO  [STDOUT] at 
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:194)
  | 1:31:46,703 INFO  [STDOUT] at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:214)
  | 1:31:46,703 INFO  [STDOUT] at 
org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:90)
  | 1:31:46,703 INFO  [STDOUT] at 
org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:113)
  | 1:31:46,703 INFO  [STDOUT] at 
org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:61)
  | 1:31:46,703 INFO  [STDOUT] at 
org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterceptor.java:28)
  | 1:31:46,703 INFO  [STDOUT] at 
org.jboss.ejb.plugins.CallValidationInterceptor.invokeHome(CallValidationInterceptor.java:41)
  | 1:31:46,703 INFO  [STDOUT] at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:109)
  | 1:31:46,703 INFO 

[JBoss-user] [Persistence & CMP/JBoss] - BLOBs and Transactions

2004-08-19 Thread ceh
Hi,
JBoss 3.2.4
Oracle 9 or 10
I have a bean with byte[] fields that are stored as BLOBs in the Oracle database.  The 
bean is created with the blobs empty. When I update both blob fields (an image and an 
audio clip) within a transaction using the setter method, the values get switched in 
the database. That is, the audio clip ends up in the image field and vice versa. If I 
do the exact same update, but not within an explicit transaction, the values get 
entered in the database correctly and can be nicely retreived, etc. I cannot find 
anything anywhere that speaks to this issue - I appreciate any help.

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Jboss and Log4j

2004-08-19 Thread Some1ne
Hi, I was wondering if it's possible to configure multiple loggers through log4j...I 
know I can have multiple appenders so that I can go "log.debug('whatever');" and have 
the message go to multiple logs in multiple formats, but what I would like to do is 
have a logger configured that handles debug/trace/info log events (which I already 
do), and then have another, very specific logger set up that ONLY logs transaction 
information to a database.  I don't want the second logger to recieve any of the 
debug/trace/info data that's handled by the current logger, and I don't want the 
current logger to recieve any of the transaction data that the second logge will be 
writing to the database.

...so is it possible to do this with log4j, and if so, how?

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] adding garbles sesion id string

2004-08-19 Thread Nikita
Hello,
I have a very simple war app. it consists of only test.jsp, a page that 
prints out session id string. The problem is that if i add 
"distributable" to web.xml, this string becomes garbled (both in the 
browser and in console output):

without :
   "session id: 5129D795478E6529E233E1909EF85CB7.node1"
with :
   "session id: gDMzbOR3bJ8SNSmC3dDMWQ**.node1"
I deployed the same war as in stand-alone tomcat 5.0.27 under both xp 
and linux and saw no problems. So seems like this is a jboss issue. 
however, jboss 4.0rc1 uses tomcat 5.0.27-dev, and i'm wondering if 
upgrading to 5.0.27 would help at all.

Could this be related to the fact that i'm using mod_jk 1.2.6? If so, 
should i post this in clustering forum? I'd really appreciate any insight

my setup:
jboss 4.0 rc1, clustered with mod_jk 1.2.6, tomcat 5.0.27-dev integrated
os: jds 1 linux (based on suse enterprise desktop 1.0), also tried win xp
kernel: 2.4.21-189-default
java version "1.4.2_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)
thanks,
-nikita
--test.jsp
<%@ page contentType="text/html; charset=iso-8859-1" language="java" 
import="java.sql.*" errorPage="" %>

http://www.w3.org/TR/html4/loose.dtd";>




Untitled Document


session id: <%=session.getId()%>

last accessed: <%=new java.util.Date()%>

   
---end test.jsp--

-web.xml---

http://java.sun.com/dtd/web-app_2_3.dtd";>

Test Application

   Sample session jsp


---end web.xml---

---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: How to access HA Singleton MBean clusterwide via EJB

2004-08-19 Thread nickman
Thorsten;

Try this:

1. When your HASingleton starts, look up the jmx/invoker/RMIAdaptor in JNDI and bind 
it to a new name under HA-JNDI.
2. All your local EJBs can then look up that adaptor in HA-JNDI and invoke calls 
against it.
3. Calls made to that adpator will be invoked aganst the running instance of the 
HASingleton.
4. Be sure to implement a retry which re-looks up the adaptor in HA-JNDI in case there 
is a failover going at the exact time that an instance of the EJB makes the invocation 
call.

//Nicholas

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - declarative security and applet/flash remoting

2004-08-19 Thread sblanc1
Hello,
I have a war application using tomcat security and declarative security on the server 
side. the authentification is performed per login-config on the web.xml and tomcat 
ensures SingleSignOn.
Once done I'd like to launch applets and flash movies (using flash remoting) to call 
session beans. I can embed that inside a JSP and get the JAAS principal to transfer it 
to the applet or the flash movie as params yet how to do not to loose the already 
instanciated JAAS LoginContext and SSO feature ?
I guess I need to do some server code to get back the LoginContext and ... then what ? 
JSP is already working this way so I guess I could re-use some code here.
does anybody have any experience/advice here and where is the code I should look at ?
Thank you.
Sebastien.

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [HTTPD, Servlets & JSP] - adding garbles session id string

2004-08-19 Thread dukehoops
Hello,

I have a very simple war app. it consists of only test.jsp, a page that prints out 
session id string. The problem is that if i add "distributable" to web.xml, this 
string becomes garbled (both in the browser and in console output):

without :
session id: 5129D795478E6529E233E1909EF85CB7.node1

with :
session id: gDMzbOR3bJ8SNSmC3dDMWQ**.node1

I deployed the same war as in stand-alone tomcat 5.0.27 under both xp and linux and 
saw no problems. 

Could this be related to the fact that i'm using mod_jk 1.2.6? If so, should i post 
this in clustering forum? I'd really appreciate any insight

my setup:
jboss 4.0 rc1, clustered with mod_jk 1.2.6
os: jds 1 linux (based on suse enterprise desktop 1.0)
kernel: 2.4.21-189-default
java version "1.4.2_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)

--test.jsp
<%@ page contentType="text/html; charset=iso-8859-1" language="java" 
import="java.sql.*" errorPage="" %>
  | 
  | http://www.w3.org/TR/html4/loose.dtd";>
  | 
  | 
  | 
  | Untitled Document
  | 
  | 
  | session id: <%=session.getId()%>
  | 
  | last accessed: <%=new java.util.Date()%>
  | 
  | 

---end test.jsp--

-web.xml---

  | http://java.sun.com/dtd/web-app_2_3.dtd";>
  | 
  |   Test Application
  |   
  | Sample session jsp
  |   
  | 
  | end web.xml

thanks,

-nikita

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [HTTPD, Servlets & JSP] - Serve static files with Apache from a deployed .WAR file?

2004-08-19 Thread jjm
As all of these types of posts start, I'm new to JBoss and need some help.

I have setup Apache 2.0.50 and JBoss 3.2.5 using mod_jk2.

My application is defined to operate in the root context (http://servername/) by 
creating a WEB-INF/jboss-web.xml

I am serving static files (with apache) from a directory off the file system, by 
setting the DirectoryRoot variable in httpd.conf. JBoss is working off a .WAR built 
from this directory.

Is there any way to reference the unarchived files from Apache? Currently, they are 
going to c:\jboss-3.2.5\server\default\tmp\deploy\tmp17751xxx.war. I believe that the 
number is sequential so I can't depend on it.

I guess what I'm asking is how to configure JBoss to deploy wars to a known location? 
I'd rather not have to manually unarchive the .WAR file into a deploy/filename.war/ 
directory (which I believe I read about in the FAQ?)

Any help would be greatly appreciated.

Thanks,
Josh

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Nukes User] - Re: Time out in index writer...

2004-08-19 Thread cooper
it's not related I think.

to upload larger file, this must be tweaked on the CoreModule which has an value that 
limits the file uploaded size.

julien

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: JBoss Connection Pooling - MySqlDS not bound Error

2004-08-19 Thread noseya
theoretically u should ask for java:/YOURJNDINAME

I did but it doesnt work 4 me

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Is there a way to download stub jar for an deployed EJB in J

2004-08-19 Thread yueming
Hi there,
I'm trying to get a stub jar for an EJB, but couldn't find the place. Can someone tell 
me where I can do this in web-console or jmx-console or via API?

Thanks in advance!
Yueming

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: making http request from within a session bean

2004-08-19 Thread janilsal
Look at HttpClient module from Apache Jakarta Commons project.

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Re: JCA/CICS has problem with JBoss4.0 RC1

2004-08-19 Thread mlavarreda
Sorry for my english.

Where i found the file cicseci.rar?

and how I deploy the cicsc-ds.xml into Jboss.

I use Jboss 3.2.2 

Thank in advance.



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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - Re: [b]Not authorized to add messages to DLQ[/b]

2004-08-19 Thread wolfj
I get the same problem in JBoss 3.2.3

The MDB that's trying to write to the DLQ is configured to listen to a queue on 
another server over HTTPS.  I wonder, then, if it's trying to write the message to the 
other server's DLQ?

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Nukes User] - Re: Time out in index writer...

2004-08-19 Thread MilesParker

Anyone have any idea what is going on here?

This is very frustrating, because now that I have built the funcitonality to upload a 
directory stucture I cannot upload any large files. Even relativly small files (600+K) 
have difficulties. :-(

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - making http request from within a session bean

2004-08-19 Thread columod
hi all,
sorry if this seems a stupid question, but ;-)
i'm trying to make a http request from within a session bean (to a url not within 
jboss).
does jboss have a standard way of doing this/ standard library for making the call.
any help greatly appreciated.
cheers,
colum.

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: How to clear HAJNDI's HARMI stub being cached in NamingC

2004-08-19 Thread drew.farris
"[EMAIL PROTECTED]" wrote : I added a change for 3.2.5 that clears the discovered 
proxy on failure.
I am encountering this issue as well -- in 3.2.5, where can I find the patch that 
fixes it?
Will this fix be rolled into the next release of 3.2.x?

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Re: JBoss, Hibernate, JDBC, hotdeploy causes error

2004-08-19 Thread forhead
We believe that the problem is in hotdeployment: JBoss does not manage to undeploy the 
application and connections and that is why hotdeployment fails when Hibernate asks 
for a connection from JBoss connection manager. I use jTDS driver, but problems occur 
with MS JDBC Driver too. So how am I supposed to debug this problem?

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: why i can't invoke bmp method

2004-08-19 Thread jamesstrachan
Although you are returning an AccountPK object from your ejbCreate() method, you are 
not storing an AccountPK object inside the Entity Bean itself.

So JBoss cannot locate or handle the Entity Bean.

You need to add as shown below :-

  |   System.out.println("ejbCreate() Called.");
  |   // Line added below !
  |   this.accountKey = new AccountPK(accountId);
  |   this.accountID=accountID;
  |   this.ownerName=ownerName;
  |   this.balance=0;
  | 

where accountKey is an object of class AccountPK and is referred to in ejb-jar.xml.

Alternatively, use accountId, which is a String, as the primary key.  You only need a 
primary key class where you have a composite key containing more than one attribute.

In other words, if your key was account ID + account Type, you would need a primary 
key class containing both attributes.  Since you only have one attribute, you can use 
accountId as the primary key.

James

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


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

2004-08-19 Thread harshi2003
i forget to add one thing. i get this error only when i use jboss.query with Like.
 if i use ejb finder without jboss.query not getting this error.

is there anyway i could use order as bean jndi name and use above queries.

you reply is very much appriciated.

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: unique constraint & TransactionRolledbackLocalException

2004-08-19 Thread tomerbd
Rolled back ofcourse :) ... why didnt i catch that exception in the testUnique() 
method ?

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: unique constraint & TransactionRolledbackLocalException

2004-08-19 Thread tomerbd
Could it be a cache thing? That my transaction was commited but not to the database ? 
if so, then How can I konw if my setAlias succeeded or failed?

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Jboss - MS SQLSERVER2000 configuration problem

2004-08-19 Thread asite
I am configuring our application on joss-3.2.5.
We are using Ms Sql database.
I have done up to following steps for configuration of Jdbc.

1)copy msbase.jar,msutil.jar,mssqlserver.jar from Microsoft SQL Server 2000 Driver for 
JDBC\lib to  
  C:\jboss-3.2.5\jboss-3.2.5\server\default\lib dir.
2)Enter following detail in mssql-ds.xml file and copy it in 
C:\jboss-3.2.5\jboss-3.2.5\server\default\deploy dir. 


  
dmsdb

jdbc:microsoft:sqlserver://databaseserv:1433;DatabaseName=dmsdb
com.microsoft.jdbc.sqlserver.SQLServerDriver
sa
5q154

SELECT COUNT(*) FROM sysusers WHERE 1 = 
-1
  2147483647
 20 

  


3. I have modified the files from \jboss\server\default\config directory

a) standardjaws.xml

java:/dmsdb

MS SQLSERVER2000
false

b) standardjbosscmp-jdbc.xml


java:/dmsdb
MS SQLSERVER2000

4. I have added the following xml info in login-config.xml file from 
\jboss\server\default\config




sa
sa
sa
jboss.jca:service=XaTxCM,name=dmsdb




5. now i am gettin connection by lookup in jndi tree 

ctx = new InitialContext();
DataSource ds = (DataSource)ctx.lookup("dmsdb");
 now i am getting error message like this

An error was encountered whilst connecting to the database. Please try again 
later..An
error was encountered whilst connecting to the database. Please try again 
later.
.dmsdb not bound

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Jboss - MS SQLSERVER2000 configuration problem

2004-08-19 Thread asite
I am configuring our application on joss-3.2.5.
We are using Ms Sql database.
I have done up to following steps for configuration of Jdbc.

1)copy msbase.jar,msutil.jar,mssqlserver.jar from Microsoft SQL Server 2000 Driver for 
JDBC\lib to  
  C:\jboss-3.2.5\jboss-3.2.5\server\default\lib dir.
2)Enter following detail in mssql-ds.xml file and copy it in 
C:\jboss-3.2.5\jboss-3.2.5\server\default\deploy dir. 


  
dmsdb

jdbc:microsoft:sqlserver://databaseserv:1433;DatabaseName=dmsdb
com.microsoft.jdbc.sqlserver.SQLServerDriver
sa
5q154

SELECT COUNT(*) FROM sysusers WHERE 1 = 
-1
  2147483647
 20 

  


3. I have modified the files from \jboss\server\default\config directory

a) standardjaws.xml

java:/dmsdb

MS SQLSERVER2000
false

b) standardjbosscmp-jdbc.xml


java:/dmsdb
MS SQLSERVER2000

4. I have added the following xml info in login-config.xml file from 
\jboss\server\default\config




sa
sa
sa
jboss.jca:service=XaTxCM,name=dmsdb




5. now i am gettin connection by lookup in jndi tree 

ctx = new InitialContext();
DataSource ds = (DataSource)ctx.lookup("dmsdb");
 now i am getting error message like this

An error was encountered whilst connecting to the database. Please try again 
later..An
error was encountered whilst connecting to the database. Please try again 
later.
.dmsdb not bound

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - unique constraint & TransactionRolledbackLocalException timi

2004-08-19 Thread tomerbd
Hi

I have a unique constraint on an alias field (I dont want two users with the same 
alias) on a mysql database in this way :


  | ALTER TABLE User ADD UNIQUE(alias);
  | 

I have a test client like this (pseudo code)


  | public void setUp() {
  |   // Set up user1 entity with alias1
  |   // Set up user2 entity with alias2
  | }
  | 
  | public void testUnique() {
  |   try {
  | // Try and make user2 have the same alias as user2
  | sessionFacade.setAlias(user2, user1.getAlias());
  |   } catch (TransactionRolledbackLocalException e) {
  |  // Everything is fine we dont allow duplicity.
  |   }
  | }
  | 
  | public void tearDown() {
  |   try {
  | someOtherEntity.remove()  
  |   } catch (TransactionRolledbackLocalException e) {
  |  // Why did I catch the exception only here? why not at the testUnique?
  |   }
  | }
  | 

My problem is that no exception was catched at the testUnique() method However I did 
catch that exception (with a description of wrong uniqueuness in alias)  only at the 
tearDown() !!! Is that the behaviour that should be ? looks very wired to me

PS

my transaction is "required"

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - Re: XAConnectionFactory not bound

2004-08-19 Thread optimusprime
Well, thanks. The deploy is ok now, but I'm not being able to find the 
QueueConnectionFactory through jndi lookup. I'll post my descriptors, plus the client 
code:

jboss.xml :

  | 
  |   MailCreatorMDB
  |   queue/MailQueue
  |   
  | jms/QCF
  | QueueConnectionFactory  
  |   
  | 
  | 

ejb-jar.xml


  | 
  | 
  |   MailCreatorMDB
  |   MailCreatorMDB
  |   mailcreator.MailCreatorMDBBean
  |   Container
  |   
  | javax.jms.Queue
  |   
  |   
  | jms/QCF
  | javax.jms.QueueConnectionFactory
  | Container
  |   
  |   
  | queue/MailQueue
  | javax.jms.Queue
  |   
  | 
  |   
  | 

jbossmq-destinations-service.xml


  |   
  | jboss.mq:service=DestinationManager
 
  | 
  | 

Cliente code (POJO class): 

  | try {
  |   this.ctx = new InitialContext(System.getProperties());
  |   QueueConnectionFactory factory = (QueueConnectionFactory) 
ctx.lookup("jms/QCF");
  |   Queue queue = (Queue)ctx.lookup("java:/comp/env/jms/MailQueue");
  |   QueueConnection queueConnection = factory.createQueueConnection();
  |   QueueSession queueSession = queueConnection.createQueueSession(false,0);
  |   QueueSender sender = queueSession.createSender(queue);
  |   ObjectMessage objMsg = queueSession.createObjectMessage();
  |   objMsg.setObject(userDTO);
  |   sender.send(objMsg);
  |   queueConnection.close();
  | }
  | 

I'm running jboss 3.2.2 on a windows XP (development, production is a Debian) JVM 1.4.2


Thanks

Vinicius

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [O'Reilly JBoss 3.0/4.0 Workbook] - org.jboss.deployment.DeploymentException: Invalid encoding n

2004-08-19 Thread zzhang999
Hi, Folks,

I can run ex041a(b) successfually. So I tried to run ex042 by using "ant 
run.client_42", but I failed. The error message is:

javax.naming.NameNotFoundException: TravelAgentHomeRemote not bound.

Anyone has some clues?

Thanks,

z

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Re: Debugging in JBoss, please how to?

2004-08-19 Thread darranl
Have a look at JBoss-IDE to get you started.

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Custom Auth Valve on jboss-3.2.5 w/tomcat

2004-08-19 Thread dhill
I have a custom authentication valve that I use on tomcat 5.x with no problem, on 
tomcat I just add the Valve and the Realm to the context and add the jar to the 
server/lib folder. How can I confgiure this to work on jboss, I tried adding it to the 
server.xml but I am getting a lot of mbean errors.



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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [HTTPD, Servlets & JSP] - Re: HttpServletRequest.getServerPort() incorrectly returns 8

2004-08-19 Thread danorris
Followup: I tried adding proxyPort="8080" to server.xml. After that, getServerPort() 
does correctly return 8080. But shouldn't proxyPort default to the actual port 
setting, which is 8080? I shouldn't need to explicitly specify a proxyPort.

Thanks again,
--
David Norris
[EMAIL PROTECTED]

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Updating login information

2004-08-19 Thread tscondor
Hi!
I use the DatabaseServerLoginModule and I have a problem:
when I insert a new user with password and roles on the db, the new information are 
not usable. 
The new user don't login on the system.
I must restart JBoss for accepting the new user.
You have some ideas?

Simone

Excuse my very bad english...
I will travel in England to learn english...  :) 

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [HTTPD, Servlets & JSP] - Deployment problem with JBOSS 3.2.5

2004-08-19 Thread bgarner
Hello,

I am trying to deploy a small application that was created using the Sun ONE 
development tool.  Everything works well in Sun ONE, and I had Sun ONE create the .war 
file.  When I copy the .war file to the server/default/deploy directory in JBOSS, the 
deployment is successful.  However when I try to run the application in my browser, I 
get the following error message:

Description: An unhandled exception occurred during the execution of the web 
application. Please review the following stack trace for more information regarding 
the error.

Exception Details: java.lang.NoClassDefFoundError 
  javax/servlet/jsp/jstl/core/Config

Possible Source of Error: 
  Class Name: com.sun.faces.application.ViewHandlerImpl 
  File Name: ViewHandlerImpl.java 
  Method Name: renderView 
  Line Number: 140 

Source not available. Information regarding the location of the exception can be 
identified using the exception stack trace below.
 

Stack trace: 

com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:140)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:72)
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:275)
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
java.lang.Thread.run(Thread.java:534)


Any idea on what could be causing this?  I would assume that all my class libraries 
along with .JAR files that are needed are in the .WAR file, which means I shouldn't 
have to put them in the /lib directory?

Any advise is appreciated. 

Thanks,

Brian

 


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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - My entity bean does not work when I have not network connect

2004-08-19 Thread vedamen

I use myEclipse and JBoss 3.0.8.
When I create an CMP entity bean, and deploy it, everything works fine if I am 
connected to the network. 
If I am not connected to the network, Session and MDB beans work fine, but when I call 
an entity bean I get the following error:

java.rmi.ServerException: RemoteException occurred in server thread; nested exception 
is: 
java.rmi.ServerException: EJBException:; nested exception is: 
javax.ejb.EJBException: Could not instantiate bean; CausedByException is:
null
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:292)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at 
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:534)
at 
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
at 
org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:135)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:108)
at 
org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:77)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:80)
at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:198)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
at $Proxy0.findByPrimaryKey(Unknown Source)
at PersonTest.main(PersonTest.java:29)
Caused by: java.rmi.ServerException: EJBException:; nested exception is: 
javax.ejb.EJBException: Could not instantiate bean; CausedByException is:
null
at 
org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:360)
at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:137)
at org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:487)
at org.jboss.ejb.Container.invoke(Container.java:756)
at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1058)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:383)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at 
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:534)
Caused by: javax.ejb.EJBException: Could not instantiate bean; CausedByException is:
null
at 
org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:188)
at 
org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:79)
at 
org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:79)
at 
org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterceptor.java:44)
at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:111)
at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:237)
at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:68)
at 
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:105)
at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:133)
... 16 more


My Client looks like this:

public static void main(java.lang.String[] args) {
  try {
Properties props = new Properties();

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

[JBoss-user] [Installation & Configuration] - Entity beans don't work if not connected to the network?

2004-08-19 Thread vedamen

I use myEclipse and JBoss 3.0.8.
When I create an CMP entity bean, and deploy it, everything works fine if I am 
connected to the network. 
If I am not connected to the network, Session and MDB beans work fine, but when I call 
an entity bean I get the following error:

java.rmi.ServerException: RemoteException occurred in server thread; nested exception 
is: 
java.rmi.ServerException: EJBException:; nested exception is: 
javax.ejb.EJBException: Could not instantiate bean; CausedByException is:
null
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:292)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at 
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:534)
at 
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
at 
org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:135)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:108)
at 
org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:77)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:80)
at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:198)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
at $Proxy0.findByPrimaryKey(Unknown Source)
at PersonTest.main(PersonTest.java:29)
Caused by: java.rmi.ServerException: EJBException:; nested exception is: 
javax.ejb.EJBException: Could not instantiate bean; CausedByException is:
null
at 
org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:360)
at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:137)
at org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:487)
at org.jboss.ejb.Container.invoke(Container.java:756)
at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1058)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:383)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at 
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:534)
Caused by: javax.ejb.EJBException: Could not instantiate bean; CausedByException is:
null
at 
org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:188)
at 
org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:79)
at 
org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:79)
at 
org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterceptor.java:44)
at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:111)
at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:237)
at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:68)
at 
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:105)
at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:133)
... 16 more


My Client looks like this:

public static void main(java.lang.String[] args) {
  try {
Properties props = new Properties();

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

[JBoss-user] [Persistence & CMP/JBoss] - Entity beans don't work if not connected to the network

2004-08-19 Thread vedamen
I use myEclipse and JBoss 3.0.8.
When I create an CMP entity bean, and deploy it, everything works fine if I am 
connected to the network. 
If I am not connected to the network, Session and MDB beans work fine, but when I call 
an entity bean I get the following error:

java.rmi.ServerException: RemoteException occurred in server thread; nested exception 
is: 
java.rmi.ServerException: EJBException:; nested exception is: 
javax.ejb.EJBException: Could not instantiate bean; CausedByException is:
null
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:292)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at 
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:534)
at 
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
at 
org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:135)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:108)
at 
org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:77)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:80)
at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:198)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
at $Proxy0.findByPrimaryKey(Unknown Source)
at PersonTest.main(PersonTest.java:29)
Caused by: java.rmi.ServerException: EJBException:; nested exception is: 
javax.ejb.EJBException: Could not instantiate bean; CausedByException is:
null
at 
org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:360)
at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:137)
at org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:487)
at org.jboss.ejb.Container.invoke(Container.java:756)
at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1058)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:383)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at 
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:534)
Caused by: javax.ejb.EJBException: Could not instantiate bean; CausedByException is:
null
at 
org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:188)
at 
org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:79)
at 
org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:79)
at 
org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterceptor.java:44)
at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:111)
at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:237)
at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:68)
at 
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:105)
at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:133)
... 16 more


My Client looks like this:

public static void main(java.lang.String[] args) {
  try {
Properties props = new Properties();

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

[JBoss-user] [EJB/JBoss] - why i can't invoke bmp method "ejbCreate()"

2004-08-19 Thread osataken
from mastering ejb II 
i 've created primary key class (AccountPK) and defined it in  tag 
in ejb-jar.xml . 

this is my EJBHome
public interface AccountHome extends EJBHome {
  | Account create(String accountID,String ownerName) throws 
CreateException,RemoteException;
  | public Account findByPrimaryKey(AccountPK key) throws 
FinderException,RemoteException;
  | public Collection findByOwnerName(String name) throws 
FinderException,RemoteException;
  | public double getTotalBankValue() throws AccountException,RemoteException;
  | }

and implement method (ejbCreate) in EntityBean

public AccountPK ejbCreate(String accountID,String ownerName) throws 
CreateException{
  | PreparedStatement pstmt=null;
  | Connection conn=null;
  | try{
  | System.out.println("ejbCreate() Called.");
  | this.accountID=accountID;
  | this.ownerName=ownerName;
  | this.balance=0;
  | conn=getConnection();
  | pstmt=conn.prepareStatement("insert into 
accounts(id,ownerName,balance) values (?,?,?)");
  | pstmt.setString(1,accountID);
  | pstmt.setString(2,ownerName);
  | pstmt.setDouble(3,balance);
  | return new AccountPK(accountID);
  | }catch(Exception e){
  | throw new CreateException(e.toString());
  | }

i can deploy and test method that implement EJBObject and method that implement 
EJBHome (except method that return type=AccountPK)

does it need to config something in jboss.xml or i miss somethings???
thank you

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Javassist user questions] - Re: bug in ExprEditor.edit(NewExpr call) when in try-catch-b

2004-08-19 Thread chiba
I'm using JDK1.4.2 and the javac compiler of 1.4.
What are you using?

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Javassist user questions] - Re: bug in ExprEditor.edit(NewExpr call) when in try-catch-b

2004-08-19 Thread chiba
I ran the following test case but any problem was not found:


  | ExprEditor ed = new ExprEditor() {
  | public void edit(NewExpr expr) throws CannotCompileException {
  | expr.replace("$_ = new test2.HashMapWrapper($1, 1);");
  | }
  | };
  | 
  | CtClass cc = ClassPool.getDefault().get("NewExprInTry");
  | CtMethod m1 = cc.getDeclaredMethod("foo");
  | m1.instrument(ed);
  | cc.writeFile();
  | 

The definitions of NewExprInTry is:


  | class HashMapWrapper extends HashMap {
  | HashMapWrapper(int size, int args) {
  | super(size);
  | }
  | }
  | 
  | public class NewExprInTry {
  | public int foo(int size) {
  | HashMap h;
  | try {
  | h = new HashMap(size);
  | }
  | catch (Exception e) {}
  | return 1;
  | }
  | }
  | 

Could you post a test case?

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Re: Dramatic SQL response time moving from jboss 3.0.6 to 3.

2004-08-19 Thread mbaptist
OK, 

We are making the same tests using p6spy SQL Profiler v.0.3. By the way, is there any 
difference between v3.0.6 and 3.2.5 that could explain our problem?

REM: with both versions, I made the tests using the default config. and both are using 
the same database located on a remote server.


Br,

Marc

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: Who handles the login request????

2004-08-19 Thread stueccles
Are you using Tomcat?? If so it will be
org.apache.catalina.authenticator.FormAuthenticator

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Nukes User] - Nukes 1.1 default theme

2004-08-19 Thread cooper
Which theme do you want to bethe default theme.

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: JBoss JAAS x Tomcat's

2004-08-19 Thread dev2gosoft
Security context is propagated in JBoss-Tomcat. I use the databaseserverloginmodule to 
authenticate and i can use methods like reqest.isUserInRole etc. 

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Re: Dramatic SQL response time moving from jboss 3.0.6 to 3.

2004-08-19 Thread [EMAIL PROTECTED]
Get a profiler and show where it is spending the time.

1) The cpu used by each method
2) The "real time" for each method

The results will be different for each, (2) is more interesting,
it is closer to what your debug is showing.

JBoss doesn't do anything for rs.next() except pass it to the database.

For executeQuery(), the only thing it does is make sure the 
reused connection has the correct configuration.
Unless you are playing with things like autocommit or readOnly it won't
do anything at this point either.


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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Debugging in JBoss, please how to?

2004-08-19 Thread ltcmelo
Hi,
what do i have to do for debugging a request in JBoss??? It's so so important to me!!!

I'd like to run the server, submit a page and go along the request through all it's 
steps. What do i have to do to accomlish that???


I'm using jboss 3.2.3 and eclipse ide.



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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Who handles the login request????

2004-08-19 Thread ltcmelo
When i submit a form based authentication (with action='j_security_check'), wich class 
handles this request???
I mean exactly what class is the main one in creation LoginContext(), calling Login(), 
etc...
It's because i'd like to take a look to the source to build a very similar login 
handler.

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - How to connect to HyperSonic DB on JBoss?

2004-08-19 Thread wieza
Hi, i'm learning jBoss and at the beginning i would like connect to data base on 
jBoss. I have here part of my code:
Connection con = null;
Statement stm = null;
ResultSet rs  = null;
try
{
   Class.forName("?")
   con = DriverManager.getConnection("","user","password");
   stm = con.createStatement();
   rs = stm.executeQuery("select * from przedmioty");
   while (rs.next())
   {
   System.out.println(rs.getString("nazwa"));
   }
if (con != null)
  con.close();

What drivers should I use to connect to the HyperSonic? Do I need to install them? 
Where can i find them? What should i put in firs paramater in 
DriverManager.getConnecton(???,"user", "password")?

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: Cascade delete

2004-08-19 Thread sbrbot
I have read it for more than few times but have no clue what exactly are you pointing 
on!? From that paragraph I cannot conclude that container should try to destroy 
relationships before trying to delete bean.

Finally, the question stays: how JBoss manages  deployment descriptor 
element (only  without )?

BTW, in order to improve performance, is there something that I can define in JBoss to 
leave cascade delete functionality upon built-in cascade delete facility of the 
underlying DBMS? For example, BEA WebLogic does have proprietary element 
 telling the containter to leave cascade delete of related beanas 
(records) to DBMS. Is there something like this for JBoss?



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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Re: Dramatic SQL response time moving from jboss 3.0.6 to 3.

2004-08-19 Thread mbaptist
Hi,
(I'm working with Damien, alias DaffyDuck)

I made some complementary tests.
Withe a simple ejb using a datasource on both JBoss 3.0.6 and 3.2.5, I found the 
following results (average time executing the same request 25 times)
jboss 3.0.6 ~70 ms
jboss 3.2.5 ~ 1000 ms !!!

I added some debug to my code and here are my results:
Executed CODE  ms
JBOSS 3.0.6 
BEGIN - PreparedStatement   
END - PreparedStatement 0 
BEGIN - executeQuery
END - executeQuery   0,031   
BEGIN - WHILE (loop on resultset)   
END - WHILE   0,037   
BEGIN - RESULTSET.CLOSE 
END - RESULTSET.CLOSE   0 
BEGIN - PREPSTMT.CLOSE  
END - PREPSTMT.CLOSE 0,001   
BEGIN - RS.CLOSE
END - RS.CLOSE0 

JBOSS 3.2.5 
BEGIN - PreparedStatement   
END - PreparedStatement 0 
BEGIN - executeQuery
END - executeQuery   0,307   
BEGIN - WHILE (loop on resultset)   
END - WHILE   0,722   
BEGIN - RESULTSET.CLOSE 
END - RESULTSET.CLOSE   0,033   
BEGIN - PREPSTMT.CLOSE  
END - PREPSTMT.CLOSE 0 
BEGIN - RS.CLOSE
END - RS.CLOSE 0

As you can see, it's the executeQuery execution time that is x10 and the loop on the 
resultset (rs.next()) execution time that is x20.

Additional information: we do have the same kind of results with a different driver 
(jtds instead of M$).

Any sugestion or track to continue our investigations.

Br,

Marc.

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Re: DeploymentException: Error compiling EJB-QL for Roster a

2004-08-19 Thread daniels
Hi,
I had the same problem with JBoss 3.2.5, and I will try to explain you how to fix it.
Your problem is that the EJB-QL command contains Enter in the select command:
select distinct object(p) from Player p 
where p.salary between ?1 and ?2

Try to change the select command to look like this (write the select command in only 
one line) :
select distinct object(p) from Player p where p.salary between ?1 and ?2

Daniel S.

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: Foreign key violation - why is child deleted first in 1-

2004-08-19 Thread suzyrizzo
When I tried to isolate the issue, I realized that the problem only occurred when I 
had multiple releationships 
set up for an entity - one with batch-cascade-delete and the other without it.

I have uploaded my little test-case along with bug report #1012184

Thank you very much for your time.

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - JNDI Communication Exception

2004-08-19 Thread uharri
(should have been posted here!)

hi there

An instance of JBoss has been running for (probably too long) a while without any 
problems - then client processes suddenly get this communication problem: 

javax.naming.CommunicationException: Failed to retrieve stub from server *: Root 
exception is 
java.io.EOFException 
at 
java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2423) 
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1235) 
at java.io.ObjectInputStream.readObject(). 

can anybody explain what caused this problem to this newbie? 

any help appreciated!

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: wrong local-jndi tags in jboss.xml using Eclipse+Lomboz

2004-08-19 Thread darranl
Your post makes no sense, can you describe what you are doing fully.

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - wrong local-jndi tags in jboss.xml using Eclipse+Lomboz

2004-08-19 Thread AdCo
I still have the very old problem that the EJB tags for the local jndi names are not 
correctly generated (JBOSS.XML will be overwrite with wrong entries). 

Is anyone outthere that have solved this problem ? 

copy/paste each time when the EJB classes are generated 
is not very funny ...

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - JNDI communication exception

2004-08-19 Thread uharri
hi there

An instance of JBoss has been running for (probably too long) a while without any 
problems - then client processes suddenly get this communication problem:

javax.naming.CommunicationException: Failed to retrieve stub from server *:  Root 
exception is 
java.io.EOFException
at 
java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2423)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1235)
at java.io.ObjectInputStream.readObject().

can anybody explain what caused this problem to this newbie?

any help appreciated!

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Re: Having trouble connecting jboss 3.2.2 to Oracle 10g

2004-08-19 Thread seckley
i have tried the 10g drivers in the lib dir of the server and i still got the same 
result. I have a full installation of Oracle 10g on the machine where
the server is. however the db i am connecting to is an oracle 9i db. I have tried the 
the thin statement in the Oracle-ds file but to no avail. I'm stumped.

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: How(when) detects the cluster the dead members?

2004-08-19 Thread prese
Hi Bela,

I noticed the following behavior:
- when the cable is pluged-out the suspect messages are generated but the HaPartition 
is not notified with a suspect event
- when the cable is pluged-in the HaPartition is first notified with suspect event and 
after that with merge event
Is this the expected behaviour?

I use HaSingleton mechanism and the problem is that when the master node is pluged out 
the topology of the cluster does not get changed and the election of the new master 
node is not triggered. 
Have you any idea how can I trigger the topology change when the cable is pluged-out?

Thanks 
Sebi

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: How(when) detects the cluster the dead members?

2004-08-19 Thread bela
Pulling the plug should result in a viewAccepted() callback. Depending on the 
parameters of FD it will take more or less time.

I have done this before on various systems, and it has always worked.

Bela

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Tomcat 5 Integration Basics

2004-08-19 Thread rmkrueger

Hi,

I'm currently evaluating migrating from a Tomcat 5 + Tyrex (JTA) combo to JBoss 3.2.x 
- Tomcat 5 (no EJB). I looked at the distribution and would like to ask a few basic 
questions regarding how Tomcat is integrated with JBoss.

1) server.xml

It looks as if I can use all normal Tomcat 5 configuration options with the integrated 
Tomcat, i.e. I will still be able to use my existing Services, Connectors and Hosts 
but have to use the corresponding JBoss Service Implementation.  Is that correct?


2) JNDI

I assume that I will configure my datasources and in-memory TX manager with standard 
JBoss means and then be able to define ResourceLinks to the datasources or UserTX in 
my webapps. Is that correct?

So I should be done by peforming the following steps:
- configure TX manager and datasources in JBoss
- modify my existing server.xml file (service impl and datasource resourcelinks)

Am I missing something? Any gotchas I should look out forÃ

Thanks in advance,

Robert






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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: How(when) detects the cluster the dead members?

2004-08-19 Thread prese
Hi Bela,

IÂm using FD not FD_SOCK.
I make a little debug and HAPartion.viewAccepted() is called only when a plug the 
network cable not when I unplug it.

The cluster reports the node as suspicious but It still consider it like an friendly 
node ... 

Is any possibility to force the deleteion of that node from the cluster table ?

Thanks
Sebi

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Re: HELP! Redeploying webapps - how's it done?

2004-08-19 Thread icordoba
I am replying to this old post to ask what is the simplest way to redeploy/reload a 
webapp in JBoss 3.2.5
When I update jar files, EJBs are reloaded OK, but classes in jars inside WEB-INF/lib 
dirs of webapps are not.
I "touch" web.xml file to get the webapp restarted, but jars are not reloada.

Thanks for any help.

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Getting Started Documentation] - Re: Installing a single JSP page

2004-08-19 Thread darranl
Deploy it in an exploded war.

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


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

2004-08-19 Thread harshi2003
i am using xdoclet to generate ejb.jar and jboss.jar.

i have define finder methods without using like as follows.
@ejb.finder signature = "java.util.Collection findByOrderStatus(java.lang.String 
orderStatus)"
 *  query = "SELECT OBJECT(o) FROM Order o WHERE 
o.workflowStatus = ?1"

it is working ok. when deploying it doesn't throw any exceptions.

since i want to implement the wildcard search i have used like keyword and implement 
the query as i mentioned.

then i got that error for order bean.

but as u said when define find methods with like for country bean it works ok.

so i have n't change the abstract shema.

pls help me



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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - 3.2.5 + JCA + CCIBlackBox

2004-08-19 Thread deguoren
Hi,

I'm a newbie to JCA and I'm trying to run Sun's CCIBlackBox-Adaptor from J2EE SDK 
1.3.1 to see how things are working before implementing an OPC adapter.
I copied the RAR into the deploy folder and created a -ds.xml file according to the 
FAQ:



  |   
  | CciBlackBoxLocalTx
  | eis/CciBlackBoxLocalTx
  | jdbc:mysql://localhost:3306/sphinx_emp
  | com.mysql.jdbc.Driver
  | sphinx_emp
  | sphinx_emp
  |   
  | 
  | 

The EJB descriptors are extended using the following xdoclet-tags:

 * @ejb.resource-refjndi-name = "eis/CciBlackBoxLocalTx"
  |  *  res-auth = "Container"
  |  *  res-ref-name = "CciBlackBoxLocalTx"
  |  *  res-type = 
"javax.resource.cci.ConnectionFactory"
  |  * 
  |  * @jboss.resource-ref jndi-name = "eis/CciBlackBoxLocalTx"
  |  *  resource-name = "CciBlackBoxLocalTx"
  |  *  res-ref-name = "CciBlackBoxLocalTx"
  | 
  | 

During deployment, everything seems to go well:

11:44:33,311 INFO  [eis/CciBlackBoxLocalTx] Bound connection factory for resource 
adapter for ConnectionManager 'jboss.jca:service=LocalTxCM,name=eis/CciBlackBoxLocalTx 
to JNDI name 'java:/eis/CciBlackBoxLocalTx'
  | 

But I can't access the adapter using the following code:


  | try
  | {
  | Context initCtx = new InitialContext();
  | javax.resource.cci.ConnectionFactory cf =   
(javax.resource.cci.ConnectionFactory)initCtx.lookup( 
"java:comp/env/eis/CciBlackBoxLocalTx");
  | 

The following exception is thrown:

11:48:00,577 INFO  [STDOUT] javax.naming.NameNotFoundException: eis not bound
  | 11:48:00,577 INFO  [STDOUT] at 
  | 
  | 
  | 
  | 

I guess something is wrong with one of the descriptor files, but I couldn't find an 
example which is using cci, searching the forum and google. Any hints?

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: EntityBean not bound

2004-08-19 Thread itteerde
and the log reads


2004-08-19 11:32:22,309 DEBUG [org.jboss.ejb.StatefulSessionContainer] Created new 
session ID: dy2p65d1-6
2004-08-19 11:32:22,309 DEBUG [org.jboss.ejb.StatefulSessionContainer] Using create 
method for session: public void 
com.bbraun.ofas.configuration.connector.ejb.ConnectorEditorBean.ejbCreate() throws 
javax.ejb.CreateException
2004-08-19 11:32:22,309 INFO  [STDOUT] javax.naming.NamingException: Could not 
dereference object [Root exception is javax.naming.NameNotFoundException: Connector 
not bound]
2004-08-19 11:32:22,309 INFO  [STDOUT]  at 
org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:972)
2004-08-19 11:32:22,309 INFO  [STDOUT]  at 
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:615)
2004-08-19 11:32:22,325 INFO  [STDOUT]  at 
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:644)
2004-08-19 11:32:22,325 INFO  [STDOUT]  at 
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:509)
2004-08-19 11:32:22,325 INFO  [STDOUT]  at 
javax.naming.InitialContext.lookup(InitialContext.java:347)
2004-08-19 11:32:22,325 INFO  [STDOUT]  at 
com.bbraun.ofas.configuration.connector.ejb.ConnectorEditorBean.ejbCreate(ConnectorEditorBean.java:119)
2004-08-19 11:32:22,340 INFO  [STDOUT]  at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2004-08-19 11:32:22,340 INFO  [STDOUT]  at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2004-08-19 11:32:22,340 INFO  [STDOUT]  at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2004-08-19 11:32:22,340 INFO  [STDOUT]  at 
java.lang.reflect.Method.invoke(Method.java:324)
2004-08-19 11:32:22,356 INFO  [STDOUT]  at 
org.jboss.ejb.StatefulSessionContainer.createSession(StatefulSessionContainer.java:511)
2004-08-19 11:32:22,356 INFO  [STDOUT]  at 
org.jboss.ejb.StatefulSessionContainer.createHome(StatefulSessionContainer.java:564)
2004-08-19 11:32:22,356 INFO  [STDOUT]  at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2004-08-19 11:32:22,356 INFO  [STDOUT]  at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2004-08-19 11:32:22,371 INFO  [STDOUT]  at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2004-08-19 11:32:22,371 INFO  [STDOUT]  at 
java.lang.reflect.Method.invoke(Method.java:324)
2004-08-19 11:32:22,371 INFO  [STDOUT]  at 
org.jboss.ejb.StatefulSessionContainer$ContainerInterceptor.invokeHome(StatefulSessionContainer.java:901)
2004-08-19 11:32:22,387 INFO  [STDOUT]  at 
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:94)
2004-08-19 11:32:22,387 INFO  [STDOUT]  at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:214)
2004-08-19 11:32:22,403 INFO  [STDOUT]  at 
org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invokeHome(StatefulSessionInstanceInterceptor.java:120)
2004-08-19 11:32:22,403 INFO  [STDOUT]  at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:88)
2004-08-19 11:32:22,403 INFO  [STDOUT]  at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:315)
2004-08-19 11:32:22,418 INFO  [STDOUT]  at 
org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:128)
2004-08-19 11:32:22,418 INFO  [STDOUT]  at 
org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:120)
2004-08-19 11:32:22,418 INFO  [STDOUT]  at 
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93)
2004-08-19 11:32:22,418 INFO  [STDOUT]  at 
org.jboss.ejb.StatefulSessionContainer.internalInvokeHome(StatefulSessionContainer.java:404)
2004-08-19 11:32:22,434 INFO  [STDOUT]  at 
org.jboss.ejb.Container.invoke(Container.java:743)
2004-08-19 11:32:22,434 INFO  [STDOUT]  at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2004-08-19 11:32:22,434 INFO  [STDOUT]  at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2004-08-19 11:32:22,450 INFO  [STDOUT]  at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2004-08-19 11:32:22,450 INFO  [STDOUT]  at 
java.lang.reflect.Method.invoke(Method.java:324)
2004-08-19 11:32:22,450 INFO  [STDOUT]  at 
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
2004-08-19 11:32:22,450 INFO  [STDOUT]  at 
org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
2004-08-19 11:32:22,465 INFO  [STDOUT]  at 
org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
2004-08-19 11:32:22,465 INFO  [STDOUT]  at 
org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
2004-08-19 11:32:22,465 INFO  [STDOUT]  at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
2004-08-19 11:32:22,481 INFO  [STDOUT]  at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
2004-08-19 11:32:22,481 INFO  [STDOU

[JBoss-user] [Persistence & CMP/JBoss] - Re: Delete Foreign Key Object

2004-08-19 Thread Hustenbolschen
My Tables after the create look like this:

CREATE TABLE `BEANB` (
  |   `BEANB_NAME` varchar(250) binary default NULL,
  |   `BEANA_ID` int(11) default NULL,
  |   `BEANB_ID` int(11) NOT NULL auto_increment,
  |   PRIMARY KEY  (`BEANB_ID`)
  | ) TYPE=MyISAM; 
  | 
  | CREATE TABLE `BEANA` (
  |   `BEANA_NAME` varchar(250) binary default NULL,
  |   `BEANA_ID` int(11) NOT NULL auto_increment,
  |   PRIMARY KEY  (`BEANA_ID`)
  | ) TYPE=MyISAM; 

No ALTER TABLE command or something like this



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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - EntityBean not bound

2004-08-19 Thread itteerde
i try to create a few EntityBeans from a statefull SessionBean but the SessionBean's 
create() method fails (i am trying to get the localhome reference in the create method 
[is that an apropriate place to do that btw?])

SessionBean's create method

/**
 * Create method
 * @ejb.create-method  view-type = "local"
 */
public void ejbCreate() throws javax.ejb.CreateException {

try {
Context ctx = new InitialContext();
Object ref = ctx.lookup("java:comp/env/ejb/Connector");
home = (ConnectorLocalHome) 
PortableRemoteObject.narrow(ref,ConnectorLocalHome.class);
} catch (NamingException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

}


EntityBean


/*
 * Project name : ofas
 * File name: Windows2000DiskspaceConnectorBean.java
 * 
 * Created on Aug 16, 2004
 * Author   : itteerde
 * 
 * History:
 * 
 * Last Editor  DateComment
 * 
 * itteerde Aug 16, 2004created
 */
package com.bbraun.ofas.persistence.connector.ejb;

import java.rmi.RemoteException;

import javax.ejb.EJBException;
import javax.ejb.EntityBean;
import javax.ejb.EntityContext;
import javax.ejb.RemoveException;

/**
 * @ejb.bean name="Connector"
 *   display-name="Name for Connector"
 *   description="Description for Connector"
 *   jndi-name="ejb/Connector"
 *   type="CMP"
 *   cmp-version="2.x"
 *   view-type="local"
 * 
 * @ejb.bean primkey-field = "guid"
 * 
 * @todo should extend AbstractEntityBean
 * 
 * @jboss.persistence 
 *  datasource = "java:ofas"
 *  datasource-mapping = "Oracle9i"
 *  table-name = "OFAS.OFAS_CONNECTORS"
 * 
 */
public abstract class ConnectorBean implements EntityBean {

/**
 * 
 */
public ConnectorBean() {
super();
// TODO Auto-generated constructor stub
}

/* (non-Javadoc)
 * @see javax.ejb.EntityBean#setEntityContext(javax.ejb.EntityContext)
 */
public void setEntityContext(EntityContext ctx)
throws EJBException,
RemoteException {
// TODO Auto-generated method stub

}

/* (non-Javadoc)
 * @see javax.ejb.EntityBean#unsetEntityContext()
 */
public void unsetEntityContext() throws EJBException, RemoteException {
// TODO Auto-generated method stub

}

/* (non-Javadoc)
 * @see javax.ejb.EntityBean#ejbRemove()
 */
public void ejbRemove()
throws RemoveException,
EJBException,
RemoteException {
// TODO Auto-generated method stub

}

/* (non-Javadoc)
 * @see javax.ejb.EntityBean#ejbActivate()
 */
public void ejbActivate() throws EJBException, RemoteException {
// TODO Auto-generated method stub

}

/* (non-Javadoc)
 * @see javax.ejb.EntityBean#ejbPassivate()
 */
public void ejbPassivate() throws EJBException, RemoteException {
// TODO Auto-generated method stub

}

/* (non-Javadoc)
 * @see javax.ejb.EntityBean#ejbLoad()
 */
public void ejbLoad() throws EJBException, RemoteException {
// TODO Auto-generated method stub

}

/* (non-Javadoc)
 * @see javax.ejb.EntityBean#ejbStore()
 */
public void ejbStore() throws EJBException, RemoteException {
// TODO Auto-generated method stub

}

/**
 * Getter for CMP Field guid
 *
 * @ejb.pk-field
 * @ejb.persistent-field
 * @ejb.interface-method   view-type="local"
 * 
 * @jboss.column-name name = "ID"
 * @jboss.jdbc-type type = "VARCHAR"
 * @jboss.sql-type type = "CHAR(32)"
 */
public abstract String getGuid();

/**
 * Setter for CMP Field guid
 *
 * @ejb.interface-method   view-type="local"
 */
public abstract void setGuid(String value);

/**
 * returns the JNDI name to be used to locate the connector using JNDI
 * 
 * @return JNDI name to be used to locate the connector using JNDI
 * 
 * @ejb.persistent-field
 * @ejb.interface-method 
 * view-type = "both"
 * 
 * @jboss.column-name name = "JNDI"
 * @jboss.jdbc-type type = "VARCHAR"
 * @jboss.sql-type type = "VARCHAR2(255)"
 */
public abstract String getJNDIName();

/**
 

[JBoss-user] [Clustering/JBoss] - Re: HA JNDI peculiar behavior ?

2004-08-19 Thread amyrlinseat
One more thing:, when a single JBoss is up, and the lookup throws the exception in the 
client, on the JBoss I get the following DEBUG message:

[org.jboss.ha.jndi.HANamingService$AutomaticDiscovery][HAJNDI-AutomaticDiscovery] 
Ignoring discovery request for partition: 1100

(the first [] is the class name, the second [] is the thread name)

   Evyatar

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Delete Foreign Key Object

2004-08-19 Thread Hustenbolschen
Hello,

IÂm using JBOSS 3.23 with mysql
How can I prevent to delete the foreign key component when its still in use in the 
primary key object:

I have two Beans BEAN A and BEAN B
Both have an autoincrement ID
and the ID of Bean A shall be the foreign key of BEAN B.

This already works fine, 
but I can still dlete Bean A when its used as foreign key in Bean B
How can I automatically prevent this?

And an easier question: How can I make the field BeanA_name a NOT NULL field?



  | 
  |   BeanAEJB
  |   liato.ejb.BeanAHomeLocal
  |   liato.ejb.BeanALocal
  |   liato.ejb.BeanABean
  |   Container
  |   java.lang.Object
  |   False
  |   2.x
  |   BeanABean
  |   BeanA_Name
  |
  | 
  |   ejbSelectBeanAList
  |   
  |   
  | 
  | 
  |   SELECT OBJECT(o) FROM BeanABean AS o
  | 
  |   
  | 


  | 
  |   BeanBEJB
  |   liato.ejb.BeanBHomeLocal
  |   liato.ejb.BeanBLocal
  |   liato.ejb.BeanBBean
  |   Container
  |   java.lang.Object
  |   False
  |   2.x
  |   BeanBBean
  |   BeanB_Name
  |   BeanA_Id
  |   
  | BeanALocalRef
  | Entity
  | liato.ejb.BeanAHomeLocal
  | liato.ejb.BeanALocal
  | BeanA
  |  
  |

The relationship in the ejb.jar


  | BeanB-BeanA
  | 
  | beanA-has-beanB
  | Many
  | 
  | BeanBEJB
  | 
  | 
  | BeanA
  | 
  | 
  | 
  | beanB-has-beanA
  | One
  | 
  | BeanAEJB
  | 
  | 
  | 


and the Jbosscmp-jdbc.xml


  |   
  |java:/MySqlDS
  |mySQL
  |true
  |false
  |true
  |   
  | 
  |
  |  BeanAEJB
  |  BEANA
  |  
  |BeanA_Name
  |BEANA_NAME
  |  
  |  
  |java.lang.Integer
  | BeanA_Id
  | BEANA_ID
  | INTEGER
  | INT(11)
  | 
  |  
  |  
  |
  | 
  | 
  |
  |  BeanBEJB
  |  BEANB
  |  
  |BeanB_Name
  |BEANB_NAME
  |  
  |  
  |BeanB_Id
  |BEANB_ID
  |  
  |  
  |java.lang.Integer
  | BeanB_Id
  | BEANB_ID
  | INTEGER
  | INT(11)
  | 
  |  
  |  
  |



and the relationship in jbosscmp


  | BeanB-BeanA
  | 
  | 
  | BeanA-has-BeanB
  | true
  | 
  | 
  | 
  | BeanB-has-BeanA
  | true
  | 
  | 
  | BeanA_Id
  | BEANA_ID
  | 
  | 
  | 
  | 

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: How(when) detects the cluster the dead members?

2004-08-19 Thread bela
The dead member should be removed from the membership, but only if you use FD rather 
than FD_SOCK in  (cluster-service.xml)

Bela

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Re: JCA ClassCastException

2004-08-19 Thread slonko
For the records:

Put everything into an ear, then both the RA and the EJB's will be redeployed at the 
same time.
This seems to solve my problems. Thanks to http://www.coredevelopers.net for their 
support and documentation.

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss.NET] - JBossAuthorisationHandler - AccessDenied Exception

2004-08-19 Thread serjik
Hi,

I use JBoss 3.2.3. I wrote a simple web service and a simple client in Java. And I 
want to protect my service using application's realm, so I added Jboss 
authentification and autorisation handlers to my service. When I deploy my application 
(ear containing war and wsr) for the first time - I get the "Access Denied" exception 
from JBoss autorisation handler. When I deploy for the second time my application - 
everything works fine.
 
Any Ideas ?

My web-services.xml :

  | http://xml.apache.org/axis/wsdd/";
  | xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance";
  | xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>
  | 
  |   
  |
  |
  | 
  | 
  |   
  | 
  |  
  |   
  |   
  | 
  | 
  | 
  |   
  | 
  | 
  | 
  |   
  | 
  | 
  | 


My web service:

  | public class TariffService
  | {
  | public int getTariff(String type)
  | {
  | System.out.println("Tariff service invoked: type='" + type + "'");
  | int result = 0;
  | if( type.equalsIgnoreCase("AUTO") )
  | {
  | result = 350;
  | }
  | else if( type.equalsIgnoreCase("HABITATION") )
  | {
  | result = 250;
  | }
  | else if( type.equalsIgnoreCase("LIFE") )
  | {
  | result = 200;
  | }
  | return result;
  | }
  | }
  | 
  | 

Thanks for your help,
Serghei.


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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Tutorial on J2EE using JBOSS

2004-08-19 Thread sundy
I do it acording to this example . 
In chaper4 ,when i do stateful session bean,I create a bean ,and add to ejb 
module,then i generate ejb class,but it can not create the ejbCreate() method ,other 
method can be created.In previous step,no eror tell me. 
if i add ejbCreate() method by hand, and save it,but later when i deploy it 
 and run jboss.Error happen,tell me that ejbCreate() no exist.truely, I go to the 
place which I just add ejbCreate()by hand .this method lost. this method should create 
by eclipse.but it can not create it ,so i add it by hand. why??? 
NOTE:I use jboss 3.2.1 eclipe 3.0 lemboz 3.0 


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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Tutorial on J2EE using JBOSS

2004-08-19 Thread sundy
I do it acording to this example .
In chaper4 ,when i do stateful session bean,I create a bean ,and add to ejb 
module,then  i generate ejb class,but it can not create the ejbCreate() method ,other 
method can be created.In previous step,no eror tell me. 
if i add ejbCreate() method by hand, and save it,but later when i deploy it
Error happen,tell me that  ejbCreate() no exist.truely, I go to the place which I just 
add ejbCreate()by hand .this method lost. why???  
NOTE:I use jboss 3.2.1  eclipe 3.0  lemboz 3.0




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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - HA JNDI peculiar behavior ?

2004-08-19 Thread amyrlinseat
Hi all,
I have 2 JBoss instances (3.2.3 on Windows 2003) in a cluster, and I have a client 
Java application (in a separate VM) that tries a JNDI lookup. The Jndi.Properties of 
the client is:

java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces

So since provider url is not defined, it should look for the HA Jndi.

I create the initial context in the usual way:
javax.naming.InitialContext initialContext = new javax.naming.InitialContext();

when I do initialContext.lookup(), it succeeds or fails as follows:

If the 2 JBoss instances are up, the lookup succeeds.
If the 2 JBoss instances were up, and then one goes  down, I am left with a single 
JBoss - the lookup succeeds.

If only a single JBoss is up, the lookup fails!

The exception I get is below.

Is this behavior by design or is it a bug.
If it is by design, what is the intention of this design. I would like the client to 
succeed in all cases. Why should it care that the cluster has only 1 node?


   TIA
 Evyatar.



javax.naming.CommunicationException: Receive timed out [Root exception is 
java.net.SocketTimeoutException: Receive timed out]
at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1115)
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1223)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:514)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:507)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at 
com.ipontis.platform.events.test.RemoteEjbTest.testSimpleClusteredEjb(RemoteEjbTest.java:54)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:392)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:276)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:167)
Caused by: java.net.SocketTimeoutException: Receive timed out
at java.net.PlainDatagramSocketImpl.receive(Native Method)
at java.net.DatagramSocket.receive(DatagramSocket.java:711)
at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1093)
... 18 more



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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - How(when) detects the cluster the dead members?

2004-08-19 Thread prese
Hi guys,

IÂm using JBOSS 3.2.5.

LetÂs consider the following scenario:
- start Node A and Node B in the same scenarion
- check the DefaultPartion MBean to see how many memebers are in the partition -- 2 .. 
A & B

-- unplug the network cable for node B 
-- check the DefaultPartition -- 2 nodes A & B ... on both machine 

-- is this normal??

- plug back the cable ... imediatlly in both console IÂm able to see a message that 
said that right now no dead member is identified, but before this it also said that 1 
dead member is identified ...
So we finds out that was a dead member only when i put the cable back? 
Is this normal??

Maybe I did not configured something correctlly. I look in the cluster documentation 
and I used for cluster configuration what is recommended there ...

I want to mention that stopping the node B signals the node A that it is down but 
unpluging the cable does not do this 

Have someone any idea about this?

Any help is welcome

Thanks
Sebi

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - strange ConnectionFactory log messages

2004-08-19 Thread jkevin
hello -

i have been using a db2 connection pool for awhile now and its worked fine. recently i 
made some changes to my app (added some EJB's so it went from deploying a .war to a 
.ear with the war inside) and thats deploying ok... except im seeing the following 
DEBUG entries in my server log:

2004-08-19 00:08:39,689 DEBUG 
[org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory] Using 
properties: {user=xxx, password=}
2004-08-19 00:08:39,689 DEBUG 
[org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory] Checking driver 
for URL: jdbc:db2:station
2004-08-19 00:08:39,693 DEBUG 
[org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory] Using 
properties: {user=xxx, password=x}
2004-08-19 00:08:39,694 DEBUG 
[org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory] Driver not yet 
registered for url: jdbc:db2:station
2004-08-19 00:08:39,699 DEBUG 
[org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory] Driver not yet 
registered for url: jdbc:db2:station
2004-08-19 00:08:40,010 DEBUG 
[org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory] Driver already 
registered for url: jdbc:db2:station


other than the "Using Properties" messages these have never logged before. im still 
able to get connections from the pool fine (the messages stop after the initial 
connection) but im not sure what i did when switching from the war to ear deployment 
that would cause these to log. any ideas?

thanks
kevin

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


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

2004-08-19 Thread loubyansky
You have change the abstract schema name to something else. The queries are compiled 
at deploy time (except for dynamic ones). So how does that deploy successfully?

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


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

2004-08-19 Thread harshi2003
Thank you very much for your reply. 

As you said because of the order keyword it causes the problems.
 
in my application order  is an entity bean.

but for the finder methods like 

@ejb.finder signature = "java.util.Collection findByConsigneeDate(java.lang.String 
consigneeRef,java.util.Date orderDate)" 
 *  query = "SELECT OBJECT(o) FROM Order o WHERE o.consigneeReference = ?1 
AND o.orderDate = ?2" 

the mentioned error is not coming. It deploys successfully. 
the major problem is i can not change name of that bean.

could you pls make some suggesstions.

thank you


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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: Foreign key violation - why is child deleted first in 1-

2004-08-19 Thread loubyansky
Yes, on the sourceforge.net. Thanks.

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: Cascade delete

2004-08-19 Thread loubyansky
I restored the page. Read starting from "The EJB2.1 spec defines the cascade-delete 
protocol in "10.3.4.2 Cascade-delete" as:"

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

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


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user