Warning: ocilogon() [function.ocilogon]: OCIEnvNlsCreate() failed.
Right now I am getting the following error when I try to connect to any of my Oracle databases:
Warning: ocilogon() [function.ocilogon]: OCIEnvNlsCreate() failed. There is something wrong with your system - please check that ORACLE_HOME is set and points to the right directory in /var/apache2/htdocs/test2.php on line 17
I tried connecting to three separate databases with the same result, 10.2.0.2 [Windows Sever 2003], 9.2.0.7 [Solaris 10], 10.2.0.3 [Redhat].
On my app server [Sun V20z] which is a x86-64 Bit server has the following installed: Solaris 10, Oracle 10.2 Client [Admin option] and PHP 5.2 using Apache2 that installed with Solaris.
I done quite a bit of reading and can't quite figure out what I'm doing wrong. So if anyone can help me out I would greatly appreciate it.
Below is how I setup Apache and PHP and how some of my setting are showing up.
# uname -a
SunOS sesapp 5.10 Generic_118855-36 i86pc i386 i86pc
Install libiconv.
# gunzip -c libiconv-1.9.2.tar | tar -xvf -
# cd libiconv-1.9.2
# ./configure
# make
# make install
Install libxml2.
# gunzip -c libxml2-2.6.26.tar.gz | tar -xvf -
# cd libxml2-2.6.26
# ./configure
# make
Copy the sample Apache2 configuration file.
# cp /etc/apache2/httpd.conf-example /etc/apache2/httpd.conf
# make install
Install PHP 5.2
# gunzip -c cd php-5.2.0.tar.gz | tar -xvf -
# cd php-5.2.0
# ./configure with-apxs2=/usr/apache2/bin/apxs with-libxml-dir=/usr/local with-config-file-path=/etc/apache2 with-zlib with-oracle=/apps/oracle/product/10.2.0/client with-oci8=/apps/oracle/product/10.2.0/client
# make
# make install
Setup the PHP configuration file.
# cp php.ini-dist /etc/apache2/php.ini
Add the following lines to the PHP /etc/apache2/httpd.conf configuration file.
AddType application/x-httpd-php .php
Created file /usr/apache2/bin/oraenv [This is for environment paths when apache starts]
ORACLE_BASE=/apps/oracle
export ORACLE_BASE
ORACLE_HOME=/apps/oracle/product/10.2.0/client
export ORACLE_HOME
LD_LIBARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:$ORACLE_HOME
export LD_LIBARY_PATH
LD_LIBRARY_PATH=/usr/apache2/lib:$ORACLE_HOME/lib:$ORACLE_HOME
export LD_LIBRARY_PATH
TNS_ADMIN=/apps/oracle/product/10.2.0/client/network/admin
export TNS_ADMIN
NLS_LANG=AMERICAN_AMERICA.WE8MSWIN1252
export NLS_LANG
I then modified /usr/apache2/bin/apachectl and in the "CONFIGURATION SECTION" added:
if [ -f /usr/apache2/bin/oraenv ] ;
then
. /usr/apache2/bin/oraenv
fi
Enable Apache2 using the Solaris Management Facility (SMF).
# svcadm enable apache2
When I do phpinfo() I get the following bits:
oci8
OCI8 Support enabled
Version 1.2.2
Revision $Revision: 1.269.2.16.2.25 $
Active Persistent Connections 0
Active Connections 0
Oracle Version 10.1
Compile-time ORACLE_HOME /apps/oracle/product/10.2.0/client
Libraries Used no value
Temporary Lob support enabled
Collections support enabled
Directive Local Value Master Value
oci8.default_prefetch 10 10
oci8.max_persistent -1 -1
oci8.old_oci_close_semantics 0 0
oci8.persistent_timeout -1 -1
oci8.ping_interval 60 60
oci8.privileged_connect Off Off
oci8.statement_cache_size 20 20
Environment
Variable Value
LANG C
LD_LIBARY_PATH /apps/oracle/product/10.2.0/client/lib:/lib:/usr/lib:/apps/oracle/product/10.2.0/client
LD_LIBRARY_PATH /usr/apache2/lib:/apps/oracle/product/10.2.0/client/lib:/apps/oracle/product/10.2.0/client
NLS_LANG AMERICAN_AMERICA.WE8MSWIN1252
ORACLE_BASE /apps/oracle
ORACLE_HOME /apps/oracle/product/10.2.0/client
PATH /usr/sbin:/usr/bin
SMF_FMRI svc:/network/http:apache2
SMF_METHOD /lib/svc/method/http-apache2 start
SMF_RESTARTER svc:/system/svc/restarter:default
TNS_ADMIN /apps/oracle/product/10.2.0/client/network/admin
TZ Canada/Mountain
If there is anything that you can think of that I should try or see something that I screwed up in my conf, please let me know as I am stumped.
Clayton
I can confirm that this is an Oracle Client permissions problem. I got frustrated and chmod -R 777 /apps/oracle and sure enough I could connect to all the databases. I know that this isn't a solution so I'll undo this and try and figure out which directories PHP is having a hard time accessing. If I am able to narrow it down I'll post it here. And if someone has done this already can you please post your finding's here.
Cheers,
Clayton
Similar Messages
-
1) Configured Php4.4 to have oci8 enabled with Apache2.2 on Windows 2000 ( service pack4). No error at the time of Apache start but when trying to connect to Oracle using Oracle Instant Client below error is thrown..
"Fatal error: Call to undefined function: ocilogon() in C:\Apache2 \htdocs\star\dbconnect.php on line 7"
Configuration steps..
1) Uncommented "extension=php_oci8.dll" in php.ini to enable oci API's.
2)Configured Oracle Instant client by adding path to Windows path variable as per it documentation.
3)Copied all Php4.4 dlls( oci..etc) into the directory pointed by "PHPIniDir", which is configured in httpd.conf
If i run phpinfo(), i dont see oci8 enabled in the output. I guess there is problem in the configuration? Any insights into the error is greatly appreciated..
BTW, I did same configuartion on Windows XP and is working fine..Also, I dont see path value for path variable in phpinfo() ouput for Oracle Instant Client, which i updated in Windows?
Below is the snippet of ouput from phpinfo().
Apache Environment
Variable Value
HTTP_ACCEPT image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, */*
HTTP_ACCEPT_LANGUAGE en-us
HTTP_ACCEPT_ENCODING gzip, deflate
HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
HTTP_HOST localhost
HTTP_CONNECTION Keep-Alive
PATH D:\CESi\isis\bin;D:\CESi\Gateway\mico-win32-bin\;D:\CESi\Gateway\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Support Tools\
SystemRoot C:\WINNT
COMSPEC C:\WINNT\system32\cmd.exe
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
WINDIR C:\WINNT
SERVER_SIGNATURE <address>Apache/2.0.59 (Win32) PHP/4.4.4 Server at localhost Port 80</address>
SERVER_SOFTWARE Apache/2.0.59 (Win32) PHP/4.4.4
SERVER_NAME localhost
SERVER_ADDR 127.0.0.1
SERVER_PORT 80
REMOTE_ADDR 127.0.0.1
DOCUMENT_ROOT C:/Apache2/htdocs
SERVER_ADMIN [email protected]
SCRIPT_FILENAME C:/Apache2/htdocs/info.php
REMOTE_PORT 4977
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING no value
REQUEST_URI /info.php
SCRIPT_NAME /info.php
Environment
Variable Value
ALLUSERSPROFILE C:\Documents and Settings\All Users
CMM_CELL CSTAR_STAR
CommonProgramFiles C:\Program Files\Common Files
COMPUTERNAME STAR-SM-NR-PROD
ComSpec C:\WINNT\system32\cmd.exe
NUMBER_OF_PROCESSORS 2
OS Windows_NT
Os2LibPath C:\WINNT\system32\os2\dll;
Path D:\CESi\isis\bin;D:\CESi\Gateway\mico-win32-bin\;D:\CESi\Gateway\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Support Tools\
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE x86
PROCESSOR_IDENTIFIER x86 Family 6 Model 11 Stepping 1, GenuineIntel
PROCESSOR_LEVEL 6
PROCESSOR_REVISION 0b01
ProgramFiles C:\Program Files
SMS_LOCAL_DIR C:\WINNT
SystemDrive C:
SystemRoot C:\WINNT
TEMP C:\WINNT\TEMP
TMP C:\WINNT\TEMP
USERPROFILE C:\Documents and Settings\xwback
windir C:\WINNT
AP_PARENT_PID 884 -
PHP- Oracle not working- Call to undefined function OCILogon() ERROR
Hi,
I am trying to just do a test program to test php - oracle connection,
My versions are: php5.2.1-Win32 and Oracle 10g
I have made the following settings:
1.) Uncommented the following lines in php.ini:
extension=php_oci8.dll
extension=php_oracle.dll
2.) Set extension_dir = "C:\php-5.2.1-Win32\ext"
Changed the httpd.conf file as: ADDED
1.)LoadModule php5_module C:/php-5.2.1-Win32/php5apache2.dll
2.)PHPIniDir "C:/Program Files/Apache Group/Apache2/conf-"
3.) LoadFile "C:/php/php5ts.dll"
4.)<IfModule php5_module>
<Location />
AddType text/html .php .phps
AddHandler application/x-httpd-php .php
AddHandler application/x-httpd-php-source .phps
</Location>
</IfModule>
5.) AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php-source .phps
But when I am tryin to run the following program:
<?php
echo "<h1>OCI Test</h1>\n";
$conn=OCILogon("system", "sheetal16", "orcl");
$stmt = OCIParse($conn, "SELECT table_name FROM user_tables ORDER BY table_name");
OCIExecute($stmt, OCI_DEFAULT);
while (OCIFetch($stmt)) {
$table_name = OCIResult($stmt, "TABLE_NAME");
echo "$table_name<br />\n";
OCIFreeStatement($stmt);
OCILogoff($conn);
?>
I am getting the following error:
OCI Test
Fatal error: Call to undefined function OCILogon() in C:\Program Files\Apache Group\Apache2\htdocs\test2.php on line 3
Please help me to solve this problem.
Thanks,
SheetalSee Re: PHP- Oracle not working- Call to undefined function OCILogon() ERROR
-
http://www.oracle.com/technology/tech/php/htdocs/inst_php_apache_windows.html
I have followed all these instructions, installed what was specified (including all versions needed).
First problem I encountered was there were no oci8 title in phpinfo.php,
Second was when I compiled the oci8test.php it brings this error,
Fatal error: Call to undefined function ocilogon() in C:\Program Files\Apache Group\Apache2\htdocs\ocisample.php on line 3
As I said, I have followed exactly what was specified in the instructions, yet the error is persistent.
Actions taken:
restarted apache
checked folder locations
checked php.ini-recommended
checked httpd.conf
everything is where they need to be.
I need help.
Thanks everyone. Have a nice day.If this is line #3, then try changing "//127.0.0.1/XE" to "localhost", or better yet to your TNS alias, which is typically "XE".
$db_conn = ocilogon("hr", "your_hr_password", "//127.0.0.1/XE");
It should look like this if you're using a USER account of test with a password of test:
$db_conn = ocilogon("test","test","XE"); -
Fatal error: Call to undefined function OCILogon()
Dear,
Under WinXp_Sp2 in iis I installed 5.1.6. It worked fine but when used with oracle 9.2.0.1.0 it gives error "Fatal error: Call to undefined function OCILogon()" while other extensions are working fine in extension dir. Please help me.
Thanks & regards.
JamilYou haven't mentioned having 9i installed locally. This way it should work well but in some cases ORACLE_HOME dependencies could not be resolved. If you need precise information what file to put where try the filemon utility.
http://www.sysinternals.com/Utilities/Filemon.html
It would show you the files php is trying to access in order to make use of the oci module. -
Hi all,
when I use this php script
<?php
$db_conn = ocilogon("venus_pkg","venus_pkg","ventst");
?>
I get this error:
Fatal error: Call to undefined function ocilogon() in d:\SITO\VENTST.php on line 3
How to configure Apache 1.3.3 with PHP version 5 to use OCI?
Thanks in advanceHi,
Even I am facing the same problem. I have done all the above mentioned settings. I have set the php.ini file with the extension dirt to "php/ext" and also uncommented the extension=phpoci8.dll . we r using PHP5.2.0, Apache 2.2 and Oracle 10g and installed both the XE and the Client edition of oRACLE 10G on windows XP.
Trying to execute the code:
<?php
echo "<h1>OCI Test</h1>\n";
$conn=OCILogon("username", "password", "system");
$stmt = OCIParse($conn, "SELECT * FROM employee ORDER BY name");
OCIExecute($stmt, OCI_DEFAULT);
while (OCIFetch($stmt)) {
$table_name = OCIResult($stmt, "employee");
echo "$table_name<br />\n";
OCIFreeStatement($stmt);
OCILogoff($conn);
?>
and getting the error as:
Debug Error: C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\test.php line 3 - Call to undefined function OCILogon()
Please help me out solving this problem. -
OCILogon function and user authentication
I am using the OCILogon function. What I am finding is that I
am able to login using a userid and password that's not there in
the database. Why is this? Isn't OCILogon supposed to generate
an error?
Thanks.The OCILogon function takes the dbname and the length of the
dbname as the last two parameters. In some code examples, I
have seen these these parameters are 0. What does this mean?
Even though a dbname is not being specified the sample program
is able to login into the only database I have running.
What does it mean to specify 0 as the dbname?
Hope I did a better job of asking the question. -
Hello guys,
I have been setting a production system with bitronix transaction manager, SQL server 2008, XA transactions and jetty 6. In the beginning this software was configured to run with MySQL. But one of my customer decided to move everything to MSSQL server 2008.
In that moment I was trying to get this up and running for some weeks (The configuration was completely different) and finally I got it.
The configuration with MSSQL server was running perfectly during 1 month but then from one day to other the error message I will show now appeared and I do not how to solve it. I almost read all the hints from google about this exception but nothing helped
me out.
I hope you guys can help me to find a way to solve it.
- I tried different version of the jdbc driver 3.0 and 4.0.
- I tried to export exactly the database to my localserver and it's running perfectly with the same configuration.
The problem is that I cannot reproduce the error in other place that is not the customer and at the same time I have no access to their internal database server. They installed all the XA transaction stuff (dll in binn, enable XA, and grant the permissions
for SQLXAUser), I am quite sure because it was running for one month without any problem.
I asked to the customer if anything happenend on their server (microsoft updates, machines reboot, ...) but nothing of these happened.
Also I tried this link out but did not help me.
<a href="http://social.msdn.microsoft.com/Forums/sqlserver/en-US/15c1e6f5-ec1e-4376-8f45-25e61ffc1306/the-function-start-has-failed-no-transaction-cookie-was-returned?forum=sqldataaccess">http://social.msdn.microsoft.com/Forums/sqlserver/en-US/15c1e6f5-ec1e-4376-8f45-25e61ffc1306/the-function-start-has-failed-no-transaction-cookie-was-returned?forum=sqldataaccess</a>
The exception is the following:
[2014-05-15 14:06:08,842] INFO 3666[main] - org.mortbay.log.Slf4jLog.info(Slf4jLog.java:67) - Starting Bitronix Transaction Manager
[2014-05-15 14:06:08,951] INFO 3775[main] - org.mortbay.log.Slf4jLog.info(Slf4jLog.java:67) - Extract ./webapps/myscript-fpp-wrapper-server.war to D:\Temp\Jetty_0_0_0_0_8080_myscript.fpp.wrapper.server.war__myscript.form.wrapper.server__.bnwnn7\webapp
[2014-05-15 14:06:10,324] INFO 5148[main] - org.mortbay.log.Slf4jLog.info(Slf4jLog.java:67) - NO JSP Support for /myscript-form-wrapper-server, did not find org.apache.jasper.servlet.JspServlet
[2014-05-15 14:06:12,742] WARN 7566[main] - org.dozer.config.GlobalSettings.loadGlobalSettings(GlobalSettings.java:118) - Dozer configuration file not found: dozer.properties. Using defaults for all Dozer global properties.
[2014-05-15 14:06:13,288] WARN 8112[main] - org.hibernate.util.JDBCExceptionReporter.logExceptions(JDBCExceptionReporter.java:100) - SQL Error: 0, SQLState: null
[2014-05-15 14:06:13,288]ERROR 8112[main] - org.hibernate.util.JDBCExceptionReporter.logExceptions(JDBCExceptionReporter.java:101) - error enlisting a JdbcConnectionHandle of a JdbcPooledConnection from datasource fppDataSource in state ACCESSIBLE with
usage count 1 wrapping SQLServerXAConnection:1 on ProxyConnectionID:1
[2014-05-15 14:06:13,319]ERROR 8143[main] - org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:220) - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'moduleRegistration' defined in class path resource [com/visionobjects/myscript/fpp/wrapper/module-registration.xml]: Invocation of init method failed; nested exception is
org.hibernate.exception.GenericJDBCException: could not execute query
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:549)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282)
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:224)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.mortbay.start.Main.invokeMain(Main.java:194)
at org.mortbay.start.Main.start(Main.java:534)
at org.mortbay.start.Main.start(Main.java:441)
at org.mortbay.start.Main.main(Main.java:119)
Caused by: org.hibernate.exception.GenericJDBCException: could not execute query
at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:126)
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:114)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
at org.hibernate.loader.Loader.doList(Loader.java:2235)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2129)
at org.hibernate.loader.Loader.list(Loader.java:2124)
at org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:118)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1597)
at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:306)
at org.hibernate.impl.CriteriaImpl.uniqueResult(CriteriaImpl.java:328)
at com.visionobjects.myscript.fpp.form.dao.impl.ModuleInfoDaoImpl.getModuleInfo(ModuleInfoDaoImpl.java:57)
at com.visionobjects.myscript.fpp.ModuleRegistration$1.doInTransactionWithoutResult(ModuleRegistration.java:73)
at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33)
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130)
at com.visionobjects.myscript.fpp.ModuleRegistration.init(ModuleRegistration.java:66)
at com.visionobjects.myscript.fpp.ModuleRegistration.start(ModuleRegistration.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1544)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1485)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)
... 33 more
Caused by: java.sql.SQLException: error enlisting a JdbcConnectionHandle of a JdbcPooledConnection from datasource fppDataSource in state ACCESSIBLE with usage count 1 wrapping SQLServerXAConnection:1 on ProxyConnectionID:1
at bitronix.tm.resource.jdbc.JdbcConnectionHandle.enlistResource(JdbcConnectionHandle.java:86)
at bitronix.tm.resource.jdbc.JdbcConnectionHandle.prepareStatement(JdbcConnectionHandle.java:243)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at bitronix.tm.resource.jdbc.BaseProxyHandlerClass.invoke(BaseProxyHandlerClass.java:63)
at $Proxy29.prepareStatement(Unknown Source)
at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:534)
at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:452)
at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:161)
at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1577)
at org.hibernate.loader.Loader.doQuery(Loader.java:696)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259)
at org.hibernate.loader.Loader.doList(Loader.java:2232)
... 52 more
Caused by: bitronix.tm.internal.BitronixSystemException: cannot enlist an XAResourceHolderState with uniqueName=fppDataSource XAResource= XAResourceID:1 with XID a Bitronix XID [6A657474792D6670702D73657276657200000145FFC68B9B00000000 : 6A657474792D6670702D73657276657200000145FFC68BCA00000002],
error=XAER_RMERR
at bitronix.tm.BitronixTransaction.enlistResource(BitronixTransaction.java:100)
at bitronix.tm.resource.common.TransactionContextHelper.enlistInCurrentTransaction(TransactionContextHelper.java:70)
at bitronix.tm.resource.jdbc.JdbcConnectionHandle.enlistResource(JdbcConnectionHandle.java:84)
... 66 more
<b>Caused by: javax.transaction.xa.XAException: com.microsoft.sqlserver.jdbc.SQLServerException: The function START: has failed. No transaction cookie was returned </b>
at com.microsoft.sqlserver.jdbc.SQLServerXAResource.DTC_XA_Interface(SQLServerXAResource.java:642)
at com.microsoft.sqlserver.jdbc.SQLServerXAResource.start(SQLServerXAResource.java:674)
at bitronix.tm.internal.XAResourceHolderState.start(XAResourceHolderState.java:211)
at bitronix.tm.internal.XAResourceManager.enlist(XAResourceManager.java:108)
at bitronix.tm.BitronixTransaction.enlistResource(BitronixTransaction.java:93)
... 68 more
I think the "bold" exception is the key.
Also the configuration file of my jetty server.
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd">
<!-- developpment jetty configuration -->
<!-- launch with main class : org.mortbay.start.Main app arguments:
deploy-conf/jetty-conf/mysql/jetty-dev.xml vm arguments : -Xmx1024M -DSTOP.KEY=stop
-DSTOP.PORT=6669 to stop : - - stop -Xmx1024M -DSTOP.KEY=stop -DSTOP.PORT=6669 -->
<Configure id="Server" class="org.mortbay.jetty.Server">
<Array id="plusConfig" type="java.lang.String">
<Item>org.mortbay.jetty.webapp.WebInfConfiguration</Item>
<Item>org.mortbay.jetty.plus.webapp.EnvConfiguration</Item>
<Item>org.mortbay.jetty.plus.webapp.Configuration</Item>
<Item>org.mortbay.jetty.webapp.JettyWebXmlConfiguration</Item>
<Item>org.mortbay.jetty.webapp.TagLibConfiguration</Item>
</Array>
<Array id="serverClasses" type="java.lang.String">
</Array>
<Array id="systemClasses" type="java.lang.String">
</Array>
<!-- web apps -->
<Set name="handler">
<New id="handlerContext" class="org.mortbay.jetty.handler.ContextHandlerCollection">
<Set name="handlers">
<Array id="handlerArray" type="org.mortbay.jetty.webapp.WebAppContext">
<!-- wrapper server -->
<Item>
<New class="org.mortbay.jetty.webapp.WebAppContext">
<Arg>./webapps/myscript-fpp-wrapper-server.war</Arg>
<Arg>/myscript-form-wrapper-server</Arg>
<Set name="serverClasses">
<Ref id="serverClasses" />
</Set>
<Set name="ConfigurationClasses">
<Ref id="plusConfig" />
</Set>
</New>
</Item>
<!-- form server -->
<Item>
<New class="org.mortbay.jetty.webapp.WebAppContext">
<Arg>./webapps/myscript-fpp-form-server.war
</Arg>
<Arg>/myscript-form-server</Arg>
<Set name="serverClasses">
<Ref id="serverClasses" />
</Set>
<Set name="ConfigurationClasses">
<Ref id="plusConfig" />
</Set>
</New>
</Item>
<!-- hwr server -->
<Item>
<New class="org.mortbay.jetty.webapp.WebAppContext">
<Arg>./webapps/myscript-fpp-hwr-server.war</Arg>
<Arg>/myscript-form-hwr-server</Arg>
<Set name="serverClasses">
<Ref id="serverClasses" />
</Set>
<Set name="ConfigurationClasses">
<Ref id="plusConfig" />
</Set>
</New>
</Item>
</Array>
</Set>
</New>
</Set>
<Call name="addConnector">
<Arg>
<New class="org.mortbay.jetty.nio.SelectChannelConnector">
<Set name="port">8080</Set>
</New>
</Arg>
</Call>
<!-- Use the jdk 1.5 platformMBeanServer -->
<Call id="MBeanServer" class="java.lang.management.ManagementFactory"
name="getPlatformMBeanServer" />
<Get id="Container" name="container">
<Call name="addEventListener">
<Arg>
<New class="org.mortbay.management.MBeanContainer">
<Arg>
<Ref id="MBeanServer" />
</Arg>
<Call name="start" />
</New>
</Arg>
</Call>
</Get>
<!-- Setup the RMIRegistry on a specific port -->
<Call id="rmiRegistry" class="java.rmi.registry.LocateRegistry"
name="createRegistry">
<Arg type="int">2099</Arg>
</Call>
<!-- Setup the JMXConnectorServer on a specific rmi server port -->
<Call id="jmxConnectorServer" class="javax.management.remote.JMXConnectorServerFactory"
name="newJMXConnectorServer">
<Arg>
<New class="javax.management.remote.JMXServiceURL">
<Arg>service:jmx:rmi://localhost:2100/jndi/rmi://localhost:2099/jmxrmi
</Arg>
</New>
</Arg>
<Arg />
<Arg>
<Ref id="MBeanServer" />
</Arg>
<Call name="start" />
</Call>
<!--************************* -->
<!-- embbeded ActiveMQ Broker -->
<!--************************* -->
<New id="brokerService" class="org.apache.activemq.broker.BrokerService">
<Set name="brokerName">fppBrokerActiveMQ</Set>
<Set name="dataDirectoryFile"></Set>
<Call name="getSystemUsage">
<Call name="getMemoryUsage">
<Set name="limit">26428800</Set>
</Call>
<Call name="getStoreUsage">
<Set name="limit">204857600</Set>
</Call>
</Call>
<Call name="addConnector">
<Arg>nio://localhost:61615</Arg>
</Call>
<Call name="start"></Call>
</New>
<!-- ************************** -->
<!-- common fpp jndi resources -->
<!-- ************************** -->
<!-- ui debug properties -->
<New id="fpp.common-ui.velocityProperties" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/fpp.common-ui.velocityProperties</Arg>
<Arg>
<New class="java.util.Properties">
<Put name="spring.resource.loader.class">org.springframework.ui.velocity.SpringResourceLoader
</Put>
<Put name="spring.resource.loader.cache">false</Put>
<Put name="velocimacro.library.autoreload">true</Put>
</New>
</Arg>
</New>
<New id="fpp.wrapper-server.properties" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/fpp.wrapper-server.properties</Arg>
<Arg>
<New class="java.util.Properties">
<Put name="fpp.wrapper-server.instanceServiceWsdlLocation">http://localhost:8080/myscript-form-server/cxf/instance?wsdl
</Put>
<Put name="fpp.wrapper-server.formServiceWsdlLocation">http://localhost:8080/myscript-form-server/cxf/form?wsdl
</Put>
<Put name="fpp.wrapper-server.formDeprecatedServiceWsdlLocation">http://localhost:8080/myscript-form-server/cxf/formDeprecated?wsdl
</Put>
<Put name="fpp.wrapper-server.hwrResourceServiceWsdlLocation">http://localhost:8080/myscript-form-server/cxf/hwrResource?wsdl
</Put>
<Put name="fpp.wrapper-server.defaultEnvironmentName">default</Put>
<Put name="fpp.wrapper-server.defaultEnvironmentType">STANDARD</Put>
<Put name="fpp.wrapper-server.formdb.dialect">org.hibernate.dialect.SQLServerDialect</Put>
<Put name="fpp.wrapper-server.formdb.hibernate.show_sql">true</Put>
<Put name="fpp.wrapper-server.formdb.hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</Put>
<Put name="fpp.wrapper-server.formdb.hibernate.transaction.manager_lookup_class">org.hibernate.transaction.BTMTransactionManagerLookup</Put>
<Put name="fpp.wrapper-server.formdb.hibernate.cache.use_query_cache">false</Put>
<Put name="fpp.wrapper-server.formdb.hibernate.cache.use_second_level_cache">false</Put>
<Put name="fpp.wrapper-server.formdb.hibernate.cache.use_structured_cache">false</Put>
<Put name="fpp.wrapper-server.formdb.hibernate.cache.provider_class">org.hibernate.cache.NoCacheProvider</Put>
</New>
</Arg>
</New>
<!-- transaction manager - bitronix -->
<Call name="getConfiguration" class="bitronix.tm.TransactionManagerServices">
<Set name="serverId">jetty-fpp-server</Set>
<Set name="gracefulShutdownInterval">45</Set>
<Set name="logPart1Filename">btm/btm1.tlog</Set>
<Set name="logPart2Filename">btm/btm2.tlog</Set>
</Call>
<Set name="gracefulShutdown">60000</Set>
<Call name="addLifeCycle">
<Arg>
<New class="bitronix.tm.integration.jetty6.BTMLifeCycle" />
</Arg>
</Call>
<New class="org.mortbay.jetty.plus.naming.Transaction">
<Arg>
<Call name="getTransactionManager" class="bitronix.tm.TransactionManagerServices" />
</Arg>
</New>
<New class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>java:/TransactionManager</Arg>
<Arg>
<Call name="getTransactionManager" class="bitronix.tm.TransactionManagerServices" />
</Arg>
</New>
<New id="userTransactionManager" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>java:comp/TransactionManager</Arg>
<Arg>
<Call name="getTransactionManager" class="bitronix.tm.TransactionManagerServices" />
</Arg>
</New>
<New id="userTransactionManager" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>java:comp/UserTransaction</Arg>
<Arg>
<Call name="getTransactionManager" class="bitronix.tm.TransactionManagerServices" />
</Arg>
</New>
<!-- database data source -->
<New id="fppDataSource" class="bitronix.tm.resource.jdbc.PoolingDataSource">
<Set name="uniqueName">fppDataSource</Set>
<Set name="className">com.microsoft.sqlserver.jdbc.SQLServerXADataSource</Set>
<Set name="minPoolSize">0</Set>
<Set name="maxPoolSize">50</Set>
<Get name="driverProperties">
<Put name="serverName">DYHVDB01</Put>
<Put name="instanceName">ALPHA</Put>
<Put name="integratedSecurity">false</Put>
<Put name="databaseName">tdb_digipen_fpp</Put>
<Put name="user">manage_digipen</Put>
<Put name="password">5T1fte?</Put>
<!--Needed to test??<Put name="pinGlobalTxToPhysicalConnection">true</Put>-->
</Get>
<Call name="init" />
</New>
<!-- Jms connection factories -->
<New id="fppServerConnectionFactory" class="bitronix.tm.resource.jms.PoolingConnectionFactory">
<Set name="className">org.apache.activemq.ActiveMQXAConnectionFactory</Set>
<Set name="uniqueName">fppServerConnectionFactory</Set>
<Set name="minPoolSize">4</Set>
<Set name="maxPoolSize">40</Set>
<Set name="allowLocalTransactions">true</Set>
<Get name="driverProperties">
<Put name="brokerURL">nio://localhost:61615?jms.prefetchPolicy.all=50</Put>
<New class="org.apache.activemq.RedeliveryPolicy">
<Set name="maximumRedeliveries">-1</Set>
<Set name="backOffMultiplier">2</Set>
</New>
</Get>
<Call name="init" />
</New>
<!-- JMS Queues & topics -->
<New id="formNotifiationTopic" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>fpp/formNotifiationTopic</Arg>
<Arg>
<New class="org.apache.activemq.command.ActiveMQTopic">
<Arg>formNotifiationTopic</Arg>
</New>
</Arg>
</New>
<New id="fieldJmsQueue" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>fpp/fieldJmsQueue</Arg>
<Arg>
<New class="org.apache.activemq.command.ActiveMQQueue">
<Arg>fieldJmsQueue</Arg>
</New>
</Arg>
</New>
<New id="fieldNotifJmsQueue" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>fpp/fieldNotifJmsQueue</Arg>
<Arg>
<New class="org.apache.activemq.command.ActiveMQQueue">
<Arg>fieldNotifJmsQueue</Arg>
</New>
</Arg>
</New>
<New id="inkJmsQueue" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>fpp/inkJmsQueue</Arg>
<Arg>
<New class="org.apache.activemq.command.ActiveMQQueue">
<Arg>inkJmsQueue</Arg>
</New>
</Arg>
</New>
<!-- native library services -->
<New id="myscriptLicenseService" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/myscriptLicenseService</Arg>
<Arg>
<New
class="com.visionobjects.licensemanager.impl.MyscriptLicenseServiceImpl">
<Arg>localhost</Arg>
</New>
</Arg>
</New>
<!-- *********************** -->
<!-- form server properties -->
<!-- *********************** -->
<New id="fpp.form.properties" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/fpp.form.properties</Arg>
<Arg>
<New class="java.util.Properties">
<Put name="fpp.form.defaultEnvironmentName">default</Put>
<Put name="fpp.form.defaultEnvironmentType">STANDARD</Put>
<Put name="fpp.form.jbpm.job.nbexecutor">4</Put>
<Put name="fpp.form.jbpm.job.idleinterval">1000</Put>
<Put name="fpp.form.field.notif.nbconsumers">2</Put>
<Put name="fpp.form.ink.nbconsumers">2</Put>
<Put name="fpp.form.instance.instanceValidationMode">STANDARD</Put>
<Put name="fpp.form.formdb.dialect">org.hibernate.dialect.SQLServerDialect</Put>
<!--<Put name="fpp.form.formdb.hibernate.show_sql">true</Put>-->
<Put name="fpp.form.formdb.hibernate.show_sql">true</Put>
<Put name="fpp.form.formdb.hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</Put>
<Put name="fpp.form.formdb.hibernate.transaction.manager_lookup_class">org.hibernate.transaction.BTMTransactionManagerLookup
</Put>
<Put name="fpp.form.formdb.hibernate.cache.use_query_cache">false</Put>
<Put name="fpp.form.formdb.hibernate.cache.use_second_level_cache">false</Put>
<Put name="fpp.form.formdb.hibernate.cache.use_structured_cache">false</Put>
<Put name="fpp.form.formdb.hibernate.cache.provider_class">org.hibernate.cache.NoCacheProvider</Put>
<Put name="fpp.form.jbpmdb.dialect">org.hibernate.dialect.SQLServerDialect</Put>
<Put name="fpp.form.jbpmdb.hibernate.show_sql">true</Put>
<Put name="fpp.form.jbpmdb.hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</Put>
<Put name="fpp.form.jbpmdb.hibernate.transaction.manager_lookup_class">org.hibernate.transaction.BTMTransactionManagerLookup
</Put>
<Put name="fpp.form.jbpmdb.hibernate.cache.use_query_cache">false</Put>
<Put name="fpp.form.jbpmdb.hibernate.cache.use_second_level_cache">false</Put>
<Put name="fpp.form.jbpmdb.hibernate.cache.use_structured_cache">false</Put>
<Put name="fpp.form.jbpmdb.hibernate.cache.provider_class">org.hibernate.cache.NoCacheProvider</Put>
<Put name="fpp.form.scheduler.jobStore.driverDelegateClass">org.quartz.impl.jdbcjobstore.MSSQLDelegate</Put>
<Put name="fpp.form.scheduler.dataSource.driver">com.microsoft.sqlserver.jdbc.SQLServerDriver</Put>
<Put name="fpp.form.scheduler.dataSource.URL">jdbc:sqlserver://DYHVDB01\ALPHA;DatabaseName=tdb_digipen_fpp;integratedSecurity=false
</Put>
<Put name="fpp.form.scheduler.dataSource.user">manage_digipen</Put>
<Put name="fpp.form.scheduler.dataSource.password">5T1fte?</Put>
<!-- Cron Format A cron expression is a string comprised of 6 or 7 fields
separated by white space. Fields can contain any of the allowed values, along
with various combinations of the allowed special characters for that field.
The fields are as follows: Field Name Mandatory Allowed Values Allowed Special
Characters Seconds YES 0-59 , - * / Minutes YES 0-59 , - * / Hours YES 0-23
, - * / Day of month YES 1-31 , - * ? / L W Month YES 1-12 or JAN-DEC , -
* / Day of week YES 1-7 or SUN-SAT , - * ? / L # Year NO empty, 1970-2099
, - * / -->
<Put name="fpp.form.purge.moduleinfo.cron">0 0/1 * * * ?</Put>
<Put name="fpp.form.purge.instances.cron">0 0 * * * ?</Put>
<Put name="fpp.form.purge.instances.defaultcase">365</Put>
<Put name="fpp.form.purge.instances.case1">10</Put>
<Put name="fpp.form.purge.instances.case2">60</Put>
<Put name="fpp.form.purge.instances.case3">100</Put>
<Put name="fpp.form.purge.instances.case4">30</Put>
<Put name="fpp.form.purge.instances.case5">60</Put>
<Put name="fpp.form.export.cron">0 0 * * * ?</Put>
<Put name="fpp.form.export.exportpath">C:\FPP</Put>
<Put name="fpp.form.export.exportMode">REGULAR</Put>
<Put name="fpp.form.export.buildingType">INCREMENTAL</Put>
<Put name="fpp.form.export.addInformations">true</Put>
</New>
</Arg>
</New>
<New id="fppFormDbDataSource" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>jdbc/fppFormDbDataSource</Arg>
<Arg>
<Ref id="fppDataSource"></Ref>
</Arg>
</New>
<New id="fppJbpmDbDataSource" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>jdbc/fppJbpmDbDataSource</Arg>
<Arg>
<Ref id="fppDataSource" />
</Arg>
</New>
<New id="formJmsTopicConnectionFactory" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/formJmsTopicConnectionFactory</Arg>
<Arg>
<Ref id="fppServerConnectionFactory" />
</Arg>
</New>
<New id="fieldProducerJmsConnectionFactory" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/fieldProducerJmsConnectionFactory</Arg>
<Arg>
<Ref id="fppServerConnectionFactory" />
</Arg>
</New>
<New id="fieldNotifConsumerJmsConnectionFactory" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/fieldNotifConsumerJmsConnectionFactory</Arg>
<Arg>
<Ref id="fppServerConnectionFactory" />
</Arg>
</New>
<New id="inkConsumerJmsConnectionFactory" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/inkConsumerJmsConnectionFactory</Arg>
<Arg>
<Ref id="fppServerConnectionFactory" />
</Arg>
</New>
<!-- HWR SERVER -->
<New id="fpp.hwr-server.properties" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/fpp.hwr-server.properties</Arg>
<Arg>
<New class="java.util.Properties">
<Put name="fpp.hwr-server.formbroker.uri">failover:nio://localhost:61615</Put>
<Put name="fpp.hwr-server.fieldConsumers">4</Put>
<Put name="fpp.hwr-server.resourceManager.memoryUsageThreshold">262144000</Put>
<Put name="fpp.hwr-server.resourceManager.resourceCountThreshold">150</Put>
<Put name="fpp.hwr-server.resourceManager.idleTimeLimit">1800000</Put>
<Put name="fpp.hwr-server.resourceManager.timeToLive">3600000</Put>
<Put name="fpp.hwr-server.resourceManager.wakeUpInterval">100000</Put>
<Put name="fpp.hwr-server.formdb.dialect">org.hibernate.dialect.SQLServerDialect</Put>
<Put name="fpp.hwr-server.formdb.hibernate.show_sql">true</Put>
<Put name="fpp.hwr-server.formdb.hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</Put>
<Put
name="fpp.hwr-server.formdb.hibernate.transaction.manager_lookup_class">org.hibernate.transaction.BTMTransactionManagerLookup</Put>
<Put name="fpp.hwr-server.internal.dumpRecognition">false</Put>
</New>
</Arg>
</New>
<New id="myscriptHwrService" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/myscriptHwrService</Arg>
<Arg>
<New class="com.visionobjects.myscript.commons.hwr.engine.HwrEngineService">
<Set name="handwritingContextUserLimit">50</Set>
<Set name="resourceUserLimit">0</Set>
<Set name="otherObjectUserLimit">500</Set>
<Call name="doStart" />
</New>
</Arg>
</New>
<New id="fieldNotificationProducerJmsConnectionFactory" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/fieldNotificationProducerJmsConnectionFactory</Arg>
<Arg>
<Ref id="fppServerConnectionFactory" />
</Arg>
</New>
<New id="fieldConsumerJmsConnectionFactory" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/fieldConsumerJmsConnectionFactory</Arg>
<Arg>
<Ref id="fppServerConnectionFactory" />
</Arg>
</New>
<!-- wrapper -->
<New id="fppWrapperServerConnectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory">
<Set name="brokerURL">nio://localhost:61615</Set>
<Set name="redeliveryPolicy">
<New class="org.apache.activemq.RedeliveryPolicy">
<Set name="maximumRedeliveries">-1</Set>
<Set name="backOffMultiplier">2</Set>
</New>
</Set>
</New>
<New id="formNotificationConsumerFactory" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/formNotificationConsumerFactory</Arg>
<Arg>
<Ref id="fppWrapperServerConnectionFactory" />
</Arg>
</New>
<New id="inkProducerJmsConnectionFactory" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/inkProducerJmsConnectionFactory</Arg>
<Arg>
<Ref id="fppWrapperServerConnectionFactory" />
</Arg>
</New>
<!-- JMX/SENSORS -->
<New id="inkJmsQueueUrl" class="java.lang.String">
<Arg>service:jmx:rmi://localhost:2100/jndi/rmi://localhost:2099/jmxrmi
</Arg>
</New>
<New id="inkJmsQueueObjectName" class="java.lang.String">
<Arg>org.apache.activemq:BrokerName=formserver.broker,Type=Queue,Destination=inkJmsQueue
</Arg>
</New>
<New id="fieldNotifJmsQueueUrl" class="java.lang.String">
<Arg>service:jmx:rmi://localhost:2100/jndi/rmi://localhost:2099/jmxrmi
</Arg>
</New>
<New id="fieldNotifJmsQueueObjectName" class="java.lang.String">
<Arg>org.apache.activemq:BrokerName=formserver.broker,Type=Queue,Destination=fieldNotifJmsQueue
</Arg>
</New>
<New id="fieldJmsQueueUrl" class="java.lang.String">
<Arg>service:jmx:rmi://localhost:2100/jndi/rmi://localhost:2099/jmxrmi
</Arg>
</New>
<New id="fieldJmsQueueObjectName" class="java.lang.String">
<Arg>org.apache.activemq:BrokerName=formserver.broker,Type=Queue,Destination=fieldJmsQueue
</Arg>
</New>
<New id="formNotifiationTopicUrl" class="java.lang.String">
<Arg>service:jmx:rmi://localhost:2100/jndi/rmi://localhost:2099/jmxrmi
</Arg>
</New>
<New id="formNotifiationTopicObjectName" class="java.lang.String">
<Arg>org.apache.activemq:BrokerName=formserver.broker,Type=Queue,Destination=formNotifiationTopic
</Arg>
</New>
<New id="server.list" class="java.util.HashMap">
<!-- InkJmsQueue -->
<Put name="WRP">
<New class="java.util.ArrayList">
<Call name="add">
<Arg>
<New class="java.lang.String">
<Arg>http://localhost:8081</Arg>
</New>
</Arg>
</Call>
<Call name="add">
<Arg>
<New class="java.lang.String">
<Arg>http://localhost:8084</Arg>
</New>
</Arg>
</Call>
</New>
</Put>
<Put name="FORM">
<New class="java.util.ArrayList">
<Call name="add">
<Arg>
<New class="java.lang.String">
<Arg>http://localhost:8080</Arg>
</New>
</Arg>
</Call>
<Call name="add">
<Arg>
<New class="java.lang.String">
<Arg>http://localhost:8084</Arg>
</New>
</Arg>
</Call>
</New>
</Put>
<Put name="HWR">
<New class="java.util.ArrayList">
<Call name="add">
<Arg>
<New class="java.lang.String">
<Arg>http://localhost:8083</Arg>
</New>
</Arg>
</Call>
<Call name="add">
<Arg>
<New class="java.lang.String">
<Arg>http://localhost:8084</Arg>
</New>
</Arg>
</Call>
</New>
</Put>
</New>
<New id="fpp.form.jmx.properties" class="java.util.HashMap">
<!-- InkJmsQueue -->
<Put name="inkJmsQueueSize">
<New class="java.util.HashMap">
<Put name="urlQueue">
<Ref id="inkJmsQueueUrl" />
</Put>
<Put name="objectName">
<Ref id="inkJmsQueueObjectName" />
</Put>
<Put name="attribute">QueueSize</Put>
</New>
</Put>
<Put name="inkJmsConsumerCount">
<New class="java.util.HashMap">
<Put name="urlQueue">
<Ref id="inkJmsQueueUrl" />
</Put>
<Put name="objectName">
<Ref id="inkJmsQueueObjectName" />
</Put>
<Put name="attribute">ConsumerCount</Put>
</New>
</Put>
<Put name="inkJmsDequeueCount">
<New class="java.util.HashMap">
<Put name="urlQueue">
<Ref id="inkJmsQueueUrl" />
</Put>
<Put name="objectName">
<Ref id="inkJmsQueueObjectName" />
</Put>
<Put name="attribute">DequeueCount</Put>
</New>
</Put>
<Put name="inkJmsAverageEnqueueTime">
<New class="java.util.HashMap">
<Put name="urlQueue">
<Ref id="inkJmsQueueUrl" />
</Put>
<Put name="objectName">
<Ref id="inkJmsQueueObjectName" />
</Put>
<Put name="attribute">AverageEnqueueTime</Put>
</New>
</Put>
<Put name="inkJmsMaxEnqueueTime">
<New class="java.util.HashMap">
<Put name="urlQueue">
<Ref id="inkJmsQueueUrl" />
</Put>
<Put name="objectName">
<Ref id="inkJmsQueueObjectName" />
</Put>
<Put name="attribute">MaxEnqueueTime</Put>
</New>
</Put>
<!--FieldNotifJmsQueue -->
<Put name="fieldNotifJmsQueueSize">
<New class="java.util.HashMap">
<Put name="urlQueue">
<Ref id="fieldNotifJmsQueueUrl" />
</Put>
<Put name="objectName">
<Ref id="fieldNotifJmsQueueObjectName" />
</Put>
<Put name="attribute">QueueSize</Put>
</New>
</Put>
<Put name="fieldNotifJmsConsumerCount">
<New class="java.util.HashMap">
<Put name="urlQueue">
<Ref id="fieldNotifJmsQueueUrl" />
</Put>
<Put name="objectName">
<Ref id="fieldNotifJmsQueueObjectName" />
</Put>
<Put name="attribute">ConsumerCount</Put>
</New>
</Put>
<Put name="fieldNotifJmsDequeueCount">
<New class="java.util.HashMap">
<Put name="urlQueue">
<Ref id="fieldNotifJmsQueueUrl" />
</Put>
<Put name="objectName">
<Ref id="fieldNotifJmsQueueObjectName" />
</Put>
<Put name="attribute">DequeueCount</Put>
</New>
</Put>
<Put name="fieldNotifJmsAverageEnqueueTime">
<New class="java.util.HashMap">
<Put name="urlQueue">
<Ref id="fieldNotifJmsQueueUrl" />
</Put>
<Put name="objectName">
<Ref id="fieldNotifJmsQueueObjectName" />
</Put>
<Put name="attribute">AverageEnqueueTime</Put>
</New>
</Put>
<Put name="fieldNotifJmsMaxEnqueueTime">
<New class="java.util.HashMap">
<Put name="urlQueue">
<Ref id="fieldNotifJmsQueueUrl" />
</Put>
<Put name="objectName">
<Ref id="fieldNotifJmsQueueObjectName" />
</Put>
<Put name="attribute">MaxEnqueueTime</Put>
</New>
</Put>
</New>
<New id="fpp.form.ui.parameters" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/fpp.form.ui.parameters</Arg>
<Arg>
<New
class="com.visionobjects.myscript.fpp.ui.parameters.impl.UIParametersServiceImpl">
<Set name="jmxProperties">
<Ref id="fpp.form.jmx.properties"></Ref>
</Set>
<Set name="serverList">
<Ref id="server.list"></Ref>
</Set>
</New>
</Arg>
</New>
</Configure>
Thanks so much in advance.
Hello guys,
I have been setting a production system with bitronix transaction manager, SQL server 2008, XA transactions and jetty 6. In the beginning this software was configured to run with MySQL. But one of my customer decided to move everything to MSSQL server 2008.
In that moment I was trying to get this up and running for some weeks (The configuration was completely different) and finally I got it.
The configuration with MSSQL server was running perfectly during 1 month but then from one day to other the error message I will show now appeared and I do not how to solve it. I almost read all the hints from google about this exception but nothing helped
me out.
I hope you guys can help me to find a way to solve it.
- I tried different version of the jdbc driver 3.0 and 4.0.
- I tried to export exactly the database to my localserver and it's running perfectly with the same configuration.
The problem is that I cannot reproduce the error in other place that is not the customer and at the same time I have no access to their internal database server. They installed all the XA transaction stuff (dll in binn, enable XA, and grant the permissions
for SQLXAUser), I am quite sure because it was running for one month without any problem.
I asked to the customer if anything happenend on their server (microsoft updates, machines reboot, ...) but nothing of these happened.
Also I tried this link out but did not help me.
<a href="http://social.msdn.microsoft.com/Forums/sqlserver/en-US/15c1e6f5-ec1e-4376-8f45-25e61ffc1306/the-function-start-has-failed-no-transaction-cookie-was-returned?forum=sqldataaccess">http://social.msdn.microsoft.com/Forums/sqlserver/en-US/15c1e6f5-ec1e-4376-8f45-25e61ffc1306/the-function-start-has-failed-no-transaction-cookie-was-returned?forum=sqldataaccess</a>
The exception is the following:
[2014-05-15 14:06:08,842] INFO 3666[main] - org.mortbay.log.Slf4jLog.info(Slf4jLog.java:67) - Starting Bitronix Transaction Manager
[2014-05-15 14:06:08,951] INFO 3775[main] - org.mortbay.log.Slf4jLog.info(Slf4jLog.java:67) - Extract ./webapps/myscript-fpp-wrapper-server.war to D:\Temp\Jetty_0_0_0_0_8080_myscript.fpp.wrapper.server.war__myscript.form.wrapper.server__.bnwnn7\webapp
[2014-05-15 14:06:10,324] INFO 5148[main] - org.mortbay.log.Slf4jLog.info(Slf4jLog.java:67) - NO JSP Support for /myscript-form-wrapper-server, did not find org.apache.jasper.servlet.JspServlet
[2014-05-15 14:06:12,742] WARN 7566[main] - org.dozer.config.GlobalSettings.loadGlobalSettings(GlobalSettings.java:118) - Dozer configuration file not found: dozer.properties. Using defaults for all Dozer global properties.
[2014-05-15 14:06:13,288] WARN 8112[main] - org.hibernate.util.JDBCExceptionReporter.logExceptions(JDBCExceptionReporter.java:100) - SQL Error: 0, SQLState: null
[2014-05-15 14:06:13,288]ERROR 8112[main] - org.hibernate.util.JDBCExceptionReporter.logExceptions(JDBCExceptionReporter.java:101) - error enlisting a JdbcConnectionHandle of a JdbcPooledConnection from datasource fppDataSource in state ACCESSIBLE with
usage count 1 wrapping SQLServerXAConnection:1 on ProxyConnectionID:1
[2014-05-15 14:06:13,319]ERROR 8143[main] - org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:220) - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'moduleRegistration' defined in class path resource [com/visionobjects/myscript/fpp/wrapper/module-registration.xml]: Invocation of init method failed; nested exception is
org.hibernate.exception.GenericJDBCException: could not execute query
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:549)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282)
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:224)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.mortbay.start.Main.invokeMain(Main.java:194)
at org.mortbay.start.Main.start(Main.java:534)
at org.mortbay.start.Main.start(Main.java:441)
at org.mortbay.start.Main.main(Main.java:119)
Caused by: org.hibernate.exception.GenericJDBCException: could not execute query
at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:126)
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:114)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
at org.hibernate.loader.Loader.doList(Loader.java:2235)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2129)
at org.hibernate.loader.Loader.list(Loader.java:2124)
at org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:118)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1597)
at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:306)
at org.hibernate.impl.CriteriaImpl.uniqueResult(CriteriaImpl.java:328)
at com.visionobjects.myscript.fpp.form.dao.impl.ModuleInfoDaoImpl.getModuleInfo(ModuleInfoDaoImpl.java:57)
at com.visionobjects.myscript.fpp.ModuleRegistration$1.doInTransactionWithoutResult(ModuleRegistration.java:73)
at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33)
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130)
at com.visionobjects.myscript.fpp.ModuleRegistration.init(ModuleRegistration.java:66)
at com.visionobjects.myscript.fpp.ModuleRegistration.start(ModuleRegistration.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1544)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1485)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)
... 33 more
Caused by: java.sql.SQLException: error enlisting a JdbcConnectionHandle of a JdbcPooledConnection from datasource fppDataSource in state ACCESSIBLE with usage count 1 wrapping SQLServerXAConnection:1 on ProxyConnectionID:1
at bitronix.tm.resource.jdbc.JdbcConnectionHandle.enlistResource(JdbcConnectionHandle.java:86)
at bitronix.tm.resource.jdbc.JdbcConnectionHandle.prepareStatement(JdbcConnectionHandle.java:243)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at bitronix.tm.resource.jdbc.BaseProxyHandlerClass.invoke(BaseProxyHandlerClass.java:63)
at $Proxy29.prepareStatement(Unknown Source)
at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:534)
at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:452)
at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:161)
at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1577)
at org.hibernate.loader.Loader.doQuery(Loader.java:696)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259)
at org.hibernate.loader.Loader.doList(Loader.java:2232)
... 52 more
Caused by: bitronix.tm.internal.BitronixSystemException: cannot enlist an XAResourceHolderState with uniqueName=fppDataSource XAResource= XAResourceID:1 with XID a Bitronix XID [6A657474792D6670702D73657276657200000145FFC68B9B00000000 : 6A657474792D6670702D73657276657200000145FFC68BCA00000002],
error=XAER_RMERR
at bitronix.tm.BitronixTransaction.enlistResource(BitronixTransaction.java:100)
at bitronix.tm.resource.common.TransactionContextHelper.enlistInCurrentTransaction(TransactionContextHelper.java:70)
at bitronix.tm.resource.jdbc.JdbcConnectionHandle.enlistResource(JdbcConnectionHandle.java:84)
... 66 more
<b>Caused by: javax.transaction.xa.XAException: com.microsoft.sqlserver.jdbc.SQLServerException: The function START: has failed. No transaction cookie was returned </b>
at com.microsoft.sqlserver.jdbc.SQLServerXAResource.DTC_XA_Interface(SQLServerXAResource.java:642)
at com.microsoft.sqlserver.jdbc.SQLServerXAResource.start(SQLServerXAResource.java:674)
at bitronix.tm.internal.XAResourceHolderState.start(XAResourceHolderState.java:211)
at bitronix.tm.internal.XAResourceManager.enlist(XAResourceManager.java:108)
at bitronix.tm.BitronixTransaction.enlistResource(BitronixTransaction.java:93)
... 68 more
I think the "bold" exception is the key.
Also the configuration file of my jetty server.
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd">
<!-- developpment jetty configuration -->
<!-- launch with main class : org.mortbay.start.Main app arguments:
deploy-conf/jetty-conf/mysql/jetty-dev.xml vm arguments : -Xmx1024M -DSTOP.KEY=stop
-DSTOP.PORT=6669 to stop : - - stop -Xmx1024M -DSTOP.KEY=stop -DSTOP.PORT=6669 -->
<Configure id="Server" class="org.mortbay.jetty.Server">
<Array id="plusConfig" type="java.lang.String">
<Item>org.mortbay.jetty.webapp.WebInfConfiguration</Item>
<Item>org.mortbay.jetty.plus.webapp.EnvConfiguration</Item>
<Item>org.mortbay.jetty.plus.webapp.Configuration</Item>
<Item>org.mortbay.jetty.webapp.JettyWebXmlConfiguration</Item>
<Item>org.mortbay.jetty.webapp.TagLibConfiguration</Item>
</Array>
<Array id="serverClasses" type="java.lang.String">
</Array>
<Array id="systemClasses" type="java.lang.String">
</Array>
<!-- web apps -->
<Set name="handler">
<New id="handlerContext" class="org.mortbay.jetty.handler.ContextHandlerCollection">
<Set name="handlers">
<Array id="handlerArray" type="org.mortbay.jetty.webapp.WebAppContext">
<!-- wrapper server -->
<Item>
<New class="org.mortbay.jetty.webapp.WebAppContext">
<Arg>./webapps/myscript-fpp-wrapper-server.war</Arg>
<Arg>/myscript-form-wrapper-server</Arg>
<Set name="serverClasses">
<Ref id="serverClasses" />
</Set>
<Set name="ConfigurationClasses">
<Ref id="plusConfig" />
</Set>
</New>
</Item>
<!-- form server -->
<Item>
<New class="org.mortbay.jetty.webapp.WebAppContext">
<Arg>./webapps/myscript-fpp-form-server.war
</Arg>
<Arg>/myscript-form-server</Arg>
<Set name="serverClasses">
<Ref id="serverClasses" />
</Set>
<Set name="ConfigurationClasses">
<Ref id="plusConfig" />
</Set>
</New>
</Item>
<!-- hwr server -->
<Item>
<New class="org.mortbay.jetty.webapp.WebAppContext">
<Arg>./webapps/myscript-fpp-hwr-server.war</Arg>
<Arg>/myscript-form-hwr-server</Arg>
<Set name="serverClasses">
<Ref id="serverClasses" />
</Set>
<Set name="ConfigurationClasses">
<Ref id="plusConfig" />
</Set>
</New>
</Item>
</Array>
</Set>
</New>
</Set>
<Call name="addConnector">
<Arg>
<New class="org.mortbay.jetty.nio.SelectChannelConnector">
<Set name="port">8080</Set>
</New>
</Arg>
</Call>
<!-- Use the jdk 1.5 platformMBeanServer -->
<Call id="MBeanServer" class="java.lang.management.ManagementFactory"
name="getPlatformMBeanServer" />
<Get id="Container" name="container">
<Call name="addEventListener">
<Arg>
<New class="org.mortbay.management.MBeanContainer">
<Arg>
<Ref id="MBeanServer" />
</Arg>
<Call name="start" />
</New>
</Arg>
</Call>
</Get>
<!-- Setup the RMIRegistry on a specific port -->
<Call id="rmiRegistry" class="java.rmi.registry.LocateRegistry"
name="createRegistry">
<Arg type="int">2099</Arg>
</Call>
<!-- Setup the JMXConnectorServer on a specific rmi server port -->
<Call id="jmxConnectorServer" class="javax.management.remote.JMXConnectorServerFactory"
name="newJMXConnectorServer">
<Arg>
<New class="javax.management.remote.JMXServiceURL">
<Arg>service:jmx:rmi://localhost:2100/jndi/rmi://localhost:2099/jmxrmi
</Arg>
</New>
</Arg>
<Arg />
<Arg>
<Ref id="MBeanServer" />
</Arg>
<Call name="start" />
</Call>
<!--************************* -->
<!-- embbeded ActiveMQ Broker -->
<!--************************* -->
<New id="brokerService" class="org.apache.activemq.broker.BrokerService">
<Set name="brokerName">fppBrokerActiveMQ</Set>
<Set name="dataDirectoryFile"></Set>
<Call name="getSystemUsage">
<Call name="getMemoryUsage">
<Set name="limit">26428800</Set>
</Call>
<Call name="getStoreUsage">
<Set name="limit">204857600</Set>
</Call>
</Call>
<Call name="addConnector">
<Arg>nio://localhost:61615</Arg>
</Call>
<Call name="start"></Call>
</New>
<!-- ************************** -->
<!-- common fpp jndi resources -->
<!-- ************************** -->
<!-- ui debug properties -->
<New id="fpp.common-ui.velocityProperties" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/fpp.common-ui.velocityProperties</Arg>
<Arg>
<New class="java.util.Properties">
<Put name="spring.resource.loader.class">org.springframework.ui.velocity.SpringResourceLoader
</Put>
<Put name="spring.resource.loader.cache">false</Put>
<Put name="velocimacro.library.autoreload">true</Put>
</New>
</Arg>
</New>
<New id="fpp.wrapper-server.properties" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/fpp.wrapper-server.properties</Arg>
<Arg>
<New class="java.util.Properties">
<Put name="fpp.wrapper-server.instanceServiceWsdlLocation">http://localhost:8080/myscript-form-server/cxf/instance?wsdl
</Put>
<Put name="fpp.wrapper-server.formServiceWsdlLocation">http://localhost:8080/myscript-form-server/cxf/form?wsdl
</Put>
<Put name="fpp.wrapper-server.formDeprecatedServiceWsdlLocation">http://localhost:8080/myscript-form-server/cxf/formDeprecated?wsdl
</Put>
<Put name="fpp.wrapper-server.hwrResourceServiceWsdlLocation">http://localhost:8080/myscript-form-server/cxf/hwrResource?wsdl
</Put>
<Put name="fpp.wrapper-server.defaultEnvironmentName">default</Put>
<Put name="fpp.wrapper-server.defaultEnvironmentType">STANDARD</Put>
<Put name="fpp.wrapper-server.formdb.dialect">org.hibernate.dialect.SQLServerDialect</Put>
<Put name="fpp.wrapper-server.formdb.hibernate.show_sql">true</Put>
<Put name="fpp.wrapper-server.formdb.hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</Put>
<Put name="fpp.wrapper-server.formdb.hibernate.transaction.manager_lookup_class">org.hibernate.transaction.BTMTransactionManagerLookup</Put>
<Put name="fpp.wrapper-server.formdb.hibernate.cache.use_query_cache">false</Put>
<Put name="fpp.wrapper-server.formdb.hibernate.cache.use_second_level_cache">false</Put>
<Put name="fpp.wrapper-server.formdb.hibernate.cache.use_structured_cache">false</Put>
<Put name="fpp.wrapper-server.formdb.hibernate.cache.provider_class">org.hibernate.cache.NoCacheProvider</Put>
</New>
</Arg>
</New>
<!-- transaction manager - bitronix -->
<Call name="getConfiguration" class="bitronix.tm.TransactionManagerServices">
<Set name="serverId">jetty-fpp-server</Set>
<Set name="gracefulShutdownInterval">45</Set>
<Set name="logPart1Filename">btm/btm1.tlog</Set>
<Set name="logPart2Filename">btm/btm2.tlog</Set>
</Call>
<Set name="gracefulShutdown">60000</Set>
<Call name="addLifeCycle">
<Arg>
<New class="bitronix.tm.integration.jetty6.BTMLifeCycle" />
</Arg>
</Call>
<New class="org.mortbay.jetty.plus.naming.Transaction">
<Arg>
<Call name="getTransactionManager" class="bitronix.tm.TransactionManagerServices" />
</Arg>
</New>
<New class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>java:/TransactionManager</Arg>
<Arg>
<Call name="getTransactionManager" class="bitronix.tm.TransactionManagerServices" />
</Arg>
</New>
<New id="userTransactionManager" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>java:comp/TransactionManager</Arg>
<Arg>
<Call name="getTransactionManager" class="bitronix.tm.TransactionManagerServices" />
</Arg>
</New>
<New id="userTransactionManager" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>java:comp/UserTransaction</Arg>
<Arg>
<Call name="getTransactionManager" class="bitronix.tm.TransactionManagerServices" />
</Arg>
</New>
<!-- database data source -->
<New id="fppDataSource" class="bitronix.tm.resource.jdbc.PoolingDataSource">
<Set name="uniqueName">fppDataSource</Set>
<Set name="className">com.microsoft.sqlserver.jdbc.SQLServerXADataSource</Set>
<Set name="minPoolSize">0</Set>
<Set name="maxPoolSize">50</Set>
<Get name="driverProperties">
<Put name="serverName">DYHVDB01</Put>
<Put name="instanceName">ALPHA</Put>
<Put name="integratedSecurity">false</Put>
<Put name="databaseName">tdb_digipen_fpp</Put>
<Put name="user">manage_digipen</Put>
<Put name="password">5T1fte?</Put>
<!--Needed to test??<Put name="pinGlobalTxToPhysicalConnection">true</Put>-->
</Get>
<Call name="init" />
</New>
<!-- Jms connection factories -->
<New id="fppServerConnectionFactory" class="bitronix.tm.resource.jms.PoolingConnectionFactory">
<Set name="className">org.apache.activemq.ActiveMQXAConnectionFactory</Set>
<Set name="uniqueName">fppServerConnectionFactory</Set>
<Set name="minPoolSize">4</Set>
<Set name="maxPoolSize">40</Set>
<Set name="allowLocalTransactions">true</Set>
<Get name="driverProperties">
<Put name="brokerURL">nio://localhost:61615?jms.prefetchPolicy.all=50</Put>
<New class="org.apache.activemq.RedeliveryPolicy">
<Set name="maximumRedeliveries">-1</Set>
<Set name="backOffMultiplier">2</Set>
</New>
</Get>
<Call name="init" />
</New>
<!-- JMS Queues & topics -->
<New id="formNotifiationTopic" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>fpp/formNotifiationTopic</Arg>
<Arg>
<New class="org.apache.activemq.command.ActiveMQTopic">
<Arg>formNotifiationTopic</Arg>
</New>
</Arg>
</New>
<New id="fieldJmsQueue" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>fpp/fieldJmsQueue</Arg>
<Arg>
<New class="org.apache.activemq.command.ActiveMQQueue">
<Arg>fieldJmsQueue</Arg>
</New>
</Arg>
</New>
<New id="fieldNotifJmsQueue" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>fpp/fieldNotifJmsQueue</Arg>
<Arg>
<New class="org.apache.activemq.command.ActiveMQQueue">
<Arg>fieldNotifJmsQueue</Arg>
</New>
</Arg>
</New>
<New id="inkJmsQueue" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>fpp/inkJmsQueue</Arg>
<Arg>
<New class="org.apache.activemq.command.ActiveMQQueue">
<Arg>inkJmsQueue</Arg>
</New>
</Arg>
</New>
<!-- native library services -->
<New id="myscriptLicenseService" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/myscriptLicenseService</Arg>
<Arg>
<New
class="com.visionobjects.licensemanager.impl.MyscriptLicenseServiceImpl">
<Arg>localhost</Arg>
</New>
</Arg>
</New>
<!-- *********************** -->
<!-- form server properties -->
<!-- *********************** -->
<New id="fpp.form.properties" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/fpp.form.properties</Arg>
<Arg>
<New class="java.util.Properties">
<Put name="fpp.form.defaultEnvironmentName">default</Put>
<Put name="fpp.form.defaultEnvironmentType">STANDARD</Put>
<Put name="fpp.form.jbpm.job.nbexecutor">4</Put>
<Put name="fpp.form.jbpm.job.idleinterval">1000</Put>
<Put name="fpp.form.field.notif.nbconsumers">2</Put>
<Put name="fpp.form.ink.nbconsumers">2</Put>
<Put name="fpp.form.instance.instanceValidationMode">STANDARD</Put>
<Put name="fpp.form.formdb.dialect">org.hibernate.dialect.SQLServerDialect</Put>
<!--<Put name="fpp.form.formdb.hibernate.show_sql">true</Put>-->
<Put name="fpp.form.formdb.hibernate.show_sql">true</Put>
<Put name="fpp.form.formdb.hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</Put>
<Put name="fpp.form.formdb.hibernate.transaction.manager_lookup_class">org.hibernate.transaction.BTMTransactionManagerLookup
</Put>
<Put name="fpp.form.formdb.hibernate.cache.use_query_cache">false</Put>
<Put name="fpp.form.formdb.hibernate.cache.use_second_level_cache">false</Put>
<Put name="fpp.form.formdb.hibernate.cache.use_structured_cache">false</Put>
<Put name="fpp.form.formdb.hibernate.cache.provider_class">org.hibernate.cache.NoCacheProvider</Put>
<Put name="fpp.form.jbpmdb.dialect">org.hibernate.dialect.SQLServerDialect</Put>
<Put name="fpp.form.jbpmdb.hibernate.show_sql">true</Put>
<Put name="fpp.form.jbpmdb.hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</Put>
<Put name="fpp.form.jbpmdb.hibernate.transaction.manager_lookup_class">org.hibernate.transaction.BTMTransactionManagerLookup
</Put>
<Put name="fpp.form.jbpmdb.hibernate.cache.use_query_cache">false</Put>
<Put name="fpp.form.jbpmdb.hibernate.cache.use_second_level_cache">false</Put>
<Put name="fpp.form.jbpmdb.hibernate.cache.use_structured_cache">false</Put>
<Put name="fpp.form.jbpmdb.hibernate.cache.provider_class">org.hibernate.cache.NoCacheProvider</Put>
<Put name="fpp.form.scheduler.jobStore.driverDelegateClass">org.quartz.impl.jdbcjobstore.MSSQLDelegate</Put>
<Put name="fpp.form.scheduler.dataSource.driver">com.microsoft.sqlserver.jdbc.SQLServerDriver</Put>
<Put name="fpp.form.scheduler.dataSource.URL">jdbc:sqlserver://DYHVDB01\ALPHA;DatabaseName=tdb_digipen_fpp;integratedSecurity=false
</Put>
<Put name="fpp.form.scheduler.dataSource.user">manage_digipen</Put>
<Put name="fpp.form.scheduler.dataSource.password">5T1fte?</Put>
<!-- Cron Format A cron expression is a string comprised of 6 or 7 fields
separated by white space. Fields can contain any of the allowed values, along
with various combinations of the allowed special characters for that field.
The fields are as follows: Field Name Mandatory Allowed Values Allowed Special
Characters Seconds YES 0-59 , - * / Minutes YES 0-59 , - * / Hours YES 0-23
, - * / Day of month YES 1-31 , - * ? / L W Month YES 1-12 or JAN-DEC , -
* / Day of week YES 1-7 or SUN-SAT , - * ? / L # Year NO empty, 1970-2099
, - * / -->
<Put name="fpp.form.purge.moduleinfo.cron">0 0/1 * * * ?</Put>
<Put name="fpp.form.purge.instances.cron">0 0 * * * ?</Put>
<Put name="fpp.form.purge.instances.defaultcase">365</Put>
<Put name="fpp.form.purge.instances.case1">10</Put>
<Put name="fpp.form.purge.instances.case2">60</Put>
<Put name="fpp.form.purge.instances.case3">100</Put>
<Put name="fpp.form.purge.instances.case4">30</Put>
<Put name="fpp.form.purge.instances.case5">60</Put>
<Put name="fpp.form.export.cron">0 0 * * * ?</Put>
<Put name="fpp.form.export.exportpath">C:\FPP</Put>
<Put name="fpp.form.export.exportMode">REGULAR</Put>
<Put name="fpp.form.export.buildingType">INCREMENTAL</Put>
<Put name="fpp.form.export.addInformations">true</Put>
</New>
</Arg>
</New>
<New id="fppFormDbDataSource" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>jdbc/fppFormDbDataSource</Arg>
<Arg>
<Ref id="fppDataSource"></Ref>
</Arg>
</New>
<New id="fppJbpmDbDataSource" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>jdbc/fppJbpmDbDataSource</Arg>
<Arg>
<Ref id="fppDataSource" />
</Arg>
</New>
<New id="formJmsTopicConnectionFactory" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/formJmsTopicConnectionFactory</Arg>
<Arg>
<Ref id="fppServerConnectionFactory" />
</Arg>
</New>
<New id="fieldProducerJmsConnectionFactory" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/fieldProducerJmsConnectionFactory</Arg>
<Arg>
<Ref id="fppServerConnectionFactory" />
</Arg>
</New>
<New id="fieldNotifConsumerJmsConnectionFactory" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/fieldNotifConsumerJmsConnectionFactory</Arg>
<Arg>
<Ref id="fppServerConnectionFactory" />
</Arg>
</New>
<New id="inkConsumerJmsConnectionFactory" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/inkConsumerJmsConnectionFactory</Arg>
<Arg>
<Ref id="fppServerConnectionFactory" />
</Arg>
</New>
<!-- HWR SERVER -->
<New id="fpp.hwr-server.properties" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/fpp.hwr-server.properties</Arg>
<Arg>
<New class="java.util.Properties">
<Put name="fpp.hwr-server.formbroker.uri">failover:nio://localhost:61615</Put>
<Put name="fpp.hwr-server.fieldConsumers">4</Put>
<Put name="fpp.hwr-server.resourceManager.memoryUsageThreshold">262144000</Put>
<Put name="fpp.hwr-server.resourceManager.resourceCountThreshold">150</Put>
<Put name="fpp.hwr-server.resourceManager.idleTimeLimit">1800000</Put>
<Put name="fpp.hwr-server.resourceManager.timeToLive">3600000</Put>
<Put name="fpp.hwr-server.resourceManager.wakeUpInterval">100000</Put>
<Put name="fpp.hwr-server.formdb.dialect">org.hibernate.dialect.SQLServerDialect</Put>
<Put name="fpp.hwr-server.formdb.hibernate.show_sql">true</Put>
<Put name="fpp.hwr-server.formdb.hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</Put>
<Put
name="fpp.hwr-server.formdb.hibernate.transaction.manager_lookup_class">org.hibernate.transaction.BTMTransactionManagerLookup</Put>
<Put name="fpp.hwr-server.internal.dumpRecognition">false</Put>
</New>
</Arg>
</New>
<New id="myscriptHwrService" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/myscriptHwrService</Arg>
<Arg>
<New class="com.visionobjects.myscript.commons.hwr.engine.HwrEngineService">
<Set name="handwritingContextUserLimit">50</Set>
<Set name="resourceUserLimit">0</Set>
<Set name="otherObjectUserLimit">500</Set>
<Call name="doStart" />
</New>
</Arg>
</New>
<New id="fieldNotificationProducerJmsConnectionFactory" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/fieldNotificationProducerJmsConnectionFactory</Arg>
<Arg>
<Ref id="fppServerConnectionFactory" />
</Arg>
</New>
<New id="fieldConsumerJmsConnectionFactory" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/fieldConsumerJmsConnectionFactory</Arg>
<Arg>
<Ref id="fppServerConnectionFactory" />
</Arg>
</New>
<!-- wrapper -->
<New id="fppWrapperServerConnectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory">
<Set name="brokerURL">nio://localhost:61615</Set>
<Set name="redeliveryPolicy">
<New class="org.apache.activemq.RedeliveryPolicy">
<Set name="maximumRedeliveries">-1</Set>
<Set name="backOffMultiplier">2</Set>
</New>
</Set>
</New>
<New id="formNotificationConsumerFactory" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/formNotificationConsumerFactory</Arg>
<Arg>
<Ref id="fppWrapperServerConnectionFactory" />
</Arg>
</New>
<New id="inkProducerJmsConnectionFactory" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/inkProducerJmsConnectionFactory</Arg>
<Arg>
<Ref id="fppWrapperServerConnectionFactory" />
</Arg>
</New>
<!-- JMX/SENSORS -->
<New id="inkJmsQueueUrl" class="java.lang.String">
<Arg>service:jmx:rmi://localhost:2100/jndi/rmi://localhost:2099/jmxrmi
</Arg>
</New>
<New id="inkJmsQueueObjectName" class="java.lang.String">
<Arg>org.apache.activemq:BrokerName=formserver.broker,Type=Queue,Destination=inkJmsQueue
</Arg>
</New>
<New id="fieldNotifJmsQueueUrl" class="java.lang.String">
<Arg>service:jmx:rmi://localhost:2100/jndi/rmi://localhost:2099/jmxrmi
</Arg>
</New>
<New id="fieldNotifJmsQueueObjectName" class="java.lang.String">
<Arg>org.apache.activemq:BrokerName=formserver.broker,Type=Queue,Destination=fieldNotifJmsQueue
</Arg>
</New>
<New id="fieldJmsQueueUrl" class="java.lang.String">
<Arg>service:jmx:rmi://localhost:2100/jndi/rmi://localhost:2099/jmxrmi
</Arg>
</New>
<New id="fieldJmsQueueObjectName" class="java.lang.String">
<Arg>org.apache.activemq:BrokerName=formserver.broker,Type=Queue,Destination=fieldJmsQueue
</Arg>
</New>
<New id="formNotifiationTopicUrl" class="java.lang.String">
<Arg>service:jmx:rmi://localhost:2100/jndi/rmi://localhost:2099/jmxrmi
</Arg>
</New>
<New id="formNotifiationTopicObjectName" class="java.lang.String">
<Arg>org.apache.activemq:BrokerName=formserver.broker,Type=Queue,Destination=formNotifiationTopic
</Arg>
</New>
<New id="server.list" class="java.util.HashMap">
<!-- InkJmsQueue -->
<Put name="WRP">
<New class="java.util.ArrayList">
<Call name="add">
<Arg>
<New class="java.lang.String">
<Arg>http://localhost:8081</Arg>
</New>
</Arg>
</Call>
<Call name="add">
<Arg>
<New class="java.lang.String">
<Arg>http://localhost:8084</Arg>
</New>
</Arg>
</Call>
</New>
</Put>
<Put name="FORM">
<New class="java.util.ArrayList">
<Call name="add">
<Arg>
<New class="java.lang.String">
<Arg>http://localhost:8080</Arg>
</New>
</Arg>
</Call>
<Call name="add">
<Arg>
<New class="java.lang.String">
<Arg>http://localhost:8084</Arg>
</New>
</Arg>
</Call>
</New>
</Put>
<Put name="HWR">
<New class="java.util.ArrayList">
<Call name="add">
<Arg>
<New class="java.lang.String">
<Arg>http://localhost:8083</Arg>
</New>
</Arg>
</Call>
<Call name="add">
<Arg>
<New class="java.lang.String">
<Arg>http://localhost:8084</Arg>
</New>
</Arg>
</Call>
</New>
</Put>
</New>
<New id="fpp.form.jmx.properties" class="java.util.HashMap">
<!-- InkJmsQueue -->
<Put name="inkJmsQueueSize">
<New class="java.util.HashMap">
<Put name="urlQueue">
<Ref id="inkJmsQueueUrl" />
</Put>
<Put name="objectName">
<Ref id="inkJmsQueueObjectName" />
</Put>
<Put name="attribute">QueueSize</Put>
</New>
</Put>
<Put name="inkJmsConsumerCount">
<New class="java.util.HashMap">
<Put name="urlQueue">
<Ref id="inkJmsQueueUrl" />
</Put>
<Put name="objectName">
<Ref id="inkJmsQueueObjectName" />
</Put>
<Put name="attribute">ConsumerCount</Put>
</New>
</Put>
<Put name="inkJmsDequeueCount">
<New class="java.util.HashMap">
<Put name="urlQueue">
<Ref id="inkJmsQueueUrl" />
</Put>
<Put name="objectName">
<Ref id="inkJmsQueueObjectName" />
</Put>
<Put name="attribute">DequeueCount</Put>
</New>
</Put>
<Put name="inkJmsAverageEnqueueTime">
<New class="java.util.HashMap">
<Put name="urlQueue">
<Ref id="inkJmsQueueUrl" />
</Put>
<Put name="objectName">
<Ref id="inkJmsQueueObjectName" />
</Put>
<Put name="attribute">AverageEnqueueTime</Put>
</New>
</Put>
<Put name="inkJmsMaxEnqueueTime">
<New class="java.util.HashMap">
<Put name="urlQueue">
<Ref id="inkJmsQueueUrl" />
</Put>
<Put name="objectName">
<Ref id="inkJmsQueueObjectName" />
</Put>
<Put name="attribute">MaxEnqueueTime</Put>
</New>
</Put>
<!--FieldNotifJmsQueue -->
<Put name="fieldNotifJmsQueueSize">
<New class="java.util.HashMap">
<Put name="urlQueue">
<Ref id="fieldNotifJmsQueueUrl" />
</Put>
<Put name="objectName">
<Ref id="fieldNotifJmsQueueObjectName" />
</Put>
<Put name="attribute">QueueSize</Put>
</New>
</Put>
<Put name="fieldNotifJmsConsumerCount">
<New class="java.util.HashMap">
<Put name="urlQueue">
<Ref id="fieldNotifJmsQueueUrl" />
</Put>
<Put name="objectName">
<Ref id="fieldNotifJmsQueueObjectName" />
</Put>
<Put name="attribute">ConsumerCount</Put>
</New>
</Put>
<Put name="fieldNotifJmsDequeueCount">
<New class="java.util.HashMap">
<Put name="urlQueue">
<Ref id="fieldNotifJmsQueueUrl" />
</Put>
<Put name="objectName">
<Ref id="fieldNotifJmsQueueObjectName" />
</Put>
<Put name="attribute">DequeueCount</Put>
</New>
</Put>
<Put name="fieldNotifJmsAverageEnqueueTime">
<New class="java.util.HashMap">
<Put name="urlQueue">
<Ref id="fieldNotifJmsQueueUrl" />
</Put>
<Put name="objectName">
<Ref id="fieldNotifJmsQueueObjectName" />
</Put>
<Put name="attribute">AverageEnqueueTime</Put>
</New>
</Put>
<Put name="fieldNotifJmsMaxEnqueueTime">
<New class="java.util.HashMap">
<Put name="urlQueue">
<Ref id="fieldNotifJmsQueueUrl" />
</Put>
<Put name="objectName">
<Ref id="fieldNotifJmsQueueObjectName" />
</Put>
<Put name="attribute">MaxEnqueueTime</Put>
</New>
</Put>
</New>
<New id="fpp.form.ui.parameters" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>
<Ref id="Server" />
</Arg>
<Arg>fpp/fpp.form.ui.parameters</Arg>
<Arg>
<New
class="com.visionobjects.myscript.fpp.ui.parameters.impl.UIParametersServiceImpl">
<Set name="jmxProperties">
<Ref id="fpp.form.jmx.properties"></Ref>
</Set>
<Set name="serverList">
<Ref id="server.list"></Ref>
</Set>
</New>
</Arg>
</New>
</Configure>
Thanks so much in advance.
-
OCIEnvNlsCreate() failed: OCI8+PHP+Linux+Oracle 11g
Hi All,
I've been struggling with this since 3 days. I'm getting the following error while using oci_connect:
Warning: oci_connect(): OCIEnvNlsCreate() failed. There is something wrong with your system - please check that LD_LIBRARY_PATH includes the directory with Oracle Instant Client libraries
My system configuration:
PHP : 5.3.3
OS: Red Hat Enterprise Linux Server release 6.1
Oracle: 11g
OCI8: 1.4.9
My phpInfo() shows that OCI8 is configured with PHP. I did set the LD_LIBRARY_PATH to Instantclient in httpd conf file itself and gave permission 777 just to make sure it's not permission issue. I did not set any ORACLE_HOME because my Oracle database is on a different server.
Please help!!Your post doesn't contain enough detail to identify a cause.
See Unable load library '/usr/lib64/php/modules/oci8.so' - libclntsh.so.11.1 It is an example of a post that has good detail. -
Oracle oci8 problem: OCIEnvNlsCreate() failed
Hi to all,
I have installed Apache 2.4.3, PHP 5.3.21 and Oracle Database 10gR2 on a Windows 2003 server. Please that is installed the complete Oracle DB* and not the only Oracle Client.
When I run phpinfo This is the result:
OCI8 Support enabled
Version 1.4.9
Revision $Id: 44bfa713983a99b3e59477f6532e5fb51b6dee94 $
Active Persistent Connections 0
Active Connections 0
Oracle Run-time Client Library Version 0.0.0.0.0
Oracle Instant Client Version 10.2
Temporary Lob support enabled
Collections support enabled
Directive Local Value Master Value
oci8.connection_class no value no value
oci8.default_prefetch 100 100
oci8.events Off Off
oci8.max_persistent -1 -1
oci8.old_oci_close_semantics Off Off
oci8.persistent_timeout -1 -1
oci8.ping_interval 60 60
oci8.privileged_connect Off Off
oci8.statement_cache_size 20 20I have create a file connect.php in order to test my connection:
<?php
$dbHost = "win2003vm";
$dbHostPort="1521";
$dbServiceName = "myservice";
$usr = "myuser";
$pswd = "mypwd";
$dbConnStr = "(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)
(HOST=".$dbHost.")(PORT=".$dbHostPort."))
(CONNECT_DATA=(SERVICE_NAME=".$dbServiceName.")))";
if(!$dbConn = oci_connect($usr,$pswd,$dbConnStr)){
$err = oci_error();
trigger_error('connection failed: ' . $err['message'], E_USER_ERROR);
$strSQL = "SELECT SYSDATE FROM DUAL";
$stmt = oci_parse($dbConn,$strSQL);
if ( ! oci_execute($stmt) ){
$err = oci_error($stmt);
trigger_error('Query failed: ' . $err['message'], E_USER_ERROR);
while(oci_fetch($stmt)){
$rslt = oci_result($stmt, 1); print "<h3>Query result: ".$rslt."</h3>";
?>But when I run the php file, this error is displayed:
Warning: oci_connect(): OCIEnvNlsCreate() failed. There is something wrong with your system - please check that PATH includes the directory with Oracle Instant Client libraries in C:\www\win2003vm\connect.php on line 13 Fatal errorCan someone help me ?
Thank You and best regards
GaetanoThe reason the error mentions Instant Client is because this text was
compiled into the DLL when it was built using Instant Client. You can
ignore this message phrasing quirk and focus on why OCIEnvNlsCreate()
failed. Seeing the C code might help explain why the 'wrong' text is
shown:
errstatus = OCIEnvNlsCreate(&OCI_G(env), PHP_OCI_INIT_MODE, 0, NULL, NULL, NULL, 0, NULL, 0, 0);
if (errstatus == OCI_ERROR) {
#ifdef HAVE_OCI_INSTANT_CLIENT
php_error_docref(NULL TSRMLS_CC, E_WARNING, "OCIEnvNlsCreate() failed. There is something wrong with your system - please check that " PHP_OCI8_LIB_PATH_MSG " includes the directory with Oracle Instant Client libraries");
#else
php_error_docref(NULL TSRMLS_CC, E_WARNING, "OCIEnvNlsCreate() failed. There is something wrong with your system - please check that ORACLE_HOME and " PHP_OCI8_LIB_PATH_MSG " are set and point to the right directories");
#endifDo you have other Oracle libraries that are causing a library clash?
Did you reboot after installing? Is there some permission issue with
the web server environment? Are you using Apache or ISS. Does this
help:
https://blogs.oracle.com/opal/entry/how_to_use_iis_php_and_oracle
Also see "Commonly Seen Connection and Environment Errors" on p 107 of
http://www.oracle.com/technetwork/topics/php/underground-php-oracle-manual-098250.html
You may be interested that your $dbConnStr can be simplified. See
"Easy Connect String" on p 104 of the above book. The variable can be:
$dbConnStr = "${dbHost}:${dbHostPort}/${dbServiceName}";In fact, since you are using the default port, it could even be just:
$dbConnStr = "${dbHost}/${dbServiceName}"; -
Oracle Environment Variable Problem - OCIEnvNlsCreate() failed
We are using PHP 5.2.3 with oci8 version 1.2.3 in CentOS 5.0.
We have installed Oracle 10g in the same machine where Apache (2.2.3) is running.
First we tried to set the Oracle environment variable in httpd.conf as
SetEnv ORACLE_HOME u01/app/..../db_1
SetEnv ORACLE_SID oratest.
But we were unable to connect and got the message 'OCIEnvNlsCreate() failed'.
Then we tried to set the environment variables in root's bash profile.
Then it did work in PHP command line interface. But it didn't work in browser. Interestingly, getenv function shows the environment variables correctly (even in the browser).
We also given the read and execute permissions for all users in all directories of oracle. But still it gives the same error.
Please help.While trying to get new oci8 php extension to work I remember trying to set parameters using SetEnv inside apache httpd.conf or inside .htaccess file. However this is not recommended and I remember seeing some suggestions as not to use SetEnv for Oracle environment variables. I also had issues with that before. I went and added bash
export ORACLE_HOME=... to the Apache startup script in /etc/init.d and this has resolved the problem for me.
I hope this helps.
Gena01 -
I am experiencing this error with one of our cluster environment. Can anyone help me in this issue.
The Cluster Service function call 'ClusterResourceControl' failed with error code '1008(An attempt was made to reference a token that does not exist.)' while verifying the file path. Verify that your failover cluster is configured properly.
Thanks,
Venu S.
Venugopal S ----------------------------------------------------------- Please click the Mark as Answer button if a post solves your problem!Hi Venu S,
Based on my research, you might encounter a known issue, please try the hotfix in this KB:
http://support.microsoft.com/kb/928385
Meanwhile since there is less information about this issue, before further investigation, please provide us the following information:
The version of Windows Server you are using
The result of SELECT @@VERSION
The scenario when you get this error
If anything is unclear, please let me know.
Regards,
Tom Li -
OCIEnvNlsCreate failed with return code -1
Hi, we're getting this error when running SQL Server 2005 Reporting Services to connect to an Oracle 9i database. The report works fine locally but breaks on the web. Another user has posted about this same exact issue to Microsoft's SSRS forum, but with no answer: http://tinyurl.com/ynqv7o
Your help is much appreciated. Thank you.Check Re: OCIEnvNlsCreate failed with return code -1
-
Function call SALI_MT_GET_TID_BY_NAME failed
All,
We have the Central System Monitoring set up on the SOM to monitor Red Alerts. There is a current Red Alert associated with Log Attributes under the following path:
SOM\CCMS database self-monitoring\...
Database self-monitoring
SQL Server
Red Alert:
create_mss_space_mgmt: function call SALI_MT_GET_TID_BY_NAME failed with exception NAME_NOT_FOUND. Affected MTE: ., Red 28.04.2007 , 10:02:18 ( No value has yet been reported )
I would greatly appreciate if you can provide me a solution to correct this Red Alert.
Thank you very much in advance.Dear Dilanka,
Kindly reset the node using RZ20 :
Transaction code RZ20
====> SAP CCMS Technical Expert Monitors
====>System / All Monitoring Segments / All Monitoring Contexts
====>CCMS database self-monitoring
====>Database self-monitoring
********check the box for Oracle with a tick*********
**********Go to Extras on the Menu bar *******
====>Activate maintenance function
====>Edit ====> Nodes Reset <===
This should normally resolve the issue.
Regards
Amit Devale -
have tried to copy ratings over to a new computer using the export playlist function and this fails... can anyone suggest why?
Because ratings don't travel with the files or the playlist.
These are two possible approaches that will normally work to move an existing library to a new computer.
Method 1
Backup the library with this User Tip.
Deauthorize the old computer if you no longer want to access protected content on it.
Restore the backup to your new computer using the same tool used to back it up.
Keep your backup up-to-date in future.
Method 2
Connect the two computers to the same network. Share your <User's Music> folder from the old computer and copy the entire iTunes library folder into the <User's Music> folder on the new one. Again, deauthorize the old computer if no longer required.
Both methods should give the new computer a working clone of the library that was on the old one. As far as iTunes is concerned this is still the "home" library for your devices so you shouldn't have any issues with iTunes wanting to erase and reload.
I'd recommend method 1 since it establishes an ongoing backup for your library.
If you have an iOS device that syncs with contact & calendar data on your computer you should migrate this information too. If that isn't possible create a dummy entry of each type in your new profile and iTunes should offer to merge the existing data from the device into the computer, otherwise the danger is that it will wipe the information from the device.
If your media folder has been split out from the main iTunes folder you may need to do some preparatory work to make it easier to move. See make a split library portable.
Should you be in the unfortunate position where you are no longer able to access your original library, or a backup of it, then see Recover your iTunes library from your iPod or iOS device for advice on how to set up your devices with a new library with the maximum preservation of data. If you don't have any Apple devices then see HT2519 - Downloading past purchases from the App Store, iBookstore, and iTunes Store.
tt2
Maybe you are looking for
-
I Got my iphone 5 last christmas, and then a couple of months after the charger started to conect and disconect, i thought at first it was just the cord so i bought a new one but then it happened again, from this day i have bought 6 iphone 5 chargers
-
Down payment to vendors an open item?
DDown payments to vendors: Is it considered as an open item during payment running?? Example: 1:Down payment $50 2 Goods receipt/invoice $80 3 Now when running the payment the open item to be paid should be $30, thats the net of the two open ite
-
Word won't open attachments in Mail
Hi, I'm using Mail to get my email via POP. When attachments come with a message, I have problem opening them when they're Word documents. I get the error "The application "Microsoft Word" failed to open the attachment "Chasteen Resume SEPT 2007.doc"
-
Is there a way to use a mini CD in the iMac?
-
Sent Items Folder Showing Blank Messages After Installing Exchange Update Rollup
Hi all, Over the weekend I installed Update Rollup 8 on my Exchange 2010 SP2 servers. Some users today have reported that their "Sent Items" folders in Outlook 2007 are either showing up as empty or populated with "Blank" items (depending on how the