[jboss-user] [JBoss Portal] - changing the default page

2006-07-26 Thread vrthikkireddy
hi,
i want to make another page as default page rather than the 'default' page

for example i created one page with name 'mymedpractice'.
how can i set this 'mymedpractice' as my default page.
any one please reply to this topic. are the below changes are correct, or do i 
need to change any other settings, please let me know.

i had been strucked with this issue, for many days, please any one help me 
regarding this  issue

jboss portal version: jboss portal 2.4.0 CR1
i did the following changes in the below configuration files
1. /jboss-portal.sar/portal-cms.sar/META-INF/jboss-service.xml
 
  
  content
  default.MyMedPractice.cms
  portal:commandFactory=Delegating
  portal:service=CMS
   

2. /jboss-portal.sar/portal-core.war/WEB-INF/portlet.xml
 
 
indexpage
/MyMedPractice/index.html
 
  

bye,
venkat

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961189
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Clustering/JBoss] - RMI Clustering using JGroups

2006-07-26 Thread sivasenthil
Hai ! I had tried to replicate my RMI Server using JGroups API. I had follow 
the codes and import the same class which i taken from (net.sf.extrme 
.multicast) sourceforge.net. 
I had open two rmi servers in two differnet registries. 
But Client is not able to contact our replicated rmi. It throws error like 

java.lang.NullPointerException 
at 
com.netphone.server.ClientRMIMessageInterceptorControl.invoke(ClientR 
MIMessageInterceptorControl.java:220) 
at $Proxy0.login(Unknown Source) 

How to solve this. Pl provide solution 

Thanks


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961187
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Hello world example failed on junit test , throws ClassCastE

2006-07-26 Thread developerdev
Hi
I am trying to run hello world example provided with jbpm.bpel tut. All the 
steps are successful but at last on running run-test it gives folloeing error..

any help



run-test:
[junit] Testsuite: org.jbpm.bpel.tutorial.hello.ClientTest
[junit] Tests run: 2, Failures: 0, Errors: 2, Time elapsed: 0.391 sec

[junit] Testcase: testSayHello_proxy(org.jbpm.bpel.tutorial.hello.ClientTest
):  Caused an ERROR
[junit] javax.naming.Reference
[junit] java.lang.ClassCastException: javax.naming.Reference
[junit] at org.jbpm.bpel.tutorial.hello.ClientTest.setUp(ClientTest.java
:33)


[junit] Testcase: testSayHello_dii(org.jbpm.bpel.tutorial.hello.ClientTest):
Caused an ERROR
[junit] javax.naming.Reference
[junit] java.lang.ClassCastException: javax.naming.Reference
[junit] at org.jbpm.bpel.tutorial.hello.ClientTest.setUp(ClientTest.java
:33)


[junit] Test org.jbpm.bpel.tutorial.hello.ClientTest FAILED

regards 
devesh


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961186
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Clustering/JBoss] - How to define JNDI name for EJB3 singleton mbean accessible

2006-07-26 Thread edungey
Hi,

We have EJB3 MBean that is using the @Depend annotations:

 @Management(EventContainerInterface.class)
  | @Service(objectName = "eventmanager:service=eventcontainer")
  | @Remote
  | @RemoteBinding(jndiBinding = "EventContainerInterface")
  | @Depends( { "jboss.ha:service=HASingletonDeployer,type=Barrier" })
  | public class EventContainerMBean implements EventContainerInterface {

It's currently deployed in the farm directory so that all nodes pick it up.  
The main problems is I need to have it's JNDI name accessible to all nodes 
other than the master?  Is this possible without having to place it in the 
deploy-hasingleton directory.

Cheers

Ean

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961183
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - jBPM expression language does not retrun float value of Numb

2006-07-26 Thread JbossNetweb
Hi All,

I am trying to execute expression language with in processdefintion.xml file. 
It is successfully evaluate when i make expression like,

#{totalAmount.value >1000}

my value is type of the float. but when i convert into Number and then change 
my expression like,

#{totalAmount.value.floatValue >1000}

above expression gives me exception.

can any buddy help me of my problem?

Thanks


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961182
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Clustering/JBoss] - Re: MDB fails to deploy when placed in deploy-hasingleton

2006-07-26 Thread edungey
Here is the datasource definition we are using: 


  | 
  | DefaultDS
  | 
jdbc:oracle:thin:@localhost:1521:orcl
  | oracle.jdbc.driver.OracleDriver
  | tas
  | tas
  | 
  | 
  | 
  | 

  | 
  | 
  | 
org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter
  | select 1 from dual
  | select 1 from 
dual
  | true
  | 
  | 
  | Oracle9i
  | 
  | 30
  | 
  | 
  | 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961181
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Eclipse IDE (users)] - xdoclet problems

2006-07-26 Thread onlyerlee
When I build the j2ee project follows the JBOSS Eclipse IDE user guild, it has 
a problem for me once I right click the object and click "run xdoclet" like 
this:
Buildfile: E:\OnlyerLee\mydoc\myEclipse\mytutorial\xdoclet-build.xml
N10004:

BUILD FAILED
java.lang.UnsupportedClassVersionError: xjavadoc/ant/XJavadocTask (Unsupported 
major.minor version 49.0)

Total time: 984 milliseconds

I don't know what the problem it is, somebody can help me?Thinks

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961180
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: Jboss Forum 2.2.1-SP3 Bug?

2006-07-26 Thread johncena
I did re-install and re-deployment of Jboss-forum... Now I can view the Dummy 
Demo Cat > 2 Forums... I've tried editing the names and posted my first topic 
under one forum. It added successfully. But when I browsed port 8080 again and 
logging out as admin.. when clicked on the Forum nav link I got a blank page 
again. 

Now i get these error messages

12:11:46,203 WARN  [JDBCExceptionReporter] SQL Error: 932, SQLState: 42000
12:11:46,204 ERROR [JDBCExceptionReporter] ORA-00932: inconsistent datatypes: 
expected - got CLOB

12:11:46,204 ERROR [ForumsPortlet] The portlet threw an exception
org.hibernate.exception.SQLGrammarException: could not initialize a collection: 
[org.jboss.portlet.forums.impl.PostImpl.attachments#6]
at 
org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:67)
at 
org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at org.hibernate.loader.Loader.loadCollection(Loader.java:1926)
at 
org.hibernate.loader.collection.CollectionLoader.initialize(CollectionLoader.java:36)
at 
org.hibernate.persister.collection.AbstractCollectionPersister.initialize(AbstractCollectionPersister.java:541)
at 
org.hibernate.event.def.DefaultInitializeCollectionEventListener.onInitializeCollection(DefaultInitializeCollectionEventListener.java:60)
at 
org.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:1705)
at 
org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:344)
at 
org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:86)
at 
org.hibernate.collection.AbstractPersistentCollection.readSize(AbstractPersistentCollection.java:109)
at org.hibernate.collection.PersistentBag.size(PersistentBag.java:222)
at 
org.jboss.portlet.forums.ForumsPortlet.fillShowTopicContext(ForumsPortlet.java:5851)
at org.jboss.portlet.forums.ForumsPortlet.doView(ForumsPortlet.java:425)
at org.jboss.portlet.JBossPortlet.doDispatch(JBossPortlet.java:230)
at org.jboss.portlet.JBossPortlet.render(JBossPortlet.java:217)
at org.jboss.portlet.JBossPortlet.render(JBossPortlet.java:360)
at 
org.jboss.portal.portlet.PortletContainer.invokeRender(PortletContainer.java:521)
at 
org.jboss.portal.portlet.PortletContainer.dispatch(PortletContainer.java:433)
at 
org.jboss.portal.server.app.ComponentInvocation.dispatch(ComponentInvocation.java:79)
at 
org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:140)
at 
org.jboss.portal.core.aspects.component.TransactionInterceptor.invoke(TransactionInterceptor.java:72)
at 
org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
at 
org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
at 
org.jboss.portal.core.aspects.component.HeaderInterceptor.invoke(HeaderInterceptor.java:50)
at 
org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
at 
org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
at 
org.jboss.portal.server.aspects.component.NavigationInterceptor.invoke(NavigationInterceptor.java:76)
at 
org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
at 
org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
at 
org.jboss.portal.server.aspects.component.CacheInterceptor.invoke(CacheInterceptor.java:167)
at 
org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
at 
org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
at 
org.jboss.portal.server.aspects.component.ModesInterceptor.invoke(ModesInterceptor.java:88)
at 
org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
at 
org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
at 
org.jboss.portal.server.aspects.component.WindowStatesInterceptor.invoke(WindowStatesInterceptor.java:87)
at 
org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
at 
org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
at 
org.jboss.portal.bridge.BridgeInterceptor.invoke(BridgeInterceptor.java:49)
at 
org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
at 
org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
at 
org.jboss.portal.portlet.aspects.component.SessionPostDispatchInterceptor.invoke(SessionPostDispatchInterceptor.java:65)


How come? at first it was working fine... and now it doesn't? Is there 
something wrong with the configuration? is there a way to make it stable? .. on 
first tim

[jboss-user] [JBoss Seam] - Re: @Redirect

2006-07-26 Thread chane
Thanks!

I'll give your 1st option a shot tomorrow to see what I can come up with.  I 
have not used the redirect filter explicetly before, so it'll be something new 
to learn about.

In the meantime below is something that I have been playing with.  Basically I 
am adding a new interceptor.  I believe I have acheived what I want for 
handling the exception and returning a navigation rule that is an error page.  
I have yet to use a FacesMessage on it; but I don't see why it shouldn't work.

I have not tested this extensively yet and would appreciate thoughts/concerns 
that anyone might see with my approach.

Thanks,
Chris

The annotation I use on the BusinessException and as a marker on the SFSB:

  | @Target(TYPE)
  | @Retention(RUNTIME)
  | @Interceptors(ExceptionInterceptor.class)
  | public @interface Redisplay {
  |String viewId() default "";
  | }
  | 

The Interceptor I am using (for now I have named it the same as the Seam 
Interceptor - except it is in a different package).  In fact I do most of the 
same stuff, except I had to add the rollback stuff which I grabbed from the 
SeamExceptionFilter.

