Unable to start Oracle WebLogic Server - java

I am trying to start oracle WebLogic Server 10.3.6 using startWebLogic.cmd located in domain but I get the error below;
\Java\jdk1.7.0_60 was unexpected at this time.
What am I doing wrong and how can I fix it?

I am assuming you have java installed in either C:\Program Files (x86)\Java\jdk1.6.0_23 or C:\Program Files\Java\jdk1.6.0_23 folder.
Path can't take a space in it, so you need to replace this PROGRA~2 instead of Program Files(86); it's the Windows short name for the same folder.
Similarly, use PROGRA~1 for the Program Files folder.

Related

Error while configuring apache tomcat 8.0.44 on Windows 10

I've successfully installed java 1.8.0 and the runtime environment. After configuring some global variables in the setting (such as setting CATALINA_HOME, CLASSPATH and Path) and running tomcat/bin/startup, I received many error messages in the console starting as:
java.util.logging.ErrorManager: 4
java.io.FileNotFoundExceptiong: C:\Program Files\apache-tomcat\logs\catalina.2018-03-27.log (access denied)
at java.io.FileOutputStream.open0(Native Method)
....
etc etc
Where should I start fixing this? Is it a problem with my java runtime? Both JRE and Tomcat I have are 64 bits
The issue is most likely resulting from your file location. Try the following steps:
Confirm that your Tomcat folder is written down accurately.
If it is correctly located in the folder you have mentioned, try moving your Tomcat folder to another location outside of your Program Files. The issue is most likely caused by lack of administrator access while trying to work with your program in a locked location (Program Files).
If you absolutely need to have your Tomcat in your Program Files directory, run your IDE/Terminal in Administrator mode to override access privileges for the Program Files directory.

jdeveloper error

Please I want help, I have installed JDeveloper Studio Edition Version 11.1.1.2.0.
I get an error trying to run the Debugger on the application. The server appears to be the only area of JDeveloper that has issues under this account, and below is the Log:
[Waiting for the domain to finish building...] [12:51:06 PM] Creating
Integrated Weblogic domain... The Server Instance cannot be started
because the Integrated Weblogic domain was not built successfully.
[12:51:20 PM] ERROR: An error occurred while building the default
domain. Please see this log file for more details:
C:\Users\Brian.Hess2\AppData\Roaming\JDeveloper\system11.1.1.2.36.55.36\o.j2ee.adrs\CreateDefaultDomain.log
Is you JDK or JDeveloper installed in a path that has a space in it ("Program files") if so you would want to move it to a directory with no spaces.
Try removing the C:\Users\Brian.Hess2\AppData\Roaming\JDeveloper\system11.1.1.2.36.55.36 directory and restarting JDeveloper.
Make sure the environment variables are set properly. For eg)
setenv JAVA_HOME /ade_autofs/gd29_3rdparty/JDK6_MAIN_LINUX.X64.rdd/121114.1.6.0.38.0B05/jdk6
If it doesn't work, try removing the default domain directory. It is generally located inside the view, in .jdev_user_home with name as systemxx.x.
Try restarting after this if it doesn't work.
Make sure your JAVA_HOME is set up properly to show to your JDK folder and also that the PATH variable includes the JAVA_HOME variable. :D

cqjni.jar was unexpected at this time- Weblogic server 10.3.3

I am trying to start weblogic server in eclipse but I get error like \IBM\RationalSDLC\ClearQuest\cqjni.jar was unexpected at this time.I found out that this is causing because of System PATH environment variable contains entry of it.I don't have administrative rights (Windows 7) so i can't modify system PATH variable.I have defined user defined PATH varible but it is getting appended to system PATH variable.
So how can I use only user defined PATH variable or modify weblogic script to use user defined PATH variable?or any other solution?
Any help would be appreciated.
I also faced the same issue. But I was able to resolve this issue by doing the below steps.
Check for the CLASSPATH variable value in Windows7 using echo %CLASSPATH% from command prompt.
Check if the CLASSPATH shows the below path
C:\Program Files\IBM\RationalSDLC\ClearQuest\cqjni.jar
If Yes, then open the below 2 files in edit mode from the path(Weblogic server)C:\Bea\Middleware\user_projects\domains\XXXX\bin
3.1 startWebLogic.cmd
3.2 setDomainEnv.cmd
and set the CLASSPATH manually removing the C:\Program Files\IBM\RationalSDLC\ClearQuest\cqjni.jar
Start the server, you would be able to start the server then.

