[Tomcat, HTTPD, Servlets & JSP] - problem with portlet:renderURL
by raffaele.letizia
Hi,
i have a problem with <portlet:renderURL/>. I use a form for send a parameter in a doView() but doesn't pass any param
my form in jsp is:
form action="<portlet:renderURL/>" method="POST"
input type="text" name="lalla"/
input type="submit" name="op" value="Ricerca"/
/form
while in the doView i have:
try
{
if((request.getUserPrincipal() != null) && (request.getUserPrincipal().getName() != null))
{
String userName = request.getUserPrincipal().getName();
String jspName = null;
/*verifica per l'admin che ha il controllo totale */
System.out.println(userName);
if((request.getParameter("op") != null) && (request.getParameter("op").equalsIgnoreCase("Ricerca")))
{
if (userName.equals("admin"))
{
request.setAttribute("contacts", getUsersContacts(userName,request.getParameter("lalla")));
jspName ="/WEB-INF/jsp/listuser.jsp";
}
else
{
request.setAttribute("contacts", getUsersContacts(userName,request.getParameter("lalla")));
jspName ="/WEB-INF/jsp/listuser.jsp";
}
}
please help me
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4228724#4228724
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4228724
16 years, 11 months
[JBoss jBPM] - To many Threads waiting for external Sytem Request.
by pHennig
Hallo,
i think i need some help with jbpm, because iam very new to this technology and think iam doing something wrong.
I have to write an Application where we send some Binary Data by SOAP(axis2) to a Service and wait for the Response.
The Binary data is not sended directly to the External Service, it is placed on a Queue Service, because we dont know, when the External Service will be ready to process. So the External Service claims the Data from the Queue itself, processes it and sends it directly back to my application(without a Queue).
First i thought about, to use a State Note in jbpm, wo wait for Response and continue the Process.
But there i think is a Problem:
The Thread, where this Process is added to, will be active, the whole time.
It can happen, that i will wait for response many hours, up to some days(Weekend, User out of Office..).
And there will be many Task to handle. Could be up to 1000 a hour.
And all these Threads waiting, will slow down system rapidly or directly crash it. Don`t know how many Threads a System(Even Server Architecture) can handle, but i think this is not the right way.
How should i handle this?
Maybe iam totally wrong in how i use jbpm. Iam not that deep in that technology yet, and maybe i missunderstood the field of functions of jbpm.
Would be great to get some help for this Problem.
Maybe the solution is to view on some other aspect of my project, but iam confused right now.
Thanks,
Patrick H.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4228713#4228713
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4228713
16 years, 11 months
[JBossWS] - Re: Obscure 'SAXParseException: Content is not allowed in pr
by angusm
Looking further at this, I think the trace before it blows up is relevent. it is definitely parsing the soap envelope schema:
| 2009-05-05 18:03:59,380 DEBUG [org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory] parse: http://frpar-morisona1:8080/mm7/MM7Bean?wsdl
| 2009-05-05 18:03:59,568 TRACE [org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory] getBaseInputSource [wsdlUrl=http://frpar-morisona1:8080/mm7/MM7Bean?wsdl]
| 2009-05-05 18:03:59,677 TRACE [org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory] getImportInputSource [parent=http://frpar-morisona1:8080/mm7/MM7Bean?wsdl,resource=http://www.3...]
| 2009-05-05 18:03:59,677 TRACE [org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory] Trying to resolve: http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-6-MM7-1...
| 2009-05-05 18:03:59,677 DEBUG [org.jboss.ws.core.utils.JBossWSEntityResolver] resolveEntity: [pub=http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-6-M...]
| 2009-05-05 18:03:59,677 TRACE [org.jboss.util.xml.JBossEntityResolver] resolvePublicID, publicId=http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/RE...
| 2009-05-05 18:03:59,677 TRACE [org.jboss.util.xml.JBossEntityResolver] resolveSystemID, systemId=http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/RE...
| 2009-05-05 18:03:59,677 TRACE [org.jboss.util.xml.JBossEntityResolver] resolveClasspathName, systemId=http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/RE...
| 2009-05-05 18:03:59,677 TRACE [org.jboss.util.xml.JBossEntityResolver] Mapped systemId to filename: REL-6-MM7-1-4.xsd
| 2009-05-05 18:03:59,677 TRACE [org.jboss.util.xml.JBossEntityResolver] resolveSystemIDasURL, systemId=http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/RE...
| 2009-05-05 18:03:59,677 TRACE [org.jboss.util.xml.JBossEntityResolver] Trying to resolve systemId as a URL
| 2009-05-05 18:04:00,115 TRACE [org.jboss.util.xml.JBossEntityResolver] Resolved systemId as a URL
| 2009-05-05 18:04:00,287 TRACE [org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory] getImportInputSource [parent=http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-...]
| 2009-05-05 18:04:00,287 TRACE [org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory] Trying to resolve: http://schemas.xmlsoap.org/soap/envelope/
| 2009-05-05 18:04:00,287 DEBUG [org.jboss.ws.core.utils.JBossWSEntityResolver] resolveEntity: [pub=http://schemas.xmlsoap.org/soap/envelope/,sysid=http://schemas.xmlsoa...]
| 2009-05-05 18:04:00,287 TRACE [org.jboss.util.xml.JBossEntityResolver] resolvePublicID, publicId=http://schemas.xmlsoap.org/soap/envelope/
| 2009-05-05 18:04:00,287 TRACE [org.jboss.util.xml.JBossEntityResolver] resolveSystemID, systemId=http://schemas.xmlsoap.org/soap/envelope/
| 2009-05-05 18:04:00,302 TRACE [org.jboss.util.xml.JBossEntityResolver] resolveClasspathName, systemId=http://schemas.xmlsoap.org/soap/envelope/
| 2009-05-05 18:04:00,302 TRACE [org.jboss.util.xml.JBossEntityResolver] Mapped systemId to filename:
| 2009-05-05 18:04:00,302 TRACE [org.jboss.util.xml.JBossEntityResolver] maps to URL: file:/C:/Other/eclipseall/ws/hsi/mm7-client2/bin/
|
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4228712#4228712
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4228712
16 years, 11 months
[Installation, Configuration & DEPLOYMENT] - Re: Whats the difference in Jboss version 4 and 5?
by vitalstrike83
Thanks fot the reply.
Version:
I'm able to deploy my application successfully in 4.2.2 but not in 5.0.0.GA
Framework using in applicaton:
Hibernate 3, Spring 1.6
Application Packaging:
I'm not compressing my application into a .war or .ear file. I using the expose file structure by naming the directory with .war eg: xxx.war or webby.war
Java Version
My version of Java is 1.5
I place my application into the default directory. I have also notice that the lib directory in the default folder are empty which is different from jboss 4.
This is my xml snippet for loading the database datasource with the spring framework:
<bean id="homeFactory"
| class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
|
| <property name="mappingResources">
| <list>
| <value>users.hbm</value>
|
| </list>
| </property>
| <property name="hibernateProperties">
| <props>
|
| <prop key="hibernate.dialect">
| org.hibernate.dialect.MySQLDialect</prop>
| <prop key="hibernate.show_sql">false</prop>
| <prop key="hibernate.format_sql">true</prop>
| <prop key="hibernate.cglib.use_reflection_optimizer">
| false</prop>
| <prop key="hibernate.max_fetch_depth">4</prop>
| <prop key="hibernate.generate_statistics">true</prop>
| <prop key="hibernate.use_sql_comments">false</prop>
| </props>
| </property>
| </bean>
This is the error it print put:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'homeFactory' defined in ServletContext resource [/WEB-INF/demandeContexte-db.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError
| java.lang.NoClassDefFoundError
| at org.hibernate.tuple.EntityMetamodel.class$(EntityMetamodel.java:41)
| at org.hibernate.tuple.EntityMetamodel.<init>(EntityMetamodel.java:122)
| at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:412)
| at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:108)
| at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
| at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:215)
| at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1176)
| at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:822)
| at org.springframework.orm.hibernate3.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:748)
| at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1099)
| at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:400)
| at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:234)
| at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:144)
| at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:277)
| at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:321)
| at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:139)
| at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:252)
| at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:190)
| at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
| at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
| at org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
| at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:367)
| at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146)
| at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:460)
Caused by: java.lang.ClassNotFoundException: net.sf.cglib.transform.impl.InterceptFieldEnabled from BaseClassLoader@1bb3e34{VFSClassLoaderPolicy@1f0efca{name=vfsfile:
I have already place the spring jar file int my application directory. Its not working. Whats is the reason that cause this and what must i do to solve this issue?
Thanks
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4228692#4228692
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4228692
16 years, 11 months