I'm not sure if I need to add the 
SeamExceptionFilter.endWebRequestAfterException(request) functionality.

  | @Around( { ConversationalInterceptor.class, RemoveInterceptor.class, 
BijectionInterceptor.class })
  | public class ExceptionInterceptor{
  | 
  |private static final Log log = 
LogFactory.getLog(ExceptionInterceptor.class);
  | 
  |@AroundInvoke
  |public Object handleExceptions(InvocationContext invocation) throws 
Exception{
  |   boolean outermost = 
invocation.getContextData().get("custom.outermost.ExceptionInterceptor") == 
null;
  |   
invocation.getContextData().put("custom.outermost.ExceptionInterceptor", true);
  |   try {
  |  log.fatal("= Execute Exception Handler ==");
  |  return invocation.proceed();
  |   } catch(Exception e) {
  |  log.fatal("== Process Exception ===");
  | 
  |  if(outermost && FacesContext.getCurrentInstance() != null) {
  | if(e.getClass().isAnnotationPresent(Redisplay.class)) {
  |rollbackTransactionIfNecessary();
  |handled(e);
  |return e.getClass().getAnnotation(Redisplay.class).viewId();
  | }
  |  }
  |  throw e;
  |   }
  |}
  | 
  |private void rollbackTransactionIfNecessary(){
  |   try {
  |  if(Transactions.isTransactionActiveOrMarkedRollback()) {
  | log.info("killing transaction");
  | Transactions.getUserTransaction().rollback();
  |  }
  |   } catch(Exception te) {
  |  log.error("could not roll back transaction", te);
  |   }
  |}
  |
  |private static void handled(Exception e){
  |   getRequest().put("org.jboss.seam.exceptionHandled", e);
  |}
  | 
  |private static Map getRequest(){
  |   return FacesContext.getCurrentInstance().getExternalContext()
  | .getRequestMap();
  |}
  | 
  | }
  | 
  | 

Usage would be:

  | @Name("editor")
  | @Stateful
  | @Redisplay
  | public class Editor implements IEditor{
  |
  |public Fulfillment fulfill;
  | 
  |@Begin
  |public String save(){
  |   //persist logic  //throws BusinessException
  |   return "save";
  |}
  | }
  | 

Simple exception class

  | @Redisplay(viewId="exceptionErrorMessage")
  | public class BusinessException extends RuntimeException{
  |private static final long serialVersionUID = -4422447214761623238L;
  | 
  |public BusinessException(){
  |   super("Generic Business Exception");
  |}
  |
  |public BusinessException(String msg){
  |   super(msg);
  |}
  |
  | }
  | 

simple navigation rule

  | 
  |   
  | exceptionErrorMessage 
  | /error.xhtml
  |  
  | 
  | 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961178
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Remoting with Clickable Lists

2006-07-26 Thread peteroyle
Come to think of it @DataModel and @DataModelSelection seem to be just fancy 
wrappers for JSF's DataModel. If so then simply using something like Ajax4JSF's 
a4j:commandLink tag (instead of a h:commandLink) would probably work. I'll try 
this later tonight and report how it goes.

Pete.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961177
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Javassist user questions] - javassist can't work with jdk1.6

2006-07-26 Thread drymartine
The class which I modified with javassist works normally under JDK 1.5, but it 
throws exception as below under JDK 1.6 beta2. 

Caused by: java.lang.ClassFormatError: Illegal class modifiers in class 
test/MyClass: 0x621
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
4)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
4)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961176
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: @Redirect

2006-07-26 Thread CptnKirk
I can think of a few things you might want to try.

1. Use @Redirect, the redirect filter and the facesMessages component combinded 
with a  in your error.xhtml.

2. If that doesn't work (ask Gavin why not, as I'm pretty sure it should), you 
can outject an error message string and then use it in your error.xhtml.

3. You can have a couple generic error pages.  data_error.xhtml, 
security_error.xhtml, etc based on common exception types.  In this scenario 
you wouldn't get truely dynamic content, but would be able to but up a nice 
message telling the user that a data error has occurred, the error has been 
logged and to try again in a few minutes.  Which is just about all you can do 
when something like this happens anyway.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961175
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: @PersistenceContext annotation in an abstract superclass

2006-07-26 Thread [EMAIL PROTECTED]
It is valid.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961174
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: Cannot download using Firefox

2006-07-26 Thread PeterJ
I found the culprit.  There is an extension named "Sourceforge Direct 
Download".  If you do not configure the extension (it takes a preferred mirror 
for downloads) then you get the behavior I mentioned in my original post.  If 
you do configure it, you get the normal download page from which you can select 
a mirror.  Sounds like a worthless extension to me, it's gone. 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961173
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Intalio vs jBPM

2006-07-26 Thread metabyte
Thank you Kukeltje,

>From my understanding, with jBPM you need to custom code in Java right? and 
>support for BPEL, which is becoming a de-facto standard, is beta for the time 
>being. How does this help align IT to business strategy ? 
Also, can you please give more details about your xslt usage?

Thanks

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961172
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - @Redirect

2006-07-26 Thread chane
I am trying to display an error page when an exception is thrown, specifically 
during a business method.  I have tried the Redirect and HttpError.

The Redirect is the closest; but if I'm not mistaken this is a browser 
redirect.  I am wondering if it is possible to have the redirected to error 
page display a dynamic error message?

Ideally I would be able to display FacesMessages on the error.xhtml page, which 
I don't think I can do in the @Redirect case.  Any thoughts?

The latest thread I found didn't really have a resolution:  
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=82710

Thanks,
Chris

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961171
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: EAR deployment

2006-07-26 Thread ZeddMaxim
I resolved the issue.  Yes, I had the seam.properties and all other necessary 
config files / info set up properly.  The problem was I had used the JBoss 
4.0.4GA installer straight off the web site, and not the JEMS installer as the 
Getting Started page dictates.  Also, I had included several of the support 
jars that accompany the Seam 1.0.1GA release in the deployed EAR.  All of this 
combined screwed something up and the seam listener wasn't intercepting the 
faces requests.  Once I installed the correct JBoss version and stripped the 
ear down to the bare minimum jars, things started working correctly.  Thanks 
for responding.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961170
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - @PersistenceContext annotation in an abstract superclass

2006-07-26 Thread [EMAIL PROTECTED]
Hello All,

I know that the JBoss EJB3 implementation allows me to use the 
@PersistenceContext annotation in an abstract superclass.

For example:

public abstract class MyAbstractSuperclass implements MyInterface {

@PersistenceContext()
EntityManager entityManager;

// Other code which I have omitted 

}

Can anyone point me to EJB3 documentation which specifies that using the 
@PersistenceContext in an abstract superclass is valid according to the 
specification and will therefore be portable across application servers? 

Many thanks,
Bruce.


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961169
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Session bean inheritance

2006-07-26 Thread gus888
Thank you VERY MUCH, bfo81. The "avoiding DRY" is great topic. 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961168
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Add to the list of default Interceptors

2006-07-26 Thread chane

Is there a mechanism to add a new default interceptor to Seam (other than 
modifying the list of interceptors in the Component.initDefaultInterceptors() 
method)?

Thanks,
Chris

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961167
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Remoting with Clickable Lists

2006-07-26 Thread sbryzak2
I'm afraid I don't know how the @DataModelSelection magic works, but the 
remoting framework will only allow you to invoke a Seam component RPC-style, so 
anything you want to pass up will need to be expressed as a method parameter.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961166
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam - iterator tag?

2006-07-26 Thread dbatcn
I looked at the link that Pete pointed out and the way I read Gavin's comment 
in there I didn't see why @DataModelSelection shouldn't work.  If true, 
enlightenment appreciated.

Anyway, what I'm trying to do is have a page that uses nested iteration to let 
a user operate on both sides of a many-to-many relationship.  I'm inclined to 
agree with Gavin that "I'm not convinced that h:dataTable isn't a little 
over-engineered for what it does ;-)".  In particular for my application, I 
don't want the HTML table from .

I've created an abstracted little Seam app that gets at what I'm trying to do: 
iterate over an iteration and be able to do an operation over either the inner 
or outer iteration.  When pressing the "rename" buttons, the value that I 
expect to be injected is not there (the log.error() calls below are triggered). 
 I believe that this is a self-contained, compilable, runnable, and suitable 
small abstraction for a test case or bug report, if that's helpful.  Code goes 
into a package called com.orgmob.play .

Is this a bug or can anybody say how to do this?

As always, pointing out bugs of mine and/or pointers to existing explanation 
humbly and gratefully appreciated.

Foo.java:


  | package com.orgmob.play;
  | 
  | import java.io.Serializable;
  | import java.util.ArrayList;
  | import java.util.HashSet;
  | import java.util.List;
  | import java.util.Set;
  | 
  | import javax.persistence.CascadeType;
  | import javax.persistence.Column;
  | import javax.persistence.Entity;
  | import javax.persistence.GeneratedValue;
  | import javax.persistence.Id;
  | import javax.persistence.JoinColumn;
  | import javax.persistence.JoinTable;
  | import javax.persistence.ManyToMany;
  | import javax.persistence.Table;
  | import javax.persistence.Transient;
  | 
  | import org.jboss.seam.annotations.Name;
  | import org.jboss.seam.annotations.datamodel.DataModel;
  | 
  | @Entity
  | @Name("foo")
  | @Table(name="FOOS")
  | public class Foo implements Serializable {
  | 
  | private long   id;
  | private String name;
  | private Set bars = new HashSet();
  | 
  | @Id
  | @Column(name="FOO_ID")
  | @GeneratedValue
  | public Long getId() {
  | return id;
  | }
  | public void setId(Long id) {
  | this.id = id;
  | }
  | 
  | @Column(name="NAME")
  | public String getName() {
  | return name;
  | }
  | public void setName(String groupname) {
  | this.name = groupname;
  | }
  | 
  | @ManyToMany(cascade=CascadeType.PERSIST)
  | @JoinTable(name="FOO_BAR",
  |[EMAIL PROTECTED](name="FOO_ID")},
  |[EMAIL PROTECTED](name="BAR_ID")}) 
  | public Set getBars() {
  | return bars;
  | }
  | public void setBars( Set bars ) {
  | this.bars = bars;
  | }
  | 
  | @Transient
  | @DataModel(value="barList")
  | public List getBarList() {
  | return new ArrayList( bars );
  | }
  | 
  | @Override
  | public String toString() {
  | return "Foo[" + name + "]";
  | }
  | 
  | }
  | 
  | 


