[jboss-user] [JBossCache] - Re: Problems migrating from JBCache 1.3.0.GA to JBCache 1.4.

2006-08-13 Thread lior.dra
Hey,
I had this problem also. its a linux/ipv6/Jgroup issue.

try adding this java VM option 
java -Djava.net.preferIPv4Stack=true 

you can also check this web site 
http://weblogs.java.net/blog/dcengija/archive/2006/04/jgroups_demos_o_1.html




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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964814
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Displaying EJBs within JavaScript: what about the Entity

2006-08-13 Thread SmokingAPipe
By the way, it seems like ideally this is something that would be handled 
within the Servlet container itself.  You should be able to register some kind 
of listener for the creation of a Request object and then another for when it 
is finished, which should be able to handle things like attaching and detaching 
an entity manager.


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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964817
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - how to retrieve task instance/process instances in a specifi

2006-08-13 Thread yxyang
Hi

I went through the APIs. And i find there is no direct API to help getting
(1)task instances which is in waiting status in a specific TaskNode. 
(2)process instances which is in waiting status in a specific TaskNode.

Please advice?
yang

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964818
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: how to retrieve task instance/process instances in a spe

2006-08-13 Thread kukeltje
If you looked through the api, the next thing you should do is to look trough 
the sourcecode (
it is such a good part of documentation) to see how comparable methods have 
implemented this. You'll be surprised how simple it is. Just learn HQL.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964820
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: how to retrieve task instance/process instances in a spe

2006-08-13 Thread yxyang
kukeltje, 

i feel a bit strange why cannot post the simple answer here instead of going 
through the source code. 

never mind, if no direct answer, of course, i will looking the source code.
yang

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964821
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Application Client JNDI lookup returns null for Hibernate Se

2006-08-13 Thread senthilid14
Hi,

I am using JBoss 4.0.4, and Hibernate3. I used hibernate-service.xml and I put 
my mapping files and classes in a utility jar. 

From a JSP page my JNDI lookup for hibernate SessionFactory is working 
perfectly.

But from a application client, my JNDI lookup returns null, so if i am trying 
to use SessionFactory, iam getting NullPointerException

am i missing somewhere?

thanks

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964822
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Re: How to cofigure JBoss in a machine where already Tomcat

2006-08-13 Thread shabosssha
Hi Raj!

Thank u very much...

we did the same and its working.


Thanks  Regards,
Sha

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964823
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Displaying EJBs within JavaScript: what about the Entity

2006-08-13 Thread raja05
SmokingAPipe wrote : 
  | Solution 1: Use a Filter that keeps an EntityManager hanging around for the 
duration of the request.  Seems like an ugly way to do it, but I guess that 
would be PHP-style, where it automatically frees DB connections when the 
request is finished.
  | 

This is how the OpenSessionInView works and I believe is the only way available 
if you dont want to get to Seam. Check this post
http://www.jboss.com/index.html?module=bbop=viewtopict=88460
for some differences in Seam managed persistence context Vs. EJB3's Extended 
Persistence context that will make applications not worry about 
LazyInitExceptions.


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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964824
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: The process class loader issue

2006-08-13 Thread yxyang
I already achieve what i want to do.

Actually, there is no problem for the jboss software itself. THe problem is 
more on the confusion of how to use the jboss components when classloader 
involves.

TO make the classes in .par file be able to access the class in ejbs, make sure 
the two parts use the same classloader.

yang

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964825
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Can't find branch for FD8 release, posted documentation

2006-08-13 Thread raja05
Welcome to frustration while searching code. Ive tried this before and am still 
not very comfortable at locating branches and source codes to attach to Idea. 
Anyway , here are some answers that might help.

gcomnz wrote : 
  | 1. The EJB 3.0 releases don't contain source, making it difficult to attach 
source in IDEs for debugging
  | 
The EJB3.0 sources are part of the JBoss_4_0 branch and can be obtained here
https://svn.jboss.org/repos/jbossas/branches/Branch_4_0/
The subtrees are ejb3 and ejb3x

gcomnz wrote : 
  | 2. I've been searching for a long time in the CVS repository and can't seem 
to find the version tag for releases, meaning that I can't find the accurate 
sources for what I'm using in order to get around problem 1
  | 
These got shifted to SVN sometime late July I think and SVN seems to be more 
easier to navigate( Fisheye sucks if you dont know the branch or tag names). 
Also, Fisheye does not seem to have any tag information, so unless you know the 
tag for a subtree, you are lost. Anyway, if you are able to find out the 
tag/branch names from any of the commit messages, here is how to do the 
browsing for a particular tree
fisheye.labs.jboss.com/viewrep/~tag=JBoss_Seam_1_0_1_GA/JBoss/jboss-seam
That would fetch the JBoss_Seam_1_0_1_GA tag for Seam and I got the tagname 
from one of the commit messages. I honestly have no idea how to do it 
generically


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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964826
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: how to retrieve task instance/process instances in a spe

2006-08-13 Thread yxyang
got it. 

hibernate.queries.hbm.xml file

Although it is not difficult, if i want to use only EJBs 2 and not the 
hibernate code in my application code (i prefer to keep the hibernate stuff 
under the cover of the jbpm api)., it is no direct way.



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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964827
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Persistence unit scoping across multiple jars in a singl

2006-08-13 Thread raja05
From the EJB Spec,
anonymous wrote : 
  | A persistence unit must have a name. Only one persistence unit of any given 
name may be defined within a single EJB-JAR file, within a single WAR file, 
within a single application client jar, or within an EAR (in the EAR root or 
lib directory).
  | 
And as for scope of the persistence.xml (between EJB, WEB, or EAR)
anonymous wrote : 
  | A persistence unit that is defined at the level of the EAR is generally 
visible to all components in the application.
  | 

So if you put your generic persistence.xml in the root folder(where your EAR is 
defined or in a lib subfolder), all your sub deployments should be able to use 
that.


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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964828
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: how to retrieve task instance/process instances in a spe

2006-08-13 Thread yxyang
Is the following code the correct way to retrieve the taskinstances for the 
specific tasknode name and task name?
 

  | private java.util.List getTaskInstance(String tasknodename, String 
taskname) throws Exception {
  | log.debug(getTaskInstance() is called);
  | log.debug( + ctx.getCallerPrincipal().getName());
  | JbpmConfiguration config = null;
  | JbpmContext jbpmContext = null;
  | java.util.List list = null;
  | java.util.List list2 = new ArrayList();
  | try {
  | InitialContext ic = new InitialContext();
  | config = (JbpmConfiguration) ic
  | .lookup(java:/jbpm/JbpmConfiguration);
  | jbpmContext = config.createJbpmContext();
  | list = 
jbpmContext.getTaskMgmtSession().findPooledTaskInstances(ctx.getCallerPrincipal().getName());
  | for(Iterator iter=list.iterator();iter.hasNext();){
  | TaskInstance taskinstance =(TaskInstance) 
iter.next();
  | Task task =  taskinstance.getTask();
  | if(task.getName()!=null 
task.getName().equals(taskname)  
task.getTaskNode().getName().equals(tasknodename)){
  | list2.add(taskinstance);
  | }
  | }
  | log.debug(return task instance set size 
=+list2.size());
  | } finally {
  | if (jbpmContext != null)
  | jbpmContext.close();
  | }
  | return list2;
  | }
  | 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964829
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Persistence unit scoping across multiple jars in a singl

