Configuration webfigures in web.xml

1 次查看(过去 30 天)
Marcel
Marcel 2011-5-25
hello
I use webfigure and Tomcat application server. If I have one application, it is my web.xml
<servlet-name>
WebFigures </ servlet-name>
<servlet-class>
com.mathworks.toolbox.javabuilder.webfigures.WebFiguresServlet
</servlet-class>
<servlet-mapping>
<servlet-name> WebFigures </ servlet-name>
<url-pattern> / WebFigures / * </ url-pattern>
</ servlet-mapping>
But when I put this code in two applications, so as to run only one, the other not
Online source codes 1. Applications
http://matlabserver.ic.cz/files/aplikace/SimulaceModulaci/v1/servlet/build/WEB-INF/
Online source codes 2. Applications
http://matlabserver.ic.cz/files/aplikace/SpektrumSignalu/v1/servlet/build/WEB-INF/
applications are placed on the application server
CATALINA_HOME / webapps / SimulaceModulaci
CATALINA_HOME / webapps / SpektrumSignalu
Please, what could it be? Thank

回答(1 个)

Michal
Michal 2011-6-13
Hi Marcel, I try to run an application {http://matlabserver.ic.cz/files/aplikace/SimulaceModulaci/v1/servlet/build/} but there is no webfigure shown. Just try to change {<servlet-class> com.mathworks.toolbox.javabuilder.webfigures.jsp.WebFiguresServlet /servlet-class} and add a package to source packages {com.mathworks.toolbox.javabuilder.webfigures.jsp} I have the same problem. Did you solved this one?
Regards, Mike
  1 个评论
Marcel
Marcel 2011-6-13
Hi, on the site are located just source code. On this site are not installed the MCR. For running, you should download the source code.
My problem was that it was not run two applications using WebFigures. File javabuilder.jar I recorded in each application separately (the application / WEB-INF / lib). The problem was that Tomcat (application server) has attempted to load a library twice. Solution: File javabuilder.jar must be loaded into the shared components directory. Then it goes okay.
Sorry for English, translated by Google Translator :-)

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Search Path 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by