Bar.java:


  | package com.orgmob.play;
  | 
  | import java.io.Serializable;
  | import java.util.HashSet;
  | import java.util.Set;
  | 
  | import javax.persistence.CascadeType;
  | import javax.persistence.Column;
  | import javax.persistence.Entity;
  | import javax.persistence.GeneratedValue;
  | import javax.persistence.Id;
  | import javax.persistence.ManyToMany;
  | import javax.persistence.Table;
  | 
  | import org.jboss.seam.annotations.Name;
  | 
  | @Entity
  | @Name("bar")
  | @Table(name="BARS")
  | public class Bar implements Serializable {
  | 
  | private long   id;
  | private String name;
  | private Set foos = new HashSet();
  | 
  | @Id
  | @Column(name="BAR_ID")
  | @GeneratedValue
  | public Long getId() {
  | return id;
  | }
  | public void setId(Long id) {
  | this.id = id;
  | }
  | 
  | @Column(name="NAME")
  | public String getName() {
  | return name;
  | }
  | public void setName(String groupname) {
  | this.name = groupname;
  | }
  | 
  | @ManyToMany(cascade=CascadeType.PERSIST,mappedBy="bars") 
  | public Set getFoos() {
  | return foos;
  | }
  | public void setFoos( Set foos ) {
  | this.foos = foos;
  | }
  | 
  | @Override
  | public String toString() {
  | return "Bar[" + name + "]";
  | }
  |
  | }
  | 
  | 


FubarManager.java:


  | package com.orgmob.play;
  | 
  | import javax.ejb.Local;
  | 
  | @Local
  | public interface FubarManager {
  | public void find();
  | public void stop();
  | public void createFoo();
  | public void commitFoo();
  | public void commitBar();
  | public void destroy();
  | public void delete();
  | }


FubarManagerBean.java:


  | package 

[jboss-user] [JBoss jBPM] - Re: out of mmory error

2006-07-26 Thread kukeltje
btw, the numbers 256 and 1024 are just some I took from an example. You could 
start a little lower and see what happens

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961164
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: out of mmory error

2006-07-26 Thread kukeltje
permgen space issues can sometimes be solved by setting additional params:

-XX:PermSize=256m

-XX:MaxPermSize=1024m

but it depends on the jvm you are using... 

Another thing is that the error shows in jbpm, but the memory (ab)usage can be 
caused by other apps ass well if they are running on the same machine.

The scheduler running every 5 seconds is normal. It looks for timers that need 
to be fired.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961163
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - out of mmory error

2006-07-26 Thread asubu
Hello All,
I downloaded the jbpm-starters-kit-3.1. I was able to create my own process and 
upload it to the server. The server was running fine for a day then all of a 
sudden started throwing the exception shown below:

11:12:49,788 ERROR [CommandExecutorThread] java.lang.OutOfMemoryError: PermGen 
space
11:12:54,788 DEBUG [JbpmContextInfo] creating jbpm context with service 
factories '[message, scheduler, logging, persistence, authentication]'
11:12:54,788 DEBUG [JbpmContext] creating JbpmContext
11:12:54,788 DEBUG [DbPersistenceServiceFactory] creating persistence service
11:12:54,788 DEBUG [DbPersistenceService] creating hibernate session
11:12:54,788 DEBUG [DbPersistenceService] beginning hibernate transaction
11:12:58,898 DEBUG [CommandExecutorThread] command 'null' threw exception. 
rolling back transaction
java.lang.OutOfMemoryError: PermGen space

At this stage all the jbpm has is the websale and my own created process.

My java options are set the following:
set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m
Has anyone experienced such a problem?
Also I see a scheduler constantly running every 5 seconds. What does this do?
Regards,
Subu 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961161
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: ManyToMany relationship removal example

2006-07-26 Thread scotttam
Below are my two entities, Campaign and AdSlot with the relationship stored in 
campaign_adslot_xref. (all the other info has been removed for brevity)

One of the older positings mentioned something about ensuring that both equals 
and hashCode are implemented. I am not implementing those methods, could that 
be it? 


  | 
  | @Entity
  | @Table(name="campaign")
  | public class Campaign implements Serializable {
  | private Set   adSlots;
  | 
  | @ManyToMany(cascade = {CascadeType.ALL}, fetch = FetchType.EAGER, 
mappedBy="campaigns")
  | public Set getAdSlots() {
  |   return adSlots;
  |}
  | 
  | public void setAdSlots(Set adSlots) {
  | this.adSlots = adSlots;
  | }
  | }
  | 
  | @Entity
  | @Table(name="ad_slot")
  | public class AdSlot implements Serializable {
  | private Set campaigns;  
  | 
  | @ManyToMany(cascade = {CascadeType.ALL}, fetch = FetchType.LAZY)
  | @JoinTable(name = "campaign_adslot_xref",
  |joinColumns = {
  |   @JoinColumn(name = "ad_slot_id")
  |   },
  |inverseJoinColumns = {
  |   @JoinColumn(name = "campaign_id")
  | }
  |)
  |public Set getCampaigns()
  |{
  |   return campaigns;
  |}
  | 
  |public void setCampaigns(Set campaigns) {
  |   this.campaigns = campaigns;
  |}
  | }
  | 

And here is the code in my backing bean where I try to remove all the 
associations from this particular campaign:


  | 
  | 
  | Setadslots = currentCampaign.getAdSlots();
  | 
  | if (null != adslots && adslots.size() > 0) {
  | 
  | for (AdSlot as : adslots) {
  | 
  | as.getCampaigns().remove(currentCampaign);
  | 
  | }
  | 
  | }
  | 
  | 
  | 
  | currentCampaign.getAdSlots().clear();
  | 
  | Set ads = currentCampaign.getAds();
  | 
  | if (null != ads && ads.size() > 0) {
  | 
  | for (Ad a : ads) {
  | 
  | a.getAdSlots().clear();
  | 
  | }
  | 
  | }
  | 
  | 


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961160
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Problem using SequenceGenerator

2006-07-26 Thread bryan_castillo
I'm not sure whats going on here.  I'm trying to create an Entity bean for a 
pre-existing table in DB2 that uses a sequence for creating a new primary key.

Here is my annotated getter method.

@Id
  | @GeneratedValue(strategy=GenerationType.SEQUENCE, 
generator="VNDR_ID_SEQ")
  | @SequenceGenerator(name="VNDR_ID_SEQ", sequenceName="VRAP.VNDR_ID_SEQ")
  | @Column(name="VNDR_ID")
  | public int getId() {
  | return id;
  | }


When I try to insert a new object, I see in the logs that it gets a value from
the sequence using the right sql with a value of 556.

anonymous wrote : 2006-07-26 16:35:02,819 INFO  [STDOUT] Hibernate: values 
nextval for VRAP.VNDR_ID_SEQ
  | 2006-07-26 16:35:02,869 DEBUG [org.hibernate.id.SequenceGenerator] Sequence 
identifier generated: 556

Later in the logs it prints the values of the fields before inserting the 
object, and the id field has a value of 27800.


anonymous wrote : 2006-07-26 16:35:02,899 DEBUG [org.hibernate.pretty.Printer] 
bcc.entity.Vendor{createUserId=IS94901, updateTime=null, createTime=16:35:02, 
ndc5Nb=5150, createDate=26 July 2006, updateUserId=IS94901, updateDate=null, 
name=BryanV, id=27800, subsidiaryOf=Castillo Corp.}


Did I set up my annotations wrong?  I expected to have the id set to 556.



anonymous wrote : Snippet from logs:
  | --
  | 
  | 
  | 
  | 2006-07-26 16:35:02,819 INFO  [STDOUT] Hibernate: values nextval for 
VRAP.VNDR_ID_SEQ
  | 2006-07-26 16:35:02,869 DEBUG [org.hibernate.id.SequenceGenerator] Sequence 
identifier generated: 556
  | 2006-07-26 16:35:02,869 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to 
close PreparedStatement (open PreparedStatements: 1, globally: 1)
  | 2006-07-26 16:35:02,869 DEBUG [org.hibernate.jdbc.ConnectionManager] 
aggressively releasing JDBC connection
  | 2006-07-26 16:35:02,869 DEBUG [org.hibernate.jdbc.ConnectionManager] 
releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open 
ResultSets: 0, globally: 0)]
  | 2006-07-26 16:35:02,869 DEBUG [org.hibernate.id.SequenceHiLoGenerator] new 
hi value: 556
  | 2006-07-26 16:35:02,869 DEBUG 
[org.hibernate.event.def.AbstractSaveEventListener] generated identifier: 
27800, using strategy: org.hibernate.id.SequenceHiLoGenerator
  | 2006-07-26 16:35:02,889 DEBUG 
[org.hibernate.event.def.AbstractFlushingEventListener] processing flush-time 
cascades
  | 2006-07-26 16:35:02,899 DEBUG 
[org.hibernate.event.def.AbstractFlushingEventListener] dirty checking 
collections
  | 2006-07-26 16:35:02,899 DEBUG 
[org.hibernate.event.def.AbstractFlushingEventListener] Flushed: 1 insertions, 
0 updates, 0 deletions to 1 objects
  | 2006-07-26 16:35:02,899 DEBUG 
[org.hibernate.event.def.AbstractFlushingEventListener] Flushed: 0 
(re)creations, 0 updates, 0 removals to 0 collections
  | 2006-07-26 16:35:02,899 DEBUG [org.hibernate.pretty.Printer] listing 
entities:
  | 2006-07-26 16:35:02,899 DEBUG [org.hibernate.pretty.Printer] 
bcc.entity.Vendor{createUserId=IS94901, updateTime=null, createTime=16:35:02, 
ndc5Nb=5150, createDate=26 July 2006, updateUserId=IS94901, updateDate=null, 
name=BryanV, id=27800, subsidiaryOf=Castillo Corp.}
  | 
  | 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961159
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JNDI/Naming/Network] - HELP: Looking up to java:comp namespace problem!!

2006-07-26 Thread fla83tn
Hi to all!
I hope someone can help me!
I've read a lot of threads similar to mine, but none solved my question..

In my project, as specified by socumentation, only Global JNDI Namespaces are 
visible from remote client., whereas java: are not.
But now, I would try to access from my Message-driven bean to the Java Mail 
Service of JBoss, located ad java:/Mail. 

>From what I read I must istantiate a new void Initial context and lookup to 
>java:comp/env/mail/Mail, but if I do so it seems that no-lookup can be done!!
In fact this is the error output, that is given when i lookup also to "":


  | javax.naming.NoInitialContextException: Need to specify class name in 
environment or system property, or as an applet parameter, or in an application 
resource file:  java.naming.factory.initial
  | at 
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:645)
  | at 
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247) .
  | .
  | 

Why??

So, I turn around the problem binding the javaMail service to Mail (I moved its 
name to the global JNDI namespace). 
If I do so now I can lookup the resource, but now I get an error when I try to 
bound it because i do 


  | session = (javax.mail.Session)PortableRemoteObject.narrow(
  |   c.lookup("Mail"), javax.mail.Session.class);
  | 

