[jboss-user] [JBoss jBPM] - Re: Several doubts about JBPM ....

2008-10-17 Thread maykellff
Hi, thank you very much for your answer ligang and oravecz, let me see if i 
understand well, i most take adventage from BPM in two diferents ways:

1: BPM inside of my project like a closed silo, in this case the interacions 
the processes need to do the job came from my java clases (domain clases for 
example)

2: BPM to coordinate, orchestrate or whatever several applicationes for one 
process or several processes, in this case there is not direct interaction with 
java clases like  domain classes but all the interaction with the diferents 
applicationes involved is through web services. And this process most defined 
inside a new kind of project (a process project) not inside one of the 
applications involved.

Are these 2 points correct?


Can you suggest me some tutorial that explain in detail a case of bpm relating 
several applications? (using jbpm of course)


Thank you very much,
Maykell.

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

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


[jboss-user] [JBoss jBPM] - Several doubts about JBPM ....

2008-10-16 Thread maykellff
Hi, one of the promise of most of BPM tools and engines is allow flexibility 
when business changes come into play. Now, after i review and play with  JBPM, 
my worry is about i don´t see how can i isolate the processes definition and 
execution from the web application itself because i see Java code inside my 
process definition for everywhere.

A simple case, after my application is in production, it is necessary to make a 
change in one of the processes it is holding;
 Do i have to redeploy the application after the change?

another question: Can i make a deploy of one of my process even without make a 
deploy of the application that uses this process?

Can i deploy my process to a server for example jboss-jbpm-2.0-server and 
deploy the web application that uses it to another server for example 
jboss-4.2.x.GA ?

How can i take adventages from tools like Jbpm-console?

I hope you can help me with this,

Thanks in advance, Maykell. 

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam and testing fail. TestNG

2008-02-14 Thread maykellff
"[EMAIL PROTECTED]" wrote : Seam 1.2? How did you set up the integration test?
Hi, i don't understand what you mean,

most i to make any configuration before run a TestNG integration test in a Sean 
project? 
Can you present me with an example.?

Thank you very much for your help.

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

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


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Concurrence problem?

2008-02-14 Thread maykellff
I have the following situation:
I'm using Spring 2.0.6, hibernate 3.2 and Oracle 10g
There is a table that concentrates a lot of traffic in the application (it is 
an auditting table) and from time to time it produces a "JDBC can't execute 
batch update" exception. I believe this is because there is a lot of concurrent 
access to this table in the database, but I have no proof of that...
The problem may stem from the way Hibernate treats the autogenerated id columns 
in Oracle. Hibernate issues a select max(id) first, and then uses this number 
to persist the instance at hand. If there is a high concurrence situacion, I 
believe is possible for Hibernate to retrieve the same index twice and to try 
and persist the entity with that id more than once, thus getting the 
aforementioned error. Again, this is all speculation, I'm to new to know for 
sure.

But anyway, asuming the problem is concurrence, I want to try the following:
To declare a singleton bean with one private static attribute indexCount 
accesable only through a public static getCurrentIndex() method that do 
something like { return indexCount++;} 

How safe is this solution, considering many threads asking indexes 
simultaneously? Is there some built-in mechanism in Spring that can help me 
achieve something like this? And since we're at it, Spring does anything at all 
to ensure threadsafe behavior in stateful singleton beans?


Thanks in advance,
Maykell.

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

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


[jboss-user] [JBoss Seam] - Re: Seam and testing fail. TestNG

2008-01-31 Thread maykellff
"[EMAIL PROTECTED]" wrote : Try using an integration test. This use of the Java 
SE in a unit test is one I don't like.

The integration test rise me the following error:
anonymous wrote : 
  | FAILED: testBuscarExpediente
  | java.lang.NoClassDefFoundError: com/sun/el/ExpressionFactoryImpl
  | at 
org.jboss.seam.util.UnifiedELValueBinding.(UnifiedELValueBinding.java:18)
  | at 