2006-08-13 Thread raja05
That said, the above dint work for a trivial example for me. Can you verify 
this as well? (Or am i reading the spec wrong ?)


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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964830
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: how to retrieve task instance/process instances in a spe

2006-08-13 Thread kukeltje
yxyang wrote : kukeltje, 
  | 
  | i feel a bit strange why cannot post the simple answer here instead of 
going through the source code. 

since it is good documentation, you learn from it, I do not know everything 
(e.g. forgot that the queries were moved to the hibernate file instead of 
code),  You might be interested in doing it in hql and donate the code so 
everybody can take advantage...


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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964831
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - how get the datasource

2006-08-13 Thread joy_wind
Hi,I have config a datasource like the following:

  local-tx-datasource
jndi-namePostgresDS/jndi-name
connection-urljdbc:postgresql://localhost:5432/eai/connection-url
driver-classorg.postgresql.Driver/driver-class
user-namepostgres/user-name
postgres
min-pool-size5/min-pool-size
max-pool-size100/max-pool-size
new-connection-sqlselect 1/new-connection-sql
check-valid-connection-sqlselect 1/check-valid-connection-sql

  !-- corresponding type-mapping in the standardjbosscmp-jdbc.xml 
(optional) --
  
 type-mappingPostgreSQL 7.2/type-mapping
  
  /local-tx-datasource


Then

1, how can I get the datasource object so to get a connection ? some code 
snippet will be appreciated.

2,My web app is in the save JVM,so could i get the datasource directly without 
a jndi lookup (may fetch the datasource mbean directly ?)?

3,Is the database connections REALLY been pooled ,according the config like 
above ?

4,how to config to let jboss server initiate serveral database connection when 
startup?

I'm totally new to jboss.I have searched the web for a while but find no 
result.Anyone can help me ? Thanks!

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964832
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Can't find branch for FD8 release, posted documentation

2006-08-13 Thread gcomnz
Thanks, Raja. Very much appreciate the info! And hurray for subversion. I 
should have realized they switched.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964833
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: The process class loader issue

2006-08-13 Thread kukeltje
would you mind sharing what you did, so others can learn from it?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964834
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - NPE while deploying a Web service

2006-08-13 Thread sw79
here ist the stack trace:


  | 13:07:29,826 ERROR [MainDeployer] Could not create deployment: 
file:/C:/jboss-4.0.4.CR2/server/all/deploy/myear.ear/mywar.war/
  | java.lang.NullPointerException
  | at 
org.jboss.ws.metadata.wsdl.WSDL11Reader.processPortType(WSDL11Reader.java:427)
  | at 
org.jboss.ws.metadata.wsdl.WSDL11Reader.processBinding(WSDL11Reader.java:725)
  | at 
org.jboss.ws.metadata.wsdl.WSDL11Reader.processPort(WSDL11Reader.java:1068)
  | at 
org.jboss.ws.metadata.wsdl.WSDL11Reader.processPorts(WSDL11Reader.java:1051)
  | at 
org.jboss.ws.metadata.wsdl.WSDL11Reader.processServices(WSDL11Reader.java:1024)
  | at 
org.jboss.ws.metadata.wsdl.WSDL11Reader.processDefinition(WSDL11Reader.java:119)
  | at 
org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:151)
  | at 
org.jboss.ws.metadata.ServiceMetaData.getWsdlDefinitions(ServiceMetaData.java:273)
  | at 
org.jboss.ws.deployment.JSR109ServerMetaDataBuilder.buildMetaData(JSR109ServerMetaDataBuilder.java:94)
  | at 
org.jboss.ws.deployment.ServiceEndpointDeployer.create(ServiceEndpointDeployer.java:78)
  | at 
org.jboss.ws.integration.jboss.DeployerInterceptor.create(DeployerInterceptor.java:80)
  | at 
org.jboss.ws.integration.jboss.DeployerInterceptorJSE.create(DeployerInterceptorJSE.java:74)
  | at 
org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180)
  | at 
org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
  | at $Proxy38.create(Unknown Source)
  | at org.jboss.deployment.MainDeployer.create(MainDeployer.java:953)
  | at org.jboss.deployment.MainDeployer.create(MainDeployer.java:943)
  | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:807)
  | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
  | at sun.reflect.GeneratedMethodAccessor45.invoke(Unknown Source)
  | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  | at java.lang.reflect.Method.invoke(Unknown Source)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | at 
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | at 
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
  | at $Proxy8.deploy(Unknown Source)
  | at 
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:334)
  | at 
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:522)
  | at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:207)
  | at 
org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:280)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
  | at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
  | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  | at java.lang.reflect.Method.invoke(Unknown Source)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
  | at $Proxy0.start(Unknown Source)
  | at org.jboss.system.ServiceController.start(ServiceController.java:417)
  | at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
  | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  | at java.lang.reflect.Method.invoke(Unknown Source)
  | at 

[jboss-user] [Beginners Corner] - Re: Installing JBoss application server

2006-08-13 Thread satimis
Hi ashishjain,

OS - Ubuntu-6.06-amd64 (Linux)


Tks for your advice.

Download jboss-4.0.4.GA.zip and confirmed md5sum

$ sudo unzip /path/to/jboss-4.0.4.GA.zip
$ sudo /jboss-4.0.4.GA/bin/run.bat
password
  | sudo: jboss-4.0.4.GA/bin/run.bat: command not found

$ sudo jboss-4.0.4.GA/bin/run.sh
Password:
  | run.sh: Missing file: /lib/tools.jar
  | run.sh: Unexpected results may occur.  Make sure JAVA_HOME points to a JDK 
and not a JRE.
  | =
  | 
  |   JBoss Bootstrap Environment
  | 
  |   JBOSS_HOME: /home/satimis/jboss-4.0.4.GA
  | 
  |   JAVA: java
  | 
  |   JAVA_OPTS: -server -Xms128m -Xmx512m 
-Dsun.rmi.dgc.client.gcInterval=360 -Dsun.rmi.dgc.server.gcInterval=360 
-Dprogram.name=run.sh
  | 
  |   CLASSPATH: /home/satimis/jboss-4.0.4.GA/bin/run.jar:/lib/tools.jar
  | 
  | =
  | 
  | 19:20:49,661 INFO  [Server] Starting JBoss (MX MicroKernel)...
  | 19:20:49,662 INFO  [Server] Release ID: JBoss [Zion] 4.0.4.GA (build: 
CVSTag=JBoss_4_0_4_GA date=200605151000)
  | 19:20:49,664 INFO  [Server] Home Dir: /home/satimis/jboss-4.0.4.GA
  | 19:20:49,664 INFO  [Server] Home URL: file:/home/satimis/jboss-4.0.4.GA/
  | 19:20:49,665 INFO  [Server] Patch URL: null
  | 19:20:49,665 INFO  [Server] Server Name: default
  | 19:20:49,665 INFO  [Server] Server Home Dir: 
