MathGroup Archive 2003

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: webMathematica trouble

  • To: mathgroup at smc.vnet.net
  • Subject: [mg38751] Re: webMathematica trouble
  • From: Daryl Fonseca-Holt <fonsecah at cc.UManitoba.CA>
  • Date: Wed, 8 Jan 2003 04:13:23 -0500 (EST)
  • Organization: The University of Manitoba
  • References: <200301030516.AAA16319@smc.vnet.net> <avei9d$mgp$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

I ran into this problem on Solaris. In looking at the Tomcat log it was 
not correctly initializing the webMathematica application. It was 
rejecting part of the web.xml specifically the <servlet-mapping>. It 
turned out that all declarations of <servlet> must occur before any 
<servlet-mapping>. I moved the <servlet-mapping> between the <servlet>'s 
to the end where the other <servlet-mapping> was and Tomcat was able to 
instantiate the application.

The file I am referring to is in the Tomcat directory (or in the .war 
file). After starting Tomcat it is unzipped into 
$TOMCAT/webapps/webMathematica/WEB-INF/web.xml.My file now looks like:

<!--

  Sample version of the Deployment Descriptor file suitable
  for the MathKernel web application of webMathematica.
  The settings are suitable for a Unix installation.

  Note that the DOCTYPE declaration is not present in this
  file,  in a strict sense it should be present,  but it is
  omitted since the URL that reads the DTD has problems under
  certain configurations, for example if the site is behind some
  type of firewall.

-->


<web-app>
     <servlet>
         <servlet-name>
             MSP
         </servlet-name>
         <servlet-class>
             MSP
         </servlet-class>
         <init-param>
             <param-name>wolfram.configuration_directory</param-name>
 
<param-value>/usr/local/mathematica/AddOns/Applications/MSP/Configur
ation</param-value>
         </init-param>

     </servlet>

     <servlet>
         <servlet-name>
              KernelMonitor
         </servlet-name>
         <servlet-class>
              KernelMonitor
         </servlet-class>
     </servlet>

     <servlet-mapping>
        <servlet-name>
             KernelMonitor
         </servlet-name>
         <url-pattern>
             /KernelMonitor/*
         </url-pattern>
     </servlet-mapping>

     <servlet-mapping>
        <servlet-name>
             MSP
         </servlet-name>
         <url-pattern>
             /MSP/*
         </url-pattern>
     </servlet-mapping>



</web-app>

I had this same problem with Tomcat 3.3.1 and Tomcat 4.1.17.

HTH


Kirk Reinholtz wrote:
> That sort of looks like it's just a CLASSPATH problem.  Just a guess,
> but make sure CLASSPATH includes all the Wolfram Java directories, class
> files, etc that are probably listed in the documentation someplace.
> 
> Barbara DaVinci wrote:
> 
>>Dear Mathematica Users
>>
>>I couldn't find a way to overcome an hard difficulty regarding webMathematica
>>and I'm in serious trouble with it.
>>
>>On a 1.5GHz Pentium 4  PC I'm running Windows 98, Tomcat 4.1.18 , Java SDK 1.4.0 , webMathematica and Mathematica 4.1 with JLink :
>>
>>(1) Tomcat seems running properly (I can see at url http://localhost:8080/webMathematica/index.html the HTML document)
>>
>>(2) JLink works too (I got the expected output from the test suggested in webMathematicaUserGuide.nb)
>>
>>(3) Java SDK let me compile Java source code with no hitch
>>
>>and still the only I can get when accessing  http://localhost:8080/webMathematica/MSP/Examples/Hello
>>
>>is the following disheartening message :
>>
>>HTTP Status 500 -
>>type : Exception report
>>message :
>>description : The server encountered an internal error () that prevented it from fulfilling this request.
>>exception :
>>javax.servlet.ServletException: Error instantiating servlet class MSP
>>root cause :
>>java.lang.NoClassDefFoundError: com/wolfram/jlink/MathLinkException
>>
>>I have inspected
>>C:\Programmi\Apache Group\Tomcat 4.1\webapps\webMathematica\WEB-INF\web.xml
>>and
>>C:\Programmi\Wolfram Research\Mathematica\4.1\AddOns\Applications\MSP\Configuration\MSP.conf
>>again and again and nothing obviously incorrect was found.
>>
>>Please, can anybody point at a reason for a such malfunction ?
>>
>>Thanks for attention !
>>
>>Yours sincerely
>>
>>Barbara Da Vinci
>>
>>barbaradavinci at yahoo.it
> 
> 



  • Prev by Date: Re: Passing CompiledFunction to Java
  • Next by Date: successive over relaxation
  • Previous by thread: Re: webMathematica trouble
  • Next by thread: Re: Re: webMathematica trouble