org.jboss.seam.mock.MockApplication.createValueBinding(MockApplication.java:272)
  | at 
org.jboss.seam.jsf.SeamApplication11.createValueBinding(SeamApplication11.java:116)
  | at org.jboss.seam.mock.SeamTest$Request.setValue(SeamTest.java:374)
  | at 
pruebas.ExpedienteFacadeIntegrationTest$1.updateModelValues(ExpedienteFacadeIntegrationTest.java:28)
  | at org.jboss.seam.mock.SeamTest$Request.run(SeamTest.java:476)
  | at 
pruebas.ExpedienteFacadeIntegrationTest.testBuscarExpediente(ExpedienteFacadeIntegrationTest.java:46)
  | ... Removed 22 stack frames

This is the code of the integration test:
anonymous wrote : 
  | package pruebas;
  | 
  | import org.jboss.seam.mock.SeamTest;
  | import org.testng.annotations.Test;
  | 
  | public class ExpedienteFacadeIntegrationTest extends SeamTest
  | {
  | 
  | @Test
  | public void testBuscarExpediente()throws Exception
  | {
  | new FacesRequest() {
  | 
  | /*  
  | @Override
  | protected void processValidations() throws Exception
  | {
  | validateValue("#{house.address}", "123 Main 
Street");
  | validateValue("#{house.city}", "Columbus");
  | validateValue("#{house.state}", "OH");
  | assert !isValidationFailure();
  | }
  | 
  | */  
  | @Override
  | protected void updateModelValues() throws Exception
  | {
  | setValue("#{expediente.nroExpediente}", "123");
  | setValue("#{expediente.tipoAcusado}", "Acusado 
Libre");
  | //setValue("#{expediente.fechaTurnado}", "Jan 
1, 2008");
  | }
  | 
  | @Override
  | protected void invokeApplication()
  | {
  | assert 
invokeMethod("#{expedienteFacade.buscarExpediente}").equals("success");
  | }
  | 
  | @Override
  | protected void renderResponse()
  | {
  | assert 
getValue("#{expedienteFacade.expedientesEncontrados.size}").equals(7);
  | //assert 
getValue("#{house.city}").equals("Columbus");
  | //assert 
getValue("#{house.state}").equals("OH");
  | }
  | }.run();
  | }
  | }

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

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


[jboss-user] [JBoss Seam] - Seam and testing fail. TestNG

2008-01-22 Thread maykellff
Hi all, i'am following the book "Begining JBoss Seam. From novice to 
Profesional" like a helper to introduce my self in Seam. Now i've transformed a 
simple jsf application into a Seam-EJB3 application, everything works well but 
the tests. I'am using Red Hat Developer Studio, it comes with  the TestNG 
plugin, i try to use TestNG to run a test i wrotte but always i get the same 
error.

Can it be something related to the package structure i have? Maybe TestNG most 
have some specific package structure in order to look for the resources it need 
to run the tests.

Any help will be very appreciated.

This is the error i get:
anonymous wrote : 
  | [Parser] Running:
  |   D:\workspaceRHDS\jsfTest\temp-testng-customsuite.xml
  | 
  | log4j:WARN No appenders could be found for logger 
(org.hibernate.ejb.Version).
  | log4j:WARN Please initialize the log4j system properly.
  | FAILED CONFIGURATION: @BeforeClass init
  | javax.persistence.PersistenceException: No Persistence provider for 
EntityManager named jsfTest
  | at 
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:55)
  | at 
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:33)
  | at pruebas.ExpedienteFacadeTest.init(ExpedienteFacadeTest.java:47)
  | ... Removed 22 stack frames
  | SKIPPED CONFIGURATION: @AfterClass destroy
  | SKIPPED: testBuscarExpediente
  | 
  | ===
  | pruebas.ExpedienteFacadeTest
  | Tests run: 1, Failures: 0, Skips: 1
  | Configuration Failures: 1, Skips: 1
  | ===
  | 
  | 
  | ===
  | jsfTest
  | Total tests run: 1, Failures: 0, Skips: 1
  | Configuration Failures: 1, Skips: 1
  | ===