and the system give me the sequent error:


  | Exception in thread "main" java.lang.ClassCastException...
  | ...
  | Caused by: java.lang.ClassCastException: Class javax.mail.Session is not a 
valid remote interface
  | at 
com.sun.corba.se.impl.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:225)
  | ... 3 more
  | 

I think that even if I solve the first problem remains out the second...Does 
anybody know hot to get it out?

Please someone help me!!

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961157
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: JBoss, Tomcat & ActiveX

2006-07-26 Thread achitre
I fixed this issue.  The problem was that, my URL contained query parameters.  
When I removed them, the request started coming in to JBoss.

I guess the reasoning is that, if I have query parameters JBoss treats that as 
a GET request; otherwise it treats that as a POST request.

Seems like Weblogic doesn't care.

Anyway, thought I should share this info.  Thanks.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961156
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Ripping out identity component

2006-07-26 Thread kukeltje
m_ok,

What you did is not wrong, it is just another way of doing assignments. I 
myself do not want to have to add these handlers to every task. That is what we 
are focussing on and that is what making this configurable is for.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961155
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Remote EJBs

2006-07-26 Thread ptmain
That was fast!  I found the section on interceptors in the Seam reference, but 
that section seems to be describing interceptors that happen before a 
particular action is executed.

I'm assuming this means that I need to read up on the EJB3 spec some more to 
find out about client-side interceptors.

Man, I have a lot of catching up to do after two years of maintaining a legacy 
app!


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961152
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Using encrypted db password with the embedded container

2006-07-26 Thread [EMAIL PROTECTED]
it won't work yet on embedded container.  We still need to port this 
functionality to the JBoss 5 stack (which is what E-EJB3 *really* is)

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961151
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Remote EJBs

2006-07-26 Thread [EMAIL PROTECTED]
OK, so I have implemented client-side interceptors for Seam. All you do is 
write a normal Seam interceptor (using @Interceptors as a meta-annotation),
and then annotate the actual interceptor class @Interceptor(type=CLIENT).

That is a good place to handle stuff like remote exceptions.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961150
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Using encrypted db password with the embedded container

2006-07-26 Thread ch333
I followed the instructions on this wiki page to set up encrypted db password 
in my *-ds.xml file on Jboss 4.0.4 and it worked.

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

Has anyone tried to do the same thing with the embedded container and got it to 
work?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961149
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: booking example and db2

2006-07-26 Thread goik
Thanks a lot! I read SUN's j2ee 1.5 introduction, changing the annotation to 
javax.ejb.TransactionAttributeType.REQUIRED thus avoiding a deadlock. I still 
wonder about impacts to the business logic, Maybe reading further will clarify 
my open questions.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961148
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: ManyToMany relationship removal example

2006-07-26 Thread epbernard
you probably remove it from the non managed side 'ie the mappedBy side' only

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961147
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Overriding the generated value inherited from a mapped s

2006-07-26 Thread epbernard
nope this is not possible

PS entity and mappedsuperclass on the same class does not make sense

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961146
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: @Out Question

2006-07-26 Thread CptnKirk
@Out always exports a value (or throws an exception if required=true).  There 
isn't a way to tell it not to.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961145
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Tryed searching for this issue, but haven't found anythi

2006-07-26 Thread [EMAIL PROTECTED]
Emmanuel, that's just silly. You can't reasonably expect people to actually 
read freely-available documentation about a something before blogging it to the 
world. 

;-)

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961144
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Tryed searching for this issue, but haven't found anythi

2006-07-26 Thread dserodio
"epbernard" wrote : In the Hibernate reference documentation...
I see that the reference documentation (which is great, BTW) contains this 
info, but would it hurt to add it to the javadoc too?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961143
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Tryed searching for this issue, but haven't found anythi

2006-07-26 Thread epbernard
In the Hibernate reference documentation

anonymous wrote : Note that load() will throw an unrecoverable exception if 
there is no matching database row. If the class is mapped with a proxy, load() 
just returns an uninitialized proxy and does not actually hit the database 
until you invoke a method of the proxy. This behaviour is very useful if you 
wish to create an association to an object without actually loading it from the 
database. It also allows multiple instances to be loaded as a batch if 
batch-size is defined for the class mapping.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961142
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Ripping out identity component

2006-07-26 Thread m_ok
Forgot to use the url tags:

http://www.jboss.com/index.html?module=bb&op=viewtopic&t=72818

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961141
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Ripping out identity component

2006-07-26 Thread m_ok
If you look at my post over there:

http://www.jboss.com/index.html?module=bb&op=viewtopic&t=72818

I explain how I implemented assignment to use the user/role info from our app. 

We're not using swinlanes though and not the example webap either.

Also, this was more than 8 months ago so I don't know how much has changed 
since 3.0 on that front.

I'd also be happy to get opinions on wether this is a good way to do it, if you 
see any potential problems, etc. Thanks!

(p.s. A little note on the forum search. A search for all posts by author 
"m_ok" did not return the above post. Strange...)



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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961140
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: ClassCastException accessing EJB3 from portlet

2006-07-26 Thread cuoz
Ok, I made progress and got it to "work", but it's not 100% of what I was 
hoping for.  Here's what I did, maybe there is a way to improve on it to obtain 
my ultimate goal.

1.  I packaged all of the applications into their own ear files, with 
loader-repository entries in jboss-app.xml.
2.  I switched from local interfaces to remote
3.  I needed to include the server classes (ClientEJB) as well as the client 
classes with the web application.
4.  I tested this setup with a portlet and also a full webapp.  I was able to 
hot deploy any piece(s) that I wanted without affecting operation of the others.

The only drawback is that I needed to have all the server classes in the client 
applications.  I'm guessing that I didn't have to do this with my EJB2.1 
application because I was actually dealing with proxies for the home & 
local/remote interfaces.

At some point I'll test to see if I actually need the loader-repository entries 
or not.

Thanks again for the assistance.  Let me know if you have better ideas for how 
to accomplish what I'm looking for.

Gary.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961138
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: missing

2006-07-26 Thread kukeltje
Why would it be useful? Maybe I miss something, but if you could elaborate on 
this, we can see if it is indeed a musthave, couldhave,  and what the 
priority is.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961137
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Ripping out identity component

2006-07-26 Thread kukeltje
Extending the ExpressionAssignmentHandler is indeed one thing to implement. 
Replacing the existing one is another. 

The reason it was probably not answered may have to do that if the source is 
used (a very good source of information), you will see a limited number of 
references and a conclusion could be very easy to draw:

Currently, from what I FOUND, it is not configurable, at least not without 
adapting the source. The file org.jbpm.jpdl.xml.JpdlXmlReader contains a fixed 
reference to the default ExpressionAssignmentHandler : 
assignmentDelegation.setClassName("org.jbpm.identity.assignment.ExpressionAssignmentHandler");

so it could be that changing this, recompiling the code and running it, solves 
it. Give it a go

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961136
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Ripping out identity component

2006-07-26 Thread j1a2o
Hmmm. If I extend ExpressionAssignmentHandler as suggested in the User Guide, 
how do I get jBPM to use my new one by default if I have an assignment 
expression in my process XML?

(I believe this question has been asked before in the forums with no response.)

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961134
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Re: Can you have an app run every 5 minutes?

2006-07-26 Thread hamffjs
I don't know if it would be the best approach, but you do set up a Servlet that 
loads on startup and schedules a TimerTask instance using a Timer instance.

For example, in the init method of your Servlet

public void init() throws ServletException {
  Timer timer = new Timer();
  // This class needs to extend the abstract TimerTask class
  // The code to be executed needs to put in the public void run() method
  RepeatableTask repeatableTask = new RepeatableTask();

  long interval = 1000 * 60 * 5; // 5 minutes in millis

  // this will cause the task start immediately and repeat every 5 minutes
  timer.scheduleAtFixedRate(repeatableTask, 0, interval);  
}

Hope that helps.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961132
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - MJB / XDoclet in JBoss

2006-07-26 Thread hamffjs
Hello,

I hope everyone is doing well today.  I have a question about MDB deployment 
configurations.  I am using Xdoclet to generate the ejb-jar.xml and jboss.xml 
files needed for deployment.

Using XDoclet, are there any annotations or ant tasks I can use indicate the 
desired size of the MDB pool?  For example, I want only one MDB listening on 
the designated queue at all times.  If I cannot use XDoclet to do this, how can 
I edit the deployment descriptors manually to achieve this effect?

I don't know if this will help, but here are the current XDoclet annotations 
that I am using.

/**
 * @ejb.bean name="IntegrationConsumer"
  displayname="TestConsumerMDB"
 *   acknowledge-mode="Auto-acknowledge"
 *   destination-type="javax.jms.Queue"
 *   subscription-durability="NonDurable" 
  transaction-type="Container"
 * 
 * @jboss.destination-jndi-name
   name="queue/ExpressReportsIntegrationQueue"
 */