/home/satimis/jboss-4.0.4.GA/server/default
  | 19:20:49,666 INFO  [Server] Server Home URL: 
file:/home/satimis/jboss-4.0.4.GA/server/default/
  | 19:20:49,666 INFO  [Server] Server Log Dir: 
/home/satimis/jboss-4.0.4.GA/server/default/log
  | 19:20:49,666 INFO  [Server] Server Temp Dir: 
/home/satimis/jboss-4.0.4.GA/server/default/tmp
  | 19:20:49,667 INFO  [Server] Root Deployment Filename: jboss-service.xml
  | 19:20:50,673 INFO  [ServerInfo] Java version: 1.4.2,Free Software 
Foundation, Inc.
  | 19:20:50,673 INFO  [ServerInfo] Java VM: GNU libgcj 4.1.0 (Ubuntu 
4.1.0-1ubuntu8),Free Software Foundation, Inc.
  | 19:20:50,673 INFO  [ServerInfo] OS-System: Linux 
2.6.15-23-amd64-generic,x86_64
  | 19:20:50,913 WARN  [ServiceController] Problem creating service 
jboss.system:service=MainDeployer
  | java.lang.NoClassDefFoundError: $Proxy1
  |at java.lang.Class.initializeClass(libgcj.so.7)
  |at java.lang.reflect.Field.set(libgcj.so.7)
  |at java.lang.reflect.Field.set(libgcj.so.7)
  |at java.lang.reflect.Field.set(libgcj.so.7)
  |at java.lang.reflect.Proxy$ClassFactory.generate(libgcj.so.7)
  |at java.lang.reflect.Proxy.getProxyClass(libgcj.so.7)
  |at java.lang.reflect.Proxy.newProxyInstance(libgcj.so.7)
  |at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:395)
  |at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:349)
  |at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:335)
  |at 
org.jboss.system.server.ServerConfigLocator.locate(ServerConfigLocator.java:42)
  |at org.jboss.deployment.MainDeployer.createService(MainDeployer.java:471)
  |at 
org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:261)
  |at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:243)
  |at java.lang.reflect.Method.invoke(libgcj.so.7)
  |at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  |at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  |at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  |at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  |at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  |at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
  |at $Proxy0.create(Unknown Source)
  |at org.jboss.system.ServiceController.create(ServiceController.java:331)
  |at org.jboss.system.ServiceController.create(ServiceController.java:274)
  |at java.lang.reflect.Method.invoke(libgcj.so.7)
  |at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  |at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  |at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  |at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  |at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  |at 
org.jboss.system.server.ServerImpl.startBootService(ServerImpl.java:564)
  |at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:446)
  |at org.jboss.system.server.ServerImpl.start(ServerImpl.java:367)
  |at org.jboss.Main.boot(Main.java:201)
  |at org.jboss.Main$1.run(Main.java:470)
  |at java.lang.Thread.run(libgcj.so.7)
  | Caused by: java.lang.ClassNotFoundException: javax.management.MBeanServer
  |at java.lang.ClassLoader.findClass(libgcj.so.7)
  |at 

[jboss-user] [Beginners Corner] - Problems with XDoclet and JBoss Eclipse IDE Tutorial

2006-08-13 Thread stojkovic
I installed the 1.6 version of the JBoss IDE using the 'JBoss Eclipse IDE 
Installation Guide' over the 3.1.2 of Eclipse without problems.

I tried the JBoss Eclipse IDE Tutorial and I created the project without 
problems.

But when I execute the 'Run XDoclet' function I received and error:
xdoclet.modules.ejb.EjbDocletTask' cannot be found!

I tried a lot of things without results:
-I set the Ant home in Windows/Preferences/Ant/RunTime but however in my Ant 
lib directory there's nothing
-I tried to download the XDoclet libraries and put in Ant lib directory but I 
receive this error:
[ejbdoclet] XDoclet classpath missing J2EE classes
[ejbdoclet] at 
xdoclet.modules.ejb.EjbDocletTask.validateOptions(EjbDocletTask.java:86)

Some one cal help me?

Thanks!

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964837
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JCA/JBoss] - How to access the configured datasource

2006-08-13 Thread joy_wind
Hi,I have config a datasource like the following:

local-tx-datasource
jndi-namePostgresDS/jndi-name
connection-urljdbc:postgresql://localhost:5432/eai/connection-url
driver-classorg.postgresql.Driver/driver-class
user-namepostgres/user-name
postgres
min-pool-size5/min-pool-size
max-pool-size100/max-pool-size
new-connection-sqlselect 1/new-connection-sql
check-valid-connection-sqlselect 1/check-valid-connection-sql

!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) --

type-mappingPostgreSQL 7.2/type-mapping

/local-tx-datasource


Then

1, how can I get the datasource object so to get a connection ? Since my web 
app is in the save JVM, could i get the datasource directly without a jndi 
lookup (may fetch the datasource mbean directly ?)? some code snippet will be 
really appreciated.

2,Is the database connections REALLY been pooled ,according the config like 
above ?

3,how to config to let jboss server initiate serveral database connection when 
startup?

I'm totally new to jboss.I have searched the web for a while but find no 
result.Anyone can help me ? Thanks!

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964838
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - EJB3 - load Sql Query From Xml Deployment Descriptor

2006-08-13 Thread grdzeli_kaci
hi all,
i'm trying working with ejb3 using xml eployment Descriptor.
here is my small example:
Table in Oracle DB

  | CREATE TABLE TEST.PERSON 
  |(ID NUMBER NOT NULL ENABLE, 
  | NAME VARCHAR2(255), 
  | SURNAME VARCHAR2(255), 
  | AGE NUMBER, 
  |  CONSTRAINT PK_ID PRIMARY KEY (ID)
  |)
  | 
EJB3 Entity Bean

  | import [...]
  | @Entity()
  | @Table(name=PERSON, schema=TEST)
  | public class PERSON implements Serializable {
  | //default serial version id, required for serializable classes.
  | private static final long serialVersionUID = 1L;
  | private Long id;
  | private Long age;
  | private String name;
  | private String surname;
  | 
  | public Test() {
  | }
  | 
  | @Id()
  | @SequenceGenerator(name = idGenerator, sequenceName = SEQ_ID)
  | @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = 
idGenerator)
  | @Column(name=ID, unique=true, nullable=false, precision=22)
  | public Long getId() {
  | return this.id;
  | }
  | public void setId(Long id) {
  | this.id = id;
  | }
  | 
  | @Basic()
  | @Column(name=AGE, precision=22)
  | public Long getAge() {
  | return this.age;
  | }
  | public void setAge(Long age) {
  | this.age = age;
  | }
  | 
  | @Basic()
  | @Column(name=NAME, length=255)
  | public String getName() {
  | return this.name;
  | }
  | public void setName(String name) {
  | this.name = name;
  | }
  | 
  | @Basic()
  | @Column(name=SURNAME, length=255)
  | public String getSurname() {
  | return this.surname;
  | }
  | public void setSurname(String surname) {
  | this.surname = surname;
  | }
  | }
  | 
