Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
toggle
Michael Poznecki
deploying struts-config does not work correctly
25 de junio de 2009 12:26
Respuesta

Michael Poznecki

Ranking: Expert

Mensajes: 301

Fecha de incorporación: 10 de diciembre de 2008

Mensajes recientes

Hello all,

I am using Liferay 5.1 developing in Eclipse.

I have added a couple of new entries into the struts-config file. One note: it seems that when you deploy the ant script creates a struts-config-ext file ????

So if I do a full deploy, my lines are not entered into the struts-config file, but are instead put into the stuts-config-ext file. That seems like it would be find, except Liferay does not seem to read the struts-config-ext file. I'm guess that because I always get a "path not found" error when trying to access my bean.

So what I have to do, is open my struts-config file and make a minor change, (usually just put in a space) then save, then do a "fast-deploy" and it will work. Doing a "fast-deploy" will put my lines in both the struts-config file as well as the struts-config-ext file.


So I'm not sure which one is the problem: Liferay not reading the struts-config-ext file, or the ant script not putting my lines into the struts-config file.

Anyone else seen this?



Michael
Michael Poznecki
RE: deploying struts-config does not work correctly
25 de junio de 2009 12:46
Respuesta

Michael Poznecki

Ranking: Expert

Mensajes: 301

Fecha de incorporación: 10 de diciembre de 2008

Mensajes recientes

Quick update. I found that if I put my lines into the version of struts-config that is inside of the tmp folder that every thing gets copied correctly. Of course this is not the right way to fix the problem. My guess is that the version inside the tmp folder is there to copy a virgin copy into production while putting my changes into the struts-config-ext.

So the new real question is why is Liferay not reading and/or using the struts-config-ext?



Michael
Tomas Polesovsky
RE: deploying struts-config does not work correctly
25 de junio de 2009 13:14
Respuesta

Tomas Polesovsky

LIFERAY STAFF

Ranking: Liferay Master

Mensajes: 644

Fecha de incorporación: 13 de febrero de 2009

Mensajes recientes

Hi,

are you developing in EXT or Plugins SDK?

-- tom
Michael Poznecki
RE: deploying struts-config does not work correctly
29 de junio de 2009 6:32
Respuesta

Michael Poznecki

Ranking: Expert

Mensajes: 301

Fecha de incorporación: 10 de diciembre de 2008

Mensajes recientes

EXT
Mónica Rubio
RE: deploying struts-config does not work correctly
21 de julio de 2010 4:37
Respuesta

Mónica Rubio

Ranking: New Member

Mensajes: 6

Fecha de incorporación: 21 de julio de 2010

Mensajes recientes

Anyone who know what is the problem?.
I'm using Liferay 5.2.3. I've developed a hook of portlet 'journal'. I have added a new jsp and a new action mapping to this jsp. But when i added this mapping to struts-config-ext.xml by deploying 'ext/ext-web/docroot/WEB-INF/struts-config.xml' i get 'invalid path request' error. And when i edit directly 'apache-tomcat-5.5.28\webapps\ROOT\WEB-INF\struts-config.xml' everything works fine.

Thanks
Mahmudur Rahman Manna
RE: deploying struts-config does not work correctly
24 de agosto de 2010 6:56
Respuesta

Mahmudur Rahman Manna

Ranking: New Member

Mensajes: 7

Fecha de incorporación: 9 de julio de 2010

Mensajes recientes

hello,

I think the struts-config-ext.xml is not referred in ext-web web.xml. so when you deploy
ext it misses the struts-config-ext.xml.

you can do it with editing ext-web web.xml

 1<servlet>
 2        <servlet-name>Main Servlet</servlet-name>
 3        <servlet-class>com.liferay.portal.servlet.MainServlet</servlet-class>
 4        <init-param>
 5            <param-name>config</param-name>
 6            <param-value>/WEB-INF/struts-config.xml,/WEB-INF/struts-config-ext.xml</param-value>
 7        </init-param>
 8        <init-param>
 9            <param-name>debug</param-name>
10            <param-value>0</param-value>
11        </init-param>
12        <init-param>
13            <param-name>detail</param-name>
14            <param-value>0</param-value>
15        </init-param>
16        <load-on-startup>1</load-on-startup>
17    </servlet>
Mónica Rubio
RE: deploying struts-config does not work correctly
30 de agosto de 2010 0:38
Respuesta

Mónica Rubio

Ranking: New Member

Mensajes: 6

Fecha de incorporación: 21 de julio de 2010

Mensajes recientes

Hello, Mahmudur!
Yes, probably you're right. I'm going to try it and post my results. Thank you very much.