public class IntegrationConsumerBean implements MessageDrivenBean,
MessageListener {

Thank you very much for your time and assistance.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961131
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Handling process definitions

2006-07-26 Thread kukeltje
hmmm... according to http://jira.jboss.org/jira/browse/JBPM-617 it should work. 
I tried this with 3.2 head were it should also work, but there is indeed no 
processdefinition.xml in the db. 

I checked the implementation in org/jbpm/jpdl/par/* files and it seems it is 
only partially implemented. I reopened the above issue. 

Vote for te issue if you want to have it fixed

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961130
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - @Out Question

2006-07-26 Thread Holger Prause
Hello,


i wrote a register wizard bean where u can register member.

How can i tell @Out that it should only export values into context when the 
value is not null?

I found out that @Out always export a value even when null.

//export the tester as our logged in user
@Out(scope=ScopeType.SESSION, required=false)
private Customer user;

The thing is when i reuse my wizard bean for edit action(code above) , the 
logged in user  will be exported as a null value.

So i changed to code below,which will fix the problem , but i am still 
wondering if can tell @Out that it should only export non null values

@In(required=false)
@Out(scope=ScopeType.SESSION, required=false)
private Customer user;


Thank u very much hope i could describe what i am searching for ^^

Bye,

Holger




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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961129
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Ripping out identity component

2006-07-26 Thread kukeltje
Yep, this is exactely the answer to your question how to rip it out. It does 
not answer the probably next question on how to implement your own... 

Relying on the appserver for logging in etc... is indeed simple. The identity 
component does a little more. It is used in the default assignment expressions. 
So if you delete it, you have to build assignment handlers if things are needed 
OR implement your own identity component with the same api as the jbpm identity 
component and activate it in some way (I have no idea how to)

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961128
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Advanced Documentation] - Re: Invoking Ejb of Jboss 3.2.3 from JBoss 4.0.2

2006-07-26 Thread jjtang
I'm using latest jboss4 calling an ejb on 3.2.7, and I'm still getting the 
serialization problem.

java.io.InvalidClassException: org.jboss.util.id.GUID; local class 
incompatible: stream classdesc serialVersionUID = 6926421946503004889, local 
class serialVersionUID = 3289509836244263718] 

Any help?


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961127
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - seam and process instance question

2006-07-26 Thread jbpmndc
This is more of a SEAM question, but if anyone has an answer here I would 
appreciate it.

In the dvd example a process instance is retrieved using an entity bean's id. 
Is jBPM aware of all entity beans or how is it aware that there is a process 
that has an orderId of x value?


ProcessInstance pi = (ProcessInstance) context.getSession()
  |   .createQuery("select pi from LongInstance si join 
si.processInstance pi " +
  |   "where si.name = 'orderId' and si.value = 
:orderId")
  |   .setLong( "orderId", order.getOrderId() )
  |   .uniqueResult();  


Thread here:

http://www.jboss.com/index.html?module=bb&op=viewtopic&t=87299

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961124
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Ripping out identity component

2006-07-26 Thread jbpmndc
in hibernate.cfg.xml follow the directions to comment out the user,group and 
membership objects.   

Then, you can just delegate the security to your application container and 
manage access using the container's built in security mechanism.

A lot can be discussed about when you should do this and when you should not.  
It seems to me that because jbpm is really just a jar, a lot of time you can 
rely on the app server for security.
  
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961123
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - How to get SOAP message inside a EJB layer

2006-07-26 Thread tallesbrito
I'm exposing my EJB session bean at a webservice using JBossWS, exists a way to 
get SOAP message data from EJB directly inside session bean implementation code?


Thanks,
Talles

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961122
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: s:link does not work after JBoss restart

2006-07-26 Thread [EMAIL PROTECTED]
It goes in the application scope so no, it is not replicated.

Two possible solutions:

(1) stick stuff in jboss cache (that way it gets replicated)
(2) require that all these actions be declared, so we can init the list of 
allowed actions at startup

Neither of these options is great.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961120
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Security Handlers on JBoss WS-Security

2006-07-26 Thread tallesbrito
How I could set envirnoment handlers (such like in XWS-Security) to execute 
security operations on "JBoss WS-Security"?

Thanks,
Talles

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961119
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Outjection of previous value: selectOneMenu : One 2 Many

2006-07-26 Thread kryptontri
When I modifiy the code, just when I think I have cracked it, I get


  | java.lang.IllegalStateException: Client-id : _id0 is duplicated in the 
faces tree.
  | at 
org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:241)
  | at 
org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:255)
  | at 
org.apache.myfaces.application.jsp.JspStateManagerImpl.saveSerializedView(JspStateManagerImpl.java:204)
  | at 
org.jboss.seam.jsf.SeamStateManager.saveSerializedView(SeamStateManager.java:46)
  | 

I'm trying all sorts of ways, I am setting the @In Rate to be null upon 
insertion, but this value still shows up in the selectItem value, 

I have tried:
- upon insertion, removing the rate in the context 


  |   private void clearRatesOnDisplay() {
  | Contexts.getPageContext().remove("rate");
  | //Contexts.getPageContext().remove("ratesManager");
  | rate = null;
  | selectedRate = null;
  | }
  | 

changed the javabean that provides the values in the menu to EVENT


  | @Name("ratesManager")
  | @Interceptors(SeamInterceptor.class)
  | @Scope(ScopeType.EVENT)
  | public class Rates {
  | public Rates() {
  | log.info("** Rates (RatesManager) instantated **");
  | }
  | ...
  | 

but stil no luck :-| 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961118
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: ClassCastException accessing EJB3 from portlet

2006-07-26 Thread unibrew
So, you can have Client.class just in war files. ejb3 archive could still be 
hot-deployed at any time as far as the class still implements Client interface. 
Call-by-value has nothing with it because if you deploy Client.class in 
different packages then it has got different classloaders which causes that 
they are not the same class for JVM and cannot be casted.

Sohil gave an idea to move classes from your lib jar to WEB-INF/classes and 
check whether it works.

Moreover, we don't see any application.xml in this ear definition. Maybe you 
could achieve loading lib jar only once by defining it there.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961117
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Re: Running Jboss in linux

2006-07-26 Thread PeterJ
You should either change the owner for the entire JBoss directory tree and 
files to the non-root user (i.e., same as if you installed using that user), or 
change the permissions on all the files/directories.  The first option is 
probably preferred over the second.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961115
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Outjection of previous value: selectOneMenu : One 2 Many Rel

2006-07-26 Thread kryptontri
JBoss 4.0.4.GA
JBoss Seam 1.0.1 GA

Hi, I am really stuck and cant progress :-(
I have a page called viewRatePage, which allows
users to add Rate objects to their profile. When
I add a new rate, the selectOneMenu items never
clear on the refresh when a new rate is added,
it contains the old selection of the previous
rate. I do force a null on the injected rate, but
this has no effect. Please please can anyone help?
This issue affects other pages which have the same
relationship, ie adding items to a list.

These are my previous posts:
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=87408

This is my view:


  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | Empty Rates
  | 
  | 
  |  
  | 
  |  
  |   
  |   
  | 
  | 
  |   
  |   
  | 
  | 
  |   
  |   
  | 
  | 
  |   
  |   
  | 
  | 
  | Action
  | Delete
  | 
  | 
  |  
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | Duration:
  | 
  | Unit:
  | 
  | Currency:
  | 
  | Cost:
  | 
  | 
  | 
  | 
  |  
  | 
  | 
  | 
  | 
  |   
  | 
  | 
  | 

Any my Rate object that gets instantiated is an entity bean:


  | @Entity
  | @Name("rate")
  | @Scope(EVENT)
  | public class Rate implements Serializable {
  | 
  | protected int Id = 0;
  | 
  | protected int duration = 0;
  | protected String unit = null;
  | protected String currency = null;
  | protected int cost = 0;
  | protected RatesPage ratesPage = null;
  | 
  | @Id
  | @GeneratedValue(strategy = GenerationType.AUTO)
  | public int getId() {
  | return Id;
  | }
  | 
  | public void setId(int id) {
  | Id = id;
  | }
  | ... // for brevity
  | 

My session bean behind the page is (with unnecessary methods removed):


  | @Stateful
  | @Scope(ScopeType.SESSION)
  | @Name("ratesPageManager")
  | @Interceptors(SeamInterceptor.class)
  | @LoggedIn
  | @TransactionAttribute(REQUIRES_NEW)
  | public class RatesPageManagerBean implements RatesPageManager {
  | 
  | @In
  | @Out
  | @Valid
  | private User user;
  | 
  | @In
  | @Out
  | @Valid
  | private Profile profile;
  | 
  | @In(required = false)
  | @Out(required = false)
  | @Valid
  | private RatesPage ratesPage;
  | 
  | @PersistenceContext
  | private EntityManager em;
  | 
  | @In
  | private transient FacesContext facesContext;
  | 
  | @DataModel
  | private List rates = new ArrayList();
  | 
  | 
  | @DataModelSelection
  | private Rate selectedRate;
  | 
  | @In(required = false)
  | private Rate rate;
  | 
  | 
  | //public Rate getRate() {
  | //return newRate;
  | //}
  | 
  |// public void setRate(Rate rate) {
  |// this.newRate = rate;
  |// }
  | 
  | 
  | 
  | @IfInvalid(outcome = REDISPLAY)
  | public String create() {
  | if (profile.getRatesPage() == null) {
  | em.persist(ratesPage);
  | profile.setRatesPage(ratesPage);
  | profile = em.merge(profile);
  | ratesPage = em.merge(ratesPage);
  | em.refresh(user);
  | return "viewRatesPage";
  | } else {
  | facesContext.addMessage(null, new FacesMessage("RatesPage 
already exists"));
  | 

[jboss-user] [EJB 3.0] - Re: Tryed searching for this issue, but haven't found anythi

2006-07-26 Thread dserodio
"[EMAIL PROTECTED]" wrote : How is it a great blog post when the guy totally 
missed the entire reason why load() behaves like it does?
Wouldn't it help if you added the "reason why load() behaves like it does" to 
the Session javadocs?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=396
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - jar in .sar lib : bug or normal behavior ?

2006-07-26 Thread Antoine_h
Hello,

I have a strange behaviour.
with Jboss 4.0.4 and Portal 2.4.0 CR2.

I deploy my portal in a main XXX.sar folder, with a XXX.sar/lib sub folder.
This is for the services (like my own url mapper like 
portal:commandFactory=CMSObject, etc...) of my portal, and also there are some 
.war sub folders, for the portlets.

this is like the main jboss-portal.sar with the lib folder and all the .war 
folder of jboss portal.

When I put the jar file : portal-common-lib.jar
in the deploy/XXX.sar/lib folder, and then start jboss, I have an error (which 
does not seem related to adding this jar).

When I take the jar away (with jboss shutdown), jboss starts smoothly... no 
error


21:04:58,109 INFO  [Server] Core system initialized
  | 21:04:59,656 INFO  [WebService] Using RMI server codebase: 
http://pca64:8083/
  | 21:04:59,671 INFO  [Log4jService$URLWatchTimerTask] Configuring from URL: 
resource:log4j.xml
  | 21:04:59,875 INFO  [NamingService] JNDI bootstrap JNP=/0.0.0.0:1099, 
RMI=/0.0.0.0:1098, backlog=50,
  | no client SocketFactory, Server SocketFactory=class 
org.jboss.net.sockets.DefaultSocketFactory
  | 21:05:02,656 INFO  [AspectDeployer] Deployed AOP: 
file:/C:/serveurs/jboss-4.0.4/server/shwa/deploy/j
  | boss-portal.sar/portal-aop.xml
  | 21:05:04,765 ERROR [MainDeployer] Could not create deployment: 
file:/C:/serveurs/jboss-4.0.4/server/
  | shwa/deploy/jboss-portal.sar/
  | org.jboss.deployment.DeploymentException: - nested throwable: 
(java.lang.reflect.UndeclaredThrowable
  | Exception)
  | at 
org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
  | at 
org.jboss.system.ServiceController.install(ServiceController.java:226)
  | 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:585)
  | 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.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  | at $Proxy4.install(Unknown Source)
  | at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
  | at org.jboss.deployment.MainDeployer.create(MainDeployer.java:953)
  | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:807)
  | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

and many others error follow, all related to deploying modules...

It does the same with another jar I need : portal-core-lib.jar

it seems that it does not like having the same jars in two lib folder, even if 
they are exactly the same.

is this "normal" ?
(I am not very familiar with deployement rules)

It look strange because the error does not say anything about the jar... 
only that the jar "is distrurbing" deployements of many other things...

how can I use classes from JBoss Portal in my services and portlets, and tell 
JBoss where it can find the class def ?

Thanks,



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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961110
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: s:link does not work after JBoss restart

2006-07-26 Thread chane
opened JIRA: http://jira.jboss.org/jira/browse/JBSEAM-319

I'll take a look at the page actions again to see if I can figure out how to 
use those.  I don't so much need bookmarkable links, as I want to make the 
results screen reslient to server system crashes.

This led me to another question: in a clustered environment, is the  
history replicated?  I don't use a cluster in my environment yet; but we are 
moving that way

Chris

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961109
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Is it me, JAX-WS, or JBoss?

2006-07-26 Thread Arno Werr
Hi everybody!
I've encountered this issue while trying JPA artifacts with WS on JBoss Release 
ID: JBoss [Zion] 4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)

Created a very simple entity class inspired by the latest Bill Burk &  Richard 
Monson-Haefel Enterprise JavaBeans, 3.0 (Great book BTW, strongly recommended)

  | package com.bruno.net.domain;
  | import java.io.Serializable;
  | import javax.persistence.Entity;
  | import javax.persistence.GeneratedValue;
  | import javax.persistence.GenerationType;
  | import javax.persistence.Id;
  | 
  | @Entity
  | public class Cabin implements Serializable {
  | private static final long serialVersionUID = 1353L;
  | 
  | @Id
  | @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = 
"hibernate3_sequence")
  | private int id;
  | private String name;
  | public String getName() {
  | return name;
  | }
  | public void setName(String name) {
  | this.name = name;
  | }
  | public int getId() {
  | return id;
  | }
  | public void setId(int id) {
  | this.id = id;
  | }
  | }
  | 
Created EJB to deal with a webservice

  | package com.bruno.net.ejb;
  | import javax.ejb.Stateless;
  | import javax.jws.WebMethod;
  | import javax.jws.WebParam;
  | import javax.jws.WebResult;
  | import javax.jws.WebService;
  | import javax.persistence.EntityManager;
  | import javax.persistence.PersistenceContext;
  | import javax.xml.ws.WebServiceRef;
  | 
  | import com.bruno.net.domain.Cabin;
  | 
  | @WebService(name = "TravelAgent", serviceName = "TravelAgentService")
  | @WebServiceRef(name="service/TravelAgentService")
  | @Stateless
  | public class TravelAgentBean implements TravelAgentRemote {
  | @PersistenceContext(unitName = "titan")
  | private EntityManager manager;
  | 
  | @WebMethod
  | public void createCabin(@WebParam(name = "Cabin")
  | Cabin cabin) {
  | manager.persist(cabin);
  | }
  | 
  | @WebMethod
  | @WebResult(name = "Cabin")
  | public Cabin findCabin(@WebParam(name = "ID")
  | int pKey) {
  | return manager.find(Cabin.class, pKey);
  | }
  | }
  | 
Ran my client against JBoss and it works. Great. Well there is some ruffle with 
accessability of id. If I follow good Hibernate practices and change the setter 
of id to private, i.e. like this

  | private void setId(int id) {
  | this.id = id;
  |  }
my client does not return properly from the server. Yet I can live with it.

My real problem is with inheritance.
If I refactor my entity into BaseEntity

  | package com.bruno.net.base;
  | import java.io.Serializable;
  | import javax.persistence.GeneratedValue;
  | import javax.persistence.GenerationType;
  | import javax.persistence.Id;
  | import javax.persistence.MappedSuperclass;
  | 
  | @MappedSuperclass
  | public abstract class BaseEntity implements Serializable {
  | 
  | @Id
  | @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = 
"hibernate3_sequence")
  | private int id;
  | 
  | public int getId() {
  | return id;
  | }
  | 
  | public void setId(int id) {
  | this.id = id;
  | }
  | }
  | 
to hold info which should be applied to all entities like id, version, 
comparators etc. and rewrite my Cabin like this

  | package com.bruno.net.domain;
  | import javax.persistence.Entity;
  | import com.bruno.net.base.BaseEntity;
  | @Entity
  | public class Cabin extends BaseEntity {
  | private static final long serialVersionUID = 1353L;
  | 
  | private String name;
  | 
  | public String getName() {
  | return name;
  | }
  | public void setName(String name) {
  | this.name = name;
  | }
  | }
  | 
I cannot deploy on JBoss. The whole list of errors

  | 2006-07-26 14:17:05,398 DEBUG [org.jboss.ws.jaxrpc.TypeMappingImpl] 
register: [EMAIL PROTECTED] 
[xmlType={http://ejb.net.ileonov.com/jaws}findCabinResponse,javaType=com.ileonov.net.ejb.__JBossWS_TravelAgentService_TravelAgentPort_findCabinResponse,[EMAIL
 PROTECTED],[EMAIL PROTECTED]
  | 2006-07-26 14:17:05,615 ERROR [org.jboss.deployment.MainDeployer] Could not 
start deployment: 
file:/home/iouri/java/server/JBoss/jboss-4.0.4/server/titan/tmp/deploy/tmp8343webservice.ear-contents/facade.jar
  | org.jboss.ws.WSException: Element id found in jaxrpc-mapping but not in the 
schema: {http://domain.net.bruno.com/jaws}Cabin
  | at 
org.jboss.ws.jaxb.SchemaBindingBuilder.processXmlElementName(SchemaBindingBuilder.java:289)
  | at 
org.jboss.ws.jaxb.SchemaBindingBuilder.processNonArrayType(SchemaBindingBuilder.java:189)
  | at 
org.jboss.ws.jaxb.SchemaBindingBuilder.processJavaXmlTypeMapping(SchemaBindingBuilder.java:139)
  | at 
org.jboss.ws.jaxb.SchemaBindingBuilder.bindSchemaToJava(SchemaBindingBuilder.java:111)
  | at 
org.jboss.ws.jaxb.SchemaBindingBuilder.buildSchemaBinding(SchemaBindingBuilder

[jboss-user] [EJB 3.0] - Re: EJB 3.0 RC8 Preview - FD Released

2006-07-26 Thread turksheadsw
Six days later... still the files are missing.

Easybeans is an ObjectWeb project you may be interested in if you are 
frustrated with this.

In addition, there is always Glassfish.

The bleeding edge can be sharp, but this is pathetic.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961107
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: JBPM-BPEL 1.1-beta1 and JBOSS AS 4.0.4 helloworldservice

2006-07-26 Thread [EMAIL PROTECTED]
If you run ant -p, it will show you the documented targets:
 build  build bpel and webapp libraries
  |  build.service.402  build service archive for JBoss 4.0.2
  |  build.service.403  build service archive for JBoss 4.0.3
  |  build.service.404  build service archive for JBoss 4.0.4
  |  clean  remove all generated files
  |  compilecompile all source files
  |  dist   build bpel distribution
  |  javadocgenerate jbpm bpel api documentation
  |  report.coveragegenerate coverage report
  |  test   execute all tests
  |  test.coverage  execute the tests and measure the coverage
If you found the clean target then finding the build target to build bpel and 
webapp libraries ought to be easy. Plus, it is the main target :)

The reason why build.service.XXX does not depend on build is that, in order to 
build the .jar and .war files, the source files have to be compiled.  I do not 
want folks to recompile the distribution libraries unless they need to change 
something.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961105
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - sample example for sending /processing axml file in webserv

2006-07-26 Thread kiran22
Hi,
I am new to web services /xml technologies and using Jboss4.0.4 with jbossws 
1.0.0. Following is the requirement I have to develop in two weeks.
1. End Client sends an XML file to a web service 
2. Web service has to accept the xml file and process it - update the database, 
checks with directory...etc
3. return the response in xml.

I tried to look for some examples but couldn't find complete example. I 
suggested to my client that document style webservice will serve the purpose 
.Meanwhile, I was trying to develop sample example but when send I request to 
SOAP, Jboss is throwinng the exception:

My XML FIle:
 

  
   http://user.webservices.abc.com/";> 
Hello!

  
 

Exception is:

javax.xml.soap.SOAPException: Unsupported content type: 
application/x-www-form-urlencoded
at 
org.jboss.ws.soap.MessageFactoryImpl.createMessageInternal(MessageFactoryImpl.java:217)
at 
org.jboss.ws.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:157)
at 
org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:215)
at 
org.jboss.ws.server.ServiceEndpointServlet.doPost(ServiceEndpointServlet.java:120)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
ava:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
ava:202)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.ja
va:175)
at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Htt
p11BaseProtocol.java:664)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:534)
14:05:44,140 ERROR [SOAPFaultExceptionHelper] Error creating SOAPFault message
org.jboss.ws.WSException: Cannot obtain NamespaceRegistry, because there is no 
SOAPMessage associate
d with this context
at 
org.jboss.ws.soap.SOAPMessageContextImpl.getNamespaceRegistry(SOAPMessageContextImpl.java
:140)
at 
org.jboss.ws.soap.SOAPMessageContextImpl.getSerializationContext(SOAPMessageContextImpl.j
ava:130)
at 
org.jboss.ws.jaxrpc.SOAPFaultExceptionHelper.toSOAPMessage(SOAPFaultExceptionHelper.java:
223)
at 
org.jboss.ws.jaxrpc.SOAPFaultExceptionHelper.exceptionToFaultMessage(SOAPFaultExceptionHe
lper.java:177)
at 
org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:248)
at 
org.jboss.ws.server.ServiceEndpointServlet.doPost(ServiceEndpointServlet.java:120)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717).


If anybody has small example to meet above requirement, pleaes share with me.



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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961104
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - ManyToMany relationship removal example

2006-07-26 Thread scotttam
I have been hunting around looking for an example of how to remove an entry 
from the join table but not remove the entities. For example, let's say I have 
a user table and a role table, which have a many to many relationship, so add a 
user_role table to manage that. In my POJO's, I setup my ManyToMany annotations 
with the definition on the role POJO. 

Add entries into the join table seems to work fine but trying to remove entries 
by removing the objects from the relevant sets doesn't seem to cause the line 
to be removed from the join table. So, I am looking for an example of how to 
properly do this: setup the POJO's and simple sample code. If anyone has this, 
it would be appreciated. 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961103
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: ClassCastException accessing EJB3 from portlet

2006-07-26 Thread cuoz
Thank you for the responses.  Here is the packaging details:

for the EJB3 deployment:
panel-server.ejb3:
class files for both client & server
META-INF/persistence.xml
META-INF/jboss.xml (security domain declaration)

for the portlet deployment:
panel-email.war:
WEB-INF/classes (portlet related classes)
WEB-INF/lib/panel-client.jar (client jar for session & interfaces)
WEB-INF/email-object.xml
WEB-INF/portlet-instances.xml
WEB-INF/portlet.xml
WEB-INF/web.xml

unibrew:  you indicated that I should not have client classes in both places, 
but my past experience (regular webapps, not portlets) is that to hot-deploy 
and not affect multiple applications I need to have them in both places and 
have call-by-value & such configured (which I believe I do).  I am able to do 
this with my regular test war file.

My goal is to have appropriate packaging to allow updates to the EJB3 
application without needed to redeploy all the portlets & other applications 
(jbpm will be in the mix also).

Thank you for the help,
gary.


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961102
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Navigating depth in object graph

2006-07-26 Thread angelogalvao
As always i dont find any example about a true world development...

String, Integer is nice, but where i have a true persistence object graph with 
something like Client -> Address -> City ->State and so on...


When a try to save this object graph from a jsf page* i have a 
javax.faces.el.PropertyNotFoundException: Base is null:  

*
 

i think that happens because the adddress return null...  the Seam, JSF dont 
instanciates one for me?

What solution you guys can give to me? 

Thanks very much!!! 

- That why i love ognl null handler of webwork ;-)

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961098
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & Deployment] - Re: Multiple Instance of JBoss

2006-07-26 Thread saravanag
Hi,

Thanks for your solution.

I created two instance of jboss. One is default and other one as dev01 under 
server directory.

And changed the jboss-service.xml as 
ports-01
in another instance i confugured as
ports-default

Also I changed all the port numbers in jboss-service.xml for the new instance 


Thanks
Ganesh

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961097
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Ripping out identity component

2006-07-26 Thread j1a2o
The user guide says: "When you want to use your own datasource for 
organisational information such as your company's user database or ldap system, 
you can just rip out the jBPM identity component."

Can someone point me towards some resources on how to rip out the identity 
component?

I guess I'm not sure about how the org.jbpm.identity package interacts with the 
rest of jBPM. 

Thanks.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961096
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Re: Call EJB on a Schedule?

2006-07-26 Thread EricChile
Use the ServletContextListener to create the first request.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961095
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: JBPM-BPEL 1.1-beta1 and JBOSS AS 4.0.4 helloworldservice

2006-07-26 Thread asaksena
On a related issue, the SAR file for jbpm-bpel.sar doesn't build correctly 
after doing an ant clean followed by ant build.service.404. The original builds 
a SAR file 1428KB. build after an ant clean creates smaller SAR file  that has 
deployment issues.

ant clean cleans out 2 files that come with the download: 
jbpm-bpel-1.1.-beta1.jar and jbpm-bpel.war and these files don't rebuild with 
subsequent builds..



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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961094
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: org.hibernate.LazyInitializationException: Seam or Hiber

2006-07-26 Thread c_eric_ray
see http://forum.hibernate.org/viewtopic.php?p=2315877#2315877 on the hibernate 
forum

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961093
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: JBPM-BPEL 1.1-beta1 and JBOSS AS 4.0.4 helloworldservice

2006-07-26 Thread [EMAIL PROTECTED]
OK, I took a deeper look at this issue. I started with a clean JDK 1.5.0 and a 
fresh copy of jBPM BPEL 1.1-beta1. I was able to execute all targets but 
run-tests. Then I realized two things:

a) The Xalan path element in servicegen.classpath is outdated. It should be:

  |   ...
  |   
  | 
This points to a Xalan 2.7.0 library.

b) The test.classpath is not affected by the settings in servicegen.classpath 
:) My bad. Here is the correct setting:

  |   ...
  |   
  | 
I'm seeing this working as I write this post :) Sorry for the inconvenience 
guys.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961092
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & Deployment] - Re: Difference between

2006-07-26 Thread [EMAIL PROTECTED]
All the jars you need are available in the server/lib and server/deploy 
directory when linking with clients.  If you downlaod the standalone RC8 
version of EJB3 the docs/tutorial have ant scripts that work with the 
appropriate client jar classpath.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961091
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - facing issues in persisting standalone application using hib

2006-07-26 Thread gup123
Hi I am new to this area and I am using hibernate3.2, hibernate-annotation3.2 
and hibernate-entitymanager3.2 for persisting a object in the database in  a 
standalone program i.e.  plain java, but i am getting the following program 
when i run.

Please suggest any solution or if i am missing anything: exception is =:

 [java] Exception in thread "main" java.lang.IllegalAccessError: tried to 
access method net.s
f.ehcache.CacheManager.()V from class org.hibernate.cache.EhCacheProvider
 [java] at 
org.hibernate.cache.EhCacheProvider.start(EhCacheProvider.java:124)
 [java] at 
org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:180)
 [java] at 
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1213)
 [java] at 
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuratio
n.java:631)
 [java] at 
org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configurati
on.java:760)
 [java] at 
org.hibernate.ejb.Ejb3Configuration.createFactory(Ejb3Configuration.java:151)
 [java] at 
org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configurati
on.java:205)
 [java] at 
org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePer
sistence.java:114)
 [java] at 
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:37)
 [java] at 
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:27)
 [java] at com.FirstApp.SSTest.addNS(Unknown Source)
 [java] at com.FirstApp.SSTest.main(Unknown Source)
 [java] Java Result: 1


Code is some thing like this:
/**
 * AB generated by hbm2java
 */
@Entity
@Table(name="ABs"
,schema="Cat"
, uniqueConstraints = {  }
)

public class ABs  implements java.io.Serializable {
// Fields
 private NId id;
 private Cdates cdates;
// Constructors
/** default constructor */
public ABs() {}

/** full constructor */
public ABs(NId id, Cdates cdates) {
this.id = id;
this.cdates = cdates;}
// Property accessors
@EmbeddedId
@AttributeOverrides( {
@AttributeOverride(name="A",...))
@AttributeOverride(name="B", ...) ) } )