and my orm.xml file 


  | ?xml version=1.0 encoding=UTF-8?
  | entity-mappings 
  | xmlns=http://java.sun.com/xml/ns/persistence; 
  | xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
  | xsi:schemaLocation=http://java.sun.com/xml/ns/persistence 
http://java.sun.com/xml/ns/persistence/orm_1_0.xsd; 
  | version=1.0  
  | packagecom.magti.businesslayer.ejb3entity.oracle/package
  | named-native-query name=getPersonsselect * from 
Test/named-native-query
  | entity class=PERSON
  | primary-key-join-column name=id/
  | table name=PERSON
  | unique-constraint
  | column-nameid/column-name
  | column-nameage/column-name
  | column-namename/column-name
  | column-namesurname/column-name
  | /unique-constraint
  | /table
  | /entity
  | /entity-mappings
  | 

how i can load this sql query in my session fasade bean ?
i tryed this but it does not working :

Persons Session Fasade Bean

  | @Stateful
  | @TransactionManagement(TransactionManagementType.BEAN)
  | @Remote(Fasade.class)
  | public class PersonFasadeBean implements PersonFasade
  | {   
  | @PersistenceContext(unitName = TEST)
  | private EntityManager oracleManager;
  | @Resource public UserTransaction utx;
  | public Test[] getTests() throws IllegalStateException, 
SecurityException, SystemException {
  | List _list = 
oracleManager.createNativeQuery(getTests).getResultList();
  | System.out.println(_list.size());
  | return null;
  | }
  | }
  | 

and i got an errot like this :

  | 04:17:19,984 WARN  [JDBCExceptionReporter] SQL Error: 900, SQLState: 42000
  | 04:17:19,984 ERROR [JDBCExceptionReporter] ORA-00900: invalid SQL statement
  | 

can anybody help me :(
is there eny docs about this ?
thanks.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964839
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: MDB and EJB3--Newbie Question

2006-08-13 Thread grdzeli_kaci
i think u didn't configure your jboss for Message Drive Bean.
look at this :
http://wiki.jboss.org/wiki/Wiki.jsp?page=ConfigJBossMDB



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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964840
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Re: Installing JBoss application server

2006-08-13 Thread satimis
Hi ashishjain,

Now I have jrockit-R26.4.0-jdk1.5.0_06 installed.

$ ls jrockit-R26.4.0-jdk1.5.0_06/
  | bin  console  demo  include  jra  jre  lib  LICENSE  memleak  
mercuryprofiler  README.TXT  sample  src.zip

$ ls jrockit-R26.4.0-jdk1.5.0_06/bin/
  | appletviewer  extcheck  jarsigner  javadoc  jconsole  jrajstatkinit 
 memleak   pack200 rmid servertool
  | apt   idlj  java   javahjdb   jrcc   jstatd   klist 
 native2ascii  policytool  rmiregistry  tnameserv
  | console   jar   javac  javapjps   jrcmd  keytool  ktab  
 orbd  rmicserialverunpack200


jboss-4.0.4.GA unzipped


But still failed to start JBoss.

$ sudo jboss-4.0.4.GA/bin/run.sh
  | run.sh: Missing file: /lib/tools.jar
  | run.sh: Unexpected results may occur.  Make sure JAVA_HOME points to a JDK 
and not a JRE.
  | =
  | 
  |   JBoss Bootstrap Environment
  | 
  |   JBOSS_HOME: /home/satimis/jboss-4.0.4.GA
  | 
  |   JAVA: java
  | 
  |   JAVA_OPTS: -server -Xms128m -Xmx512m 
-Dsun.rmi.dgc.client.gcInterval=360 -Dsun.rmi.dgc.server.gcInterval=360 
-Dprogram.name=run.sh
  | 
  |   CLASSPATH: /home/satimis/jboss-4.0.4.GA/bin/run.jar:/lib/tools.jar
  | 
  | =
  | 
  | 19:56:17,954 INFO  [Server] Starting JBoss (MX MicroKernel)...
  | 19:56:17,955 INFO  [Server] Release ID: JBoss [Zion] 4.0.4.GA (build: 
CVSTag=JBoss_4_0_4_GA date=200605151000)
  | 19:56:17,957 INFO  [Server] Home Dir: /home/satimis/jboss-4.0.4.GA
  | 19:56:17,957 INFO  [Server] Home URL: file:/home/satimis/jboss-4.0.4.GA/
  | 19:56:17,958 INFO  [Server] Patch URL: null
  | 19:56:17,958 INFO  [Server] Server Name: default
  | 19:56:17,958 INFO  [Server] Server Home Dir: 
/home/satimis/jboss-4.0.4.GA/server/default
  | 19:56:17,959 INFO  [Server] Server Home URL: 
file:/home/satimis/jboss-4.0.4.GA/server/default/
  | 19:56:17,959 INFO  [Server] Server Log Dir: 
/home/satimis/jboss-4.0.4.GA/server/default/log
  | 19:56:17,959 INFO  [Server] Server Temp Dir: 
/home/satimis/jboss-4.0.4.GA/server/default/tmp
  | 19:56:17,960 INFO  [Server] Root Deployment Filename: jboss-service.xml
  | 19:56:19,034 INFO  [ServerInfo] Java version: 1.4.2,Free Software 
Foundation, Inc.
  | 19:56:19,034 INFO  [ServerInfo] Java VM: GNU libgcj 4.1.0 (Ubuntu 
4.1.0-1ubuntu8),Free Software Foundation, Inc.
  | 19:56:19,034 INFO  [ServerInfo] OS-System: Linux 
2.6.15-23-amd64-generic,x86_64
  | 19:56:19,258 WARN  [ServiceController] Problem creating service 
jboss.system:service=MainDeployer
  | java.lang.NoClassDefFoundError: $Proxy1
  |at java.lang.Class.initializeClass(libgcj.so.7)
  |at java.lang.reflect.Field.set(libgcj.so.7)
  |at java.lang.reflect.Field.set(libgcj.so.7)
  |at java.lang.reflect.Field.set(libgcj.so.7)
  |at java.lang.reflect.Proxy$ClassFactory.generate(libgcj.so.7)
  |at java.lang.reflect.Proxy.getProxyClass(libgcj.so.7)
  |at java.lang.reflect.Proxy.newProxyInstance(libgcj.so.7)
  |at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:395)
  |at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:349)
  |at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:335)
  |at 
org.jboss.system.server.ServerConfigLocator.locate(ServerConfigLocator.java:42)
  |at org.jboss.deployment.MainDeployer.createService(MainDeployer.java:471)
  |at 
org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:261)
  |at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:243)
  |at java.lang.reflect.Method.invoke(libgcj.so.7)
  |at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  |at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  |at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  |at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  |at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  |at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
  |at $Proxy0.create(Unknown Source)
  |at org.jboss.system.ServiceController.create(ServiceController.java:331)
  |at org.jboss.system.ServiceController.create(ServiceController.java:274)
  |at java.lang.reflect.Method.invoke(libgcj.so.7)
  |at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  |at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  |at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  |at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  |at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  |at 