I don't know what is happening, i've tried every posible solution but without 
results. It seens like it doesn't found the persistence.xml.

This is my persistence.xml:
anonymous wrote : 
  | 
  | 
  | http://java.sun.com/xml/ns/persistence"; 
  |  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  |  xsi:schemaLocation="http://java.sun.com/xml/ns/persistence 
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"; 
  |  version="1.0">
  |  
  |
  |   org.hibernate.ejb.HibernatePersistence
  |   java:/jsfTestDatasource
  |   
  |  
  |  
  |  
  |  
  |  
  |   
  |
  | 
  |  


This is my components.xml:
anonymous wrote : 
  | 
  | 
  | 
  | true
  | true
  | jsfTest/#{ejbName}/local
  | 
  | 
  | 
  
  | 
  | 
  | 
  | 
  | 
  |  
  | 
  |   
  | 
  | 


This is my test class:
anonymous wrote : 
  | package pruebas;
  | 
  | import javax.persistence.EntityManager;
  | import javax.persistence.EntityManagerFactory;
  | import javax.persistence.Persistence;
  | 
  | import org.jboss.seam.annotations.In;
  | import org.testng.annotations.Configuration;
  | import org.testng.annotations.Test;
  | 
  | import com.domain.Expediente;
  | import com.domain.nomenclador.NTipoAcusado;
  | import com.facade.ExpedienteFacade;
  | import com.facade.impl.ExpedienteFacadeImpl;
  | 
  | 
  | 
  | public class ExpedienteFacadeTest {
  | 
  | @In
  | EntityManagerFactory emf;
  | 
  | @Test
  | public void testBuscarExpediente()
  | {
  | EntityManager em = emf.createEntityManager();
  | em.getTransaction().begin();
  | 
  | NTipoAcusado ta = new NTipoAcusado();
  | ta.setId_tipoacusado(1);ta.setValor("Acusado Libre");
  | 
  | Expediente exp = new Expediente();
  | exp.setTipoAcusado(ta);
  | 
  | ExpedienteFacadeImpl ef = new ExpedienteFacadeImpl();
  | ef.setEm(em);ef.setExpediente(exp);
  | 
  | String strResult = ef.buscarExpediente();
  | assert "some".equals(strResult);
  | em.getTransaction().rollback();
  | em.close();
  | }
  | 
  | @Configuration(beforeTestClass=true)
  | public void init()
  | {
  | emf = Persistence.createEntityManagerFactory("jsfTest");
  | }
  | 
  | @Configuration(afterTestClass=true)
  | public void destroy()
  | {
  | emf.close();
  | }
  | }



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

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


[jboss-user] [EJB 3.0] - Entity Manager, Query API and findByExample

2008-01-17 Thread maykellff
Hi all, there is some way i can get some like "findByExample" working using the 
Query API of the EntityManager?

Thank you in advance,
Maykell.

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

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


[jboss-user] [JBoss Seam] - Re: a4j:include and Seam

2007-12-19 Thread maykellff
"matt.drees" wrote : Looking at your stacktrace, I think your issue is caused 
by using a myfaces phase listener (AutoScrollPhaseListener).  I think this sort 
of issue was fixed in Seam 1.2.1.  

Not, this not my case. I not use any myfaces phase listener at all, i only use 
Seam listeners. In any case i'll to try with Seam 1.2.1 and will see what 
happen.