public NId getId() { return this.id;}

public void setId(NId id) { this.id = id;   }
@ManyToOne(cascade={},
fetch=FetchType.LAZY)
@JoinColumn(name="A", unique=false, nullable=false, insertable=false, 
updatable=false)

..
}

another class
/**
 * NId generated by hbm2java
 */
@Embeddable

public class NId  implements java.io.Serializable {
// Fields
 private String a;
 private String b;
// Constructors

/** default constructor */
public NId() {
}

/** full constructor */
public NId(String a, String b) {
this.a = a;
this.b = b;
}
   
// Property accessors
@Column(name="a", unique=false, nullable=false, insertable=true, 
updatable=true, length=200)

public String getA() {   return this.a;}

public void setA(String a) { this.a = a;  }
@Column(name="B", unique=false, nullable=false, insertable=true, 
updatable=true, length=30)

public String getB() { return this.b;   }

public void setB(String b) {  this.b = b;   }

public boolean equals(Object other){.}
public int hashCode() {)
}

and the main class is 
public class SSTest {
public static void main(String[] arg)
{
SSTest sstest = new SSTest();
sstest.addNS();
}

public void addNS()
{
 EntityManagerFactory emf = 
Persistence.createEntityManagerFactory("manager1");
 NId item = new NId( "11", "11" );

 ABs ns = new ABs();
 ns.setId(item);

  EntityManager em = emf.createEntityManager();
em.getTransaction().begin();
em.persist( ns );
em.getTransaction().commit();
 }// end of method
}// End of Class







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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961090
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Running Jboss in linux