[jboss-user] [JBoss jBPM] - Re: taken end and task instance end

2006-08-13 Thread yxyang
cpob wrote : Depends on how you're having the token move.  Are you doing a 
token.signal, or a taskInstance.end?

any difference? i am using token.signal

yang

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964842
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: Reading cookies in a web service

2006-08-13 Thread perrucci
On jsr181 ws you can implement javax.xml.rpc.server.ServiceLifecycle and use 
this code in init(Object object) method:

context = (ServletEndpointContext) object;
httpSession = context.getHttpSession();
httpServletRequest = (HttpServletRequest) 
context.getMessageContext().getProperty(javax.xml.ws.servlet.request);
httpServletResponse = (HttpServletResponse) 
context.getMessageContext().getProperty(javax.xml.ws.servlet.response);

Paolo

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964843
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - JSF and EJB 3.0

2006-08-13 Thread urswag
Hello

I am looking for a JSF without Seam and EJB 3.0 for JBoss appliaction template. 
Has anyone a such file containing all build files?

Thanks

Urs

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964844
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Problem with decrementing dates

2006-08-13 Thread iga3k
right now i'm cunfrunted with this issue. 
did you get an elegant implementation?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964845
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Seam method binding almost right, Seam and value binding

2006-08-13 Thread wsollers
Using JBOSS 4.0.4 from the jems installer, Seam nightly build.

Working on a project for the US Air Force using Seam. Seam will invoke the el 
method binding from a HTTP-POST but explodes on resolving the @destroy method 
after doing the business interface method invocation with this stack trace:

2006-08-12 22:26:25,844 WARN  [org.jboss.seam.contexts.Contexts] Could not 
destroy component: workorderquery
java.lang.IllegalArgumentException: method not found: destroy for component: 
workorderquery (check that it is declared on the session bean business 
interface)
at org.jboss.seam.Component.callComponentMethod(Component.java:1489)
at org.jboss.seam.Component.callDestroyMethod(Component.java:1464)
at org.jboss.seam.contexts.Contexts.destroy(Contexts.java:189)
at 
org.jboss.seam.contexts.Lifecycle.flushAndDestroyContexts(Lifecycle.java:654)


 However if I use a value binding on an HTTP-POST things explode when the value 
binding is invoked with the following stack trace:

SEVERE: Error Rendering View[/secure/query/WorkOrderQuery.xhtml]
javax.faces.el.PropertyNotFoundException: /secure/query/WorkOrderQuery.xhtml 
@31,45 value=#{workorderquery.jon}: Bean: 
com.spss.ejb3interfaces.Query$$EnhancerByCGLIB$$6b9098ef_4, property: jon
at 
com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:58)
at javax.faces.component.UIOutput.getValue(UIOutput.java:75)




The application is using an EAR packaging structured as follows:

Ear Root:
META-INF 
application.xml ( annotated with ejb module for each of my jars as well 
as a java module for Seam )
spss-common.jar ( Common EJB3 interfaces IE crud interface may be used by 
multiple application modules, ancestors etc. )
spss-query-jar
... Other Biz Jars
jboss-seam.jar ( I pulled the latest nightly build )
jbpm-3.1.1.jar
war
WEB-INF
facelets ( pulled out of the latest nightly build dvdstore )
el* ( pulled out of the latest nightly build dvdstore )

The META-INF of all the jars I created have a class path entry for the common 
jar as well as an empty seam.properties file in the jar ROOT.

Everything works fine if I restructure the code so that the B-Interface resides 
in the same package as the ejb3. As the CGLib contructed proxy is built as a 
member of the package containing the interface 

com.spss.ejb3interfaces.Query$$EnhancerByCGLIB$$6b9098ef_4 where the ejb3 
actually resides in a different package.

Are the local business interfaces required to be in the same package and jar as 
the ejb3? 

Code is as follows:


package com.spss.query;

@Stateful
@Scope(ScopeType.CONVERSATION)
@Name(workorderquery)
public class WorkOrderQuery extends AbstractPojo  implements Query {

private String jon = 003;

/**
 * @return Returns the jon.
 */
public String getJon() {
return this.jon;
}

/**
 * @param jon The jon to set.
 */
public void setJon(String jon) {
this.jon = jon;
}

/*
 * (non-Javadoc)
 * 
 * @see com.spss.query.Query#query()
 */

public String query() {
return SUCCESS;
}
@Remove @Destroy
public void destroy () {}

/* (non-Javadoc)
 * @see com.spss.framework.AbstractBean#toString()
 */
@Override
public String toString() {
// TODO Auto-generated method stub
return null;
}
}
 

The interface Query is defined as :

package com.spss.ejb3interfaces;

import javax.ejb.Local;

/**
 * @author WILLIAM_SOLLERS
 *
 */
@Local
public interface Query {
public String query ();

}



Everything deploys and starts fine Seam finds all relevant components:

2006-08-12 22:25:40,356 DEBUG [org.jboss.deployment.EARDeployer] Extracted 
deployable content: spss-common.jar

...

2006-08-12 22:25:42,779 DEBUG [org.jboss.deployment.MainDeployer] Starting 
deployment (init step) of package at: file:/C:/Program 
Files/jboss-4.0.4.GA-4/server/default/tmp/deploy/tmp64905ABOMv2.ear-contents/spss-common.jar
2006-08-12 22:25:42,779 DEBUG [org.jboss.deployment.MainDeployer] using 
deployer MBeanProxyExt[jboss.ejb3:service=EJB3Deployer]
2006-08-12 22:25:42,779 DEBUG [org.jboss.ejb3.EJB3Deployer] looking for nested 
deployments in : file:/C:/Program 
Files/jboss-4.0.4.GA-4/server/default/tmp/deploy/tmp64905ABOMv2.ear-contents/spss-common.jar
2006-08-12 22:25:42,790 DEBUG [org.jboss.deployment.MainDeployer] 
resolveLibraries: jboss-seam.jar spss-data-conversion.jar 
spss-data-validation.jar
2006-08-12 22:25:42,790 DEBUG [org.jboss.deployment.MainDeployer] new manifest 
entry for sdi at spss-common.jar entry is jboss-seam.jar
2006-08-12 22:25:42,790 DEBUG [org.jboss.deployment.MainDeployer] new manifest 
entry for sdi at spss-common.jar entry is spss-data-conversion.jar
2006-08-12 22:25:42,790 DEBUG [org.jboss.deployment.MainDeployer] using 
deployer MBeanProxyExt[jboss.ejb3:service=EJB3Deployer]
2006-08-12 22:25:42,790 WARN  

[jboss-user] [EJB 3.0] - Re: Persistence unit scoping across multiple jars in a singl

2006-08-13 Thread raja05
Sorry scratch my previous comment, it does work well if you put the 
persistence.xml in a jar file and make it a part of your archive. Note that you 
would have to enter the jar file containing the managed classes in the 
persistence.xml file.


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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964847
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Accessing DB2 with PHP

