Read Seasar2WebWebOTX AS text version

Seasar2 Web WebOTX AS

2008.2.8 1.0 NEC

i

Web NEC WebOTX Seasar2 Web S2struts-example Tomcat WebOTX AS WebOTX AS Web

WebOTX V6.x , WebOTX V7.x

ii

1.0 2008/02/08 1.0

iii

1. ................................................................................................................................. 1

1.1. ............................................................................................................................. 2

................................................................................................................................2 Web .............................................................................................................................................3 ...........................................................................................................................................3 ...................................................................................................................................5 WebFlash ...........................................................................................6 ............................................................................................................................7 1.1.1. 1.1.2. 1.1.3. 1.1.4. 1.1.5. 1.1.6.

2. ................................................................................................................................ 9

2.1. 2.2. ............................................................................................................................. 9 ........................................................................... 10

Web...................................................................................................................10 Web...................................................................................................................11 ...................................................................................................................11 .........................................................................................................................13 ....................................................................................................................................13 .....................................................................................................................................13

2.2.1. 2.2.2. 2.2.3. 2.2.4. 2.2.5. 2.2.6.

2.3. 2.4.

......................................................................................................................... 14 JDBC............................................................................................................ 14

JDBC..............................................................................................................14 ..................................................................................................................................15 WebOTX V7.1V6.5V6.4 og4j ...................................................................................15 WebOTX V6.3 Log4j ..................................................................................................17 ......................................................................................................19 BASICFORM ........................................................................20 ............................................................................................................22 ..................................................................................................................23 ............................................................................................................23

2.4.1. 2.4.2.

2.5.

log4j ................................................................................................................................. 15

2.5.1. 2.5.2.

2.6.

nec-web.xml ......................................................................... 19

2.6.1. 2.6.2.

2.7.

.......................................................................................................... 22

2.7.1. 2.7.2. 2.7.3.

3. ....................................................................................................................... 24

3.1. 3.2. Web..................................................................................................................... 24 ...................................................................................................................................... 25

WAR ..........................................................................................................................25 .......................................................................................................................26

3.2.1. 3.2.2.

3.3.

i

............................................................................................................................ 26

3.4. 3.5. 4.1. 4.2. 4.3. 5.1. 5.2.

.......................................................................................................................... 27 ...................................................................................................................... 27 WebQ&A .......................................................................... 28 WebQ&A.................................................................................... 29 Q&A .......................................................................................... 30 J2SE SDK ...................................................................................................... 31 Tomcat .......................................................................................................................... 31

4. Q&A .................................................................................................................................... 28

5. .............................................................................................................................. 31

ii

1.

Web WebOTX V6V7 Java Java 2 Platform, Enterprise Edition (J2EE) 1.4WebOTX Web Apache Tomcat Tomcat 5.0 JSP Web (Web ) WebOTX V6.3 Web Apache Tomcat 5.0.28 Apache Tomcat ( Tomcat ) Web WebOTX

WebOTX Web WebOTX V6.x, WebOTX V7.x

OS '/'Windows '\'

${env} $(env)

) ${AS_INSTALL} : ${ INSTANCE_ROOT}:

1

1.1.

WebOTX WebOTX J2SE SDK WebOTX

1.1.1.

