WildFly common.sh script is missing - wildfly

When I try to run WildFly version 13.x with standalone.sh script I get this message:
./standalone.sh: 43: .: Can't open ./common.sh
I checked and indeed the file common.sh is missing from the WildFly bin directory, however in version 14.0.1 common.sh exists.
Does anyone know how to solve this?

In WildFly 13, standalone.sh doesn't have any reference to common.sh at line 43. It is placed at standalone.sh of WildFly 14...
Check a fresh install because seems you are mixing scripts.

Related

JDEV 12.2.1.4 Integrated Weblogic not running

We're using Jdev 12.2.1.4, while starting the integrated wls instance it's throwing below error-
Caused by: java.io.FileNotFoundException: Unable to locate file distributions\JDeveloper_Integrated_Server_Suite_12.2.1.4.0.xml under lookup locations.
JDK version- jdk 1.8.162
You should update your Oracle-Jdk.I dont think 12.2.1.4 version not supported by Jdk 1.6. Read this documentation:
https://www.oracle.com/application-development/technologies/jdeveloper/1212-cert.html
There was some JAVA_HOME related issues in .globalEnv.properties file. Additionally some permission issues were there in JDeveloper_Integrated_Server_Suite_12.2.1.4.0.xml file. Pointing to correct java_home and giving my permission to this xml file has resolved the issue for me.

Java EE run error "java.net.MalformedURLException: no protocol: ${client.url}"

I have an Enterprise Java Application. Which has a *.war and a *.jar, when I ran the war it works fine but when I run the Enterprise shows me an error "java.net.MalformedURLException: no protocol: ${client.url}"
When I clean and build it's all ok but when I run it I'm having the following error at the Netbeans' console:
I'm using: Netbeans 8.1, wildfly 10.0, Java EE 7
And this is my tree...
Am I missing something?
I was with the same problem and I fell on this question. Just solve.
To resolve the error project.properties open the file within the folder nbproject.
Inside this file insert a line below client.urlPart with the following content:
client.url=http://localhost:8080/${client.urlPart}
Change the port number (8080) to the port number of your server.
Regards.

Jboss log manager error

I am trying to start up JBoss with parameters in Windows but getting some errors. If I remove parameters than JBoss startup iwht no errors. Could some one please take a look.
environment variables:
JAVA_HOME=C:\Java\jdk1.6.0_45
JBOSS_HOME=C:\bin\jboss-eap-6.1
Path=C:\Java\jdk1.6.0_45\bin;C:\WINDOWS\system32;
start up jboss with following parameters:
set "JAVA_OPTS=%JAVA_OPTS%
-Djava.rmi.server.hostname=myhost
-Dcom.sun.management.jmxremote.port=myport
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=true
-Dcom.sun.management.jmxremote.password.file=C:\Java\jdk\jre\lib\management\jmx.password
-Dcom.sun.management.jmxremote.access.file=C:\Java\jdk\jre\lib\management\jmx.access
"
Error:
WARNING: failed to load the specified log manager class org.jboss.logmanager.LogManager
Error: Operation <"parallel-extension-add"> failed - address:<[]>
java.lang.RuntimeException: failed initializing module org.jboss.as.logging
==========================================================================
so to fix the error above. I have added logmanager parameter below.
start up jboss using parameters:
set "JAVA_OPTS=%JAVA_OPTS%
-Djava.util.logging.manager=org.jboss.logmanager.LogManager
-Djava.rmi.server.hostname=myhost
-Dcom.sun.management.jmxremote.port=myport
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=true
-Dcom.sun.management.jmxremote.password.file=C:\Java\jdk\jre\lib\management\jmx.password
-Dcom.sun.management.jmxremote.access.file=C:\Java\jdk\jre\lib\management\jmx.access
​"
ERROR:
Could not load Logmanager "org.jboss.logmanager.LogManager"
java.lang.ClassNotFoundException: org.jboss.logmanager.logManager
==========================================================================
so to fix error above. I have added -xbootclasspath parameter.
start up jboss using parameters:
set "JAVA_OPTS=%JAVA_OPTS%
-Djava.util.logging.manager=org.jboss.logmanager.LogManager"
-Xbootclasspath:C:\bin\jboss-eap-6.1\modules\system\layers\base\org\jboss\logmanager\main\jboss-logmanager-1.4.0.Final-redhat-1.jar
-Djava.rmi.server.hostname=myhost
-Dcom.sun.management.jmxremote.port=myport
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=true
-Dcom.sun.management.jmxremote.password.file=C:\Java\jdk\jre\lib\management\jmx.password
-Dcom.sun.management.jmxremote.access.file=C:\Java\jdk\jre\lib\management\jmx.access
​"
ERROR:
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
and now I have no idea what to do. I have tried reinstalling jdk but no luck.
when I enter "java -version" in CMD. Than I get result: "1.6.0_45". So I know jdk is set up. but when I start Jboss than jdk is not initialization.
To resolve this, do the following:
Go to the JBOSS_HOME location on the file system e.g. c:\jboss\appserver\jboss-eap-6.3, look in the bin folder and open the configuration file named, standalone.conf, in a text editor.
At the top of the file, add the following line - JBOSS_MODULES_SYSTEM_PKGS="org.jboss.logmanager".
Scroll-down the file, to where JVM options are specified and add the following two options:
JAVA_OPTS="$JAVA_OPTS -Djava.util.logging.manager=org.jboss.logmanager.LogManager" JAVA_OPTS="$JAVA_OPTS -Xbootclasspath/p:$JBOSS_HOME/modules/system/layers/base/org/jboss/logmanager/main/jboss-logmanager-1.5.2.Final-redhat-1.jar"
Note: You may need to modify the exact path to the logmanager jar file, as the one on your jboss installation may differ from what applies here. The JBoss EAP version being used in this case was 6.3.0GA. A different version may have a different path to the logmanager jar file.
Simply save the modified 'standalone.conf' file, with these couple of changes, and re-attempt starting up of the JBoss App server (either on the CLI or within Eclipse).
Note: For fixing the issue for a JBoss EAP appserver instance running just within Eclipse, simply open the server's launch configuration and add the 2 JVM options to the VM arguments of the launch configuration, as shown in the screenshot below:
Voila! The startup issue with regards to failure to load the LogManager, should be resolved.
Check this blogpost for details and screenshots - http://obinnakalu.blogspot.com/2014/10/jboss-enterprise-application-platform.html
Although this is an old post, but if someone is still facing the issue:
-Xbootclasspath:C:\bin\jboss-eap-......
Above line replaces bootclasspath and now jvm will use only the specified jar to boot.
Use -Xbootclasspath\a:C:\bin\jboss-eap-......
instead. This will append the mentioned jar to existing bootclasspath.
For Jboss 7.1.1 I have solved this issue by adding following lines in standalone.conf.bat. All the jars are taken from JBoss 7.1.1 modules folder
set "JAVA_OPTS=%JAVA_OPTS% -Djboss.modules.system.pkgs=org.jboss.byteman,org.jboss.logmanager -Djava.util.logging.manager=org.jboss.logmanager.LogManager -Xbootclasspath/p:E:/jboss-logmanager-1.2.2.GA.jar;E:/jboss-logmanager-log4j-1.0.0.GA.jar;E:/log4j-1.2.16.jar"