This is my web.xml:
anonymous wrote : 
  | 
  | http://java.sun.com/xml/ns/j2ee";
  |  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
  |  jsfTest
  | 
  |  
  |   
  |  
  | javax.faces.DEFAULT_SUFFIX
  | .xhtml
  |  
  |  
  | 
  |  
  |  
  |   javax.faces.CONFIG_FILES
  |   /WEB-INF/navigation-rule.xml 
  |  
  |  
  |   
  |   State saving method: "client" or "server" (= default)
  | See JSF Specification 2.5.2
  |   javax.faces.STATE_SAVING_METHOD
  |   server
  |  
  | 
  |   
  |  
  |   Ajax4jsf Filter
  |   ajax4jsf
  |   org.ajax4jsf.Filter
  |   
  |forceparser
  |false
  |   
  |  
  | 
  | 
  |  
  |   ajax4jsf
  |   Faces Servlet
  |   REQUEST
  |   FORWARD
  |   INCLUDE
  |  
  |  
  |  
  |  
  | org.jboss.seam.servlet.SeamListener
  |  
  |  
  |  
  |  
  |   Faces Servlet
  |   javax.faces.webapp.FacesServlet
  |   1
  |  
  |  
  |   Faces Servlet
  |   *.seam
  |  
  |  
  |   Faces Servlet
  |   /faces/*
  |  
  |  
  |   BASIC
  |  
  | 


(http://fisheye.jboss.com/browse/JBoss/jboss-seam/src/main/org/jboss/seam/contexts/Contexts.java?r1=1.47&r2=1.48)

and this is my faces-config.xml:
anonymous wrote : 
  | http://java.sun.com/dtd/web-facesconfig_1_0.dtd";>
  | 
  |  
  |   genericselectarrayconvertidor
  |   
com.web.converter.GenericSelectArrayConvertidor
  |  
  | 
  |  
  |   genericselectarrayconvertidor1
  |   
com.web.converter.GenericSelectArrayConvertidor1
  |  
  | 
  | 
  |  
  |   genericselectlistconvertidor
  |   
com.web.converter.GenericSelectListConvertidor
  |  
  | 
  | 
  |  
  |   carBean
  |   com.web.CarBean
  |   request
  |  
  |  
  |  
  |   navigationBean
  |   com.web.NavigationBean
  |   request
  |  
  |  
  | 
  |  
  |   
org.jboss.seam.jsf.TransactionalSeamPhaseListener
  |  
  |  
  |  
  |  
  | 
  |   en
  | 
  | com.sun.facelets.FaceletViewHandler
  |  
  | 

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

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


[jboss-user] [JBoss Seam] - Re: a4j:include and Seam

2007-12-17 Thread maykellff
"matt.drees" wrote : What version of Seam are you using?
Seam 1.2.0
I trust in the JSF implemenattion of the JBoss server (JBoss 4.2.1 GA), 
richfaces 3.1.2 GA and facelets 1.1.12



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

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


[jboss-user] [JBoss Seam] - Re: a4j:include and Seam

2007-12-14 Thread maykellff
Can anybody help me...?

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

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


[jboss-user] [JBoss Seam] - Re: a4j:include and Seam

2007-12-11 Thread maykellff
Please any help will be very appreciated.


"maykellff" wrote : Hi all, i'm having an issue very strange. I have a page 
simple Seam application that uses intensively a4j:include component, the issue 
come when you try to navigate from one included page to another included page 
(the typical scene where the a4j:include component follows the navigation rules 
defined in navigation-config file to do the navigation) and the application do 
it, but when you see the server logs you see that an error ocurred, the error 
is showed above. Every single attent to navigate from one included page to 
another included page the server rise the error.
  | 
  | I hope you can help me, thank you in advance,
  | Maykell.
  | 
  | 09:17:43,703 WARN  [lifecycle] phase(RESTORE_VIEW 1,[EMAIL PROTECTED]) 
threw exception: java.lang.IllegalStateException: No phase id bound to current 
thread (make sure you do not have two SeamPhaseListener instances installed) No 
phase id bound to current thread (make sure you do not have two 
SeamPhaseListener instances installed)
  | org.jboss.seam.contexts.PageContext.getPhaseId(PageContext.java:153)
  | 
org.jboss.seam.contexts.PageContext.isRenderResponsePhase(PageContext.java:165)
  | 
org.jboss.seam.contexts.PageContext.getCurrentReadableMap(PageContext.java:76)
  | org.jboss.seam.contexts.PageContext.get(PageContext.java:66)
  | org.jboss.seam.contexts.Contexts.lookupInStatefulContexts(Contexts.java:160)
  | org.jboss.seam.Component.getInstance(Component.java:1577)
  | 
org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:53)
  | 
com.sun.faces.el.VariableResolverChainWrapper.getValue(VariableResolverChainWrapper.java:100)
  | javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
  | 
com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
  | 
com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:72)
  | org.ajax4jsf.context.AjaxContext.getCurrentInstance(AjaxContext.java:101)
  | org.ajax4jsf.context.AjaxContext.getCurrentInstance(AjaxContext.java:85)
  | org.ajax4jsf.component.AjaxViewRoot.getViewId(AjaxViewRoot.java:439)
  | 
org.apache.myfaces.renderkit.html.util.AutoScrollPhaseListener.afterPhase(AutoScrollPhaseListener.java:58)
  | com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:280)
  | com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
  | javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
  | 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  | 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
  | org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
  | 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  | 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  | 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
  | 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
  | 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
  | 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
  | 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
  | 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
  | 
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
  | 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  | org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
  | org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
  | 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
  | org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
  | java.lang.Thread.run(Thread.java:595)

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

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


[jboss-user] [JBoss Seam] - a4j:include and Seam

2007-12-10 Thread maykellff
Hi all, i'm having an issue very strange. I have a page simple Seam application 
that uses intensively a4j:include component, the issue come when you try to 
navigate from one included page to another included page (the typical scene 
where the a4j:include component follows the navigation rules defined in 
navigation-config file to do the navigation) and the application do it, but 
when you see the server logs you see that an error ocurred, the error is showed 
above. Every single attent to navigate from one included page to another 
included page the server rise the error.

I hope you can help me, thank you in advance,
Maykell.

09:17:43,703 WARN  [lifecycle] phase(RESTORE_VIEW 1,[EMAIL PROTECTED]) threw 
exception: java.lang.IllegalStateException: No phase id bound to current thread 
(make sure you do not have two SeamPhaseListener instances installed) No phase 
id bound to current thread (make sure you do not have two SeamPhaseListener 
instances installed)
org.jboss.seam.contexts.PageContext.getPhaseId(PageContext.java:153)
org.jboss.seam.contexts.PageContext.isRenderResponsePhase(PageContext.java:165)
org.jboss.seam.contexts.PageContext.getCurrentReadableMap(PageContext.java:76)
org.jboss.seam.contexts.PageContext.get(PageContext.java:66)
org.jboss.seam.contexts.Contexts.lookupInStatefulContexts(Contexts.java:160)
org.jboss.seam.Component.getInstance(Component.java:1577)
org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:53)
com.sun.faces.el.VariableResolverChainWrapper.getValue(VariableResolverChainWrapper.java:100)
javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:72)
org.ajax4jsf.context.AjaxContext.getCurrentInstance(AjaxContext.java:101)
org.ajax4jsf.context.AjaxContext.getCurrentInstance(AjaxContext.java:85)
org.ajax4jsf.component.AjaxViewRoot.getViewId(AjaxViewRoot.java:439)
org.apache.myfaces.renderkit.html.util.AutoScrollPhaseListener.afterPhase(AutoScrollPhaseListener.java:58)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:280)
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
java.lang.Thread.run(Thread.java:595)

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

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


[jboss-user] [JBoss Seam] - Re: Using EntityManager out of EJBs components

2007-11-29 Thread maykellff
Hi all, ?can anybody help me with this issue?

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

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


[jboss-user] [JBoss Seam] - Using EntityManager out of EJBs components

2007-11-28 Thread maykellff
Hi all, i need to use EntityManagerFactory y EntityManager outside of an EJB, 
in fact i need to use them inside of a simple Pojo. The below class is a simple 
pojo that load a collection from the DB and return that collection in form of 
StecItem[] array. Now when i run this code i get the following error:


java.sql.SQLException: You cannot set autocommit during a managed transaction!
at 
org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.setJdbcAutoCommit(BaseWrapperManagedConnection.java:482)


...

Any help will be appreciated.

public class CargaNomencladores {

public  static SelectItem[] cargaNomenclador(String 
nomencladorClassName)
{

EntityManagerFactory emf = 
Persistence.createEntityManagerFactory("jsfTest");
EntityManager em = emf.createEntityManager();
Query query = em.createQuery("select n from " + 
nomencladorClassName + "n");
List tempNomencladorRl = query.getResultList();
int size = tempNomencladorRl.size();
SelectItem[] nomencladorSelectItem = new SelectItem[size];
for (int i=0; ihttp://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108688#4108688

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


[jboss-user] [JBoss Seam] - Re: @Factory is not working

2007-11-22 Thread maykellff
anonymous wrote : 
  | You are however not referencing the context variable, but a getter method 
on another context variable. 
  | 
Please clarify me, what is exactly a "context variable" ? 

1- You mean a variable annotated with an Out?
2- A Session bean annotated with a @Name it is not a context variable?
3- In my example i have "expedienteFacadeStateless" that is a stateless session 
bean annotated with a @Name seam annotation, now i thougth that the property 
tipoAcusadoRs implicitly become a context variable. i'm wrong?

anonymous wrote : 
  | (if you had an @Out at the list, the factory would have been called).
  | 
I did that an i get the following exepction:

java.lang.IllegalArgumentException: Expected a child component type of 
UISelectItem/UISelectItems for component type 
javax.faces.SelectOne(j_id_jsp_912580932_7pc2).  Found null.

Any suggestion will be very appreciated.Thank you ,
Maykell
 



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

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


[jboss-user] [JBoss Seam] - Re: @Factory is not working

2007-11-20 Thread maykellff
Hi all 

anonymous wrote : 
  | Make sure you have a seam.properties file in your classes directory. 
  | Are all other SEAM operations working? 
  | 

Yes, seam.properties is rigth and other Seam stuff work well, i'm sure of this.

anonymous wrote : 
  | @Factory will be called when you call it from a page (or wherever) and Seam 
will place the value into the context variable so that it isn't called again 
for the life of the context. 
  | 
This is exactly my idea, that's whay i don't understand whay my code is not 
executing the @Factory annotated method.

this is the jsf page that is calling a variable which is refrenced by the 
@Factory, the variable is "tipoAcusadoList":

anonymous wrote : 
  | 
  |  
  | 
  | 
  |  
  |  
  |  
  |  
  | 
  |  
  |  
  |  
  | 
  | 
  | 
  | 
  | 
  | 


This is my stateless session bean:
anonymous wrote : 
  | package com.facade.impl;
  | 
  | import java.util.List;
  | 
  | import javax.ejb.Stateless;
  | import javax.faces.model.SelectItem;
  | import javax.persistence.EntityManager;
  | import javax.persistence.PersistenceContext;
  | import javax.persistence.Query;
  | 
  | import org.jboss.seam.annotations.Factory;
  | import org.jboss.seam.annotations.In;
  | import org.jboss.seam.annotations.Name;
  | import org.jboss.seam.annotations.Out;
  | import org.jboss.seam.core.PersistenceContexts;
  | 
  | import com.domain.Expediente;
  | import com.domain.nomenclador.NTipoAcusado;
  | import com.facade.ExpedienteFacadeStateless;
  | 
  | @Stateless
  | @Name("expedienteFacadeStateless")
  | public class ExpedienteFacadeStatelessImpl implements 
ExpedienteFacadeStateless {
  | 
  | @In @Out
  | private Expediente expediente;
  | 
  | @PersistenceContext
  | private EntityManager em;
  | 
  | 
  | private SelectItem[] tipoAcusadoList;
  | 
  | private NTipoAcusado tipoAcusadoSelected;
  | 
  | 
  | @Factory("tipoAcusadoList")
  | public void loadTipoAcusadoList()
  | {
  | Query query = em.createQuery("Select f from NTipoAcusado f");
  | List tempList = query.getResultList();
  | int size = tempList.size();
  | tipoAcusadoList = new SelectItem[size];
  | for (int i=0;ihttp://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106399#4106399

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - @Factory is not working

2007-11-19 Thread maykellff
Hi all, i annoatated a method with a @Factory, it is supposed to be executed 
first of all, but it doesn't .
I put a break point to debug at this point but nothing, it never enter to the 
annotated method.


There is any kind of configuration i have to do in order to use @Factory 
properly, i mean, set some Seam xml file or something like that?

Thank you,
Maykell.

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

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


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - managing nomenclators with Entity Beans

2007-11-15 Thread maykellff
Hi all, i have a design question.

I have a table named eyeType with and id and a value fields

eyeType
id : Integer
value : VarChar 

And i have a Person entity bean that map to table named person, this entity 
bean have like fields an id, a name, an address, ., and an eyeType field. 
At data base level a one to many relationship between the tables eyeType and 
person is defined.

Now i would like that when i load a Person entity from the data base the field 
eyeType came with its explicit value not with the id corresponding in the 
eyeType table.

?How can i do that, there is some EJB3 or Seam or Hibernate anotation trick 
that i can use?

I hope your cooperation, 
thank you,
Maykell.

 

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

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


[jboss-user] [JBoss Seam] - Re: MyFaces, Seam and JBoss 4.2.1 GA problem

2007-11-02 Thread maykellff
ok, thank you very much, i'm much more clear now.

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

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


[jboss-user] [JBoss Seam] - Re: MyFaces, Seam and JBoss 4.2.1 GA problem

2007-11-02 Thread maykellff
ok, i change and begin to use JSF RI, but then emerge 2 questions:

1:- An old application that uses myfaces can't  be deployed in JBoss 4.2.x?

2:- How can i use Tomakwou, Sambox, Trinidad and other component libraries, i 
have to include them in my WEB-INF/lib, those component libraries are include 
in JBoss libraries? I have to configurate them in web.xml like before?

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

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


[jboss-user] [JBoss Seam] - MyFaces, Seam and JBoss 4.2.1 GA problem

2007-11-01 Thread maykellff
Hi all, i have an old MyFaces-EJB3 sample application that i'm refactoring to 
use Seam, i set every single datail (i've read a lot of tutorial and forum's 
posts about the topic ) in order to integrate Seam with my old myfaces 
application but when i try to run it on server i get the following error:

[quoted]
23:51:06,875 INFO  [STDOUT] 23:51:06,859 ERROR [StartupServletContextListener] 
Error initializing ServletContext
java.lang.IllegalArgumentException: Class 
org.jboss.seam.jsf.SeamApplicationFactory is no 
javax.faces.application.ApplicationFactory
at javax.faces.FactoryFinder.newFactoryInstance(FactoryFinder.java:132)
at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:107)
at 
org.apache.myfaces.config.FacesConfigurator.configureApplication(FacesConfigurator.java:439)
[/quoted]

If i let the Myfaces jar files in web-inf/lib but delete the myfaces listener 
entry from web.xml the application get the following error:

[quoted]
00:27:19,234 INFO  [STDOUT] 00:27:19,234 ERROR [[/jsfTest]] 
StandardWrapper.Throwable
java.lang.IllegalStateException: No Factories configured for this Application. 
This happens if the faces-initialization does not work at all - make sure that 
you properly include all configuration settings necessary for a basic faces 
application and that all the necessary libs are included. Also check the 
logging output of your web application and your container for any exceptions!
If you did that and find nothing, the mistake might be due to the fact that you 
use some special web-containers which do not support registering 
context-listeners via TLD files and a context listener is not setup in your 
web.xml.
A typical config looks like this;

  
org.apache.myfaces.webapp.StartupServletContextListener


at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:90)
at javax.faces.webapp.FacesServlet.init(FacesServlet.java:88)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4069)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4373)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
at org.apache.catalina.
[/quoted]

If i eliminate the myfaces jar, and the myfaces listener declaration in web.xml 
the application works well, then the error is exclusively related to the use of 
Myfaces, i think some kind of conflict between Seam listener and Myfaces 
Listener, but i don't know why and how solve this.

This is my web.xml:
[qouted]


http://java.sun.com/xml/ns/j2ee";
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
 jsfTest
 
  org.ajax4jsf.SKIN
  blueSky
 
 
 
  javax.faces.CONFIG_FILES
  /WEB-INF/navigation-rule.xml 
 
 
  
  State saving method: "client" or "server" (= default)
See JSF Specification 2.5.2
  javax.faces.STATE_SAVING_METHOD
  client
 


 org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL
 true
 
  
 
  Ajax4jsf Filter
  ajax4jsf
  org.ajax4jsf.Filter
  
   forceparser
   false
  
 


 
  ajax4jsf
  Faces Servlet
  REQUEST
  FORWARD
  INCLUDE
 
 
 
 
 
 

  
org.apache.myfaces.webapp.StartupServletContextListener



 
org.jboss.seam.servlet.SeamListener
 



 
 
 
  Faces Servlet
  javax.faces.webapp.FacesServlet
  1
 
 
  Faces Servlet
  *.jsf
 
 
  Faces Servlet
  /faces/*
 
 
  BASIC
 

[/qouted]

I'm using JBoss 4.2.1 GA, seam 1.2.0.AP and Myfaces 1.1.4

I hope you can help me




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

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


[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: The type Iterator is not generic; it cannot be parameter

2007-08-14 Thread maykellff
Hi, i think i found a clue to discover the mistery, i deployed the same .war in 
the ExadelStudio Pro 3.5.1 tomcat and in the ExadelStudio Pro 4.0.1(and 4.0.4) 
tomcat in the first one everythink work fine but in the second i get the error 
i described above. 
The ExadelStudio Pro 3.5.1 use Tomcat 5.0 and ExadelStudio Pro 4.0.1 and 4.0.4 
use Tomcat 5.5 

There are some problem with the new versions of Tomcat? 
Something related to the use of an old version of the JVM by default? 
Something related to mix code compiled with an old version of jdk and code 
compiled with the jdk1.5?

It seem to me like Tomcat 5.5 use a jdk version before to 1.5, although when i 
install it i set it the path to the jdk 1.5. I use Windows XP.



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

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


[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - The type Iterator is not generic; it cannot be parameterized

2007-08-13 Thread maykellff
Hi, i'm getting a bit problem, i was using ExadelStudio Pro 3.5.1, but i 
migrated to 4.0.1 and the applications that before worked well, sudendly began 
to raise inexplicable and extrange exceptions. I think i found a clue to 
discover the mistery, i deployed the same .war in the ExadelStudio Pro 3.5.1 
tomcat and in the ExadelStudio Pro 4.0.1(and 4.0.4) tomcat in the first one 
everythink work fine but in the second i get the error i refered to. 
The ExadelStudio Pro 3.5.1 use Tomcat 5.0 and ExadelStudio Pro 4.0.1 and 4.0.4 
use Tomcat 5.5 

?There are some problem with the new versions of Tomcat? 
?Something related to the use of an old version of the JVM by default?


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

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