2006-07-26 Thread gerryjuice2
Just installed jboss-4.0.4 on suse linux(which i am new to) as the root user. I 
am able to run the server as root without error, but when i try to run as a 
non-root user or from within eclipse i get the following error.

ERROR [MainDeployer] Could not make local copy for 
file:/usr/local/jboss-4.0.4/server/default/conf/jboss-service.xml
java.io.IOException: No such file or directory
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.checkAndCreate(File.java:1345)
at java.io.File.createTempFile(File.java:1434)
at 
org.jboss.deployment.MainDeployer.makeLocalCopy(MainDeployer.java:1167)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:840)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:798)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
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:585)
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:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
at org.jboss.Main.boot(Main.java:200)
at org.jboss.Main$1.run(Main.java:464)
at java.lang.Thread.run(Thread.java:595)
19:38:05,045 ERROR [MainDeployer] Could not initialise deployment: 
file:/usr/local/jboss-4.0.4/server/default/conf/jboss-service.xml
org.jboss.deployment.DeploymentException: Failed to find 
META-INF/jboss-service.xml for archive jboss-service.xml
at org.jboss.deployment.SARDeployer.parseDocument(SARDeployer.java:616)
at org.jboss.deployment.SARDeployer.init(SARDeployer.java:181)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:861)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:798)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
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:585)
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:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
at org.jboss.Main.boot(Main.java:200)
at org.jboss.Main$1.run(Main.java:464)
at java.lang.Thread.run(Thread.java:595)
Failed to boot JBoss:
org.jboss.deployment.DeploymentException: Failed to find 
META-INF/jboss-service.xml for archive jboss-service.xml
at org.jboss.deployment.SARDeployer.parseDocument(SARDeployer.java:616)
at org.jboss.deployment.SARDeployer.init(SARDeployer.java:181)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:861)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:798)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
at org.jboss.

[jboss-user] [Beginners Corner] - Can you have an app run every 5 minutes?

2006-07-26 Thread EricChile
I am new to JBoss, but I have experance with Tomcat and Struts. I have also 
played with webservices, jsf, and session beans.

I have some standalone code that works well that is written in Java. Is it 
possiable to convert this code so that it can be deployed in a war file and ran 
automaticly every 5 minutes? 

I know it could be done with a cron job, but we would like to keep all the 
appliacations in the same area. thanks

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961088
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: s:link does not work after JBoss restart

2006-07-26 Thread [EMAIL PROTECTED]
Ah. H. I think I know what the problem is.

Seam can't just let you call any arbitrary method by hacking action=name.method 
into the URL of a GET request. So it only lets you call action methods that 
were previously rendered via an s:link.

I'll see if something more can be done here if you can add an issue to JIRA.

Otherwise use a page action defined in pages.xml if you need truly bookmarkable 
links.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961087
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: ClassCastException accessing EJB3 from portlet

2006-07-26 Thread [EMAIL PROTECTED]
Since the exception is happening in the Portal layer (in the Portlet) wouldn't 
the Client.class have to be in the ear file that holds the portlet.