upgrade weblogic server from 12cr1 to 12cr2

I need to know how can i upgrade my Weblogic application server from release 1 to release 2.
My OS is windows 7 64 bit. I am new to this some one else installed weblogic so i tried to install it by myself but it is giving me error
C:\Users\User\Downloads>java -D64 -jar wls_121200.jar
Extracting files................................................................
....................................
This installer must be executed using a Java Development Kit (JDK)
but C:\Program Files\Java\jre7 is not a valid JDK.
The Oracle Universal Installer failed. Exiting.
so i unzipped the jar with 7 zip now intaller has started is it the correct way?
Using command prompt, navigate to the directory where you downloaded the installation program.
Launch the installation program by invoking java -jar from the JDK directory on your system,
as shown in the example below:
\home\Oracle\jdk7_15\jdk1.7.0_15\bin\java -jar wls_121200.jar -- sure to replace \home\Oracle\jdk7_15\jdk1.7.0_15 -- in this example with the location of the JDK on your system
The only thing you need is to execute the installer using the jdk needed for it.
for example:
"C:\Program Files\Java\jdk1.7.0_79\bin\java.exe" -jar wls_121200.jar
I used the java.exe from my jdk 7 folder instead of the java installed on my computer.
The weblogic jar folder doesn't matter.
use the following command:
C:\Softwares\Weblogic12c> "\Program Files\Java\jdk1.7.0_05\bin"\java
-jar fmw_12.2.1.0.0_wls.jar
C:\Softwares\Weblogic12c> is the location of my weblogic jar file.
"\Program Files\Java\jdk1.7.0_05\bin"\ is the location of my jdk.
It may happen that the jar is not taking the JAVA_HOME or PATH variables that may be set in the environment variables. In this case you may set it manually in the cmd. GOTO Run->cmd.
Then goto the folder where you have placed your jar
C:\Users\User\Downloads>set JAVA_HOME=C:\Program Files\...\jdk1.8.0_112
C:\Users\User\Downloads>set PATH=C:\Program Files\...\jdk1.8.0_112\bin;%PATH%
and then you may go on executing the jar,
C:\Users\User\Downloads>java -jar wls_121200.jar
It worked for me! Hope it helps. Thanks.
Run as Administrator the Command Prompt
Open the Weblogic's jar directory
Execute the java -jar command over the jar file:
From Runtime Variable (Make sure you have it set)
java -jar wls_121200.jar
From sepecific directory
"C:\Program Files\Java\jdk1.7.0_79\bin\java.exe" -jar wls_121200.jar

Scala 2.8.0 problems on Windows 7

I installed scala 2.8.0 last night and I seem to be having some issues getting it running. If I type scala at the command prompt it comes up with the following:
> scala
Exception in thread "main" java.lang.NoSuchMethodError: scala.collection.mutable.ListBuffer.toList()Lscala/collection/immutable/List;
at scala.collection.TraversableOnce$class.toList(TraversableOnce.scala:399)
at scala.collection.mutable.ArrayOps.toList(ArrayOps.scala:34)
at scala.tools.nsc.MainGenericRunner$.main(MainGenericRunner.scala:33)
at scala.tools.nsc.MainGenericRunner.main(MainGenericRunner.scala)
Anyone have any ideas? I'm on Windows 7 professional, with Oracle JRE 1.6.0_21
Did you set the SCALA_HOME environment variable to point to the correct directory?
Did you have an older version installed? If that's still on your path then it may be causing problems...
EDIT
Can you paste the contents of your PATH and CLASSPATH environment variables? Perhaps using pastie or pastebin if they're on the large side.
You should also update to Java 1.6.0_22 if at all possible, due to this bug which was present in update 21: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6969236
Turns out this problem occurred because I put the sbt-launch.jar in the lib directory for my scala installation. Once I moved it into another directory scala worked fine.