-
1. Re: WebApp Development
newbie007 Jul 24, 2006 9:32 AM (in response to viegas)Paste your code or copy any exception you are getting.
Thanks. -
2. Re: WebApp Development
viegas Jul 24, 2006 9:48 AM (in response to viegas)Ok here goes, the console
14:40:00,163 DEBUG [CommandExecutorThread] waiting for more messages 14:40:00,163 DEBUG [StaticNotifier] going to wait for (CMD_EXECUTOR, java.lang.Object@12d9844) 14:40:02,944 DEBUG [JbpmContextInfo] creating jbpm context with service factories '[message, scheduler, logging, persistence, authentication]' 14:40:02,944 DEBUG [JbpmContext] creating JbpmContext 14:40:02,944 INFO [STDOUT] Servelet 14:40:02,944 INFO [STDOUT] acþÒo verAccao 14:40:02,944 INFO [STDOUT] opcao 274 14:40:02,944 DEBUG [HomeBean] entrou no homeBean 14:40:02,944 DEBUG [DbPersistenceServiceFactory] creating persistence service 14:40:02,944 DEBUG [DbPersistenceService] creating hibernate session 14:40:02,944 DEBUG [DbPersistenceService] beginning hibernate transaction 14:40:02,944 DEBUG [HomeBean] getTaskInstances(ernie) 14:40:03,038 DEBUG [HomeBean] selectTaskInstance(274) 14:40:03,085 DEBUG [HomeBean] TaskInstance[Send Updated Order] 14:40:03,444 INFO [STDOUT] Controlador nao nulo 14:40:04,022 DEBUG [Converters] adding converter 'D', 'org.jbpm.context.exe.converter.DoubleToStringConverter' 14:40:04,038 DEBUG [Converters] adding converter 'C', 'org.jbpm.context.exe.converter.CharacterToStringConverter' 14:40:04,038 DEBUG [Converters] adding converter 'B', 'org.jbpm.context.exe.converter.BooleanToStringConverter' 14:40:04,038 DEBUG [Converters] adding converter 'Y', 'org.jbpm.context.exe.converter.BytesToByteArrayConverter' 14:40:04,038 DEBUG [Converters] adding converter 'A', 'org.jbpm.context.exe.converter.DateToLongConverter' 14:40:04,038 DEBUG [Converters] adding converter 'R', 'org.jbpm.context.exe.converter.SerializableToByteArrayConverter' 14:40:04,054 DEBUG [Converters] adding converter 'I', 'org.jbpm.context.exe.converter.IntegerToLongConverter' 14:40:04,054 DEBUG [Converters] adding converter 'H', 'org.jbpm.context.exe.converter.ShortToLongConverter' 14:40:04,069 DEBUG [Converters] adding converter 'G', 'org.jbpm.context.exe.converter.FloatToDoubleConverter' 14:40:04,069 DEBUG [Converters] adding converter 'F', 'org.jbpm.context.exe.converter.FloatToStringConverter' 14:40:04,069 DEBUG [Converters] adding converter 'E', 'org.jbpm.context.exe.converter.ByteToLongConverter' 14:40:04,476 DEBUG [TaskBean] initialized availableTransitions null 14:40:04,694 DEBUG [JbpmContextInfo] creating jbpm context with service factories '[message, scheduler, logging, persistence, authentication]' 14:40:04,694 DEBUG [JbpmContext] creating JbpmContext 14:40:04,694 DEBUG [DbPersistenceServiceFactory] creating persistence service 14:40:04,694 DEBUG [DbPersistenceService] creating hibernate session 14:40:04,694 DEBUG [DbPersistenceService] beginning hibernate transaction 14:40:04,694 DEBUG [SchedulerThread] checking for timers 14:40:04,694 DEBUG [JbpmContext] closing JbpmContext 14:40:04,694 DEBUG [Services] closing service 'persistence': org.jbpm.persistence.db.DbPersistenceService@1816b6e
and here goes the servletprivate void processarAccao(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { ServletContext context = getServletContext(); HttpSession session = req.getSession(true); try { System.out.println("Servelet"); System.out.println("acção " + req.getParameter("accao")); System.out.println("opcao " + req.getParameter("opcao")); if (req.getParameter("accao").equals("verAccao")) { String id = req.getParameter("opcao"); HomeBean hb = new beans.HomeBean(session); List lista = hb.getTaskInstances("ernie"); hb.selectTaskInstance(Long.valueOf(id)); } else { System.out.println("Falhou"); } } catch (Exception e) { System.out.println(e.getMessage()); System.out.println("MP----------"); System.out.println(e.getCause()); System.out.println("MP----------"); e.printStackTrace(); } }
It doesnt return any error, just goes to a blank page, I tried to reproduce the same thing thats in the example. -
3. Re: WebApp Development
newbie007 Jul 24, 2006 10:03 AM (in response to viegas)What are the parameters you are getting in the request?
Is it going into the "if" block?
Did you try debugging? -
4. Re: WebApp Development
viegas Jul 24, 2006 10:20 AM (in response to viegas)yes its going into the if and I had put some debug messages in the bean, its going tru evering, I think.
The messageDEBUG [TaskBean] initialized availableTransitions null
it is send in the task bean .
de console its basicly the same if I run my aplication and the webapp , -
5. Re: WebApp Development
viegas Jul 24, 2006 10:32 AM (in response to viegas)I think that when I do the comand
hb.selectTaskInstance(Long.valueOf(id));
There sould be something that redirects the browser page into the next page, right?
at least I didnt find anything else in the webapp -
6. Re: WebApp Development
newbie007 Jul 24, 2006 1:26 PM (in response to viegas)In the default web app (jbpm default webapp which uses JSF) the redirection is done using the faces-config.xml.
Where are you doing your redirection? If everything is fine in the servlet, where do you tell the system that redirect to next page?
Thanks. -
7. Re: WebApp Development
kukeltje Jul 24, 2006 4:04 PM (in response to viegas)Hey newbie, change your name... it should be expert007 now, or maybe expert42 (you know, life, the universe....)
-
8. Re: WebApp Development
newbie007 Jul 24, 2006 6:29 PM (in response to viegas)Ronald,
Thanks for the compliments :-).
I will create a new user id.
Thanks