Seam应用程序RichFaces没有加载组件

时间:2022-01-12 15:20:50

I have a Seam application running on:

我运行了一个Seam应用程序:

  • Linux CentOS
  • Tomcat 6.0.32
  • Java 6

  • JBoss Seam 2.2.1

    JBoss Seam 2.2.1

  • RichFaces 3.3.3

When I run my application locally, everything works fine (Windows 7 here). But when I put the exactly same files on my server (VPS), the Tomcat starts with no errors, but the application do not load RichFaces components.

当我在本地运行我的应用程序时,一切正常(Windows 7)。但是当我将完全相同的文件放在我的服务器(VPS)上时,Tomcat启动没有错误,但应用程序不加载RichFaces组件。

I've searching the solution for this problem for a few days, but didn't found nothing that can help me. I thought could be a permission problem (application's folder permission), so I've tried to change it too many ways, but RF components keep not loading.

我已经在几天内搜索了这个问题的解决方案,但没有找到任何可以帮助我的东西。我认为可能是一个权限问题(应用程序的文件夹权限),所以我试图改变它太多的方式,但RF组件不会加载。

Anyone can imagine what is happening?

谁能想象发生了什么?

Thanks in advance!

提前致谢!

Fabricio Braga

1 个解决方案

#1


0  

I have solved the problem. The point is that in my case I have an Apache HTTP Server before Tomcat, and RichFaces add some JS files from JAR files. So, we need to map, editing apache config files to redirect also this JS files to Tomcat.

我已经解决了这个问题。关键是在我的情况下,我在Tomcat之前有一个Apache HTTP Server,而RichFaces从JAR文件中添加了一些JS文件。因此,我们需要映射,编辑apache配置文件以将此JS文件重定向到Tomcat。

Then, I just edited this Apache mappings to point RichFaces JS files to Tomcat, for example:

然后,我只是编辑了这个Apache映射,将RichFaces JS文件指向Tomcat,例如:

"/my-domain-name/a4j/g/3_3_3.Final/org/ajax4jsf/framework.pack.js" mapped there: "/my-domain-name/a4j/*" for the Tomcat. And the same for the others files.

“/my-domain-name/a4j/g/3_3_3.Final/org/ajax4jsf/framework.pack.js”在那里映射:“/ my-domain-name / a4j / *”用于Tomcat。对于其他文件也一样。

After that, the problem was over.

在那之后,问题结束了。

Regards, Fabricio Braga

此致,Fabricio Braga

#1


0  

I have solved the problem. The point is that in my case I have an Apache HTTP Server before Tomcat, and RichFaces add some JS files from JAR files. So, we need to map, editing apache config files to redirect also this JS files to Tomcat.

我已经解决了这个问题。关键是在我的情况下,我在Tomcat之前有一个Apache HTTP Server,而RichFaces从JAR文件中添加了一些JS文件。因此,我们需要映射,编辑apache配置文件以将此JS文件重定向到Tomcat。

Then, I just edited this Apache mappings to point RichFaces JS files to Tomcat, for example:

然后,我只是编辑了这个Apache映射,将RichFaces JS文件指向Tomcat,例如:

"/my-domain-name/a4j/g/3_3_3.Final/org/ajax4jsf/framework.pack.js" mapped there: "/my-domain-name/a4j/*" for the Tomcat. And the same for the others files.

“/my-domain-name/a4j/g/3_3_3.Final/org/ajax4jsf/framework.pack.js”在那里映射:“/ my-domain-name / a4j / *”用于Tomcat。对于其他文件也一样。

After that, the problem was over.

在那之后,问题结束了。

Regards, Fabricio Braga

此致,Fabricio Braga