Error in configuring OC4J as a Windows Service
I created a batch file and placed it in my drive C. It has the following code:
SET PATH=C:\Program Files\Java\jdk1.6.0_01\bin
cd C:\OracleBI\oc4j_bi\j2ee\home
java -jar oc4j.jarWhen i double click on the batch file OC4J starts correctly. However, when i configure it as a windows service using the same batch file i get the error:
Error 1053: The service did not respond to start or control request in a timely fashion
I created a windows service are as follows:
sc.exe create "Oracle BI OC4J" binPath= "c:\Start_OC4J.bat"
Thats it. I did only this much. I feel i am missing out on some steps. I can see the service but not able to start it. The error is:
Error 1053: The service did not respond to start or control request in a timely fashion
Windows bit also matters and you need to use specific javaservice
Try something like below
Windows 64 BIT
Download "JavaService-2.0.7.64" from http://forge.ow2.org/project/download.php
javaservice -install "Oracle BI OC4J Service" "C:\Program Files\Java\jre6\bin\server\jvm.dll" -XX:MaxPermSize=128m -Xmx512m "-Djava.class.path=D:\OracleBI\oc4j_bi\j2ee\home\oc4j.jar" -start oracle.oc4j.loader.boot.BootStrap
Windows 32 BIT
Download "JavaService-2.0.10" from http://forge.ow2.org/project/download.php
javaservice -install "Oracle BI OC4J" "D:\Java\jre7\bin\client\jvm.dll" -XX:MaxPermSize=128m -Xmx512m "-Djava.class.path=D:\OracleBI\oc4j_bi\j2ee\home\oc4j.jar" -start oracle.oc4j.loader.boot.BootStrap -out "D:\OracleBI\oc4j_bi\j2ee\home\log\oc4j.log.txt" -err "D:\OracleBI\oc4j_bi\j2ee\home\log\oc4j.err.txt" -description "Oracle BI OC4J"
Edited by: Srini VEERAVALLI on May 20, 2013 9:13 AM
Similar Messages
-
How i can Start OC4J Instance as window service
hi ,
How i can Start OC4J Instance as window service ?
Regards
OmarOmar,
check
http://www.taltech.com/TALtech_web/support/sw_tricks/NTService.htm
Frank -
Running OC4J as a Windows service
Hi
Does anyone know if it is possible to run OC4J as a Windows service?
Are there any tools I could use besides Microsofts SVRANY?
Best regards
Ole> Hi
>
> Does anyone know if it is possible to run OC4J as a
> Windows service?
>
> Are there any tools I could use besides Microsofts
> SVRANY?
>
> Best regards
> Ole
Hi
We have found the product for the job. If anyone have the same problem, you can find the program Service+ at nicoware.net
It is running OC4J as a service very well. It even logs console output to a text file. We are now using it in our production system.
Ole -
Error when configuring Siebel Server in Windows server 2003
Hi
I am getting below error when configuring Siebel server in Windows server 2003 VM. All the ODBC connections and SADMIN user id & password and gateway host name and port everything correct. Able to ping and telnet to gateway port 2320. Please help on how to overcome this situation....
2021 2012-03-08 01:13:22 0000-00-00 00:00:00 -0500 00000000 001 003f 0001 09 sw_cfg_util 3940 3332 C:\sba81\siebsrvr\log\sw_cfg_util.log 8.1.1 SIA [21111] ENU
GenericLog GenericError 1 000000024f580f64:0 2012-03-08 01:13:22 Error in transferring input values ,num of arrays incorrect 0, expected : 1
GenericLog GenericError 1 000000024f580f64:0 2012-03-08 01:13:22 TransferInputsToValues returned error:3611539 to SetControlValues
GenericLog GenericError 1 000000024f58096c:0 2012-03-08 01:13:33 NSS - ErrCode 4597527 SysErr 0
GenericLog GenericError 1 000000034f58096c:0 2012-03-08 01:13:35 NSS - ErrCode 4597527 SysErr 0
GenericLog GenericError 1 000000034f58096c:0 2012-03-08 01:13:35 Validation failed : C028: Unable to connect to the Siebel Gateway Name Server ῤ粃䂬粃呸 ֓呸 ֓㷕粃Ꞡ粈㶻粃
GenericLog GenericError 1 000000034f58096c:0 2012-03-08 01:13:35 ValidateFailed for Gateway Name Server TCP/IP Port, error : C028: Unable to connect to the Siebel Gateway Name Server ῤ粃䂬粃呸 ֓呸 ֓㷕粃Ꞡ粈㶻粃Please check Doc ID 1391312.1 on support.oracle.com, this article has a list of possible causes and resolutions for the error messages you are receiving.
Hope it helps,
Wilson -
How to start OC4J as a Windows service?
I installed OC4J standalone version 10.1.3.4.0 so I can configure Apache FOP. The startup/shutdown process is manual and my Windows customers are not liking it at all. Is there a way to make it a Windows service so it starts automatically when the system boots? Otherwise, the system has to stay logged in and the command window that started the process needs to remain open. Windows folks don't like this.
Thanks,
DeniseI had an example here of doing this, way back when I was a young lad:
[http://radio.weblogs.com/0132383/stories/2004/04/28/oc4jAsAWindowsService.html|http://radio.weblogs.com/0132383/stories/2004/04/28/oc4jAsAWindowsService.html]
Don't know if the utility even exists any more but there's likely to be something else that has taken its place if not.
-steve- -
LDAP Error 50 configuring OC4J in 9ias Rel 2
Hello everybody,
I'm trying to install 9ias Rel 2 on a Windows 200 Server machine.
Unfortunatly after 3 tries i'm continuing receiving the following error during the OC4J configuration step in a Business Intelligence Installation type ( i want to say first that all the Infrastructure installation and configuration was successfully executed and that i stopped the EM before starting the OAS installation to avoid to have conflict with the dcmctl tool):
The configuration files for this Oracle9iAS instance are inconsistent with the
configuration stored in the repository. In order to protect the repository,
no further configuration or deployment operations are allowed until the problem with the configuration on the filesystem is resolved. This condition arises when a prior operation was unsuccessful. Please check the logs located at
ORACLE_HOME/dcm/logs to determine why DCM was unsuccessful in updating
the configuration files on disk. Some possible causes are:
- permissions on files
- file contention issues on Windows NT
- EMD and dcmctl running concurrently
- internal Oracle error
After resolving the problem that prevented DCM from updating the configuration
files, you may use the dcmctl resyncInstance command to resolve the problem.
Alternatively, you can stop and then restart the active dcmctl or EMD
process and resyncInstance will automatically be performed.
The dcm.log says:
[ RM ] Exception in repository API getDBConnect()
CDATA[oracle.ias.repository.schema.SchemaException: Unable to retrieve the requested attributes:javax.naming.NoPermissionException: [LDAP: error code 50 - Insufficient Access Rights]; remaining name 'orclReferenceName=iasdb.db1.acclaris.biz,cn=IAS Infrastructure Databases, cn=IAS, cn=Products, cn=OracleContext'
at oracle.ias.repository.directory.DirectoryReader.getAttributes(DirectoryReader.java:171)
at oracle.ias.repository.directory.DirectoryReader.getAttribute(DirectoryReader.java:126)
at oracle.ias.repository.IASSchema.getDBConnect(IASSchema.java:333)
at oracle.ias.repository.IASSchema.getDBConnect(IASSchema.java:415)
at oracle.ias.repository.SchemaManager.getDBConnect(SchemaManager.java:197)
at oracle.ias.sysmgmt.persistence.SeedDbAccess.getDBConnect(Unknown Source)
at oracle.ias.sysmgmt.persistence.PersistenceManager.getSeedInfo(Unknown Source)
at oracle.ias.sysmgmt.persistence.PersistenceManager.isDBConfigured(Unknown Source)
at oracle.ias.sysmgmt.task.InstanceManager.sysInit(Unknown Source)
at oracle.ias.sysmgmt.task.InstanceManager.init(Unknown Source)
at oracle.ias.sysmgmt.cmdline.DcmCmdLine.initRepository(Unknown Source)
at oracle.ias.sysmgmt.cmdline.DcmCmdLine.execute(Unknown Source)
at oracle.ias.sysmgmt.cmdline.DcmCmdLine.main(Unknown Source)
I have tried 3 times (everytime after deinstalling and cleaning the machine), and got the same error.
Can anyone help me? It's really urgent and i spent a lot of time without solving it yet.
Thanx in advanceI have had the same problem getting any dates from Oracle as well but after talking to Oracle and bugging them about it here is the response I received:
Sun Solaris before May 31
MS Windows - Solaris date + 8 weeks
Red Hat 7.1 - Solaris date + 1 week
SuSe SLES7 - Solaris date + 1 day
True64 - Solaris date + 4 weeks
I don't know how reliable these dates are but I thought I would pass on what I have been told, since some information is better than none. -
Recommendations for configuring DSEE 6.3.1 to run as a Windows service?
Hi All, I need some recommendations for configuring DSEE to run as a Windows service. Currently I have CACAO, DSCC, and the Web Console configured and running as Windows services and this works fine. I would like to configure the directory itself to run as a Windows service so that it will restart automatically if the server reboots for any reason. Using dsadm enable-service --type WIN_SERVICE I configured this but initial testing indicated that the service will fail to start automatically on reboot. I can start it manually once the server is rebooted. This appears to indicate a dependancy of some sort with one of the other services like CACAO or DSCC but I did not see any documentation on this. Does anyone know the appropriate way to configure the directory to run as a Windows service? Thanks.
There is an entry in the application-management-common-agent-container log
[ Apr 22 09:17:52 Executing start method ("/opt/test/dsee6/cacao_2/usr/lib/cacao/lib/tools/scripts/cacao_smf start default") ]
Error: Exception thrown by the agent : java.net.MalformedURLException: Local host name unknown: java.net.UnknownHostException:
zone1: zone1
Which was the problem. The zone was picking up a stale NIS map with the wrong hosname for its IP address. -
BPEL server as Windows Service
Hi there,
Can you tell me how to install the BPEL server (OC4J) as a Windows Service so that it can be started and stopped through the Windows ServiceManager.
I cant find any documentation about this.....
thx
MarkHallo Edwin,
I´m also trying to install the BPEL Server as a Windows Serivce with Windows XP. Are there any samples, that show how to do that? The solution that is provided here is quite uncomfortable.
Thanks for any help.
Kay -
Windows Service Manager 32-Bit Has Stopped Responding/iPod not showing up in iTunes
Hello,
I've scoured this forum for answers but I cannot find any result that works. I have an iPod classic that I've connected to my Gateway running Windows Vista for over four years without issue. When I was using iTunes 9 the other day, I plugged my iPod into my computer, but it only connected to My Computer and didn't connect to iTunes and update my iPod accordingly. So, the iPod is charging and the iPod is showing the "Connected, Eject before disconnecting" screen, but it isn't adding new music (which kind of defeats the purpose of buying new music). I thought it was because I was using 9, so I downloaded iTunes 10, but the issue still popped up.
This hasn't pop up today after I installed 10, but back when I was using iTunes 9 the following error came up on my computer: "Windows Service Manager 32-bit Has Stopped Working." Now, no error messages pop up, even though the problem persists.
I've tried suggestions in this post as well as in this post. Also, with the fix being recommended in those threads to change the code in Notepad by clicking "edit" under the System tab under My Computer? There's one problem - there is no edit button on my options. I've included a screen grab to prove this.
I don't know if the relative age of the discussions makes any difference - maybe a new fix has com up and i'm just not finding it? Plus, since this issue began with iTunes 9, I can't help but feel like getting rid of iTunes 10 is going to help the issue, either.
This is incredibly frustrating, not being able to add new music to my iPod, so if anyone can help me out, I would greatly appreciate it, as previously recommended ones aren't useful.
Screen grab of iPod connecting to My Computer, but not iTunes:
Screen grab of the lack of an "Edit" button in the place to edit codes as recommended in previous topics:One again shamelessly asking for help
-
Calling SSIS package from C# Windows Service Fails
Hi All.
I've got an SSIS package that reads from an Excel file and populates a database. The Excel file location gets passed in to the package as a variable. Also the Protection Level of the package is set to EncryptSensitiveWithPassword.
This all works fine when I run the package from Visual Studio or using DTEXEC. When I try to run it from a C# Windows Service though I get the following exception:
SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available. Source: "Microsoft Office Access Database Engine" Hresult: 0x80004005 Description: "The Microsoft Office Access database engine cannot open or write to the file ''. It is already opened exclusively
by another user, or you need permission to view and write its data.".
SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "Input Excel Connection" failed with error code 0xC0202009. There may be error messages posted before this
with more information on why the AcquireConnection method call failed.
Dedupe Worksheet failed validation and returned error code 0xC020801C.
One or more component failed validation.
There were errors during task validation.
The windows service runs with LocalSystem account and the following code is used to call the SSIS Package:
Application app = new Application();
Package package = null;
app.PackagePassword = "*******";
//Load the SSIS Package which will be executed
package = app.LoadPackage(@"C:\Projects\DataDedupeMatch\DataDedupeMatch\DataDedupe.dtsx", null);
//Pass the varibles into SSIS Package
package.Variables["User::FilePath"].Value = e.FullPath.Replace(@"\\", @"\");
Microsoft.SqlServer.Dts.Runtime.DTSExecResult results = package.Execute();
I would really appreciate if someone could help me out with this.
Thanks in advance,
DeonInstead of hosting the SSIS runtime in your service, you should use a separate host process for your SSIS package. You're using the Office drivers, which aren't designed or supported for running in long-lived unattended processes like a Windows Service.
You can use your own SSIS hosting code, or just use dtexec.exe to host your package. In either case you would start the child process with
Process.Start.
David
David http://blogs.msdn.com/b/dbrowne/ -
Auto start weblogic 11gR1 as windows service?
I have installed Weblogic Server 11gR1 and created a domain with only one server (Administration Server).
I wonder if I can configure to run as windows service, in case of windows update and auto restartCopy this to a new file called createSvc.cmd and put it in the \wlserver_10.3\server\bin
echo off
SETLOCAL
set DOMAIN_NAME=ADFDomain
set USERDOMAIN_HOME=C:\Oracle\Middleware\user_projects\domains\ADFDomain
set SERVER_NAME=AdminServer
set PRODUCTION_MODE=false
set JAVA_VENDOR=Sun
set JAVA_HOME=C:\Oracle\Middleware\jdk160_18
set MEM_ARGS=-Xms256m -Xmx512m
call "C:\Oracle\Middleware\wlserver_10.3\server\bin\installSvc.cmd"
ENDLOCAL
you will have to edit the DOMAIN_NAME to match yours
and the USERDOMAIN_HOME as well. This is pretty much a default install of the WLS 10.3 - though I changed the domain name.
I assume you used the default admin server name.
Go to the command prompt and set the current directory to the \wlserver_10.3\server\bin directory.
execute the createsvc.cmd and it should be done. -
Host process for windows services has stopped working in windows server 2008
hi ..
i can access to server from any where by remote desktop
the problem is if you want access the error in client is can not connect to user profile and in server the error is (failed to connect to windows service
windows could not connect to user profile service service .. )This one may help.
You receive a "The User Profile Service failed the logon” error message
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows]
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights. -
Error 1053 comes out while starting oc4j service through windows services
HI EVERYBODY
I face some problem and I'll be very happy if i recieved any reply from u.
here is my problem :
I used the code which starts/stops OC4J-standalone as a Windows service using
java service for install and uninstall the service(the code is shown down),however the code works well
and the service install and uninstall successfully.
but when I start the service throught the windows servecis manager this error comes out:
* Error 1053: The service did not respond to the start or control request in a timely fashion"
and the status of the service stay "starting"*
I found solution by adding "DWORD Value" in the registry and modify it to 60000
but it didn't work and still this error come out.
Any help will be appreciated.
the code is :
install_OC4J_Service :
Setlocal
@rem Note that if JVM not found, service 'does not report an error' when startup fails, although event is logged
if "%JAVA_HOME%" == "" set "JAVA_HOME"=C:\Program Files\Java
REM set the display name of the service
set JSNAME=OC4J_Service
REM Set the Java server directory
set JVMDIR=%JAVA_HOME%\jre1.6.0_01\bin\client
REM Setting a bind directory for the software
set JSBINDIR=%CD%
REM Setting path and filename of the (renamed) javaservice executable
set JSEXE=%JSBINDIR%\OC4J_Service.exe
REM Stating the directory of the OC4J-home
set OC4J_HOME=E:\DevSuiteHome_1\j2ee\home
REM just to check the used version @echo . To install the service "%JSNAME%" the following version of JavaService executable is used: @ echo . %JSEXE% -version @echo .
@echo Installing service OC4J_Service ... Press Enter to continu or press Control-C to abort installation
@pause
@echo
%JSEXE% -install %JSNAME% %JVMDIR%\jvm.dll -Djdbc.debug=true java.class.path=%OC4J_HOME%\oc4j.jar –Xmx256M -start com.evermind.server.OC4JServer -params -config %OC4J_HOME%\config\server.xml -out %OC4J_HOME%\log\OC4J_service_stdout.log -err %OC4J_HOME%\log\OC4J_service_stderr.log -current %JSBINDIR% -manual -description "OC4JService"
@echo
@echo End of Installation
@pause
uninstall_OC4J_Service:
@echo off
@echo . Uninstall_OC4JService.cmd - de-install of JavaService executable using OC4J.jar
@echo .
setlocal
@rem Note that if JVM not found, service 'does not report an error' when startup fails, although event logged
if "%JAVA_HOME%" == "" set JAVA_HOME=c:\java\j2sdk142
set JVMDIR=%JAVA_HOME%\jre1.6.0_01\bin\client
set JSBINDIR=%CD%
set JSEXE=%JSBINDIR%\OC4J_Service.exe
@echo . Using following version of JavaService executable:
@echo .
%JSEXE% -version
@echo .
@echo Un-installing service OC4J_Service ... Press Control-C to abort
@pause
@echo .
%JSEXE% -uninstall OC4J_Service
@echo .
@echo End of script
@pause
-------------------------------------------------------------------------Any recent change? Use below command to validate the opmn.xml file.
opmnctl validate
Replace the opmn.xml backup file in $ORACLE_HOME/opmn/conf and try starting opmn.
Also ipm.log file in $ORACLE_HOME/opmn/log folder -
Windows 8.1 Hyper-V - Error while configuring the hard disk 0xC03A0014
Hello. I have just enabled Hyper-V on my Windows 8.1 laptop.
Dell Latitude E7440 i7-4600U @ 2.10GHz
I can create a Virtual-Switch but I am unable to create a new Hard Disk or Virtual Machine within Hyper-V. I get the same error for both processes.
Error: The Virtual Machine Management Service encountered an error while configuring the hard disk on virtual machine New Virtual Machine.
Failed to create the virtual hard disk.
The system failed to create C:\Users\user\Documents\Test\New.vhdx .
Failed to create the virtual hard disk
The system failed to create C:\Users\user\Documents\Test\New.vhdx . A Virtual disk support provider for the specified file was not found. (0xC03A0014).
I have ran all Dell Client System updates and all of windows updates.
I have attempted to create a virtual machine on the current SSD and also an external drive. The same error appears.
I have also attempted to create a virtual hard disk via Hyper-v with a Base vhdx, still the same error occurs. I've tested the base image on other laptops of the same model and windows 8.1 without issue.
Any thoughts on how I can fix this?
Thank you,
-JakeHi Jake,
"Enable Data Execution Protection (DEP) in the BIOS and make sure the Format of drive file system is not fat32.
1. Uninstall Intel Active System Monitor 3.0, if installed.
2. Disable "Intel IPMI Service" and "Intel Monitoring Agent" Service.
3. Open regedit and locate: HKLM\System\CurrentControlSet\Services\imbdrv.
4. Change the Start Key to 4 (Disabled).
5. Locate HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E97D-E325-11CE-BFC1-0 8002BE10318}.
6. Take ownership of the ‘Properties’ key.
7. Give yourself full permission for this key.
8. Now locate the properties key; if you see a ‘Security’ entry there, that is your problem. Delete this key.
9. Try attaching or adding the VHD again after rebooting.
If above steps did not help, add the Network Service account to Local Administrator group."
It is quoted from the similar thread below :
http://social.technet.microsoft.com/Forums/windows/en-US/55085ff3-0f26-41bd-b590-bb3490e2d6f5/win-7-professional-a-virtual-disk-support-provider-for-the-specified-file-was-not-found?forum=w7itprovirt
Hope it helps
Best Regards
Elton Ji
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
Revision: 3519
Author: [email protected]
Date: 2008-10-08 04:17:40 -0700 (Wed, 08 Oct 2008)
Log Message:
Fix typo in error string for situations where there are advanced messaging configuration settings from LCDS used in the configuration files but no AdvancedMessagingSupport service. The error string said that there was no flex.messaging.services.AdvancedMessagingService registered but it is the flex.messaging.services.AdvancedMessagingSupport service that needs to be registered.
Add configuration test that starts the server with a destination that has the reliable property set which is an advanced messaging feature but there is no AdvancedMessagingSupport service registered.
Modified Paths:
blazeds/trunk/modules/common/src/flex/messaging/errors.properties
Added Paths:
blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/messagingService/ReliableDestina tionWithNoAdvancedMessagingSupport/
blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/messagingService/ReliableDestina tionWithNoAdvancedMessagingSupport/error.txt
blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/messagingService/ReliableDestina tionWithNoAdvancedMessagingSupport/services-config.xmlHi,
Unfortunately I already tried all kinds of re-installs (the full list is in my original message). The only one remaining is the reinstall of Windows 8 itself, which I would really like to avoid.
What I find really strange is the time it takes for the above error message to appear. It's like one hour or even more (never measured exactly, I left the computer running).
What kind of a timeout is that? I would expect that, if ports are really used by some other application, I get the message in less than a minute (seconds, actually). To me this looks like the emulator itself for some reason believes there's a problem with
some port while in reality there isn't.
I'll eventually contact Microsoft Support, thanks for the suggestion.
▼
▲
Maybe you are looking for
-
Hi guys, I need to know is it possible that employee master data is entered by one person and confirmation by another person. In FI one person changes vendor master data and anonther person confirm it. Thanks in advance Anand
-
HT5824 can i erase data from icloud to make space?
My iphone keeps telling me it can't back up because I need more space on Icloud. Can I earse existing data to make more room? Is that posible? Or do I have to buy more space... Any other options? (apart from saving to my computer..) Thanks
-
Integration with other Oracle CRM apps.
My customer currently uses Oracle CRM On Demand and is looking into the following additional apps from oracle... 1. Sales Prospector 2. Deal Management 3. Sales library 4. Sales Campaigns If purchased, will these applications require any integration
-
Hi Guys, In our SQL Database we have one record as 12345(ID) ABC(Desc) Now ETL people updated above record as 12345 ABCD But in database both records are there. In Essbase we need only updated record as 12345 ABCD, But it is showing the old one. The
-
Home sharing icon not showing up.
I enabled home sharing on my Dell desktop, HP laptop, and my MacBook. The home shring icon isn't showing up on the sidebar on both my Dell and HP. It is showing up on my MacBook, but that doesn't really help because I want to transfer the music from