Configure forms for running with pure java
I know the formsweb.cgf file is where I can set this, but does someone has it
workng with pure java (without jinitiator) and has any problem navigating between fields?
ths is my java section in formsweb.cfg
[appjava]
pageTitle=Forms Version 10.1.2 Java
form=INIT.fmx
envFile=javaenv.env
baseHTML=webutilbase.htm
baseHTMLjinitiator=webutiljpi.htm
baseHTMLjpi=webutiljpi.htm
baseHTMLie=webutiljpi.htm
webUtilArchive=webutil.jar,jacob.jar
archive=gif.jar,frmall.jar, laf_1012.jar
lookAndFeel=oracle
imageBase=codeBase
separateFrame=true
networkRetries=30
and javaenv.env file (without commented lines)
ORACLE_HOME=/opt/oracle/ias
FORMS_PATH=/opt/legadmi/formas:/opt/legadmi/pll:/opt/oracle/ias/forms:/opt/legadmi/webutil/forms
WEBUTIL_CONFIG=/opt/legadmi/webutil/server/webutil.cfg
FORMS_RESTRICT_ENTER_QUERY=FALSE
CLASSPATH=/opt/oracle/ias/forms/java/laf_1012.jar:/opt/oracle/ias/forms/java/gif.jar
PATH=/opt/oracle/ias/bin
GRAPHICS60_PATH=
LD_LIBRARY_PATH=/opt/oracle/ias/lib:/opt/oracle/ias/jdk/jre/lib/i386:/opt/oracle/ias/jdk/jre/lib/i386/server
it starts java but in some forms i cant navigate between fields,
any help?
thanks!
Solution: migrated to 11g
Similar Messages
-
How to run a pure java application client with ear deployed on 9ias
Hello all,
We want to run a pure java application client which is packed with target bean in the same ear file. In the application-client.xml we refer to some EJBs.
We deployed the ear file which contains ejb jar module and application client module to oracle 9ias 904 through enterprise manager on unix. The jndi.properties we used looks like this
java.naming.factory.initial=com.evermind.server.rmi.ApplciationClientInitialContextFactory
java.naming.provider.url=opmn:ormi://opmn_host:opmn_port:oc4j_instance_name/application_name
java.naming.security.principal=test
java.naming.security.credentials=test
Is there anybody knows how to run such an application client? Do we need to provide such a jndi.properties or not at all?
Thanks,
9ias userRefer OpenEJB User - Oracle ADF Essential and TomEE+
Also refer Bug in tomee 1.5.2. Fixed in 1.6.
https://issues.apache.org/jira/browse/TOMEE-756 -
How to configure Ogone for working with business catalyst ?
How to configure Ogone for working with business catalyst ?
In france ogone seems to be the only solution for seamless payment and there's no explications on the forum to configure it.
Thx for your answersHi ,
[Configuration Guide SAP adapter for SAP Quality Center by HP|https://websmp101.sap-ag.de/~sapdownload/011000358700000612662007E/Adapter_Configuration_.pdf] might be useful.
Check [Master guide|https://websmp201.sap-ag.de/~sapdownload/011000358700000612672007E/Adapter_Master_Guide.pdf] also.
Regards
Naveen
Edited by: Naveen kumar Palanichamy on Feb 19, 2009 6:38 AM -
How can I configure labview for communication with Modbus I/O?
i read a article about configureing Labview for communication with modbus I/O in NI developer zone, but it was written for Labview 6, how can I configure it with labview 7. it seems there are some difference. Thanks!
In both LabVIEW 6 and 7, you connect to modbus using Lookout Protocol Drivers (LPD) and then communicate to LPD using the tag engine of LabVIEW DSC or through DataSocket.
-
JVM 1.4 seg faults with pure java code?
Has anybody else seen JVM 1.4 seg fault when running pure java code? This seems like it shouldn't be possible, but I get the following at indeterminate times. Unfortunately, it is difficult to isolate since decreasing the size of the program avoids the problem. When the seg fault happens, the size in memory is ~1GB and there is plenty of real and virtual memory to spare.
Unexpected Signal : 11 occurred at PC=0xDE88BC8E
Function=[Unknown. Nearest: +0x100E]
Library=/usr/j2se/jre/lib/i386/server/libjvm.so
Dynamic libraries:
0x8050000 java
0xdfb60000 /usr/lib/libthread.so.1
0xdfba0000 /usr/lib/libdl.so.1
0xdfab0000 /usr/lib/libc.so.1
0xde800000 /usr/j2se/jre/lib/i386/server/libjvm.so
0xdfa40000 /usr/lib/libCrun.so.1
0xdfa20000 /usr/lib/libsocket.so.1
0xdf980000 /usr/lib/libnsl.so.1
0xdf960000 /usr/lib/libm.so.1
0xdfa70000 /usr/lib/libw.so.1
0xdf920000 /usr/lib/libmp.so.2
0xdf8f0000 /usr/j2se/jre/lib/i386/native_threads/libhpi
.so
0xdf8c0000 /usr/j2se/jre/lib/i386/libverify.so
0xdf880000 /usr/j2se/jre/lib/i386/libjava.so
0xdf860000 /usr/j2se/jre/lib/i386/libzip.so
0xda890000 /usr/lib/nss_files.so.1
Local Time = Tue May 14 16:03:38 2002
Elapsed Time = 72
# HotSpot Virtual Machine Error : 11
# Error ID : 4F530E43505002D3
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
# Java VM: Java HotSpot(TM) Server VM (1.4.0-rc-b91 mixed
mode)
# An error report file has been saved as hs_err_pid945.log.
# Please refer to the file for further information.Hi sevenM,
Did you figure out a workaround for this problem?. Did you get it solved with the SUN people?. Is it a known bug?.
I've got exactly the same problem on the same function and VM library.
Any info on this is very much welcome.
Thx
Krithiga
I get the same error sometimes with tomcat-4.0.4 on a
Slackware 8.0.0 and JDK 1.4.0. I don't user any JSPs,
only servlets and the business calls a remote SLSB on
a remote JBOSS server and afterwards select some data
form a remote DB2 7.1 over JDBC.
Here is the log:
Unexpected Signal : 11 occurred at PC=0x40267D98
Function=copy_to_survivor_space__16DefNewGenerationP7oo
DescPP7oopDesc+0x28
Library=/usr/local/j2sdk1.4.0/jre/lib/i386/client/libjv
.so
Current Java thread:
at
at java.net.PlainSocketImpl.socketAccept(Native
tive Method)
at
at
at
t
java.net.PlainSocketImpl.accept(PlainSocketImpl.java:34
- locked <0x44ed3400> (a
400> (a java.net.PlainSocketImpl)
at
at
at
t
java.net.ServerSocket.implAccept(ServerSocket.java:438)
at
at
at
t java.net.ServerSocket.accept(ServerSocket.java:409)
at
at
at
t
org.apache.catalina.core.StandardServer.await(StandardS
rver.java:293)
at
at
at
t
org.apache.catalina.startup.Catalina.start(Catalina.jav
:794)
at
at
at
t
org.apache.catalina.startup.Catalina.execute(Catalina.j
va:681)
at
at
at
t
org.apache.catalina.startup.Catalina.process(Catalina.j
va:179)
at
at
at
t sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
at
at
t
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMetho
AccessorImpl.java:39)
at
at
at
t
sun.reflect.DelegatingMethodAccessorImpl.invoke(Delegat
ngMethodAccessorImpl.java:25)
at
at
at java.lang.reflect.Method.invoke(Method.java:324)
at
at
at
t
org.apache.catalina.startup.Bootstrap.main(Bootstrap.ja
a:243)
Dynamic libraries:
08048000-0804d000 r-xp 00000000 03:03 757599
/usr/local/j2sdk1.4.0/bin/java
0804d000-0804e000 rw-p 00004000 03:03 757599
/usr/local/j2sdk1.4.0/bin/java
40000000-40015000 r-xp 00000000 03:03 885142
/lib/ld-2.2.3.so
40015000-40016000 rw-p 00014000 03:03 885142
/lib/ld-2.2.3.so
40017000-40020000 r-xp 00000000 03:03 69536
/usr/local/j2sdk1.4.0/jre/lib/i386/native_threads/libh
i.so
40020000-40021000 rw-p 00008000 03:03 69536
/usr/local/j2sdk1.4.0/jre/lib/i386/native_threads/libh
i.so
40021000-40022000 r--p 00000000 03:03 33106
/usr/lib/locale/en_US/LC_IDENTIFICATION
40022000-40030000 r-xp 00000000 03:03 885133
/lib/libpthread-0.9.so
40030000-40038000 rw-p 0000d000 03:03 885133
/lib/libpthread-0.9.so
40038000-4003b000 r-xp 00000000 03:03 885149
/lib/libdl-2.2.3.so
4003b000-4003c000 rw-p 00002000 03:03 885149
/lib/libdl-2.2.3.so
4003c000-40143000 r-xp 00000000 03:03 885147
/lib/libc-2.2.3.so
40143000-40149000 rw-p 00106000 03:03 885147
/lib/libc-2.2.3.so
4014d000-40410000 r-xp 00000000 03:03 1150891
/usr/local/j2sdk1.4.0/jre/lib/i386/client/libjvm.so
40410000-40558000 rw-p 002c2000 03:03 1150891
/usr/local/j2sdk1.4.0/jre/lib/i386/client/libjvm.so
4056c000-4057d000 r-xp 00000000 03:03 885152
/lib/libnsl-2.2.3.so
4057d000-4057f000 rw-p 00010000 03:03 885152
/lib/libnsl-2.2.3.so
40581000-405b5000 r-xp 00000000 03:03 950285
/usr/i386-slackware-linux/lib/libstdc++-2-libc6.1-1-2.
.0.so
405b5000-405c1000 rw-p 00033000 03:03 950285
/usr/i386-slackware-linux/lib/libstdc++-2-libc6.1-1-2.
.0.so
405c3000-405e4000 r-xp 00000000 03:03 885138
/lib/libm-2.2.3.so
405e4000-405e5000 rw-p 00020000 03:03 885138
/lib/libm-2.2.3.so
405e5000-405f6000 r-xp 00000000 03:03 69542
/usr/local/j2sdk1.4.0/jre/lib/i386/libverify.so
405f6000-405f8000 rw-p 00010000 03:03 69542
/usr/local/j2sdk1.4.0/jre/lib/i386/libverify.so
405f8000-40619000 r-xp 00000000 03:03 69543
/usr/local/j2sdk1.4.0/jre/lib/i386/libjava.so
40619000-4061b000 rw-p 00020000 03:03 69543
/usr/local/j2sdk1.4.0/jre/lib/i386/libjava.so
4061c000-40630000 r-xp 00000000 03:03 69545
/usr/local/j2sdk1.4.0/jre/lib/i386/libzip.so
40630000-40633000 rw-p 00013000 03:03 69545
/usr/local/j2sdk1.4.0/jre/lib/i386/libzip.so
40633000-4063a000 r--s 00000000 03:03 890455
/usr/local/jakarta-tomcat-4.0.4/bin/bootstrap.jar
4063a000-40641000 r--s 00000000 03:03 890436
/usr/local/jakarta-tomcat-4.0.4/common/lib/naming-comm
n.jar
40641000-40655000 r--s 00000000 03:03 890437
/usr/local/jakarta-tomcat-4.0.4/common/lib/servlet.jar
40655000-4065e000 r--s 00000000 03:03 890438
/usr/local/jakarta-tomcat-4.0.4/common/lib/naming-reso
rces.jar
4065e000-40660000 r--s 00000000 03:03 890439
/usr/local/jakarta-tomcat-4.0.4/common/lib/jdbc2_0-std
xt.jar
40660000-4066c000 r--s 00000000 03:03 890440
/usr/local/jakarta-tomcat-4.0.4/common/lib/activation.
ar
4066c000-4066f000 r--s 00000000 03:03 890441
/usr/local/jakarta-tomcat-4.0.4/common/lib/jta-spec1_0
1.jar
4066f000-4082a000 r--s 00000000 03:03 890443
/usr/local/jakarta-tomcat-4.0.4/common/lib/xerces.jar
4082a000-40874000 r--s 00000000 03:03 890444
/usr/local/jakarta-tomcat-4.0.4/common/lib/tyrex-0.9.7
0.jar
40874000-408b9000 r--s 00000000 03:03 890445
/usr/local/jakarta-tomcat-4.0.4/common/lib/mail.jar
408b9000-408d2000 r--s 00000000 03:03 890446
/usr/local/jakarta-tomcat-4.0.4/common/lib/jndi.jar
408d2000-40958000 r--s 00000000 03:03 890482
/usr/local/jakarta-tomcat-4.0.4/common/lib/db2java.jar
40958000-4096e000 r--s 00000000 03:03 890483
/usr/local/jakarta-tomcat-4.0.4/common/lib/jboss-clien
.jar
4096e000-4097c000 r--s 00000000 03:03 890484
/usr/local/jakarta-tomcat-4.0.4/common/lib/jboss-j2ee.
ar
4097c000-40996000 r--s 00000000 03:03 890485
/usr/local/jakarta-tomcat-4.0.4/common/lib/jaas.jar
40996000-409a0000 r--s 00000000 03:03 890486
/usr/local/jakarta-tomcat-4.0.4/common/lib/jbosssx-cli
nt.jar
409a0000-409a6000 r--s 00000000 03:03 890487
/usr/local/jakarta-tomcat-4.0.4/common/lib/jnp-client.
ar
409a6000-40d10000 r--s 00000000 03:03 890488
/usr/local/jakarta-tomcat-4.0.4/common/lib/jt400_3.0.j
r
40d10000-40d37000 r--s 00000000 03:03 890489
/usr/local/jakarta-tomcat-4.0.4/common/lib/log4j.jar
40d37000-423af000 r--s 00000000 03:03 69634
/usr/local/j2sdk1.4.0/jre/lib/rt.jar
423f1000-42408000 r--s 00000000 03:03 69566
/usr/local/j2sdk1.4.0/jre/lib/sunrsasign.jar
42408000-42476000 r--s 00000000 03:03 69568
/usr/local/j2sdk1.4.0/jre/lib/jsse.jar
42476000-42489000 r--s 00000000 03:03 69567
/usr/local/j2sdk1.4.0/jre/lib/jce.jar
42489000-4270a000 r--s 00000000 03:03 69632
/usr/local/j2sdk1.4.0/jre/lib/charsets.jar
447b2000-447b3000 r--p 00000000 03:03 33104
/usr/lib/locale/en_US/LC_MEASUREMENT
447b3000-447b4000 r--p 00000000 03:03 33102
/usr/lib/locale/en_US/LC_TELEPHONE
447b4000-447b5000 r--p 00000000 03:03 33103
/usr/lib/locale/en_US/LC_ADDRESS
447b5000-447b6000 r--p 00000000 03:03 33100
/usr/lib/locale/en_US/LC_NAME
447b6000-447b7000 r--p 00000000 03:03 33109
/usr/lib/locale/en_US/LC_PAPER
447b7000-447b8000 r--p 00000000 03:03 459106
/usr/lib/locale/en_US/LC_MESSAGES/SYS_LC_MESSAGES
447b8000-447b9000 r--p 00000000 03:03 33110
/usr/lib/locale/en_US/LC_MONETARY
447b9000-447bf000 r--p 00000000 03:03 33107
/usr/lib/locale/en_US/LC_COLLATE
447bf000-447c0000 r--p 00000000 03:03 33101
/usr/lib/locale/en_US/LC_TIME
4c840000-4c841000 r--p 00000000 03:03 33105
/usr/lib/locale/en_US/LC_NUMERIC
4c841000-4c85c000 r--p 00000000 03:03 33108
/usr/lib/locale/en_US/LC_CTYPE
4c85c000-4c85e000 r--s 00000000 03:03 36766
/usr/local/j2sdk1.4.0/jre/lib/ext/dnsns.jar
4c85e000-4c866000 r--s 00000000 03:03 890421
/usr/local/jakarta-tomcat-4.0.4/server/lib/jakarta-reg
xp-1.2.jar
4c866000-4c867000 r--s 00000000 03:03 890422
/usr/local/jakarta-tomcat-4.0.4/server/lib/servlets-co
mon.jar
4c867000-4c871000 r-xp 00000000 03:03 885148
/lib/libnss_compat-2.2.3.so
4c871000-4c873000 rw-p 00009000 03:03 885148
/lib/libnss_compat-2.2.3.so
4c89e000-4c8bb000 r--s 00000000 03:03 36765
/usr/local/j2sdk1.4.0/jre/lib/ext/sunjce_provider.jar
4c8bb000-4c95e000 r--s 00000000 03:03 36767
/usr/local/j2sdk1.4.0/jre/lib/ext/localedata.jar
4c95e000-4c96c000 r--s 00000000 03:03 36768
/usr/local/j2sdk1.4.0/jre/lib/ext/ldapsec.jar
4c96c000-4ce06000 r--s 00000000 03:03 298906
/usr/local/j2sdk1.4.0/lib/tools.jar
4ce06000-4ce0c000 r--s 00000000 03:03 890423
/usr/local/jakarta-tomcat-4.0.4/server/lib/commons-log
ing.jar
4ce0c000-4ce0e000 r--s 00000000 03:03 890424
/usr/local/jakarta-tomcat-4.0.4/server/lib/servlets-in
oker.jar
4ce0e000-4ce11000 r--s 00000000 03:03 890425
/usr/local/jakarta-tomcat-4.0.4/server/lib/servlets-ma
ager.jar
4ce11000-4ce19000 r--s 00000000 03:03 890426
/usr/local/jakarta-tomcat-4.0.4/server/lib/warp.jar
4ce19000-4ceab000 r--s 00000000 03:03 890427
/usr/local/jakarta-tomcat-4.0.4/server/lib/catalina.ja
4ceab000-4ceb4000 r--s 00000000 03:03 890428
/usr/local/jakarta-tomcat-4.0.4/server/lib/tomcat-http
1.jar
4ceb4000-4ceb9000 r--s 00000000 03:03 890429
/usr/local/jakarta-tomcat-4.0.4/server/lib/servlets-de
ault.jar
4ceb9000-4cec9000 r--s 00000000 03:03 890430
/usr/local/jakarta-tomcat-4.0.4/server/lib/tomcat-ajp.
ar
4cec9000-4ceed000 r--s 00000000 03:03 890431
/usr/local/jakarta-tomcat-4.0.4/server/lib/tomcat-util
jar
4ceed000-4cefb000 r--s 00000000 03:03 890432
/usr/local/jakarta-tomcat-4.0.4/server/lib/tomcat-coyo
e.jar
4cefb000-4cf01000 r--s 00000000 03:03 890434
/usr/local/jakarta-tomcat-4.0.4/server/lib/servlets-we
dav.jar
4cf01000-4cf13000 r-xp 00000000 03:03 69548
/usr/local/j2sdk1.4.0/jre/lib/i386/libnet.so
4cf13000-4cf14000 rw-p 00011000 03:03 69548
/usr/local/j2sdk1.4.0/jre/lib/i386/libnet.so
4cf14000-4cf25000 r--s 00000000 03:03 890458
/usr/local/jakarta-tomcat-4.0.4/lib/jasper-runtime.jar
4cf25000-4cf59000 r--s 00000000 03:03 890459
/usr/local/jakarta-tomcat-4.0.4/lib/jasper-compiler.ja
4cf59000-4cf5e000 r--s 00000000 03:03 890460
/usr/local/jakarta-tomcat-4.0.4/lib/naming-factory.jar
4cf5e000-4cf5f000 r--s 00000000 03:03 789670
/usr/local/jakarta-tomcat-4.0.4/temp/jar_cache46958.tm
(deleted)
4cf5f000-4cf60000 r--s 00000000 03:03 789673
/usr/local/jakarta-tomcat-4.0.4/temp/jar_cache46959.tm
(deleted)
4cf60000-4cf63000 r--s 00000000 03:03 430785
/usr/local/jakarta-tomcat-4.0.4/webapps/reporter/WEB-I
F/lib/arenajobs.jar
4cf63000-4d067000 r--s 00000000 03:03 430786
/usr/local/jakarta-tomcat-4.0.4/webapps/reporter/WEB-I
F/lib/arenatrading.jar
4d067000-4d08c000 r--s 00000000 03:03 430787
/usr/local/jakarta-tomcat-4.0.4/webapps/reporter/WEB-I
F/lib/quartz.jar
4d08c000-4d08e000 r--s 00000000 03:03 430788
/usr/local/jakarta-tomcat-4.0.4/webapps/reporter/WEB-I
F/lib/scheduler.jar
4d08e000-4d091000 r--s 00000000 03:03 790391
/usr/local/jakarta-tomcat-4.0.4/temp/jar_cache46960.tm
(deleted)
4d091000-4d195000 r--s 00000000 03:03 790392
/usr/local/jakarta-tomcat-4.0.4/temp/jar_cache46961.tm
(deleted)
4d195000-4d1ba000 r--s 00000000 03:03 790394
/usr/local/jakarta-tomcat-4.0.4/temp/jar_cache46962.tm
(deleted)
4d1ba000-4d1bc000 r--s 00000000 03:03 790395
/usr/local/jakarta-tomcat-4.0.4/temp/jar_cache46963.tm
(deleted)
4d1bc000-4d1bd000 r-xp 00000000 03:03 69559
/usr/local/j2sdk1.4.0/jre/lib/i386/librmi.so
4d1bd000-4d1be000 rw-p 00000000 03:03 69559
/usr/local/j2sdk1.4.0/jre/lib/i386/librmi.so
4d1be000-4d1c2000 r-xp 00000000 03:03 69558
/usr/local/j2sdk1.4.0/jre/lib/i386/libioser12.so
4d1c2000-4d1c3000 rw-p 00003000 03:03 69558
/usr/local/j2sdk1.4.0/jre/lib/i386/libioser12.so
4d1c9000-4d1d2000 r-xp 00000000 03:03 885155
/lib/libnss_files-2.2.3.so
4d1d2000-4d1d3000 rw-p 00008000 03:03 885155
/lib/libnss_files-2.2.3.so
Local Time = Tue Oct 8 18:57:29 2002
Elapsed Time = 32640
# HotSpot Virtual Machine Error : 11
# Error ID : 4F530E43505002D3
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
# Java VM: Java HotSpot(TM) Client VM (1.4.0-b92 mixed
mode)
# An error report file has been saved as
hs_err_pid26505.log.
# Please refer to the file for further information. -
Problem-Starting InDesign Server for use with CORBA / Java and IOR file not generated
I'm trying to start Indesign Server cs3 for use with Corba, as per the document the server should generate the start-up message like this..
InDesignServer -iorfile c:\ior.txt -pluginpath Server\Corba
[server] Writing IOR to ... and it should generate the IOR file
but I'm getting the usual start-up message and the IOR file is not generated, I hope IOR file is required for Java component interaction with IDS, kindly help me to solve this.
Thanks in advance.[From Susan Doan, who is having trouble posting to the forum today}:
It looks like the example command line in the "Intro to InDesign Server" pdf is using curly quotes instead of straight quotes. If you copy the command from the pdf and paste it in your command shell, it won't work because of the curly quotes.
You can run the command without the quotes as Rich has said, but, as will all command lines, if your path contains a space, you will need to put quotes (straight ones!) around the path.
Thanks,
Ole -
Problem with Configuring Tomcat for running jsp web applications..Plz HELP
I am using Tomcat 5.5 and Jdk 1.5.0_12 and Oracle 10g. I am using jdbc-odbc bridge connection
to connect to the database. I have placed my project folder called
tdm under the webapps folder in Tomcat. This 'tdm' folder consists of
a collection of html pages,jsp pages and images of my project. Also I created a
WEB-INF folderand in that I have lib folder which contains catalina-root.jar
, classes12.jar and nls_charset.jar files. And also in the WEB-INF folder I have the web.xml
file which looks like this
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
Copyright 2004 The Apache Software Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<web-app>
<resource-ref>
<description>Oracle Datasource example</description>
<res-ref-name>jdbc/gdn</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</web-app>
My Server.xml file in Tomcat\conf folder is as follows
<!-- Example Server Configuration File -->
<!-- Note that component elements are nested corresponding to their
parent-child relationships with each other -->
<!-- A "Server" is a singleton element that represents the entire JVM,
which may contain one or more "Service" instances. The Server
listens for a shutdown command on the indicated port.
Note: A "Server" is not itself a "Container", so you may not
define subcomponents such as "Valves" or "Loggers" at this level.
-->
<Server port="8005" shutdown="SHUTDOWN">
<!-- Comment these entries out to disable JMX MBeans support used for the
administration web application -->
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
<!-- Global JNDI resources -->
<GlobalNamingResources>
<!-- Test entry for demonstration purposes -->
<Environment name="simpleValue" type="java.lang.Integer" value="30"/>
<!-- Editable user database that can also be used by
UserDatabaseRealm to authenticate users -->
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml" />
<Resource name="jdbc/gdn" auth="Container"
type="javax.sql.DataSource" driverClassName="sun.jdbc.odbc.JdbcOdbcDriver"
url="jdbc:odbc:gdn"
username="system" password="tiger" maxActive="20" maxIdle="10"
maxWait="-1"/>
</GlobalNamingResources>
<!-- A "Service" is a collection of one or more "Connectors" that share
a single "Container" (and therefore the web applications visible
within that Container). Normally, that Container is an "Engine",
but this is not required.
Note: A "Service" is not itself a "Container", so you may not
define subcomponents such as "Valves" or "Loggers" at this level.
-->
<!-- Define the Tomcat Stand-Alone Service -->
<Service name="Catalina">
<!-- A "Connector" represents an endpoint by which requests are received
and responses are returned. Each Connector passes requests on to the
associated "Container" (normally an Engine) for processing.
By default, a non-SSL HTTP/1.1 Connector is established on port 8080.
You can also enable an SSL HTTP/1.1 Connector on port 8443 by
following the instructions below and uncommenting the second Connector
entry. SSL support requires the following steps (see the SSL Config
HOWTO in the Tomcat 5 documentation bundle for more detailed
instructions):
* If your JDK version 1.3 or prior, download and install JSSE 1.0.2 or
later, and put the JAR files into "$JAVA_HOME/jre/lib/ext".
* Execute:
%JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows)
$JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA (Unix)
with a password value of "changeit" for both the certificate and
the keystore itself.
By default, DNS lookups are enabled when a web application calls
request.getRemoteHost(). This can have an adverse impact on
performance, so you can disable it by setting the
"enableLookups" attribute to "false". When DNS lookups are disabled,
request.getRemoteHost() will return the String version of the
IP address of the remote client.
-->
<!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
<Connector
port="5050" maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />
<!-- Note : To disable connection timeouts, set connectionTimeout value
to 0 -->
<!-- Note : To use gzip compression you could set the following properties :
compression="on"
compressionMinSize="2048"
noCompressionUserAgents="gozilla, traviata"
compressableMimeType="text/html,text/xml"
-->
<!-- Define a SSL HTTP/1.1 Connector on port 8443 -->
<!--
<Connector port="8443"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" disableUploadTimeout="true"
acceptCount="100" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" />
-->
<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector port="8009"
enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />
<!-- Define a Proxied HTTP/1.1 Connector on port 8082 -->
<!-- See proxy documentation for more information about using this. -->
<!--
<Connector port="8082"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" acceptCount="100" connectionTimeout="20000"
proxyPort="80" disableUploadTimeout="true" />
-->
<!-- An Engine represents the entry point (within Catalina) that processes
every request. The Engine implementation for Tomcat stand alone
analyzes the HTTP headers included with the request, and passes them
on to the appropriate Host (virtual host). -->
<!-- You should set jvmRoute to support load-balancing via AJP ie :
<Engine name="Standalone" defaultHost="localhost" jvmRoute="jvm1">
-->
<!-- Define the top level container in our container hierarchy -->
<Engine name="Catalina" defaultHost="localhost">
<!-- The request dumper valve dumps useful debugging information about
the request headers and cookies that were received, and the response
headers and cookies that were sent, for all requests received by
this instance of Tomcat. If you care only about requests to a
particular virtual host, or a particular application, nest this
element inside the corresponding <Host> or <Context> entry instead.
For a similar mechanism that is portable to all Servlet 2.4
containers, check out the "RequestDumperFilter" Filter in the
example application (the source for this filter may be found in
"$CATALINA_HOME/webapps/examples/WEB-INF/classes/filters").
Request dumping is disabled by default. Uncomment the following
element to enable it. -->
<!--
<Valve className="org.apache.catalina.valves.RequestDumperValve"/>
-->
<!-- Because this Realm is here, an instance will be shared globally -->
<!-- This Realm uses the UserDatabase configured in the global JNDI
resources under the key "UserDatabase". Any edits
that are performed against this UserDatabase are immediately
available for use by the Realm. -->
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
<!-- Comment out the old realm but leave here for now in case we
need to go back quickly -->
<!--
<Realm className="org.apache.catalina.realm.MemoryRealm" />
-->
<!-- Replace the above Realm with one of the following to get a Realm
stored in a database and accessed via JDBC -->
<!--
<Realm className="org.apache.catalina.realm.JDBCRealm"
driverName="org.gjt.mm.mysql.Driver"
connectionURL="jdbc:mysql://localhost/authority"
connectionName="test" connectionPassword="test"
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name" />
-->
<!--
<Realm className="org.apache.catalina.realm.JDBCRealm"
driverName="oracle.jdbc.driver.OracleDriver"
connectionURL="jdbc:oracle:thin:@ntserver:1521:ORCL"
connectionName="scott" connectionPassword="tiger"
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name" />
-->
<!--
<Realm className="org.apache.catalina.realm.JDBCRealm"
driverName="sun.jdbc.odbc.JdbcOdbcDriver"
connectionURL="jdbc:odbc:CATALINA"
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name" />
-->
<!-- Define the default virtual host
Note: XML Schema validation will not work with Xerces 2.2.
-->
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<!-- Defines a cluster for this node,
By defining this element, means that every manager will be changed.
So when running a cluster, only make sure that you have webapps in there
that need to be clustered and remove the other ones.
A cluster has the following parameters:
className = the fully qualified name of the cluster class
name = a descriptive name for your cluster, can be anything
mcastAddr = the multicast address, has to be the same for all the nodes
mcastPort = the multicast port, has to be the same for all the nodes
mcastBindAddr = bind the multicast socket to a specific address
mcastTTL = the multicast TTL if you want to limit your broadcast
mcastSoTimeout = the multicast readtimeout
mcastFrequency = the number of milliseconds in between sending a "I'm alive" heartbeat
mcastDropTime = the number a milliseconds before a node is considered "dead" if no heartbeat is received
tcpThreadCount = the number of threads to handle incoming replication requests, optimal would be the same amount of threads as nodes
tcpListenAddress = the listen address (bind address) for TCP cluster request on this host,
in case of multiple ethernet cards.
auto means that address becomes
InetAddress.getLocalHost().getHostAddress()
tcpListenPort = the tcp listen port
tcpSelectorTimeout = the timeout (ms) for the Selector.select() method in case the OS
has a wakup bug in java.nio. Set to 0 for no timeout
printToScreen = true means that managers will also print to std.out
expireSessionsOnShutdown = true means that
useDirtyFlag = true means that we only replicate a session after setAttribute,removeAttribute has been called.
false means to replicate the session after each request.
false means that replication would work for the following piece of code: (only for SimpleTcpReplicationManager)
<%
HashMap map = (HashMap)session.getAttribute("map");
map.put("key","value");
%>
replicationMode = can be either 'pooled', 'synchronous' or 'asynchronous'.
* Pooled means that the replication happens using several sockets in a synchronous way. Ie, the data gets replicated, then the request return. This is the same as the 'synchronous' setting except it uses a pool of sockets, hence it is multithreaded. This is the fastest and safest configuration. To use this, also increase the nr of tcp threads that you have dealing with replication.
* Synchronous means that the thread that executes the request, is also the
thread the replicates the data to the other nodes, and will not return until all
nodes have received the information.
* Asynchronous means that there is a specific 'sender' thread for each cluster node,
so the request thread will queue the replication request into a "smart" queue,
and then return to the client.
The "smart" queue is a queue where when a session is added to the queue, and the same session
already exists in the queue from a previous request, that session will be replaced
in the queue instead of replicating two requests. This almost never happens, unless there is a
large network delay.
-->
<!--
When configuring for clustering, you also add in a valve to catch all the requests
coming in, at the end of the request, the session may or may not be replicated.
A session is replicated if and only if all the conditions are met:
1. useDirtyFlag is true or setAttribute or removeAttribute has been called AND
2. a session exists (has been created)
3. the request is not trapped by the "filter" attribute
The filter attribute is to filter out requests that could not modify the session,
hence we don't replicate the session after the end of this request.
The filter is negative, ie, anything you put in the filter, you mean to filter out,
ie, no replication will be done on requests that match one of the filters.
The filter attribute is delimited by ;, so you can't escape out ; even if you wanted to.
filter=".*\.gif;.*\.js;" means that we will not replicate the session after requests with the URI
ending with .gif and .js are intercepted.
The deployer element can be used to deploy apps cluster wide.
Currently the deployment only deploys/undeploys to working members in the cluster
so no WARs are copied upons startup of a broken node.
The deployer watches a directory (watchDir) for WAR files when watchEnabled="true"
When a new war file is added the war gets deployed to the local instance,
and then deployed to the other instances in the cluster.
When a war file is deleted from the watchDir the war is undeployed locally
and cluster wide
-->
<!--
<Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"
managerClassName="org.apache.catalina.cluster.session.DeltaManager"
expireSessionsOnShutdown="false"
useDirtyFlag="true"
notifyListenersOnReplication="true">
<Membership
className="org.apache.catalina.cluster.mcast.McastService"
mcastAddr="228.0.0.4"
mcastPort="45564"
mcastFrequency="500"
mcastDropTime="3000"/>
<Receiver
className="org.apache.catalina.cluster.tcp.ReplicationListener"
tcpListenAddress="auto"
tcpListenPort="4001"
tcpSelectorTimeout="100"
tcpThreadCount="6"/>
<Sender
className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
replicationMode="pooled"
ackTimeout="15000"/>
<Valve className="org.apache.catalina.cluster.tcp.ReplicationValve"
filter=".*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;"/>
<Deployer className="org.apache.catalina.cluster.deploy.FarmWarDeployer"
tempDir="/tmp/war-temp/"
deployDir="/tmp/war-deploy/"
watchDir="/tmp/war-listen/"
watchEnabled="false"/>
</Cluster>
-->
<!-- Normally, users must authenticate themselves to each web app
individually. Uncomment the following entry if you would like
a user to be authenticated the first time they encounter a
resource protected by a security constraint, and then have that
user identity maintained across all web applications contained
in this virtual host. -->
<!--
<Valve className="org.apache.catalina.authenticator.SingleSignOn" />
-->
<!-- Access log processes all requests for this virtual host. By
default, log files are created in the "logs" directory relative to
$CATALINA_HOME. If you wish, you can specify a different
directory with the "directory" attribute. Specify either a relative
(to $CATALINA_HOME) or absolute path to the desired directory.
-->
<!--
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="localhost_access_log." suffix=".txt"
pattern="common" resolveHosts="false"/>
-->
<!-- Access log processes all requests for this virtual host. By
default, log files are created in the "logs" directory relative to
$CATALINA_HOME. If you wish, you can specify a different
directory with the "directory" attribute. Specify either a relative
(to $CATALINA_HOME) or absolute path to the desired directory.
This access log implementation is optimized for maximum performance,
but is hardcoded to support only the "common" and "combined" patterns.
-->
<!--
<Valve className="org.apache.catalina.valves.FastCommonAccessLogValve"
directory="logs" prefix="localhost_access_log." suffix=".txt"
pattern="common" resolveHosts="false"/>
-->
<Context path="/tdm" docBase="tdm" debug="0" reloadable="true" />
</Host>
</Engine>
</Service>
</Server>
I have set the context path to /tdm in the server.xml file. Should this be placed in context.xml?
My first page in the project is called Homepage.html. To start my project I give http://localhost:5050/tdm/homepage.html
in a browser. Here I accept a username and password from the user and then do the validation in
a valid.jsp file, where I connect to the database and check and use jsp:forward to go to next pages
accordingly. However when I enter the username and password and click Go in the homepage, nothing is
displayed on the next page. The URL in the browser says valid.jsp but a blank screen appears.
WHY DOES IT HAPPEN SO? DOES IT MEAN THAT TOMCAT IS NOT RECOGNIZING JAVA IN MY SYSTEM OR IS IT A PROBLEM
WITH THE DATABASE CONNECTION OR SOMETHING ELSE? I FEEL THAT TOMCAT IS NOT EXECUTING JSP COMMANDS?
IS IT POSSIBLE?WHY WILL THIS HAPPEN?
I set the JAVA_HOME and CATALINA_HOME environment to the jdk and tomcat folders resp.
Is there any other thing that I need to set in classpath? Should I have my project as a
WAR file in the webapps of TOMCAT or just a folder i.e. directory structure will fine?I am using Tomcat 5.5 and Jdk 1.5.0_12 and Oracle 10g. I am using jdbc-odbc bridge connection
to connect to the database. I have placed my project folder called
tdm under the webapps folder in Tomcat. This 'tdm' folder consists of
a collection of html pages,jsp pages and images of my project. Also I created a
WEB-INF folderand in that I have lib folder which contains catalina-root.jar
, classes12.jar and nls_charset.jar files. And also in the WEB-INF folder I have the web.xml
file which looks like this
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
Copyright 2004 The Apache Software Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<web-app>
<resource-ref>
<description>Oracle Datasource example</description>
<res-ref-name>jdbc/gdn</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</web-app>
My Server.xml file in Tomcat\conf folder is as follows
<!-- Example Server Configuration File -->
<!-- Note that component elements are nested corresponding to their
parent-child relationships with each other -->
<!-- A "Server" is a singleton element that represents the entire JVM,
which may contain one or more "Service" instances. The Server
listens for a shutdown command on the indicated port.
Note: A "Server" is not itself a "Container", so you may not
define subcomponents such as "Valves" or "Loggers" at this level.
-->
<Server port="8005" shutdown="SHUTDOWN">
<!-- Comment these entries out to disable JMX MBeans support used for the
administration web application -->
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
<!-- Global JNDI resources -->
<GlobalNamingResources>
<!-- Test entry for demonstration purposes -->
<Environment name="simpleValue" type="java.lang.Integer" value="30"/>
<!-- Editable user database that can also be used by
UserDatabaseRealm to authenticate users -->
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml" />
<Resource name="jdbc/gdn" auth="Container"
type="javax.sql.DataSource" driverClassName="sun.jdbc.odbc.JdbcOdbcDriver"
url="jdbc:odbc:gdn"
username="system" password="tiger" maxActive="20" maxIdle="10"
maxWait="-1"/>
</GlobalNamingResources>
<!-- A "Service" is a collection of one or more "Connectors" that share
a single "Container" (and therefore the web applications visible
within that Container). Normally, that Container is an "Engine",
but this is not required.
Note: A "Service" is not itself a "Container", so you may not
define subcomponents such as "Valves" or "Loggers" at this level.
-->
<!-- Define the Tomcat Stand-Alone Service -->
<Service name="Catalina">
<!-- A "Connector" represents an endpoint by which requests are received
and responses are returned. Each Connector passes requests on to the
associated "Container" (normally an Engine) for processing.
By default, a non-SSL HTTP/1.1 Connector is established on port 8080.
You can also enable an SSL HTTP/1.1 Connector on port 8443 by
following the instructions below and uncommenting the second Connector
entry. SSL support requires the following steps (see the SSL Config
HOWTO in the Tomcat 5 documentation bundle for more detailed
instructions):
* If your JDK version 1.3 or prior, download and install JSSE 1.0.2 or
later, and put the JAR files into "$JAVA_HOME/jre/lib/ext".
* Execute:
%JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows)
$JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA (Unix)
with a password value of "changeit" for both the certificate and
the keystore itself.
By default, DNS lookups are enabled when a web application calls
request.getRemoteHost(). This can have an adverse impact on
performance, so you can disable it by setting the
"enableLookups" attribute to "false". When DNS lookups are disabled,
request.getRemoteHost() will return the String version of the
IP address of the remote client.
-->
<!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
<Connector
port="5050" maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />
<!-- Note : To disable connection timeouts, set connectionTimeout value
to 0 -->
<!-- Note : To use gzip compression you could set the following properties :
compression="on"
compressionMinSize="2048"
noCompressionUserAgents="gozilla, traviata"
compressableMimeType="text/html,text/xml"
-->
<!-- Define a SSL HTTP/1.1 Connector on port 8443 -->
<!--
<Connector port="8443"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" disableUploadTimeout="true"
acceptCount="100" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" />
-->
<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector port="8009"
enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />
<!-- Define a Proxied HTTP/1.1 Connector on port 8082 -->
<!-- See proxy documentation for more information about using this. -->
<!--
<Connector port="8082"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" acceptCount="100" connectionTimeout="20000"
proxyPort="80" disableUploadTimeout="true" />
-->
<!-- An Engine represents the entry point (within Catalina) that processes
every request. The Engine implementation for Tomcat stand alone
analyzes the HTTP headers included with the request, and passes them
on to the appropriate Host (virtual host). -->
<!-- You should set jvmRoute to support load-balancing via AJP ie :
<Engine name="Standalone" defaultHost="localhost" jvmRoute="jvm1">
-->
<!-- Define the top level container in our container hierarchy -->
<Engine name="Catalina" defaultHost="localhost">
<!-- The request dumper valve dumps useful debugging information about
the request headers and cookies that were received, and the response
headers and cookies that were sent, for all requests received by
this instance of Tomcat. If you care only about requests to a
particular virtual host, or a particular application, nest this
element inside the corresponding <Host> or <Context> entry instead.
For a similar mechanism that is portable to all Servlet 2.4
containers, check out the "RequestDumperFilter" Filter in the
example application (the source for this filter may be found in
"$CATALINA_HOME/webapps/examples/WEB-INF/classes/filters").
Request dumping is disabled by default. Uncomment the following
element to enable it. -->
<!--
<Valve className="org.apache.catalina.valves.RequestDumperValve"/>
-->
<!-- Because this Realm is here, an instance will be shared globally -->
<!-- This Realm uses the UserDatabase configured in the global JNDI
resources under the key "UserDatabase". Any edits
that are performed against this UserDatabase are immediately
available for use by the Realm. -->
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
<!-- Comment out the old realm but leave here for now in case we
need to go back quickly -->
<!--
<Realm className="org.apache.catalina.realm.MemoryRealm" />
-->
<!-- Replace the above Realm with one of the following to get a Realm
stored in a database and accessed via JDBC -->
<!--
<Realm className="org.apache.catalina.realm.JDBCRealm"
driverName="org.gjt.mm.mysql.Driver"
connectionURL="jdbc:mysql://localhost/authority"
connectionName="test" connectionPassword="test"
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name" />
-->
<!--
<Realm className="org.apache.catalina.realm.JDBCRealm"
driverName="oracle.jdbc.driver.OracleDriver"
connectionURL="jdbc:oracle:thin:@ntserver:1521:ORCL"
connectionName="scott" connectionPassword="tiger"
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name" />
-->
<!--
<Realm className="org.apache.catalina.realm.JDBCRealm"
driverName="sun.jdbc.odbc.JdbcOdbcDriver"
connectionURL="jdbc:odbc:CATALINA"
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name" />
-->
<!-- Define the default virtual host
Note: XML Schema validation will not work with Xerces 2.2.
-->
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<!-- Defines a cluster for this node,
By defining this element, means that every manager will be changed.
So when running a cluster, only make sure that you have webapps in there
that need to be clustered and remove the other ones.
A cluster has the following parameters:
className = the fully qualified name of the cluster class
name = a descriptive name for your cluster, can be anything
mcastAddr = the multicast address, has to be the same for all the nodes
mcastPort = the multicast port, has to be the same for all the nodes
mcastBindAddr = bind the multicast socket to a specific address
mcastTTL = the multicast TTL if you want to limit your broadcast
mcastSoTimeout = the multicast readtimeout
mcastFrequency = the number of milliseconds in between sending a "I'm alive" heartbeat
mcastDropTime = the number a milliseconds before a node is considered "dead" if no heartbeat is received
tcpThreadCount = the number of threads to handle incoming replication requests, optimal would be the same amount of threads as nodes
tcpListenAddress = the listen address (bind address) for TCP cluster request on this host,
in case of multiple ethernet cards.
auto means that address becomes
InetAddress.getLocalHost().getHostAddress()
tcpListenPort = the tcp listen port
tcpSelectorTimeout = the timeout (ms) for the Selector.select() method in case the OS
has a wakup bug in java.nio. Set to 0 for no timeout
printToScreen = true means that managers will also print to std.out
expireSessionsOnShutdown = true means that
useDirtyFlag = true means that we only replicate a session after setAttribute,removeAttribute has been called.
false means to replicate the session after each request.
false means that replication would work for the following piece of code: (only for SimpleTcpReplicationManager)
<%
HashMap map = (HashMap)session.getAttribute("map");
map.put("key","value");
%>
replicationMode = can be either 'pooled', 'synchronous' or 'asynchronous'.
* Pooled means that the replication happens using several sockets in a synchronous way. Ie, the data gets replicated, then the request return. This is the same as the 'synchronous' setting except it uses a pool of sockets, hence it is multithreaded. This is the fastest and safest configuration. To use this, also increase the nr of tcp threads that you have dealing with replication.
* Synchronous means that the thread that executes the request, is also the
thread the replicates the data to the other nodes, and will not return until all
nodes have received the information.
* Asynchronous means that there is a specific 'sender' thread for each cluster node,
so the request thread will queue the replication request into a "smart" queue,
and then return to the client.
The "smart" queue is a queue where when a session is added to the queue, and the same session
already exists in the queue from a previous request, that session will be replaced
in the queue instead of replicating two requests. This almost never happens, unless there is a
large network delay.
-->
<!--
When configuring for clustering, you also add in a valve to catch all the requests
coming in, at the end of the request, the session may or may not be replicated.
A session is replicated if and only if all the conditions are met:
1. useDirtyFlag is true or setAttribute or removeAttribute has been called AND
2. a session exists (has been created)
3. the request is not trapped by the "filter" attribute
The filter attribute is to filter out requests that could not modify the session,
hence we don't replicate the session after the end of this request.
The filter is negative, ie, anything you put in the filter, you mean to filter out,
ie, no replication will be done on requests that match one of the filters.
The filter attribute is delimited by ;, so you can't escape out ; even if you wanted to.
filter=".*\.gif;.*\.js;" means that we will not replicate the session after requests with the URI
ending with .gif and .js are intercepted.
The deployer element can be used to deploy apps cluster wide.
Currently the deployment only deploys/undeploys to working members in the cluster
so no WARs are copied upons startup of a broken node.
The deployer watches a directory (watchDir) for WAR files when watchEnabled="true"
When a new war file is added the war gets deployed to the local instance,
and then deployed to the other instances in the cluster.
When a war file is deleted from the watchDir the war is undeployed locally
and cluster wide
-->
<!--
<Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"
managerClassName="org.apache.catalina.cluster.session.DeltaManager"
expireSessionsOnShutdown="false"
useDirtyFlag="true"
notifyListenersOnReplication="true">
<Membership
className="org.apache.catalina.cluster.mcast.McastService"
mcastAddr="228.0.0.4"
mcastPort="45564"
mcastFrequency="500"
mcastDropTime="3000"/>
<Receiver
className="org.apache.catalina.cluster.tcp.ReplicationListener"
tcpListenAddress="auto"
tcpListenPort="4001"
tcpSelectorTimeout="100"
tcpThreadCount="6"/>
<Sender
className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
replicationMode="pooled"
ackTimeout="15000"/>
<Valve className="org.apache.catalina.cluster.tcp.ReplicationValve"
filter=".*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;"/>
<Deployer className="org.apache.catalina.cluster.deploy.FarmWarDeployer"
tempDir="/tmp/war-temp/"
deployDir="/tmp/war-deploy/"
watchDir="/tmp/war-listen/"
watchEnabled="false"/>
</Cluster>
-->
<!-- Normally, users must authenticate themselves to each web app
individually. Uncomment the following entry if you would like
a user to be authenticated the first time they encounter a
resource protected by a security constraint, and then have that
user identity maintained across all web applications contained
in this virtual host. -->
<!--
<Valve className="org.apache.catalina.authenticator.SingleSignOn" />
-->
<!-- Access log processes all requests for this virtual host. By
default, log files are created in the "logs" directory relative to
$CATALINA_HOME. If you wish, you can specify a different
directory with the "directory" attribute. Specify either a relative
(to $CATALINA_HOME) or absolute path to the desired directory.
-->
<!--
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="localhost_access_log." suffix=".txt"
pattern="common" resolveHosts="false"/>
-->
<!-- Access log processes all requests for this virtual host. By
default, log files are created in the "logs" directory relative to
$CATALINA_HOME. If you wish, you can specify a different
directory with the "directory" attribute. Specify either a relative
(to $CATALINA_HOME) or absolute path to the desired directory.
This access log implementation is optimized for maximum performance,
but is hardcoded to support only the "common" and "combined" patterns.
-->
<!--
<Valve className="org.apache.catalina.valves.FastCommonAccessLogValve"
directory="logs" prefix="localhost_access_log." suffix=".txt"
pattern="common" resolveHosts="false"/>
-->
<Context path="/tdm" docBase="tdm" debug="0" reloadable="true" />
</Host>
</Engine>
</Service>
</Server>
I have set the context path to /tdm in the server.xml file. Should this be placed in context.xml?
My first page in the project is called Homepage.html. To start my project I give http://localhost:5050/tdm/homepage.html
in a browser. Here I accept a username and password from the user and then do the validation in
a valid.jsp file, where I connect to the database and check and use jsp:forward to go to next pages
accordingly. However when I enter the username and password and click Go in the homepage, nothing is
displayed on the next page. The URL in the browser says valid.jsp but a blank screen appears.
WHY DOES IT HAPPEN SO? DOES IT MEAN THAT TOMCAT IS NOT RECOGNIZING JAVA IN MY SYSTEM OR IS IT A PROBLEM
WITH THE DATABASE CONNECTION OR SOMETHING ELSE? I FEEL THAT TOMCAT IS NOT EXECUTING JSP COMMANDS?
IS IT POSSIBLE?WHY WILL THIS HAPPEN?
I set the JAVA_HOME and CATALINA_HOME environment to the jdk and tomcat folders resp.
Is there any other thing that I need to set in classpath? Should I have my project as a
WAR file in the webapps of TOMCAT or just a folder i.e. directory structure will fine? -
Oracle Forms run with Sun Java Plugin
Hello,
I have a machine which does not have Mozilla. But i wanna run the forms in Google Chrome, not IE. I installed JInitiator (the final version), but when i run the form i still got in Chrome that there are missing plugins.
I should mention that i just installed Dev Suite 10gR2 and i did not change anything in forms configuration files.
What should i change and where?
ThanksHi,
from
[http://fdegrelle.over-blog.com/article-4135746.html|http://fdegrelle.over-blog.com/article-4135746.html]
- Prepare your /forms/server/formsweb.cfg file
instead of the archive_jini tag, use the archive tag
archive=frmall.jar,...,my_jar.jar
add a special section (including the Webutil configuration)
[javaplugin]
baseHTMLJInitiator=webutiljpi.htm
jpi_download_page=http://java.sun.com/products/archive/j2se/1.4.2_09/index.html
jpi_classid=clsid:8AD9C840-044E-11D1-B3E9-00805F499D93
jpi_codebase=http://java.sun.com/products/plugin/autodl/jinstall-1_4-windows-i586.cab#Version=1,4,0,0
WebUtilArchive=frmwebutil.jar,jacob.jar
WebUtilLogging=off
WebUtilLoggingDetail=normal
WebUtilErrorMode=Alert
WebUtilDispatchMonitorInterval=5
WebUtilTrustInternal=true
WebUtilMaxTransferSize=16384
If you don't use the Webutil library, point to the basejpi.htm start page:
baseHTMLJInitiator=basejpi.htm
- Configure the Forms Builder to use this section:
Menu : Edit -> preferences...
tab : runtime
item : Application server url : http://my-machine:8890/forms/frmservlet?config=javaplugin
Then run your forms !
regards -
How To Deploy/Run a pure Java Portlet into Webcenter
Hello Gurus,
I am new to the portal technologies. So maybe I am asking a very basic question.
Here it what I would like to achieve.
1) Create a sample "HelloWorld" portlet (A java class which implements a portlet interface or some standard portlet impl class) and I use doView() method to show "Hello World" content on the screen.
I need to deploy and test this portlet class into Webcenter. I have JDeveloper as IDE.
2) Create a sample JSP page which prints "Hello World" content. Convert this into JSR-168 and then deploy and run into Webcenter.
Please can anyone provide the easiest steps to achive this? Step-by-step instructions will be highly appreciated as this is bit urgent.
Thanks in advance for any help you can provide on this.
With kind regards-
AshishHello,
Yes, I`m working with 10g.
I've used enterprise Manager to deploy the portlet. I`ve selected "create automatic deploy plan"
The portlet was deployed but I can´t see WSRP interface as http://localhost:8888/WSRPMapPortlet/portlets?WSDL
As yo can see, I´m deploying WSRPMapPortlet sample.
I can´t use JDeveloper in my job :(
Maybe I must do any configuration change to deploy correctly the portlet and expose it in WSRP, I don´t know
Best Regards
Miguel Lacosta -
How to use HTML or XML described visual forms for data entry in Java app?
Hi,
We are considering to use HTML as a mean of configuration for visual content and layout of data entry dialogs in our Java GUI applications. Java program will need to be able to populate/collect data into/from dialog controls. I am guessing that JEditorPane and FormView classes could be used for this but I have not figured out yet how to do this.
I would really appreciate any help you could provide with respect to this. Please share any tips, utilities, references, etc. Maybe one can suggest non-HTML (e.g. XML, UIML, ...) way to achieve the same requirements and recommend some utilities respectively.
Thanks.
-VitalyJust to clarify, we need a solution for Java application (no applet, no web server, no servlets, no JSPs, no EJBs).
-Vitaly -
Configuring DBI for use with Oracle 8i
We have problem while openning the connection to Oracle 8i using DBI. The error we keep getting when we run a test script is:
DBD::Oracle object version 1.03 does not match bootstrap parameter 0.47 at directory path/DynaLoader.pm line 188.
The same script is working fine on another computer where we have Oracle 8.05 installed.
Probably the DBD is not installed or configured properly. Is there anything we can do to fix this problem?
Thanks.Based on your description, clearly the SPA941 is not registered to a VoIP provider or a SIP server PBX. I am not familiar with the BT bussinness hub if this serves as the PBX of the VoIP network but youb are correct in saying that you need to configure the URL set up of the unit. You need to access the URL via its IP address. To know the IP address of the unit, follow this link:
http://linksys.custhelp.com/cgi-bin/linksys.cfg/php/enduser/std_adp.php?p_faqid=5230&p_created=11688...
After this, forll thw link for the registration of the VoIP information:
http://linksys.custhelp.com/cgi-bin/linksys.cfg/php/enduser/std_adp.php?p_faqid=16560&p_created=1211...
You need to also place in this field the “User ID” (usually you phone number from the VoIP provider), the password and the codec being used but youu VoIP provider. Save the settings and check in the “Info” tab if the extension is “registered”.
If you still have the same problem, I suggest contacting Cisco Tech support to further look into your concern. I believe this unit belongs to the business series devices that Cisco is now supporting. Try to go to this link for the other business series devices and the site where you can get hold of Cisco for support:
http://www.cisco.com/web/products/linksys/index.html -
Replacing a 3 tier application using HTML for presentaion with a Java App
Hello Everyone,
Any help with this respect will be greatly appreciated..
We have created an application which uses Weblogic as the Application Server and the front end is written in HTML which uses HTCs. Data from the front end to the back end is sent in the form of XML. The application as such is very slow, the lag is in the loading of the HTCs and in rendering the xml.
Is it good to replace the front end part with a full blown Java application which uses Swing for the front end. I feel that this is not a good approach, but I do not have valid reasons to support my ideas.
Please help me ...
Thanks in advance
Raj1) Swing is very very slow and if used will otherwise
cause a very pathetic user experience (and believe me
lady, it is true).Define slow and pathetic, I do not think you can because you are not work in her environment. Swing is accepted to be slower than AWT.
2) Making a seperate client side application will
cause
a) Distribution problem - you have to go around
nd giving it to all the clients (and potentially new
ones, it could be a potential pain).
b) Changes to the front end will result in
in re-distributing the client application.
c) Control over the client interface will be
be compromised as it shall be spread across antire
gamut of users. In web interface at least it is at one
place and changes can be easily affected.Web logic totally nullifies this argument with their push technology (I don't remember what it is called), it will automatically update any and all parts of the application as the developers define and with options for delay of updates as the developer defines. -
Configure Jabber for Mac with local CUCM and WebEx Connect
Hi, I was wondering if anyone has been able to configure the Jabber for Mac 8.6.2 client to use the WebEx Connect presence server with a local CUCM and Unity Connection servers. The preferences accounts tab does not show or allow the addition of the voice services. I have added from a working local CUCM preferences plist file what I believe are the correct entries however I still cannot see the accounts on the preferences tab. We currently do not have a local cisco presence server hence the requirement to trial the WebEx Connect server as I can't get past the first configuration step without it.
regards
paulHi - I have done this via the admin portal but still cannot get the Jabber client for Mac to register for voice. The Windows version works fine for the same user and CUCM device. Are there any other settings that need to be enabled specific to the Mac client?
Thanks. -
How to configure TMS for ChaRM with Customizing routes?
Hi Experts,
We have succesfully configured three system landscape TMS for ChaRM for several pipelines already. Now we are facing a situation where TMS is as follows:
DEV to QAS contains routes:
Customizing: ZEBP => 100
Transport: ZDEV => 100
Customizing: ZSUS => 200
Transport: SAP => 100
The question with these is how to add ZEBP and ZSUS to ChaRM configuration?
QAS to PRD:
Delivery: 200 => 200
Delivery: 100 => 100
Here the question is how to enable transports between 200s alongside 100?
When looking at SMSY in SolMan, SUS is a logical system only.
Has anyone of you come across a situation like this? I'm glad for any hints you may give me!
Our SolMan is 4.0 SP13.
Best Regards,
AuliHi
in my opinion you can configure it the following way:
Customizing: ZEBP => 100
Transport: ZEBP => 100 (not ZDEV)
Customizing: ZSUS => 200
Transport: SAP => 100
Then assign ZEBP as default transport layer for client 100 and ZSUS for client 200.
It is not possible to configure ZEBP and ZDEV for client 100 if you want to use charm
regards, Andy -
How to configure SolMan for interfacing with SAP Quality Center
Hello everyone,
Our company has only recently acquired and activated the permanent license for SAP Quality Center by HP. We would like QC to interface with SAP Solution Manager. My question is how to perform the configuration steps to make the interface work with Quality Center? I need to set up the IMG addon SM_QC_AD, which can be found under the transaction SPRO, but I need documentation on which steps to take and why.
I am often referred to SAP note 1059350 and/or the configuration guide, but these only say that I should configure the IMG but not how.
There is a SAP tutor available on the service marketplace, but I think it's rather uninformative.
Can I find better documentation elsewhere?Hi ,
[Configuration Guide SAP adapter for SAP Quality Center by HP|https://websmp101.sap-ag.de/~sapdownload/011000358700000612662007E/Adapter_Configuration_.pdf] might be useful.
Check [Master guide|https://websmp201.sap-ag.de/~sapdownload/011000358700000612672007E/Adapter_Master_Guide.pdf] also.
Regards
Naveen
Edited by: Naveen kumar Palanichamy on Feb 19, 2009 6:38 AM
Maybe you are looking for
-
Problem with LDAP in BEA Portal
Problem with LDAP in BEA Portal I have a list of 50 user which should be cerated in portal staging(devlopment) machine and should be transfered to production machine using LDAP Steps which i followed to create Users 1.Create User Profile with 2 param
-
Error 0x80070057 when importing VM from Server 2008R2 to Server 2012 R2
Hello. I am using SCVMM 2012 to export a Windows 7 desktop from a 2008R2 HyperV server, to a 2012R2 HyperV server. The job fails at step 1.5 (Import Hyper-V virtual machine) in the SCVMM log. The error message is: Error (2901) The operation did no
-
Hi All. After upgrading iTunes to 11.0.4 my faithful Mac mini can't get any sleep. It tries, but as soon as it sleeps something wakes it back up again within seconds. Actually what happens is the mac sleeps then about a minute later it wakes for a fe
-
How do I copy all photos in iPhoto to my passport?
how do I copy all my photos in iPhoto to My Passport?
-
Can I download a kindle version of a book and use it on an IPad, if so, how?