WebOTX V6.5 OS J2SE SDK OS Windows 2000 Server Windows Server 2003 Windows Server 2003(IPF Windows Server 2003 x64 Edition HP-UX 11i v1 HP-UX 11i v2 Solaris 8 Solaris 9 RHEL AS/ES 4.0 WebOTX V6.31 WebOTX Web SDK 1.4.2 × 1.4.2.05 1.4.2.05 SDK 5.0 × Update 4 5.0.02

WebOTX V7.11 OS J2SE SDK OS Windows 2000 Server Windows Server 2003 Windows Server 2003(IPF Windows Server 2003 x64 Edition HP-UX 11i v1 HP-UX 11i v2 Solaris 9 Solaris 10 RHEL AS/ES4.0 MIRACLE LINUX V4.0 RHEL AS/ES4.0 (IPF) RHEL AS/ES4.0 (EM64T) SDK 1.4.2 × 1.4.2.05 1.4.2.05 × SDK 5.0 × Update 4 5.0.02 × (Update4 ) Java SE 6 × × × ×

2

1.1.2. Web

WebOTX Web Web WebOTX Web Apache HTTP Server Internet Information Server (IIS) Sun Java System Web Server 6.1 Sun ONE Web Server 1.3.2.0. 1.3.2.0. 5.06.0 6.1 6.0 HP-UX 11i v2

WebOTX WebOTXWeb Apache HTTP Server WebOTX WebOTX WebOTX WebOTX WebOTX WebOTX V6.1 V6.2 V6.3 V6.4 V7.1 WebOTX Web Apache HTTP Server 1.3.31 2.0.52 1.3.33 2.0.54 1.3.34 2.0.55 1.3.36 2.0.58 1.3.37 2.0.59

1.1.3.

WebOTX JDBC Transaction (JTA) JDBC 2.0 JDBC 3.0 JDBC JDBC 2.0 JDBC 3.0 JDBC

WebOTX V6.5 JDBC JDBC Oracle8i R8.1.6 (JTA Oracle R8.1.7 ) Oracle R8.1.7 Oracle Type 24 Oracle9i Database Release 1 (9.0.1) Oracle9i Database Release 2 (9.2.0) Oracle Database 10g Release 1 (10.1.0) Oracle Database 10g Release 2 (10.2.0) IBM Type 4 DB2 Universal Database 8.1.4 (*2) (*1)

3

Microsoft Sybase

Type 4 Type 4 Type 4

Microsoft SQL Server 2000 Microsoft SQL Server 2005 Sybase Adaptive Server Enterprise 12.5 Connect for JDBC 3.3 Oracle SequeLink for JDBC 5.0 Oracle PostgreSQL 7.3.2 (JDBC 7.3-113)

DataDirect Type 3

PostgreSQL Group

Development

Type 4

8.1.2 (JDBC 8.1-404) (JTA 8.1.0 )

(*3)

Cloudscape

Type 4

Cloudscape 3.0.3 (Sun J2EE 1.3.1 SDK )

(*1) Oracle8i R8.1.6 2 JDBC JDBC JDBC JTA JDBC SequeLink (*2) Oracle Real Application Cluster(RAC) X/Open XA 2 PSR 10.1.0.3 PSR 9.2.0.7 Oracle (*3) PostgreSQL 2 PostgreSQL 8.1 8.1-404 JDBC

WebOTX V7.1 JDBC JDBC Oracle R8.1.7 Oracle9i Database Release 1 (9.0.1) Oracle Type 24 Oracle9i Database Release 2 (9.2.0) Oracle Database 10g Release 1 (10.1.0) Oracle Database 10g Release 2 (10.2.0) IBM Type 4 DB2 Universal Database 8.1.4 DB2 V9.1 Microsoft SQL Server 2000 Microsoft SQL Server 2005 Sybase Adaptive Server Enterprise 12.5 Connect for JDBC 3.3 Oracle SequeLink for JDBC 5.0 Oracle (*1)

Microsoft Sybase

Type 4 Type 4 Type 4 Type 3

DataDirect

4

PostgreSQL 7.3.2 (JDBC 7.3-113) PostgreSQL Group Development Type 4 8.1.2 (JDBC 8.1-404) (JTA 8.1.0 ) Cloudscape Apache Derby Type 4 Type 4 Cloudscape 3.0.3 (Sun J2EE 1.3.1 SDK ) Apache Derby 10.2.2.0 (*2)

(*1) Oracle Real Application Cluster(RAC) X/Open XA 2 PSR 10.1.0.3 PSR 9.2.0.7 Oracle (*2) PostgreSQL 2 PostgreSQL 8.1 8.1-404 JDBC

1.1.4.

WebOTX

WebOTX Java Beans Activation V6.1 1.0.2 1.3.1 1.2.5 1.5.4 1.6.1 V6.22 1.0.2 1.3.1 1.2.5 1.5.4 1.6.1 V6.31 1.0.2 1.3.1 1.2.5 1.5.4 1.7.0 V6.4 1.0.2 1.3.1 1.2.5 1.5.4 1.7.0 V6.5.02 1.0.2 1.3.1 1.2.5 1.5.4 1.7.0 V7.1 1.0.2 1.3.1 1.3.04 1.6.5 1.7.0

Framework (JAF) JavaMail JAXP Ant Jakarta Commons BeanUtiles Jakarta Commons Codec Jakarta Commons Collections Jakarta Commons Digester Jakarta Commons Discovery Jakarta Commons EL

1.2

1.3

1.3

1.3

1.3

1.3

2.11

2.11

2.11

2.11

2.11

2.11

1.5

1.6

1.7

1.7

1.8

1.8

0.2

0.2

0.2

0.2

0.4

0.4

1.0

1.0

1.0

1.0

1.0

1.0

5

Jakarta Commons FileUpload Jakarta Commons Launcher Jakarta Commons Logging Jakarta Commons Modeler Jakarta Regexp Log4j XML Xerces 2 Java Parser XML Xalan Java 2 The Web Services Description Language (WSDL4J) for Java Toolkit

1.0

1.0

1.0-dev

1.1

1.1

1.1

1.1

1.1

1.0.4

1.0.4

1.0.4

1.0.4

1.1

1.1

1.1 1.3 1.2.8 2.5.0 2.5.2

1.1 1.3 1.2.8 2.5.0 2.5.2

1.1 1.4 1.2.13 2.5.0 2.5.2

1.1 1.4 1.2.13 2.5.0 2.5.2

2.0 1.4 1.2.14 2.5.0 2.5.2

2.0 1.5 1.2.14 2.9.0 2.7.0

1.4

1.4

1.4

1.4

1.4

1.4

1.1.5. Web Flash

WebOTX Web Web Adobe(Macromedia Flash Web Web Macromedia Flash Player 7 (Adobe(Macromedia) Flash Player ) Macromedia Flash Player 7 Macromedia Flash Player

Adobe Flash Player Adobe.Web

6

Adobe Flash Player Adobe Flash Player AdobeWebAdobe Flash PlayerAdobe Flash Player AdobeWeb 2007 7 3 AdobeWeb

1.1.6.

Web Java WebOTX

domain1/lib/ext classpath WebOTX/lib domain1/lib WEB-INF/lib 1 WebOTX

nec-web.xml delegate delegate=true delegate WebAP WEB-INF/nec-web.xml

domain1/lib/ext WebOTX/lib classpath domain1/lib WEB-INF/lib 2 delegate=true

7

delegate=false

WEB-INF/lib domain1/lib/ext WebOTX/lib classpath domain1/lib 3 delegate=false

8

2.

Web WebOTX Seasar2 S2struts-example

2.1.

Web WebOTX Web WAR JDBC log4j nec-web.xml WAR 2.2.1. 2.3 2.4 2.5 2.5 2.7

Web (WAR)

Web WAR WAR

WebOTX Java Java Web WebOTX

JSP (import) JDK 1.4 Javac Java J2SE 1.4.0 J2SE 1.4.0

JDBC

Tomcat conf/server.xml JDBC WebOTX JMX (Java Management Extensions) / WebOTX JNDI API JDBC JDBC JDBC Web JDBC JDBC

9

log4j

WebOTX Apache Logging Server log4j WebOTX log4j Web log4j WebOTX log4j

nec-web.xml

Web Struts log4jjakarta commons JAR WebOTX CORBA WAR WEB-INF/lib log4j CORBA WebOTX Web Web nec-web.xml

2.2.

Web Seasar2 S2strutsExample V1.2.11 http://s2struts.seasar.org/ja/index.html http://s2struts.seasar.org/download/2008-01-16/S2StrutsExample-V1.2.11.zip S2struts-example

2.2.1. Web

ZIP Web WAR Tomcat Web Eclipse TomcatPlugin Web WAR jar Web WARs2struts-example.war JDK " C:\j2sdk1.4.2"

>cd < s2struts-example > > C:\j2sdk1.4.2\bin\jar

Web

cvf ../s2struts-example.war ./

s2struts-example css images ... WEB-INF web.xml nec-web.xml ... index.html

10

2.2.2. Web

Web s2struts-example.war(otxadmin) "3.2. " otxadmin> deploy --user admin --password adminadmin --host localhost --port 6212 s2struts-example.war

Web Edition,Standard-J Edition, Stanadard Edition,Enterprise Edition ${ INSTANCE_ROOT}/logs/webotx_agent.log

Stanadard Edition,Enterprise Edition ${ INSTANCE_ROOT}/logs/tpsystem/<>/<>/ <>.< >.<PID>.log

2.2.3.

" "2.7.

grant { permission java.lang.RuntimePermission "loadLibrary.*"; : permission java.io.FilePermission "<<ALL FILES>>", "read,write";

// add for S2strats-example permission java.lang.RuntimePermission "setContextClassLoader"; permission java.lang.RuntimePermission "createClassLoader"; permission java.lang.RuntimePermission "getProtectionDomain"; permission ognl.OgnlInvokePermission "*";

permission java.io.FilePermission "${com.nec.webotx.instanceRoot}${/}lib${/}databases${/}-", "delete";

11

Web 2.7.2.

java.security.AccessControlException: access denied (java.lang.RuntimePermission setContextClassLoader)

permission java.lang.RuntimePermission "setContextClassLoader";

12

2.2.4.

2.2.5. delegate="true" WebAppClassloaderdelegate="false" 2.6.nec-web.xml s2struts-example delegate="false" delegate="false"

2.2.5.

Web jdbc jdbc Tomcat common/lib ${ INSTANCE_ROOT}/lib/ext 1.1.6 s2struts-example

WebOTX Web Web commons-logging-...jar log4j-...jar

WEB-INF/lib WEB-INF/lib domain1/lib

2.2.6.

s2struts-example Web hsqlDB

${ INSTANCE_ROOT}/applications/j2ee-modules/s2struts-example/WEB-INF/hsql/bin/runHsqldb.bat DB

WebOTX http://localhost/s2struts-example/ S2Struts Employee Management (HSQLDB )

13

2.3.

JSP (import) Java2 SDK 1.3.1 Javac J2SE 1.4.0 JSP JSP WebOTX JSP WebOTX V6 J2SE 1.4.2 5.0 J2SE 1.3.1 import import <%@ page import="Converter,ConverterHome" %>

import import

2.4. JDBC

WebOTX JDBC WebOTX (otxadmin) WebOTX 1.

2.4.1. JDBC

JDBC JNDI WebOTX domain1 Oracle JDBC otxadmin> create-jdbc-datasource --user admin --password adminadmin --port 6212 --host localhost --dataSourceType JDBCEX_Oracle --jdbcMajorVersion 3 --maxPoolSize 10 --jdbcUserName scott --jdbcPassword tiger --dataSourceName "jdbc:oracle:thin:@hostname:1521:ORCL" jdbc/MyOracle 1 WebOTX 1. "create-jdbc-datasource" "jdbc:oracle:thin:@hostname:1521:ORCL" jdbc/MyOracle

> Command create-jdbc-datasource executed successfully.

14

otxadmin> list-jdbc-datasources --user admin --password adminadmin --port 6212

2.4.2.

1.1.6 classpath( jar ) (domain/lib/ext)

Oracle JDBC (ojdbc14.jar) domain1 otxadmin> get --user admin --password adminadmin --port 6212 --host localhost server.java-config.classpath-suffix 1

JDBC otxadmin> set --user admin --password adminadmin --port 6212 --host localhost server.java-config.classpath-suffix="...;/temp/ojdbc14.jar" "/temp/ojdbc14.jar" set

2.5. log4j

Tomcat Web log4j WebOTX WebOTX V7.1 WebOTX V6.x

2.5.1. WebOTX V7.1V6.5V6.4 og4j

Web log4j WebOTX log4j

Web log4j Web log4j WEB-INF/classes WebOTX log4j.configration

15

WebOTX log4j.configration Windows

otxadmin > delete-jvm-options -Dlog4j.configuration= file¥¥:///${com.nec.webotx.instanceRoot} ${file.separator}config${file.separator }log4j.xml

UNIX

otxadmin > delete-jvm-options -Dlog4j.configuration= file¥¥://${com.nec.webotx.instanceRoot} ${file.separator}config${file.separator} log4j.xml

war war

otxadmin > deploy ${WEBAPNAME}

nec-web.xml war nec-web.xml nec-web.xml ${INSTANCEROOT}/applications/j2ee-modules/${WEBAPNAME}/WEB-INF/nec-web.xml nec-web.xml delegate=false Servlet 2.4 Web delegate=true true nec-web.xml <class-loader delegate=false/> Web WEB-INF nec-web.xml war

war war

otxadmin > deploy ­force ${WEBAPNAME}

domain1

otxadmin > stop-domain domain1

16

WebOTX log4j WebOTX log4j ${INSTALLDIR}/lib/log4j.jar

otxadmin > stop-domain domain1

WebOTX log4j war log4j ${INSTALLDIR}/lib/log4j.jar Web ${INSTANCEROOT}/config/log4j.xml log4j.xml

WebOTX V7.1 WebOTX 3.

Stanadard Edition,Enterprise Edition log4j ${ INSTANCE_ROOT}/config/tpsystem/logconf/<>- <>/log4j.xml

2.5.2. WebOTX V6.3 Log4j

Tomcat Web Web WEB-INF/classes log4j.properties log4j.xml Tomcat3.x TOMCAT_OPTS Tomcat4.x CATALINA_OPTS log4j.configuration

WebOTX WebOTX WebOTX WebOTX WebOTX logging ${INSTANCE_ROOT}/cnofig/log4otx.xml Standard/Enterprise Edition Java ${INSTANCE_ROOT}/config/logconf/<>/< >/log4otx.xml

WebOTX log4j commons-logging WebOTX log4j 1.2.13

17

${INSTALL_ROOT}/lib/log4j.jar log4j ${INSTANCE_ROOT}/config/log4j.xml commons-logging ${INSTALL_ROOT}/lib/commons-package.jar

Tomcat4.x log4j

log4.configuration (tomcat4.x unix export CATALINA_OPTS="-Dlog4j.configuration=file:///home/foo/log4j.xml"

(WebOTX ) otxadmin > create-jvm-options --user admin --password adminadmin --port 6212 --host localhost "-Dlog4j.configuration=file¥:///${com.nec.webotx.instanceRoot}${file. separator}config ${file.separator}<log4j >.xml" Web log4j API log4j

WebOTX V6V6.3 log4j log4j WebOTX WebOTX V6.4 WebOTX WebOTX logging log4j

WebOTX 2.6. log4j

18

2.6. nec-web.xml

Web Servlet (Deployment Descriptor) XML (web.xml) WebOTX V6V7 Servlet web.xml nec-web.xml Web (WAR) nec-web.xml WebOTX nec-web.xml Web WEB-INF BASIC/FORM nec-web.xml

nec-web.xml ${INSTANCE_ROOT}/applications/j2ee-modules/Web /WEB-INF nec-web.xml <?xml version="1.0" encoding="UTF-8"?> <nec-web-app xmlns="http://java.sun.com/xml/ns/j2ee"> <context-root>context_name</context-root> Web <class-loader delegate="true"/> true </nec-web-app> delegate Servlert Servlet2.3 falseServlet2.4 ture nec-web.xml nec-web.xml Web WEB-INF WEB-INF WAR 3.2

2.6.1.

Servlet 2.2 2.3 Web WebOTX nec-web.xml Tomcat 3.xTomcat 4.x Tomcat 5.x Servlet 2.3 Web Web nec-web.xml Strutslog4j JAR WEB-INF/lib Jakarta Commons JAR WEB-INF/lib WebOTX CORBA WEB-INF/lib

nec-web.xml <class-loader>"delegate"falsetrue

19

nec-web.xml <?xml version="1.0" encoding="UTF-8"?> <nec-web-app xmlns="http://java.sun.com/xml/ns/j2ee"> <context-root>context_name</context-root> <class-loader delegate="false"/> </nec-web-app>

nec-web.xml <?xml version="1.0" encoding="UTF-8"?> <nec-web-app xmlns="http://java.sun.com/xml/ns/j2ee"> <context-root>context_name</context-root> <class-loader delegate="true"/> </nec-web-app>

2.6.2. BASIC FORM

WebOTX BASIC FORM login.confdomain.xml web.xml nec-web.xml web.xml (principal)(group) web.xml () <security-constraint> <display-name>Server Configuration Security Constraint</display-name> <web-resource-collection> <web-resource-name>Protected Area</web-resource-name> <!-- Define the context-relative URL(s) to be protected --> <url-pattern>*.jsp</url-pattern> <url-pattern>*.do</url-pattern> <url-pattern>*.html</url-pattern> <url-pattern>/WebAPManage/*</url-pattern> </web-resource-collection> <auth-constraint> <!-- Anyone with one of the listed roles may access this area --> <role-name>Role</role-name>

20

</auth-constraint> </security-constraint>

<!-- Login configuration uses form-based authentication --> <login-config> <auth-method>FORM</auth-method> <realm-name>file</realm-name>

<form-login-config> <form-login-page>/login.jsp</form-login-page> <form-error-page>/error.jsp</form-error-page> </form-login-config> </login-config>

<!-- Security roles referenced by this web application --> <security-role> <description> The role that is required to log in to the Administration Application </description> <role-name>Role</role-name> </security-role> nec-web.xml

nec-web.xml () <context-root>BasicAuthServlet24</context-root>

<security-role-mapping> <role-name>stRole</role-name> web.xml <principal-name>admin3</principal-name> <group-name>stGroup</group-name> </security-role-mapping>

nec-web.xml WebOTX 6.3.2 Web

21

2.7.

Tomcat Java WebOTX Web (OS ) Java

Web

2.7.1.

Web / Web /Temp

${INSTANCE_ROOT }/config/server.policy // Basic set of required permissions granted to all remaining code grant { permission java.io.FilePermission "${/}Temp", "read"; permission java.io.FilePermission "${/}Temp${/}-", "read"; }

/Temp read /Temp read

JDK (J2SE 1.4 ) http://java.sun.com/j2se/1.4/ja/docs/ja/guide/security/permissions.html http://java.sun.com/j2se/1.4/ja/docs/ja/guide/security/PolicyFiles.html

22

2.7.2.

/ server.policy Web ${INSTANCE_ROOT}/logs/server.log

access denied (java.io.FilePermission /Temp read)

/Temp read Java VM domain1 Java VM otxadmin> create-jvm-options --user admin --password adminadmin --port 6212 --host localhost -Djava.security.debug=access¥¥:failure: 1

logs/server.log denied

2.7.3.

Tomcat conf/catalina.policy WebOTX ${INSTANCE_ROOT }/config/server.policy conf/catalina.policy Tomcat grant { permission java.util.PropertyPermission "java.home", "read"; };

${INSTANCE_ROOT }/config/server.policy WebOTX grant principal javax.management.remote.JMXPrincipal "admin" { : permission java.io.FilePermission "${java.home}${/}..${/}bin${/}-", "read,execute"; };

23

3.

Tomcat Web Administration Tool Manager server.xml WebOTX JMXJava Management ExtensionsTomcat server.xml GUI Tomcat WebOTX

Web

Tomcat Manager

WebOTX autodeploy

3.1

webapps WAR

3.2

Web

Tomcat Administration Tool Manager

3.3 3.4 3.5

3.1. Web

WebOTX Web mod_jk WebOTX Web Web Web WebOTX Web Web Web Web Web

Web Windows --WebOTX

() UNIX root login: root WebOTX /bin root> cd /opt/WebOTX/bin

./setconf.sh

24

root> ./setconf.sh

otxadmin

otxadmin> set --user admin --password adminadmin --port 6212 --host localhost server.http-service.virtual-server.server.http-listeners=" ajp-listener-1"

WebOTX

3.2.

WAR autodeploy WebOTX Web WAR WebOTX Web

3.2.1. WAR

WebOTX Web WAR WebOTX Web WAR

WAR Web "D:\temp\sampleAP"JDK " C:\j2sdk1.4.2" Windows sampleAP.war

cd D:¥temp¥sampleAP C:¥j2sdk1.4.2¥bin¥jar ­cfv sampleAP.war *

WAR domain1 sampleAP.war

otxadmin> deploy --user admin --password adminadmin --host localhost --port 6212 sampleAP.war WebOTX 1. Stanadard Edition,Enterprise Edition

25

3.2.2.

Web domain1 /home/temp/sampleAP

otxadmin> deploydir --user admin --password adminadmin --host localhost --port 6212 /home/temp/sampleAP WebOTX 1. Stanadard Edition,Enterprise Edition

3.3.

WebOTX WebOTX domains WebOTXAdminWebOTX domain1 applications autodeploy backup bin config domain.xml log4j.xml log4j

server.policy docroot WebOTX Web

generated JSP lib logs session-store stats wojms

26

3.4.

WebOTX domain // WebOTX 1.

3.5.

Web Web WebOTX WebOTX Web Web Web Web Macromedia Flash Player 7 ( Macromedia Flash Player )

Web

27

4. Q&A

Tomcat Tomcat Q&A

4.1. Web Q&A

Q1 A1

Web ClassCastException nec-web.xml 2.5. nec-web.xml

Q2 A2 Q3 A3 Q4 A4

Web 2.7

Web log4j2.5 log4j

Servlet2.3 web.xml DOCTYPE 2.3

<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">

Q5 A5

getParameter Tomcat 5.x URI server.xml URIEncoding useBodyEncodingForURI WebOTX server.http-service.http-listener.http-listener-name.property otxadmin

otxadmin> set server.http-service.http-listener.http-listener-1.property.uriencoding=Windows-31J

otxadmin> set server.http-service.http-listener.http-listener-1.property.usebody-encoding-for-uri=true

28

Q6 A6

Web JSP Windows-31J JSP web.xml <jsp-config>

web.xml <web-app .... <jsp-config> <jsp-property-group> .... <page-encoding>Windows-31J</page-encoding> </jsp-property-group> </jsp-config> .... <servlet> .... </servlet> </web-app>

Servlet Content-Type JSP page contentType WebOTX Web 3.1.5. Web

Q7 A7

Web ClassNotFoundException WebOTXJakarta Commons "WebOTX/lib"WEB-INF/lib 1.1.4 1.1.6 nec-web.xml"delegate" WEB-INF/libWebOTX 2.5. nec-web.xml

4.2. Web Q&A

Q1 A1 Q2 A2

servlet WebOTX jar ${AS_INSTALL}/lib/j2ee.jar

Web Tomcat webapps WAR WebOTX ${ INSTANCE_ROOT}/autodeploy WAR

29

4.3. Q&A

Q1 A1

WebOTX JavaVM Tomcat JavaVM WebOTX otxadmin

640 MB otxadmin> create-jvm-options --user <> --password <> --host < > --port <> -Xmx640m:

WebOTX Web WebOTX V6 2.1. Java VM

Q2 A2

Apache Tomcat server.xml WebOTX otxadmin

otxadmin> set --user <> --password <> --host <> --port < > server.http-service.http-listener.< ID>.max-processors=< >

WebOTX Web WebOTX V6 2.2.

Q3 A3 Q4 A4

JDBC Tomcat server.xml WebOTX2.4 JDBC

Web Tomcat Tomcat Tomcat WebOTX Web

30

5.

5.1. J2SE SDK

WebOTX J2SE SDKJDKWeb Web J2SE SDK

5.2. Tomcat

WebOTX WAR WAR WebOTX web.xml Web web.xml web.xml WAR Tomcat1.1.6

31

NEC mailto:[email protected] URL http://www.nec.co.jp/WebOTX/

32

Information

Seasar2WebWebOTX AS

37 pages

Find more like this

Report File (DMCA)

Our content is added by our users. We aim to remove reported files within 1 working day. Please use this link to notify us:

Report this file as copyright or inappropriate

113096