2006-08-13 Thread dvohra09
Accessing a database such as DB2 with PHP is simpler than accessing with 
J2EE/JDBC as explained in following tutorial.

http://www.regdeveloper.co.uk/2006/08/09/db2_udb_part2/

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964848
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Persistence unit scoping across multiple jars in a singl

2006-08-13 Thread grdzeli_kaci
hi all, i had already problem like this and my mistake was that i hadn't  
unitname in the persistance.xml file 
i think if u must add this in u your persistance.xml 


  | persistence-unit name=Blah1 transaction-type=JTA
  | jta-data-sourcejava:/XAOracleDS/jta-data-source
  | classcom.magti.businesslayer.ejb3entity.oracle.Test/class
  | properties
  |  [props]
  | /properties
  | /persistence-unit 
  | 
  | 
in second persistanc.xml

  | persistence-unit name=Blah2 transaction-type=JTA
  | jta-data-sourcejava:/XAOracleDS/jta-data-source
  | classcom.magti.businesslayer.ejb3entity.oracle.Test/class
  | properties
  |  [props]
  | /properties
  | /persistence-unit 
  | 
  | 

u also could put more then one persistance unit in one persistance.xml file

  | persistence-unit name=Blah1 transaction-type=JTA
  | jta-data-sourcejava:/XAOracleDS/jta-data-source
  | classcom.magti.businesslayer.ejb3entity.oracle.Test/class
  | properties
  |  [props]
  | /properties
  | /persistence-unit 
  | persistence-unit name=Blah2 transaction-type=JTA
  | jta-data-sourcejava:/XAOracleDS/jta-data-source
  | classcom.magti.businesslayer.ejb3entity.oracle.Test/class
  | properties
  |  [props]
  | /properties
  | /persistence-unit 
  | 
  | 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964849
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Displaying EJBs within JavaScript: what about the Entity

2006-08-13 Thread SmokingAPipe
Thanks Raja.  This problem seems quite absurd, because there's not much use to 
EJBs if there isn't an easy and reliable way to render them in JSP.  There 
really should be some part of the Request object that makes it possible to 
manage request-scoped resources.

I think I'll take the plunge and do this with Seam.  It looks like it was 
really designed to do all this stuff.  I'm not thrilled to have to learn yet 
another framework when I have a deadline to meet, but either I move forward 
(Seam) or backwards (PHP).


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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964851
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Starting with Seam: build files, jars, paths?

2006-08-13 Thread SmokingAPipe
Sometimes the hardest part is just setting up the build environment and the 
framework.  I have downloaded the Seam dist and gotten the hotel reservation 
app to work in JBoss.  Easy.  Now I want to make my own Seam application.   
This is turning out to be HARD.  The hotel reservation app's build.xml does a 
import ../../build.xml which brings in the entire Seam build.xml file.  Now I 
need to figure out what that entire file is doing, pick it apart and make my 
own build file.  This is somewhat hard.

Does anyone have a zip of a very simple application template that I can start 
from, so I don't have to go through all this?  Ideally which don't have 
dependencies on a huge file tree like the entire Seam distribution?  I know 
from experience with other Java Enterprise things, just getting hello world 
to build is more than half the battle.


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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964852
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Re: how get the datasource

2006-08-13 Thread PeterJ
1  2)  You should get the data source via JNDI, as follows:

InitialContext ctx = new InitialContext();
  | DataSource ds = (DataSource)ctx.lookup(PostgresDS);
  | Connection conn = ds.getConnection();
  | -- do stuff with the connection --
  | conn.close();

3)  Yes.  The close() method, above, returns the connection to the pool.

4) You have already done that.  There are 5 initial connection established.  
You will have at most 100 connections.  Though I can't remember off hand if the 
connections are established at server startup or the first time you attempt to 
access one.   I think it is the later, in which case you could make 
initialization code in your app access a connection, that would get the 
connections established at server startup time.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964853
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Eclipse IDE (users)] - Re: Which version of JBoss are you using with JBossIDE?

2006-08-13 Thread ashishjain
I am using JBOSS 4.0 SERVER with JBossIDE 2.0.

I have just started configuring and working on session bean (EJB). Right now I 
am facing problems in packging EJB's. 

When select Debug... option, I am not getting any JBOSS4.x option in that as 
mentioned in the Help Contents of JBOSS IDE. However I have installed JBOSS 
server and started JBOSS 4.0 server through JBOSSIDE 2.0.




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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964854
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Re: Can't reach the site

2006-08-13 Thread PeterJ
What operating system are you using?  If you are running on Linux, are you 
running as root?  Do you have a firewall, and if so, is port 81 open?  When 
JBoss comes up, what port does it say it opened?  You should see a line that 
looks like this:

anonymous wrote : 13:42:56,437 INFO  [Http11BaseProtocol] Starting Coyote 
HTTP/1.1 on http-0.0.0.0-8080

Are you getting an errors when JBoss starts?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964855
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Re: Installing JBoss application server

2006-08-13 Thread PeterJ
You are still running the JVM that comes with Ubuntu.  Look at the output that 
says:

anonymous wrote : 19:56:19,034 INFO  [ServerInfo] Java version: 1.4.2,Free 
Software Foundation, Inc.
  | 19:56:19,034 INFO  [ServerInfo] Java VM: GNU libgcj 4.1.0 (Ubuntu 
4.1.0-1ubuntu8),Free Software Foundation, Inc.
  | 

You need to set JAVA_HOME to the JRockit JVM.  You didn't say where you 
installed JRockit, but let's assume it is at /opt/jrockit-R26.4.0-jdk1.5.0_06.  
You should then enter the following command:

export JAVA_HOME=/opt/jrockit-R26.4.0-jdk1.5.0_06

You could also place the above in your .bashrc file, assuming that yoru are 
running bash.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964856
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Eclipse IDE (users)] - Facing problem in packaging while working with EJB using JBO

2006-08-13 Thread ashishjain
I had JBOSSIDE-2.0.0.Alpha and JBOSS Server 4.0.

From JBOSSIDE I defined the JBOSS server 4.0 going to FileNewOtherServer 
and started it from Servers view.

While Building session bean I am facing problem in packaging.

Problem:

When select Debug... option, I am not getting any JBOSS4.x option as this is  
mentioned in the Help Contents (JBOSS Eclipse IDE Tutorial) of JBOSS IDE. 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964857
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - error Target Unreachable, identifier 'user' resolved to null

2006-08-13 Thread [EMAIL PROTECTED]


Hi
Thank you for reading my post
I played a bit with registration sample and now i get an error when i press 
register button in REGISTER.jsp page
I dont know where  i changed in the code , can some one please take a look at 
exception trace and tell me what is wrong , where i should lok for my mistake ?
I checked every part and i cant figure it out.

Thanks


  | Target Unreachable, identifier 'user' resolved to null
  | javax.el.PropertyNotFoundException: Target Unreachable, identifier 'user' 
resolved to null
  | at com.sun.el.parser.AstValue.getTarget(AstValue.java:67)
  | at com.sun.el.parser.AstValue.getType(AstValue.java:56)
  | at 
