|
Blue Forest http://www.lslnet.com at 10:18 on June 6, 2006
To cinc
Thank you for your help mastermind, but there are still a few areas I very clearly,
Http://www.www.lslnet.com/linux/forum/viewtopic.php?t=54409
1. Modify apache/conf/httpd.conf
DocumentRoot "http://www.oagbvg.gc.ca/domino/env_commitments.nsf/homepage"
"Directory" http://www.oagbvg.gc.ca/domino/env_commitments.nsf/homepage "";
What is the role? Why is it necessary to reform?
2. Cd /usr/local
Tar zxvf resin.tar.gz
Cd resin
. /configure --with-apache=/usr/local/apache
After completion of the translation here, do make, make install?
Thank you! |
To cinc
TO cinc
I have integrity, and in accordance with your steps, but in my test page TEST.JSP there are mistakes :
500 Servlet Exception
Resin can 't load sun.tools.javac.Main. Usually this means that the JDK
Tools.jar is missing from the classpath, possibly because of using a JRE
Instead of the JDK. You can either add or change tools.jar to the classpath
The compiler to an external one with the "java compiler= 'javac' />; or jikes.
Java.lang.ClassNotFoundException : sun.tools.javac.Main
--------------------------------------------------------------------------------
Resin 2.1.9 (built Tue Apr 15 14:28:40 PDT 2003)
How to set my path? I use the HP website make further from the JAVA1.3, is also installed following RESIN.CONF, I saw you give me RESIN.CONF configuration, but it seems a bit like I told you, to see what help you! Thank you!
- Conf/samples/simple.conf-a simple, basic configuration
- Conf/samples/deploy.conf-a simple configuration for deployment
-
- The configuration is based on a purely element-based XML. To make
- It easier to read, attributes can be used as syntactic sugar.
-
- The following are equivalent :
- "Foo>;<bar>;13</bar>;</foo>;-canonical representation, but verbose
- "Foo bar=13/>;-typical configuration
- "Foo>;<bar id=13/>;</foo>; - sometimes useful
-->;
"Caucho.com>;
<!--
- Resin logging. Debugging is also available with different values
- For id.
-->;
"Log filled="f" '/log' style='mso-footnote-id:ftn1' 'stderr :' timestamp= '[%Y-%m-%d %H:%M:%S.%s]' />;
"Known Security providers. Adding JSSE looks like :
- "Security-provider filled="f" 'com.sun.net.ssl.internal.ssl.Provider' />;
-->;
<!--
- You can change the compiler to "javac" or jikes.
- The default is "internal" only because it 's the most
- Likely to be available.
-->;
"Java compiler=" internal "compiler-args=" "/>;
<!--
- Sample database pool configuration
- The name is java:comp/env/jdbc/test JDBC
-->;
"Resource-ref>;
"Res-ref-name>;jdbc/test</res-ref-name>;
"Res-type>;javax.sql.DataSource</res-type>;
"Init-param driver-name=" com.caucho.jdbc.mysql.Driver "/>;
"Init-param url=" jdbc:mysql_caucho://localhost:3306/test "/>;
"Init-param user=" "/>;
"Init-param password=" "/>;
"Init-param max-connections=" 20 "/>;
"Init-param max-idle-time=" 30 "/>;
"/resource-ref>;
<!--
- Use precompiled JSP classes if available.
- 'Static-encoding' - optimization if you stick to one character set
-->;
"Jsp precompile= 'true' static-encoding= 'true' recompile-on-error= 'true' />;
"Http-server>;
<!--
- The root directory of the file server. Apache users will change
- This will change it to /usr/local/apache/htdocs and IIS users
- To d:\inetpub\wwwroot
-->;
"Doc-dir>;/usr/local/apache/htdocs/</doc-dir>;
"Known the http port -->;
"Http port= '8080' />;
<!--
- The srun port, and read by both JVM plugin
- Is the localhost 127.0.0.1
-->;
"Srun host= '127.0.0.1' port= '6802' />;
<!--
- How to add SSL :
-
- "Http port=8443>;
- "Ssl>;true</ssl>;
- "Key-store-type>;pkcs12</key-store-type>;
- "Key-store-file>;keys/server_cert.p12</key-store-file>;
- "Key-store-password>;changeit</key-store-password>;
- "/http>;
-->;
<!--
- If starting bin/httpd.sh as root on Unix, specify the user name
- And group name for the web server user. Note : Linux users must
- Either have the new thread package (RedHat 9.0 or later) or use
- Bin/resin.
-
- "User-name>;resin</user-name>;
- "Group-name>;resin</group-name>;
-->;
<!--
- For production sites, something to change class-update-interval
- Like 60s, so it only checks for updates every minute.
-->;
"Class-update-interval>;2s</class-update-interval>;
<!--
- If true, the classloader order follows the servlet spec.
- If false, the classloader order follows the JDK spec.
-->;
"Servlet-classloader-hack>;false</servlet-classloader-hack>;
<!--
- Select to display an error page when the connection fails.
-
- "Error-page exception= 'connection' location= '/my-error-page.html' />;
-->;
"Goes To disable /caucho-status, set this to false -->;
"Caucho-status>;true</caucho-status>;
"-- A maximum number of threads -->;
"Thread-max>;150</thread-max>;
<!--
- How many threads to wait for keepalives. Should be at least the
- Number of Apache processes to get good performance.
-->;
"Thread-keepalive filled="f" '100' />;
<!--
- How long should listen and an idle keepalive connection to the socket.
-
- The choice of 65 seconds is to avoid the IE SSL timeout problem.
- If you ''re not using SSL, you can make this shorter.
-->;
"Request-timeout filled="f" '65s' />;
<!--
- How many sockets to hold in the buffer before failing requests.
-->;
"Accept-buffer-size filled="f" '256' />;
<!--
- Maximum number of threads which will wait for a socket request.
-->;
"Thread-min filled="f" '5' />;
<!--
- Ping to test if the web server is still up. You can uncomment this
- And point it to your main pages on the webserver that exercise
- Logic (like database access). If the GET fails, it will restart
- The server. This will catch deadlocks, but not JDK freezes.
-
- "Sleep-time= of ping '1m' retry-count= '3' retry-time= '1s'";
- "Url>;http://localhost:8080/ping/ping.jsp</url>;
- "/ping>;
-->;
<!--
- Enables/disables exceptions when the CPU closes a connection.
-->;
"Ignore-client-disconnect>;true</ignore-client-disconnect>;
<!--
- Enable internal caching.
- 'Dir' is the directory containing the cache
- 'Size' is the memory size in kb
- 'Entries' is the total number of entries
-->;
"Cache dir= 'cache' size = '1024' entries= 'aging' />;
<!--
- Cacheable Expires time for a file. Production sites will
- Normally change this to '15m'
-->;
"Cache-mapping url-pattern= '/' expires= '2s' />;
<!--
- Configuration outside the servlet "host>; is a default for all hosts.
-->;
"Servlet-mapping url-pattern= '*.xtp' servlet-name= 'xtp' />;
"Servlet-mapping url-pattern= '*.jsp' servlet-name= 'jsp' />;
<!--
- The "invoker" servlet invokes servlet classes from the URL.
- /examples/basic/servlet/HelloServlet Will start the HelloServlet
- 14.00. In general, the invoker should only be used
- For development, not on a deployment server, because it might
- Leave open security holes.
-->;
"Servlet-mapping url-pattern= '/servlet/*' servlet-name= 'invoker' />;
<!--
- Set the pages to be used as welcome (ENH) files
-->;
"Welcome-file-list>;index.xtp, index.jsp, index.html</welcome-file-list>;
"-- A default host if no other host matches -->;
"Host filled="f" ''";
<!--
- The standalone server should uncomment for access logging.
- With another Web server, like Apache, the web server will
- Log this information.
-->;
"Access-log filled="f" 'logs/access.log'
Format= '%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'
Rollover-period= '1W' />;
"Error-log filled="f" 'logs/error.log' />;
<!--
- Specifies an automatically-expanding. War dir. Any foo.war
- File will be expanded to a /foo application.
-->;
"War-dir filled="f" 'webapps' />;
"Web-app filled="f" '/'";
<!--
- The classpath directive may be repeated. Source is optional
- Servlets and beans generally belong in WEB-INF/classes
-->;
"Classpath filled="f" 'WEB-INF/classes'
Source= 'WEB-INF/classes'
Compile= 'true' />;
"Session-config>;
"Session-max>;4096</session-max>;
"Session-timeout>;30</session-timeout>;
"Enable-cookies>;true</enable-cookies>;
"Enable-url-rewriting>;true</enable-url-rewriting>;
<!--
- Store sessions in the filesystem, so they can persist across
- Servlet and class changes.
-
- Uncomment this during development.
-->;
<!--
- "File-store>;WEB-INF/sessions</file-store>;
-->;
"/session-config>;
"Known enable multipart-mime/form processing -->;
<!--
- "Multipart-form upload-max= '-1' />;
-->;
"Known /~user maps to user directories -->;
"Path-mapping url-regexp= '^/~ ([^/]*)'
Real-path= '/home/$1/public_html/' />;
"/web-app>;
<!--
- The following entries configuration the examples. You may safely
- Delete anything from here down.
-->;
<!--
- Define applications (ServletContexts) for the examples.
- Since applications are entirely separate from one another.
- Including variables and servlet-mappings session, the
- Servlet-mapping declarations need to be repeated.
-->;
"Web-app filled="f" 'java_tut' />;
"Web-app filled="f" 'examples/basic'";
"Known Application init parameters, see Env.java to get the values -->;
"Context-param info= 'An application of information string' />;
"Known snoop-servlet handles all urls starting with /snoop -->;
"Servlet-mapping url-pattern= '/snoop/*' servlet-name= 'snoop-servlet' />;
"Known configure snoop-servlet with init parameters -->;
"Servlet-name= servlet 'snoop-servlet' servlet-class= 'Env'";
"Init-param info= 'A servlet information string' />;
"/servlet>;
"/web-app>;
"Web-app filled="f" 'examples/tags' />;
"Web-app filled="f" 'examples/tictactoe' />;
"Web-app filled="f" 'examples/navigation' />;
"Web-app filled="f" 'examples/xsl' />;
"Web-app filled="f" 'examples/templates'";
"Servlet-mapping url-pattern= '/servlet/*' servlet-name= 'invoker' />;
"Servlet-mapping url-pattern= '/GuestJsp' servlet-name= 'GuestJsp' />;
"Servlet-mapping url-pattern= '/GuestXtp' servlet-name= 'GuestXtp' />;
"Servlet-mapping url-pattern= '/RSS' servlet-name= 'jsp.RSS' />;
"Servlet-name= servlet 'GuestJsp' servlet-class= 'jsp.GuestJsp' />;
"Servlet-name= servlet 'GuestXtp' servlet-class= 'jsp.GuestXtp' />;
"/web-app>;
"Web-app filled="f" '/examples/login' />;
"/host>;
<!--
- Known broken browsers. These should no longer be necessary, but
- You can uncomment them if they become a problem.
-
- "Browser-mapping regexp=" MSIE 4\.0b2 "force10/>;
- "Browser-mapping regexp=" RealPlayer 4\.0 "force10/>;
- "Browser-mapping regexp=" Java/1\\.0 "force10/>;
- "Browser-mapping regexp=" JDK/1\\.0 "force10/>;
-->;
"/http-server>;
"/caucho.com>;
# |
| |