which from your post looks like you are packaging it in the portlet ear.

Again, information on how the two files are packaged will throw more light on 
the issue

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961086
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: Hiding a portlet

2006-07-26 Thread [EMAIL PROTECTED]
try to throw a portlet exception and configure the portal in 
jboss-portal.sar/conf/config.xml such as it does not display portlets that 
throw exceptions.

pretty ugly I know, but should work.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961085
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Can be used with facelets compositions?

2006-07-26 Thread [EMAIL PROTECTED]
anonymous wrote : Nevertheless I wish that the main Seam players recognised the 
importance of the issue we are discussing, as I don't think that anyone using 
facelets would give up its composition facilities in order to use . 

AFAICT, this is not a limitation of Seam but a limitation of Facelets, and so 
there is nothing much I can do about it.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961084
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: @Logger - usage question

2006-07-26 Thread [EMAIL PROTECTED]
Note that yesterday I committed some changes to CVS so that injection works 
during the startup phase.

You guys were right, there was a bug there.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961083
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: @Logger - usage question

2006-07-26 Thread [EMAIL PROTECTED]
anonymous wrote : I'll post the remoting bug on JIRA once I figured out where 
to find that. 

http://jira.jboss.com/jira/browse/JBSEAM



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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961082
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: nested conversation kills its parent if id is specified

2006-07-26 Thread [EMAIL PROTECTED]
All beans instantiated during a conversation go into the current (ie. most 
nested) conversation.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961081
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: ClassCastException accessing EJB3 from portlet

2006-07-26 Thread unibrew
My guess would be that you are packaging Client.class in both ears and you 
should have it only in ejb3 package.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961080
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Remote EJBs

2006-07-26 Thread [EMAIL PROTECTED]
"[EMAIL PROTECTED]" wrote : 3. You need to implement your own exception 
handling layer for this. Either deal with the exception in client code, or in a 
servlet filter or web.xml. Unfortunately JSF (amazingly) does not provide any 
good place to handle these kinds of exceptions :-(


H. One thing I *could* do is have Seam provide a client-side interception 
layer for EJB components (a feature missing from the EJB spec). And then I 
could provide a built-in interceptor for handling the spec-defined exceptions 
(ConcurrentAccessException, RemoteException, etc).


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961079
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Could not register synchronization

2006-07-26 Thread [EMAIL PROTECTED]
Use your debugger to find the real underlying exception that is being hidden by 
this bug in EJB3.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961075
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Remote EJBs

2006-07-26 Thread [EMAIL PROTECTED]
1. At least in CVS it is conceptually possible to have a remote Seam component. 
(I forget whether a nonbuggy implementation made it into 1.0.1.) 

However, this feature requires that the implementation class for the remote 
bean is in the client classpath, which is not usually the case. (I'm not quite 
sure what I can do about that one  I suppose I can support @Name on remote 
interfaces...?) 

Alternatively, you can just call the remote EJB using normal EJB3 mechanisms, 
inject it using @EJB.

2. You need a dedicated remote interface, annotated @Remote.

3. You need to implement your own exception handling layer for this. Either 
deal with the exception in client code, or in a servlet filter or web.xml. 
Unfortunately JSF (amazingly) does not provide any good place to handle these 
kinds of exceptions :-(

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961074
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Tutorial Feedback

2006-07-26 Thread [EMAIL PROTECTED]
No, you did not seem negative.

Facelets lets you do stuff like:


  | 
  | 

Which is like Tapestry in that it allows previewing by the web browser, but 
different to Tapestry in that it does not require a whole external XML 
component declaration file (something I really don't like about Tapestry).

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961073
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: org.hibernate.LazyInitializationException: Seam or Hiber

2006-07-26 Thread c_eric_ray
Okay, I figured out where to annotate for EAGER. However, I still need to 
better understand lazy initialization. Advice and suggestions greatly 
appreciated.

Thanks.
Eric Ray

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961072
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Tryed searching for this issue, but haven't found anythi

2006-07-26 Thread [EMAIL PROTECTED]
How is it a great blog post when the guy totally missed the entire reason why 
load() behaves like it does?

The Hibernate distinction between load() and get() is just like the JPA 
distinction between getReference() and find(). You need both options.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961071
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - org.hibernate.LazyInitializationException: Seam or Hibernate

2006-07-26 Thread c_eric_ray
Not sure where to post this so it's on the hibernate forum as well. I'm new to 
ejb, seam and hibernate so please excuse my ignorance.

I have a simple query that retrieves an entity from the database. Within that 
object I call a method to get a collection of different entitys.

Like so...

  | List l = entity.getCollection();
  | 

>From searching google and reading posts I understand that I have a session 
>issue and could fix the problem by using and EAGER strategy. However, I cannot 
>get the eager to work either. I get the same error regardless of what I do. 

I'm running the lastest version of JBoss AS and Seam.

Here's the actual code.

  | 
  |   @DataModel
  |   private Set remitItems;
  | 
  | remitItems = packages.getSelectedClosedPackage().getRemittanceItems();  
  
  | 
  | -
  | 
  | Here is the entity bean method with annotations
  | 
  | @OneToMany(mappedBy="remittancePackage")
  | public Set getRemittanceItems() {
  | return remittanceItems;
  | }
  | 
  | 
  | 

Here's the exception...although I'm sure you guys have seent this one before...

  | Caused by: org.hibernate.LazyInitializationException: failed to lazily 
initialize a collection of role: 
com.vicor.DistributedCapture.ejb.PackageEntity.remittanceItems, no session or 
session was closed
  | at 
org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:358)
  | at 
org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationExceptionIfNotConnected(AbstractPersistentCollection.java:350)
  | at 
org.hibernate.collection.AbstractPersistentCollection.readSize(AbstractPersistentCollection.java:97)
  | at org.hibernate.collection.PersistentSet.size(PersistentSet.java:114)
  | at java.util.ArrayList.(ArrayList.java:133)
  | at org.jboss.seam.jsf.SetDataModel.setWrappedData(SetDataModel.java:96)
  | at org.jboss.seam.jsf.SetDataModel.(SetDataModel.java:33)
  | at 
org.jboss.seam.databinding.DataModelBinder.wrap(DataModelBinder.java:48)
  | at 
org.jboss.seam.databinding.DataModelBinder.wrap(DataModelBinder.java:19)
  | at org.jboss.seam.Component.outjectDataModelList(Component.java:980)
  | at org.jboss.seam.Component.outjectDataModels(Component.java:937)
  | at org.jboss.seam.Component.outject(Component.java:857)
  | at 
org.jboss.seam.interceptors.BijectionInterceptor.bijectTargetComponent(BijectionInterceptor.java:41)
  | 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:585)
  | at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
  | at 
org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
  | at 
org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
  | at 
org.jboss.seam.interceptors.ConversationInterceptor.endOrBeginLongRunningConversation(ConversationInterceptor.java:82)
  | 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:585)
  | at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
  | at 
org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
  | at 
org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
  | at 
org.jboss.seam.interceptors.BusinessProcessInterceptor.manageBusinessProcessContext(BusinessProcessInterceptor.java:60)
  | 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:585)
  | at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
  | at 
org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
  | at 
org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
  | at 
org.jboss.seam.interceptors.RemoveInterceptor.removeIfNecessary(RemoveInterceptor.java:39)
  | 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:585)
  | at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
  |  

[jboss-user] [JBoss Seam] - s:link does not work after JBoss restart

2006-07-26 Thread chane
On a results screen I use the s:link tag in a table.  The results screen is 
generated from a SFSB with ScopeType.EVENT.  When the user clicks on the 
 action, a new screen opens up from another SFSB with 
ScopeType.CONVERSATION.

This works great until JBoss is restarted.  Once restarted, the view action 
(below) on an existing results screen returns the results.xhtml screen without 
any records and does not seem to call the SFSB editor.view that I expected.

Should this work?  Or I'm trying to do something not allowed?

Link in results.xhtml

  | 
  |
  |   Action
  |   
  |  
  |   
  |
  | 
  | 

Finder.java

  | @Name("finder")
  | @Stateful
  | @Scope(ScopeType.EVENT)
  | @LoggedIn
  | public class Finder implements IFinder {
  |
  |@DataModel
  |private List fulfillments;
  | 
  |@DataModelSelection
  |private Fulfillment selected;
  |
  |private Fulfillment fulfillment = new Fulfillment();
  | 
  |@Begin(flushMode=FlushModeType.MANUAL)
  |public String find(){
  |   fulfillments = DAFulfillment.find(fulfillment);
  |   return "found";
  |}
  | 
  |@Destroy
  |@Remove
  |public void destroy(){
  |}
  |
  |public Fulfillment getFulfillment(){
  |   return fulfillment;
  |}
  | 
  |public void setFulfillment(Fulfillment fulfillment){
  |   this.fulfillment = fulfillment;
  |}
  | }
  | 

Editor.java

  | @Name("editor")
  | @Stateful
  | @LoggedIn
  | public class Editor extends AbstractEditor implements IEditor{
  |
  |public Fulfillment fulfill;
  | 
  |@RequestParameter
  |protected Long id;
  | 
  |@DataModel
  |private List items;
  |
  |@DataModelSelection
  |private Item item;
  | 
  |@Create
  |@Begin
  |public void initialize(){
  |   fulfill = load(Fulfillment.class, id); //does loading in a superclass
  |   items = new ArrayList();
  |   items.addAll(fulfill.getItems());
  |}
  | 
  |public String save(){
  |   persist(fulfill);
  |   return super.save(); //super method returns "saved";
  |}
  | 
  |@End
  |public String cancel(){
  |   em.refresh(fulfill);
  |   return "cancel";
  |}
  | 
  |@End
  |public String return(){
  |   em.refresh(fulfill);
  |   return "return";
  |}
  | 
  |@Destroy
  |@Remove
  |public void destroy(){
  |}
  | 
  |public Fulfillment getFulfill(){
  |   return fulfill;
  |}
  |
  |public void setFulfill(Fulfillment fulfill){
  |   this.fulfill = fulfill;
  |}
  | }
  | 


Thanks,
Chris

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961068
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: ClassCastException accessing EJB3 from portlet

2006-07-26 Thread [EMAIL PROTECTED]
Gary-

Can you post a representation of how both your ear files are packaged?

Thanks
Sohil

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961069
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Tryed searching for this issue, but haven't found anythi

2006-07-26 Thread RobJellinghaus
Also, great blog post here: 
http://www.sleberknight.com:8080/roller/comments/sleberkn/Weblog/using_spring_with_hibernate3_s

Cheers again!
Rob

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961067
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


  1   2   3   >