com.sun.el.ValueExpressionImpl.getType(ValueExpressionImpl.java:180)
  | at 
com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:129)
  | at javax.faces.component.UIInput.getConvertedValue(UIInput.java:936)
  | at javax.faces.component.UIInput.validate(UIInput.java:861)
  | at javax.faces.component.UIInput.executeValidate(UIInput.java:1071)
  | at javax.faces.component.UIInput.processValidators(UIInput.java:663)
  | at 
javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1040)
  | at javax.faces.component.UIForm.processValidators(UIForm.java:229)
  | at 
javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1040)
  | at 
javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:691)
  | at 
com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:100)
  | at 
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:244)
  | at 
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:113)
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
  | at 
org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
  | at 
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
  | at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
  | at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:246)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:185)
  | at 
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
  | at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
  | at 
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
  | at 
com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
  | at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
  | at 
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
  | at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
  | at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
  | at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231)
  | at 
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:619)
  | at 
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.processNonBlocked(DefaultProcessorTask.java:550)
  | at 
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:780)
  | at 
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:326)
  | at 
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:251)
  | at 
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:205)
  | at 
com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
  | at 
com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:103)
  | |#]
  | executePhase(PROCESS_VALIDATIONS 3,[EMAIL PROTECTED]) threw exception
  | javax.faces.FacesException: Target Unreachable, identifier 'user' resolved 
to null
  | at 
com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:108)
  | at 
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:244)
  | at 
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:113)
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
  | at 

[jboss-user] [Beginners Corner] - Re: Can't reach the site

2006-08-13 Thread Ento
I am using SUSE 9.3 and there is no errors.
When I change the default port to 80 it works.
I have no firewall between server and internet.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964859
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Can't run JEMS installer

2006-08-13 Thread Ento
Hi

I'm trying to run JEMS installer for JBoss AS 4.0.4 but i will have this 
meassage.
No X11 DISPLAY variable was set, but this program performed an operation which 
requires it.

Can I run it under ssh or do i need to run in graphic mode?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964860
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Starting with Seam: build files, jars, paths?

2006-08-13 Thread RedHatDude
Try http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossSEAMGen (seam-gen)

Follow the instructions on the page.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964862
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Starting with Seam: build files, jars, paths?

2006-08-13 Thread SmokingAPipe
Ah, thank you.  I'll try that.

One other approach that I have is to build the app and take apart the EAR file. 
 Often it's easier to go from that direction than it is to try to understand a 
complicated build.xml.


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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964863
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Re: Installing JBoss application server

2006-08-13 Thread satimis
Hi PeterJ,

JRockit was installed automatically on;

$ ls /home/satimis/jrockit-R26.4.0-jdk1.5.0_06/
  | bin  demo jra  lib  memleak  README.TXT  src.zip
  | console  include  jre  LICENSE  mercuryprofiler  sample

$ ls /home/satimis/jrockit-R26.4.0-jdk1.5.0_06/bin
  | appletviewer  idlj   javacjconsole  jrcckeytool  memleak   
policytool   serialver
  | apt   jarjavadoc  jdb   jrcmd   kinitnative2ascii  
rmic servertool
  | console   jarsigner  javahjps   jstat   klistorbd  
rmid tnameserv
  | extcheck  java   javapjra   jstatd  ktab pack200   
rmiregistry  unpack200

But I can't find jdk there.

anonymous wrote : You need to set JAVA_HOME to the JRockit JVM.
I did it before running;

$ export JAVA_HOME=/home/satimis/jrockit-R26.4.0-jdk1.5.0_06/
$ sudo jboss-4.0.4.GA/bin/run.sh...
  | 
  | 
  | 
  | 08:47:00,591 INFO  [Server] JBoss (MX MicroKernel) [4.0.4.GA (build: 
CVSTag=JBoss_4_0_4_GA date=200605151000)] Started in 16s:810ms
  | 
It hung there with nothing started.

Others noted with tks.

B.R.
satimis

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964866
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Http Server start error

2006-08-13 Thread cimatch
I am Shimada. 
It is likely to fail in the start of the http server by the environment of OS 
AIX5.2 / JBoss4.0.1sp1, and generating unusual Error registering contexts. 
Isn't there knowing someone ..the solution..?

The following are output by the trace when starting. 

javax.management.InstanceNotFoundException: 
jboss.web:J2EEApplication=none,J2EEServer=none,WebModule=//localhost/,j2eeType=Servlet,name=jsp
 is not registered.
  | at 
org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java(Compiled
 Code))
  | at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java(Compiled Code))
  | at 
org.apache.coyote.tomcat5.MapperListener.registerWrapper(MapperListener.java:468)
  | at 
org.apache.coyote.tomcat5.MapperListener.init(MapperListener.java:140)
  | at 
org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:1537)
  | at org.jboss.web.tomcat.tc5.Tomcat5.startConnectors(Tomcat5.java:462)
  | at org.jboss.web.tomcat.tc5.Tomcat5.handleNotification(Tomcat5.java:488)
  | at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled
 Code))
  | at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
  | at 
org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java(Compiled
 Code))
  | at $Proxy22.handleNotification(Unknown Source)
  | at 
org.jboss.mx.util.JBossNotificationBroadcasterSupport.handleNotification(JBossNotificationBroadcasterSupport.java(Inlined
 Compiled Code))
  | at 
org.jboss.mx.util.JBossNotificationBroadcasterSupport.sendNotification(JBossNotificationBroadcasterSupport.java(Compiled
 Code))
  | at 
org.jboss.system.server.ServerImpl.sendNotification(ServerImpl.java:838)
  | at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:427)
  | at org.jboss.system.server.ServerImpl.start(ServerImpl.java:310)
  | at org.jboss.Main.boot(Main.java:162)
  | at org.jboss.Main$1.run(Main.java:423)
  | at java.lang.Thread.run(Thread.java:568)

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964867
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - trouble obtaining EJB reference in portlet

2006-08-13 Thread bernieb
I'm having trouble obtaining a reference to an EJB entity bean in a portlet.

The entity bean has successfully deployed and I've confirmed the JNDI name in 
the jmx-console (PersonBean).

I had first tried to obtain the reference through the EJB annotation, injecting 
it into the portlet as such:

  | public class ModifyPerson extends GenericPortlet {
  | @EJB(name=PersonBean)
  | private PersonLocal bean;
  | .
  | .
  | .
  | }
  | 
(PersonLocal is the local interface)

However, this did not appear to work as I got a NullPointerException when I 
tried to call any of its methods.

When that faied, I tried to do a JNDI lookup in the init() method:

  | public void inti() throws PortletException{
  | try{
  | InitialContext ctx = new InitialContext();
  | bean = (PersonLocal) ctx.lookup(java:/env/comp/PersonBean);
  | }catch(NamingException ex){
  | throw new PortletException(ex.getMessage());
  | }
  | }
  | 

The portlet instance did not appear to have thrown any exceptions when 
initializing, which I had thought was promising, but when I try to call any of 
the bean's methods, I still get the NullPointerException.