Jboss Not starting in Netbeans

i am trying to run jboss v6 in netbeans but it shows following error
Unable to read the logging configuration from 'file:logging.properties' (java.io.FileNotFoundException: logging.properties (The system cannot find the file specified))
If i run jboss stnadalone by directly going in bin/run.bat no error is displaying and it starts normally but in netbeans i am getting error as i mentioned above.
Can Anyone tell me what to do for solving this problem?
I found this answer somewhere else on the web:
Go to the “bin” directory where you’ve installed JBoss
Edit the “run.bat” file
Search for the line
set JAVA_OPTS=-Dprogram.name=%PROGNAME% -Dlogging.configuration=file:%DIRNAME%logging.properties %JAVA_OPTS%
Change the %DIRNAME% to your absolute path to the “bin” directory of your installed JBoss.e.g.
set JAVA_OPTS=-Dprogram.name=%PROGNAME% -Dlogging.configuration=file:"C:\Java\jboss-6.1.0-final\bin\logging.properties" %JAVA_OPTS%
I’m adding the double quote " so that if your directory name has spaces, it will still be legitimate.
Try to start your server through Netbeans again, it should be working fine after this.
Edit: One likely source
You copied the JDK out from "Program Files" and placed in C:\, and then configured JBOSS's run.conf from bin folder to point to the new location of JDK. For example
rem set "JAVA_HOME=C:\jdk1.6.0_13"

Tomcat -- Running a web application

I'm trying to run a sample app in Tomcat. I've installed tomcat, set up the environment variable by creating a new system variable called JAVA_HOME which is set to C:\Program Files\Java\jdk1.6.0_20. And I've created a new dir for the web app in the tomcat program directory. In the cmd prompt I navigate to the tomcat program directory and type in bin/startup.sh and I get the following error: 'bin' is not recognized as an internal or external command, operable program, or batch file.
I'm using tomcat 6.0 and I'm on a windows machine. What could the problem?
On Windows you must run the startup.bat file instead of the startup.sh file (note the extension is different).
Also, enter the bin directory before executing the bat script.
cd bin
startup.bat
Your on windows try:
bin\startup.bat
If you try typing in bin\startup.bat on a Windows machine and still get the same error, there's a possibility that Windows is not seeing the batch script where it should be. As a-horse-with-no-name already said, try installing Tomcat to a location where there are no spaces in the path. In your case, anywhere other than Program Files.
EDIT: To resolve this space issue, you can do two things: 1) Install JDK/JRE to a common location without spaces (say, C:\Java) and set it to be JAVA_HOME environment variable. 2) Install Tomcat to another location (say, C:\Tomcat) and proceed from there. Since these are all in common location, I believe you can do this as a limited account user without needing admin privileges.
Try to install Tomcat (and possibly the JDK) into a directory without spaces.
The script you ran is intended for *nix systems. Try bin\startup.bat
I'm a little confused by some of the answers. First, the error you are receiving is from Windows. Nothing to do with Tomcat. The Windows OS thinks you have entered a command, and doesn't recognize it. Files with the .bat extension are always recognized by Windows as Batch file commands....... soooo..... Navigate to the bin directory, again, under your tomcat installation. Then....
Don't append the bin in front of the command. You should do a quick look to make sure that the "startup.bat" file is here (dir *.bat). Then just type "startup.bat".
Seems like I just type "catalina.bat start" (for my tomcat catalina installation)

Categories