Showing posts with label weblogic. Show all posts
Showing posts with label weblogic. Show all posts

23 February 2016

OU Webservices Practice 5.1 alternative

To use the Glassfish JAXB RI instead of the default Eclipse MOXy implementation in Weblogic 12.1.1 add this to the beginning of your %DOMAIN_HOME%\bin\setDomainEnv.cmd. %MW_HOME% is set to the installation location of WebLogic.

if NOT "%PRE_CLASSPATH%"=="" (set PRE_CLASSPATH=;%PRE_CLASSPATH%)
set PRE_CLASSPATH=%MW_HOME%\modules\databinding.override_1.0.0.0.jar%PRE_CLASSPATH%


On Weblogic 12.2.1 you should use WL_HOME (=%MW_HOME%\wlserver) instead of MW_HOME.

19 February 2016

WebLogic 12.1.2 zip install: terminalio to read the password securely is not found


My WebLogic 12.1.2 install from the zip distribution aborted after asking for the domain admin user with the error message:

Native Library(terminalio) to read the password securely from commandline is not found
It appears that this is a different symptom of the same error I had working with Weblogic 12.1.1: the native libraries delivered with WebLogic are not in the PATH. My system is a 64 bit windows system, so i need to add the libraries for this platform to avoid this error.
I added one line to %WL_HOME%\wlserver\server\bin\setWLSEnv.cmd
set WL_HOME=C:\wl12120
@REM added the next line
set PATH=%WL_HOME%\server\native\win\x64;%PATH%
If you do this, the installation and the configuration of a default domain run smoothly. As explained in my previous post, after the domain creation, also add this line to the domain envionment setup file %domain_dir\bin\setDomainEnv.cmd. If you don't you'll get warnings about Weblogic reverting to less efficient file reading libraries etc.

23 January 2016

Installing webLogic 12.2.1 (12cR2)

I installed WebLogic 12c on windows 10 last week and it was pretty smooth.
I went to the download page and downloaded the generic distribution.
There's a link to an install manual right below the download.
I downloaded the zip an unpacked it to a jar of the same size :-/
Some points of attention now

  • start  a cmd window as administrator
  • make sure to use java from the JDK. If Java from JRE is in your path first this does not work
  • Start the Oracle Universal Installer GUI as in the documentation, it will first check if your platform meets the requirements:
> java -jar fmw_12.2.1.0.0_wls.jar

Checking if CPU speed is above 300 MHz.   ...Passed

Checking monitor: must be configured to display at least 256 colors.   ...Passed

Checking swap space: must be greater than 512 MB    ...Passed

Checking if this platform requires a 64-bit JVM.   Actual 32    Passed (64-bit not required)
During the install you can choose to install WebLogic, Coherence or both.
Just answered the basic questions and clicked finish when installation was done.
In the log file after install (C:\Program Files\Oracle\Inventory\logs) I find a few throwables from patch installations, but nothing worrying.
Maybe you have to explicitly click the "installation complete" menu item, because after I clicked finished the cofiguration wizardfor setting up a domain did not fire. In my cmd tool I went to %WL_HOME%\oracle_common\common\bin (in earlier releases this is %WL_HOME%\wlserver\common\bin) and ran
> config.cmd
This launches the domain create/update GUI, another easy sequence of steps.
You can always return here, if after the installation you want to add additional templates to your installation:

At the end you get a link to the admin console at http://localhost:7001/console.

These days WebLogic by default starts DerbyDB, and I already have that from my Java EE installation, so I disabled that by editing my_domain\bin\setDomainEnv.cmd. Look for the DERBY_FLAG in this file and set it to false:

@REM Set DERBY_FLAG, if derby is available.

if "%DERBY_FLAG%"=="" (
    if exist %WL_HOME%\common\derby\lib\derby.jar (
        set DERBY_FLAG=true
    )
)




2 February 2014

startWebLogic: maximum number of socket reader threads allowed by the configuration is: 4

I am running Weblogic 12c 12.1.1 which I installed from the zip archive downloaded from the Oracle webpage on windows 7 64bit, using a Java 7 64 bit JVM.

When starting WebLogic I had this error message: <BEA-000402> <There are: 5 active sockets, but the maximum number of socket reader threads allowed by the configuration is: 4. You may want to alter your configuration>

My settings in the WebLogic Administrator Console indicated that I was using native I/O, so the configuration seemed fine.

However, earlier in the logs I also had this warning:
<BEA-000438> <Unable to load performance pack. Using Java I/O instead. Please ensure that wlntio.dll is in: C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;...

I found wlntio.dll in %WL_HOME%\server\native\... subdirectories for different platforms. Apparently this had not been added to the startup configuration, because I did not run an installer, but installed from the zip file. I added the directory in wich the dll lives to the PATH in the startupscript  ...\weblogic\domain1\bin\setDomainEnv.cmd:

set WL_HOME=C:\java\weblogic\12.1.1\wlserver
@REM added the next line
set PATH=%WL_HOME%\server\native\win\x64;%PATH%


Now all's well :)

12 November 2013

StartWebLogic: \xxx was unexpected at this time

Just installed weblogic 12c with an initial domain on windows.
When running startweblogic in the domain i get an error
\xxx was unexpected at this time 

WebLogic seems to stumble over some stuff in my CLASSPATH. Mine 
has jars for the Belgium identity Card in it (others had a problem with QuickTime: QTJava.zip).

Easiest solution is the cleean my classpath, but then other applications will have problems.

After the SETLOCAL line in the startWebLogic.cmd and stopWeblogic.cmd in my domain, I added a line
set CLASSPATH=

Now it starts fine. Updating all these scripts is not the ideal solution however.