I am assuming this NullPointerException is the result of bean remaining as a 
null value as an actual reference to the bean is not obtained.

Any help in this matter will be greatly appreciated.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964871
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Step-by-Step Seam Getting Started Guide

2006-08-13 Thread chuckadams
anonymous wrote : An EJB module must contain one or more enterprise beans. 
still remains..

That's a normal validation failure, since there actually aren't any beans yet.  
You can silence it by editing the EJB's META-INF/ejb-jar.xml file and taking 
the schema attribute off the opening ejb-jar tag, i.e. change this (wrapping 
added):


  | ejb-jar id=ejb-jar_ID version=2.1
  | xmlns=http://java.sun.com/xml/ns/j2ee;
  | xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
  | xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd;

To this:


  | ejb-jar id=ejb-jar_ID version=2.1 
  | xmlns=http://java.sun.com/xml/ns/j2ee; 
  | xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
  | 

You can change it back after you've actually added a bean.


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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964872
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam method binding almost right, Seam and value bind

2006-08-13 Thread raja05
Your Interface(Query) should contain getJon, setJon and the destroy methods. 
You are calling methods on the interface from your view pages and they havent 
been defined there.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964873
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Step-by-Step Seam Getting Started Guide

2006-08-13 Thread chuckadams
Actually it looks like it's not that simple.  If I take that shortcut, the 
sample fails to deploy:

  | :18:55,245 ERROR [MainDeployer] Could not create deployment: 
file:/pkg/jboss-4.0.4.GA/server/default/tmp/deploy/tmp3975sample.ear-contents/sampleEJB.jar
  | org.jboss.deployment.DeploymentException: expected one enterprise-beans tag
  | at org.jboss.metadata.MetaData.getUniqueChild(MetaData.java:113)
  | at 
org.jboss.metadata.ApplicationMetaData.importEjbJarXml(ApplicationMetaData.java:371)
  | at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:166)
  | at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:541)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | ... etc ...
  | 

Curiously, this only works if I use the org.jboss package names given in the 
example when setting up seamgen. If you don't use those package names (I used 
org.example) then the application deploys fine, though it fails to actually 
show any example content.




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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964876
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Re: Can't reach the site

2006-08-13 Thread PeterJ
Do you have a firewall, such as iptables, running on the server?  If you have 
not opened port 81 in iptables, it will not work.

Are you running SELinux? Can't recall if that is on SUSE (lately I am using 
Fedora) but SELinux can cause various issues if not properly configured.


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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964877
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Re: Can't run JEMS installer

2006-08-13 Thread visolvejboss
Hello,

   For running the JEMS installer, You need a GUI. 

Follow the steps given below.

1. You have to set the DISPLAY environment variable.
 
#export DISPLAY=Your Desktop system's ip-addr:0

2. Start the XWindow Manager.

3. Then, Run the JEMS installer.

I hope, this will solve your problem.


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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964878
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: UI Labels and displaying the hash sign #

2006-08-13 Thread raja05
I think thats a seam bug. Seam tries to interpolate any expressions in the 
message bundle values and since it found a # in there, it seems to be looking 
for characters next to it, which wont be there in your case. Here is the 
snippet from Interpolator.interpolate thats causing the bug

  |   FacesContext context = FacesContext.getCurrentInstance();
  |   StringTokenizer tokens = new StringTokenizer(string, #{}, true);
  |   StringBuilder builder = new StringBuilder(string.length());
  |   while ( tokens.hasMoreTokens() )
  |   {
  |  String tok = tokens.nextToken();
  |  if ( #.equals(tok) )
  |  {
  | String nextTok = tokens.nextToken();
  | 

which would fail in your case. Other than filing a bug, the one option you have 
is to split your message content to have just the Test portion and include 
the # directly in your jsp page.



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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964879
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Frustrated and anxious

2006-08-13 Thread chuckadams
I'm really frustrated at how cumbersome getting started with Seam is.  I've 
spent close to a week trying to find a skeleton app that is friendly to eclipse 
WTP.  I have given up -- seamgen didn't work for me and fiddling with the 
sample apps doesn't give me a self-contained build.xml, let alone a sane 
project structure (what's with /resources?).  

I really like Seam I am really jazzed about EJB finally working, uh, seamlessly 
with a solid template technology like facelets, and I'm really intrigued by the 
DWR features that I haven't even gotten to yet.  Yet due to the problems with 
getting started and the continued low profile I'm afraid it's not getting the 
support and development resources it deserves, and that it's going to get 
abandoned for whatever shiny new thing comes along next.  If Java Studio 
Creator manages to do facelets in the next version, it might just be the better 
option (depends on what kind of annotation support I can get with it I guess).
  
The CRUD app generation in Hibernate tools looks like the best bet, even if it 
doesn't generate a proper multi-project structure with a separate EAR.  But 
since EJB3 is supposed to be about POJOs anyway, and Seam about making it even 
more nimble, so maybe I really should stop trying to force it into J2EE 1.4 
shapes and just go with the single-project flow.  I can just make ant deploy 
the run target and presto it's eclipse-friendly again.


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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964880
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration Deployment] - Re: hi all...!

2006-08-13 Thread ravichandrakn
thanks for ur reply,
 its working now.
i hope u will help me in future also.
Thanks,
Ravi

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964883
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Re: Installing JBoss application server

2006-08-13 Thread satimis
Hi PeterJ,

Tks for your advice.

on firefox
  | JBoss Online Resources
  | 
  | * JBoss Documentation
  | * JBoss Wiki
  | * JBoss JIRA
  | * JBoss Forums
  | 
  | JBoss Management
  | 
  | * Tomcat status (full) (XML)
  | * JMX Console
  | * JBoss Web Console
  | 
  | JBoss? Application Server
Why JBoss home page does not starte automatically?

I think I have to create a script to start JBoss including;
  | export JAVA_HOME=/home/satimis/jrockit-R26.4.0-jdk1.5.0_06
  | sudo jboss-4.0.4.GA/bin/run.sh

B.R.
satimis


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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964884
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Re: Installing JBoss application server

2006-08-13 Thread satimis
satimis wrote : Hi PeterJ,
  | 
  | Tks for your advice.
  | 
  | on firefox
  |   | JBoss Online Resources
  |   | 
  |   | * JBoss Documentation
  |   | * JBoss Wiki
  |   | * JBoss JIRA
  |   | * JBoss Forums
  |   | 
  |   | JBoss Management
  |   | 
  |   | * Tomcat status (full) (XML)
  |   | * JMX Console
  |   | * JBoss Web Console
  |   | 
  |   | JBoss? Application Server
  | Why JBoss home page does not start automatically?
  | 
  | I think I have to create a script to start JBoss including;
  |   | export JAVA_HOME=/home/satimis/jrockit-R26.4.0-jdk1.5.0_06
  |   | sudo jboss-4.0.4.GA/bin/run.sh
  | 
  | B.R.
  | satimis
  | 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964885
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: EJB3 - load Sql Query From Xml Deployment Descriptor

2006-08-13 Thread grdzeli_kaci
did anybody have problem like this ? :(

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964887
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user