Menu
  • HOME
  • TAGS

Porting application defined MBeans from OC4J

weblogic,spring-jmx

There's a pretty good summary here. Like the author of that blog, I am using the WLST solution rather than attempting to extend the Weblogic console. To that I would add: I didn't find it necessary to set -Dcom.sun.management.jmxremote=true I did have to set the property name="registrationBehaviorName" value="REGISTRATION_IGNORE_EXISTING" in my...

Weblogic SSL Handshake failure

ssl,weblogic,ssl-certificate

Solved. The issue was that the server we were calling to (WebLogic 12\Java 8) generated DemoIdentity.jks which contain certificate with SHA256WITHRSA algorithm which can't be read by the calling server (WebLogic 9.2 \Java 1.5). I generated new DemoIdentity.jks with WL9.2 CertGen which generating the certificate with MD5WITHRSA algorithm, I placed...

No swap space detected while installing WLS 12c on AIX 7.1 (Installation Crashes)

installation,weblogic,swap,aix

I've never installed on AIX but you can try two things. First, run the installer with the -ignoreSysPrereqs option to skip over any memory checks. Second, run the installer "silently" to get more information out. Use the -silent option on the command line when you start the installer. You can...

Cannot start Weblogic Server from Eclipse

eclipse,oracle,weblogic,hang

I found the solution by my self. Qualcomm Atheros AWiC Diagnosiccs utility blocks the CMD. After that I killed the process (AWiCDiag,exe - I noted that it eat up 3.5 GB of memory) automagically Starting WLS process reached 100% in few second....

Dependency from web module not deployed on Weblogic server 10.3.6 via Eclipse Kepler

java,eclipse,deployment,weblogic,ear

Ok, it turns out our two machines had a different "publishing mode" setting. I am not sure the exact reason for this, but if you set the server publishing mode to "Exploded Archive" the extra dependency is deployed properly into the web module, unlike in the virtual application (split source)...

Weblogic 10.3.6 and Spring WebServices ClassCast Exception

spring,web-services,weblogic,jax-ws

down the version, it worked. <dependency> <groupId>com.sun.xml.ws</groupId> <artifactId>jaxws-rt</artifactId> <version>2.1.7</version> </dependency> Check out oracle site...

How can I debug why eclipse won't start?

eclipse,weblogic,permgen

Adding the comment as an answer since it provided some help. Try starting up to a new empty workspace; If you dont get to select workspace at startup use the argument "-data " If you still get issues, look at the log in /.metadata/.log ...

Before start of result set

mysql,jsp,weblogic

PreparedStatement pstm = null; String sql = "select * from owner"; pstm = con.prepareStatement(sql); ResultSet rs = pstm.executeQuery(); ResultSet firstrs=rs; String tname=""; while(rs.next())//You have to write resultset like this because if result set is empty then it will gaves an error { tname=rs.getString("tablename"); tname+=","; } if(!tname.equal("")) { String sql1="SELECT *...

jconsole does not start with arguments (command line)

weblogic,jconsole

You simply need quotes around your classpath, likely because of the space in Program Files. For instance this works for me: "C:\Program Files\Java\jdk1.6.0_37\bin\jconsole" -J-Djava.class.path="%JAVA_HOME%/lib/jconsole.jar" ...

Why does a jcrontab error appear in weblogic whenever I try to load my application?

java-ee,weblogic,crontab

Looks like it was unrelated to crontab. I got rid of the crontab errors by disabling some other app ear files that relied on it. As for not displaying my app, I was running the wrong build script... I'm not sure if that will help someone who runs into this...

Weblogic 12.1.3 context path already in use by the module error

java,deployment,webserver,weblogic,weblogic12c

I figured it out at last. First, I was looking at wrong logs, the problem wasn't the context root but it was about Weblogic which wasn't able to find Hibernate Validator. This a bug and Oracle released an Interim patch (20087183) for this bug. After I applied the patch, the...

Mapping enterprise roles in ADF Security to groups in Active Directory

java,active-directory,weblogic,oracle-adf,adf

Every enterprise role will be automatically mirrored into an application role at runtime. Therefore, if you use the same names for both, there is no need of explicit mapping. Otherwise - if your enterprise roles have a different semantic and granularity than your application roles - you will need to...

Code Coverage Report with Jacoco for IntegrationTests runs on Weblogic server

unit-testing,weblogic,integration-testing,code-coverage,jacoco

If you need to get the code coverage for tests against Java code, then JaCoCo is a very good option, because you don’t need to instrument the code before hand, it will do that on-the-fly during the tests. Attach JaCoCo to Weblogic JVM : The JaCoCo collector attaches it self...

JDBC PreparedStatement Batch continue insert on error

java,mysql,spring,jdbc,weblogic

I think it can be summed up in one word IGNORE When you run the batch with this sb.append("INSERT IGNORE INTO `FRT_DB`.`ITEM` "); This NOT throw a Exception realted with constrains, this pass over, and still old data in your rows If you need save the 'new data' you change...

Change context-root inside WAR file

java,weblogic,web-deployment

Yes you can deploy the same war file multiple times and yes you can change the context root. You will want to do something like the following if you cannot rebuild the war file yourself. Unzip the war file (jar xvf myfile.war) This isn't entirely necessary but it will help...

Where can I find wls-api.jar? [closed]

java,weblogic

According to Oracle docs (https://docs.oracle.com/middleware/1212/wls/WLPRG/overview.htm#WLPRG134): The wls-api.jar file is located in the wlserver/server/lib directory of your WebLogic Server distribution ...

Apache to weblogic ssl connection failure

apache,openssl,weblogic

It was the issue with certificate at the weblogic end. Certificate was missing key usage 'key encipherment' When certificate with key encipherment usage was imported at weblogic end, the connection was successful. ...

Failed to connect from jdeveloper to weblogic server jsr 160 failed

weblogic,jdeveloper,weblogic12c

Add the server's host name in the "hosts" file in the client's operating system. Next time when you add an application server in jdeveloper, don't input the ip, type the hostname instead.

Internet explorer 9 will not recognize doctype sent by servlet from weblogic server and renders in document mode IE7 - extra characters before start?

java,html,servlets,internet-explorer-9,weblogic

IE may have some configuration settings that override <!doctype html> in the markup. As per https://msdn.microsoft.com/en-us/library/ie/jj676914(v=vs.85).aspx: Pages opened in the Intranet zone might be treated differently, depending on the configuration of the browser, the presence of group policy options, and other factors. Try to check places listed in the article...

WebLogic 12c upgrade error: Ensure that the annotations are valid. The error is org.apache.taglibs.standard.tag.el.core.WhenTag

java,jsp,ejb,weblogic,jax-ws

You don't have jstl.jar nor standard.jar in the WEB-INF/lib folder.

Weblogic: How to prevent “A mismatch exists between the bean code and generated code” when deploying

java,java-ee,weblogic,weblogic12c

Sometimes weblogic has caching issues when you try to redeploy over an existing app. Trying an undeploy and redeploy normally corrects it: undeploy(appName=application_name); save() activate(300000, "block='true'") deploy(appName=application_name, path=deployment_artifact, targets=target_names, planPath=deployment_plan); save() activate(300000, "block='true'") ...

Weblogic 12c change domain name

dns,weblogic,rename

Renaming a weblogic domain is not as simple as renaming a folder, check the following: Tons of files within your domain folder are going to reference the domain name, do a grep -r your_domain * and you will see where it's referenced. You can exclude tmp, cache, etc. like --exclude-dir={tmp,logs,cache}...

Weblogic set system property and use in java

java,weblogic,system-properties

Have to add "set JAVA_OPTIONS=%JAVA_OPTIONS% -Druntime.environment=local" to the startWebLogic.cmd file

WebLogic Server 10.0/JPA 2.0 Compatibility

jpa,weblogic,jpa-2.0,weblogic-10.x

It is not possible to have JPA 2.0 support using WebLogic 10.0. This is described in Oracle Document ID: 1091853.1 Does WebLogic Server 10.3 provide full support for JPA 2.0? - WebLogic Server 10.3.4+ allows to enable full JPA 2.0 support. - WebLogic Server 10.3.0 - 10.3.3 partially support JPA...

Apache HTTPD Redirect for mobile devices.

php,apache,mobile,centos,weblogic

Right, got it, the text itself was correct, it just required me to add it in two places. one - /opt/local/apache-2.2.17/conf.d/ssl.devservice.conf < Code is placed immediately after SSLEngine On - it monitors all HTTPS traffic/ requests. two - /opt/local/apache-2.2.17/conf.d/rewrite.devservice.conf < - monitors HTTP traffic only. I hope this helps someone,...

How to handle transaction rollback with JMS and JPA in a Java EE environment?

java,jpa,transactions,jms,weblogic

IMHO having 2 tx is exactly what you are looking for. There is one transaction to handle the MDB started by the EJB Container, then in the MDB you call a business method in a stateless session bean (SLSB) that is annotated with Transaction.REQUIRES_NEW and so your business logic that...

No Dialect mapping for JDBC type: -9

oracle,hibernate,tomcat,weblogic

Finally the solution was indeed like org.hibernate.MappingException :No Dialect mapping for JDBC type: -9 I was looking at the wrong dialect.. This was for SQLServer and i'm using Oracle10gDialect. So i've made this class : public class Oracle10gDialectOverrider extends Oracle10gDialect{ public Oracle10gDialectOverrider(){ super(); registerHibernateType(Types.NVARCHAR, Hibernate.STRING.getName()); } } And specify into...

Cannot call commit when using distributed transactions [closed]

java,transactions,weblogic,datasource,osb

Some forums offered to change the datasource from XA to NonXA, and deselect the checkbox "Supports Global Transactions". I do that and got other error "Cannot call Connection.commit in distributed transaction". I've restarted the WebLogic server and thats it. Problem Solved. FYI :)

Stage managed node

weblogic,weblogic-10.x,weblogic11g

In Development Mode you do have the option to copy in new files and have them auto deployed: "To auto-deploy an archived application, copy its archive file to the /autodeploy directory. WebLogic Server automatically sets the application’s deployment mode to stage mode. A deployment unit that was auto-deployed can be...

Accessing session attributes in weblogic vs tomcat

java,session,tomcat,weblogic

I figured out the problem. The current development URL is not a secure URL and I had the secure cookie setting set to TRUE in my weblogic.xml file. Once I changed it to FALSE everything worked. Now I just have to remember to change it back to TRUE when we...

Weblogic hostname verification anomalies

java,web-services,ssl,weblogic,weblogic12c

After a while I have found the solution of the problem I was encountering. The problem was that I thought that changing stuff in the admin console would be saved and loaded every time I started the server, but the truth is, it is not. I had to add the...

Where to add JVM parameter nojce in weblogic?

weblogic,jvm-arguments

In my experience we have always added JVM parameters to the ${WL_HOME}/bin/setDomainEnv.sh script as an extra property under the $EXTRA_JAVA_PROPERTIES variable.

Remote Debugging: Failed to connect to remote VM. Connection timed out

java,eclipse,weblogic,remote-debugging

I bumped up the debug timeout (Windows/Preferences/Java/Debug/Communication/Debugger timeout) and restarted both the admin server and the managed server where the application is deployed and is listening on the debug port.

Spring / WebLogic - JMS message not redelivered on failure

java,jms,weblogic,spring-3

I believe you need to set sessionTransacted to true for the DefaultMessageListenerContainer: <bean id="paymentlistenerContainer" class="org.springframework.jms.listener.DefaultMessageListenerContainer"> ... <property name="sessionTransacted" value="true"/> </bean> You can find here relevant reference documentation....

weblogic ear external jar dependency

weblogic,ear

I personally would package the third party jar into the ear. You have a couple of other options... Add the jar file into your weblogic domain lib directory, this will put it on the classpath for every server: <domain folder> -> lib A better way would be to edit your...

Weblogic 12c setting PermSize when using NodeManager

weblogic,weblogic12c

Check the nodemanager.properties file in your Oracle install ( e.g. /opt/ora/mw/wlserver_10.3/common/nodemanager/nodemanager.properties ) and verify that these options are set: StartScriptName=startManagedWebLogic.sh StartScriptEnabled=true so the nodemanager is starting your servers with the appropriate scripts. You also have to option of setting server specific start attributes via the admin console - go to:...

how many maximum concurrent users can a tomcat instance, jboss instance and weblogic instance handle?

java,linux,tomcat,jboss,weblogic

First, it's not structs, it's "Struts" and no springs but "Spring". Although you have provided your hardware configuration, I would strongly suggest you to use JMeter to do the load testing of your application in your production environment before going live. That would give you a better picture rather than...

Sharing files across weblogic clusters

weblogic,weblogic12c

No There is no way for WLS to ensure a file copied on one instance of WLS is copied to another. Especially when you are copying it over even using scp.

Commons-lang-2.6.jar and FilteringClassLoader Issue

java,maven,weblogic,weblogic11g,apache-commons-lang

<package-name>commons-lang.*</package-name> does not look valid. commons-lang is the artifact ID of the library, not a valid package. Replace this by something like <package-name>org.apache.commons.*</package-name> or <package-name>org.apache.commons.lang.*</package-name> and it should world correctly....

TimerService null

java,timer,weblogic

I ended up using Timer & TimerTask for this. Couldn't figure TimerService out. Oh well. Seems to work fine. For anyone curious: long interval = minutes*60*1000; long delay = interval; if(prevTask != null){ delay = System.currentTimeMillis() - prevTask.scheduledExecutionTime(); //time left of previous setting prevTask.cancel(); delay = interval - delay; //difference...

Apache Weblogic Post Field Limits

java,spring,apache,weblogic,weblogic12c

As it turns out, the Weblogic module for Apache has a feature that allows it to cache any POST greater than 2048 bytes. It also turns out that if you have the WLTempDir specified and that directory does not exist, this situation will occur. Further reading: http://docs.oracle.com/middleware/1212/webtier/PLGWL/plugin_params.htm#sthref71...

Where is the Weblogic Worklist Menu Located in Weblogic 8.1

java,weblogic,weblogic8.x

Yes, it's on a separate URL: http://adminserver:port/wliconsole See http://docs.oracle.com/cd/E13214_01/wli/docs81/manage/intro.html#1033708 for more details....

Adding jars to an application in application.xml?

java,weblogic,application.xml

If you are only packaging up one application, I would highly recommend using a war file instead of an ear since it is simpler. Otherwise you may need to package your current Project-Name.jar into a war file and then package that into the ear. See a tutorial like the one...

JAX-WS Validate Schema in WebLogic with @SchemaValidation

java,web-services,weblogic,jax-ws

The problem was: I was using the wrong package for @SchemaValidation. The correct class that worked for me is com.sun.xml.ws.developer.SchemaValidation, which is provided in the file mw_home\modules\glassfish.jaxws.rt_1.3.0.0_2-1-5.jar (using WLS 10.3.6). In the previous code segment I was referencing the wrong package: com.sun.xml.internal... but using the one provided by WebLogic worked...

Could not find backup for factory javax.faces.context.FacesContextFactory Weblogic

jsf,weblogic

I found the issue. In WEB-INF/faces-config.xml, I had a navigation-handler that was pointing to a class that didn't exist. Correcting this resolved the issue.

Strange java.beans.Introspector behavior on WebLogic with DCEVM and HotSwapAgent

weblogic,hotswap,dcevm

Found this thanks to @ddekany and his answer to related problem at Freemarker removeIntrospectionInfo does not work with DCEVM after model hotswap It seems that JVM (at least HotSpot 1.7) caches Introspector's cache per ThreadGroup. This means, that Introspector.flushCaches must be called in a thread that runs in corresponding ThreadGroup....

How to establish database connection by using dataSource in Weblogic

java,jdbc,weblogic,datasource

This was solved by: Connection con = null; DataSource datasource = null; Context initialContext = new InitialContext(); // "jdbc/MyDBname" >> is a JNDI Name of DataSource on weblogic datasource = (DataSource) initialContext.lookup("jdbc/MyDBname"); con = datasource.getConnection(); ...

Getting a CompilationException in Weblogic Server 10.3.0.0. How to fix it?

html5,jsp,weblogic

It was an import conflict. I resolved it by changing the relative import statements in my jsp code with absolute import statements. E.g. If I want to use ArrayList instead of importing java.util.* (Relative Import), import java.util.ArrayList(Absolute Import). ...

Any known problems with GlassFish high availability?

java-ee,glassfish,weblogic

It would be wise to use the latest release of GlassFish (4.1), it's mostly a bugfix release, but does add the capability to run on Java 8. As for known issues with high availability, that's something that's easily checked with the public GlassFish JIRA Here is a query for any...

Path for Weblogic Home& Java home for adding Oracle server in eclipse

eclipse,oracle,weblogic,settings,java-home

Yes We have to download the Oracle Weblogic Server from Following path: 1st -- go to http://www.oracle.com/index.html 2nd---then from top menu select downloads...go to Middleware...Expand the + sign of See All The Middleware Downloads..Then expand all previous and current version of weblogic server from WebLogic Server 12c and WebLogic Server...

How to I set one root application next to other applications on Oracle Weblogic Server?

java,oracle,weblogic

You should use Oracle HTTP Server, Apache Web Server (with WebLogic plugin), or Oracle Traffic Director, to correctly map that, instead of deploying an application to root context. Keep all apps deployed to their / context roots. Map the external context root on the Web Tier....

weblogic 12c basic authentication not prompting for userid

java,java-ee,servlets,weblogic,weblogic12c

It turned out to be a deployment issue from my side.. The configuration in my original post was just fine. thanks to those that responded to my question!!

Threads hang on selecting a channel

java,weblogic,solaris,nio

Threads hang on selecting a channel No. I believe the above means WebLogic does not have enough channel to send the responses back No. It is one thread blocking while selecting on a network event, and it means there is no incoming data, no space in the socket send...

Manual Weblogic Basic Authentication

java,web-services,authentication,soap,weblogic

Use Handlers to intercept the incoming and outgoing requests.

How do I check migratable target status with weblogic scripting tool (wlst)?

weblogic,wlst

You can definitely do this with wlst, here are some steps: connect('weblogic','weblogic','http://myserver:7701') cd('MigratableTargets') ls() #this will list out all migratable objects cd('<migratable name>') ls('UserPreferredServer') ls('HostingServer') That will list your preferred server and the currently hosted server. You can use the current management object cmo and check to see if they...

where is weblogic.Server class?

java,jar,weblogic,classpath

I think the jar that you are looking for is in /Oracle_Home/wlserver/modules/features and is called weblogic.server.merged.jar.

SQL Server Integrated Authentication on Weblogic Server

sql-server,weblogic,windows-authentication,weblogic-10.x

I found the problem. I believe that I did not have the sqljdbc_auth.dll in the correct location. It belongs in: %path%\WebLogicServer\10.3.4\wlserver_10.3\server\native\win\x64 Once I put this file in the correct location, the configuration worked right away. It is also important to note that the version number on these files is very...

WL-Proxy-Client-Cert header not sent

apache,servlets,weblogic,reverse-proxy

I have finally got an answer from Oracle support on this. The problem was that i had to add one SSL directive to my virtual host configuration: SSLOptions +ExportCertData It goes under "IfModule ossl_module", right next to "SSLVerifyClient require" directive that specifies 2-way authentication for the proxy. Note that after...

Single WSDL with no schema imports in WebLogic with JAX-WS

java,web-services,wsdl,weblogic,jax-ws

Do you use the provided wsgen-tool for the wsdl-generation? If yes, there is a parameter called: -inlineSchemas which exactly does what you want. "Used to inline schemas in a generated wsdl. Must be used in conjunction with the -wsdl option. " (Source: https://jax-ws.java.net/nonav/2.2.1/docs/wsgen.html)...

OpenJPA and stored procedures, Weblogic 12c

java,stored-procedures,jdbc,weblogic,openjpa

It looks to me like the ?} sequence is getting munged, based on the lack of closing brace in the error message. Try a) separating them somehow, or b) using a named parameter notation like :input instead of ?.

weblogic.socket.Muxer uses 100% cpu

java,multithreading,oracle,weblogic,weblogic12c

After much tinkering, an almost sleepless night and googling till I bled, I'm almost sure I got it solved. This solution is heavily based on another thread: http://stackoverflow.com/a/7827952/1484232 To summarize the whole shebang, GC threads collision (most likely) were causing the issues here. After applying some parameters to my VM,...

How to enable the JMX of cluster servers on Weblogic?(not the Weblogic AdminServer itself)

java,linux,weblogic,jmx,zabbix

The first question is where are those settings coming from for your admin server. My guess is you need to edit startWebLogic.sh and find where the following are being set: JAVA_OPTIONS="-Dcom.sun.management.jmxremote.port=12345" JAVA_OPTIONS="${JAVA_OPTIONS} -Dcom.sun.management.jmxremote.authenticate=false" JAVA_OPTIONS="${JAVA_OPTIONS} -Dcom.sun.management.jmxremote.ssl=false" JAVA_OPTIONS="${JAVA_OPTIONS} -Djavax.management.builder.initial=weblogic.management.jmx.mbeanserver.WLSMBeanServerBuilder" export JAVA_OPTIONS Thos settings...

Weblogic load balancing and request re-routing to another server

weblogic,load-balancing

I believe you will need a load balancer (or a software equivalent) to sit above the weblogic servers and direct traffic down to those servers. The idea being that you access your application on http://loadBalancer.com/App and then the Load Balancer forwards your request onto either one of weblogic servers. Meanwhile...

Git: Automatically Commit on Publish or Restart of Web Aplication

eclipse,git,weblogic,egit,git-commit

automatically commit all outstanding changes to Git every time I republish my project. "Automatically" and "outstanding changes" cannot coexist in the same sentence without some details about the criteria which would define an "outstanding change": an "automatic" process wouldn't know when a change is supposed to be outstanding or...

How to access a password protected web service in osb?

weblogic,osb

Finally, I was able to get the solution. Phew.! I used openssl to download the certificate. This Command here from Server Fault made it a piece of cake. echo -n | openssl s_client -connect HOST:PORTNUMBER | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' >[PATH_TO_SAVE_CERTIFICATE] I then checked the USE JSSE SSL in...

What's the difference between “Stuck Thread Max Time” and “Max Stuck Thread Time” in Weblogic 10.3.x?

weblogic,weblogic11g,workmanagers

Tuning = stuck thread reporting Servers -> Some_Server -> Configuration -> Tuning -> Stuck Thread Max Time This will check on the Stuck Thread Timer Interval for any and all stuck threads and report it in the log file for the server like: 'WebLogic.kernel.Default (self-tuning)' has been busy for "zzz"...

Couldn't able to precompile jsps using ANT script-Weblogic server

java,ant,weblogic,web-project

Got the solution . The issue is because the jre version of weblogic and jre version used in the workspace(Eclipse) was different.As a result the compilation of jsps were failed.I have changed the recommended jre version, ie jre1.6 (for weblogic 10.3.5) and it worked fine....

Cannot access HTTPS from Weblogic

java,ssl,weblogic,weblogic11g

Eventually it worked by setting these in the Weblogic arguments: -DUseSunHttpHandler=true -Dssl.SocketFactory.provider=sun.security.ssl.SSLSocketFactoryImpl -Dssl.ServerSocketFactory.provider=sun.security.ssl.SSLSocketFactoryImpl As per these posts: http://stackoverflow.com/a/7276163 and https://community.oracle.com/thread/2523332...

@PostConstruct used with Jersey 1.17, Weblogic

java,java-ee,jersey,weblogic,jax-rs

The default "scope" of JAX-RS resource classes is a per-request scope. We can also register the the class as a singleton. Different JAX-RS implementations may have different way this can be accomplished. For example Apache Wink has a @Scope(ScopeType.SINGLETON). But the only portable way is to use an javax.ws.rs.core.Application subclass....

getting a ComplianceException

java,exception-handling,ejb,weblogic,build-process

well I never bothered to check what I was importing when I pressed ctrl + shift + O one exception had the same name but different source

Getting the jsp source code appended with the file content when I download files

java,jsp,jboss,struts2,weblogic

It is happening because you are writing directly in the outputstream, and then returning a struts result, that is your JSP. You are using an action as if it would be a servlet, which is not. In Struts2, to achieve your goal, you need to use the Stream result type,...

Work Manager-Web logic

weblogic,workmanagers

If you create a work manager at the domain level (using the admin console), this modifies config.xml to make it available to all applications. Then in your individual application (weblogic.xml or weblogic-application.xml) you can reference it like: <init-param> <param-name>wl-dispatch-policy</param-name> <param-value>my_workmanager_name_from_config_xml</param-value> </init-param> ...

How to resolve ClassNotFoundException for Throwable in Weblogic 12c

java-ee,glassfish,weblogic,classnotfoundexception,throwable

This is how it should be in web.xml: <error-page> <exception-type>java.lang.Throwable</exception-type> <location>/error.jsp</location> </error-page> ...

Log4J Application Specific Configuration file in Weblogic

weblogic

Make sure log4j jar is in APP-INF/lib Make sure your log4j config file is in the root classpath for the ear (APP-INF/classes) If you don't have one already, add a weblogic-application.xml (see http://docs.oracle.com/cd/E24329_01/web.1211/e24368/app_xml.htm#WLPRG389) to your META-INF directory at the EAR level, and in there include a prefer-application-packages element with...

Error 500--Internal Server Error - ADF

oracle,weblogic,oracle-adf,jdeveloper

I was updated java, and i found two versions in my laptop (Java 7 update 13, Java 8 update 45), i delete the newer version(Java 8 update 45) and the project started normally. Thank you all for your help :)

Unable to display xclock on aix

weblogic,aix,weblogic11g

Xclock started working fine after we reinstalled the X11 libraries. Thanks for eveyone's valuable inputs....

WebLogic SSL Handshake error

http,ssl,https,weblogic

I ended up having to import the certs into my DemoTrust.jks using: keytool -import -trustcacerts -keystore /usr/local/wls12120/wlserver/server/lib/DemoTrust.jks -alias mycert -file ~/certname.cert I did that for each cert in the chain, which I got from the browser. I used the default DemoTrust.jks password: DemoTrustKeyStorePassPhrase. I had also imported the certs to...

Unexpected too big length: 186 - weblogic 12

java,openssl,weblogic,weblogic12c

I ran this command on OpenSSL, passed same file as input and output, Weblogic 12c seems to work with this now. rsa -in ${server_key_name}.pem -passin pass:${server_pass} -out {server_key_name}.pem ...

Removing a Node Manger from WebLogic

java,weblogic

If you attempt to start a managed server through the admin console, it will use the nodemanager. If you do not want to use the nodemanager, you need to call the startManagedWebLogic.sh script instead. This will start the managed server in independence mode. Either pass in the server name and...

Error installing WebLogic server using Console mode in windows 8.1

oracle,weblogic

There's a readme file linked from the product download page http://www.oracle.com/technetwork/middleware/weblogic/downloads/wls-main-097127.html although your experience would suggest that defining MW_HOME isn't optional! ... 1. Extract the contents of the zip to a directory (eg: /home/myhome/mywls) This will create a base directory named wls12130 under /home/myhome/mywls MW_HOME will be the entire directory...

WebLogic Transaction Manager

java,weblogic,xa

That is the correct call - from the documentation: If the initial context is obtained from a non-clustered server, then the server name specified should refer to the same server. If the initial context is obtained from a cluster, then the server name specified should refer to a server within...

How to call java constant variables from jsp expression language in Spring?

java,jsp,spring-mvc,weblogic,scriplets

Keep the import statement simple <%@ page import="static id.co.telkom.common.RNConstant.*" %> Remove ".*" after RNConstant. Also remove static word in the beginning. <%@ page import="id.co.telkom.common.RNConstant" %>. To call HELLO_WORLD constant use <p>${RNConstant.HELLO_WORLD}</p> <p>${RNConstant.HELLO_WORLD}</p> ...

Rebooting JBoss / Wildfly causes webstart to load all jar files again

jboss,weblogic,updates,java-web-start

I'm not sure why it would be different between Weblogic and JBoss but you should do the following in your JNLP file: Specify a version for every jar like: <jar href="my.jar" main="true" version="1.0"/> Specify JNLP version enabled <property name="jnlp.versionEnabled" value="true"/> This should ensure that the versions are checked and only...

How to prevent redirection to SSL port with weblogic?

redirect,web-applications,ssl,weblogic,port

You can set the frontendhost value and a secure port value, this can be set at a domain/server level This will ensure your servers ip and port are not appended to the url. Also did you set the WebLogic Plug-in Enabled Control in WebLogic Server ?...

How to start a Weblogic 12c server without J2EE stuff (JMS, etc.)?

java-ee,weblogic,weblogic12c,wlst

To run the ligher version of WebLogic (without EJB, JMS) add the following option to the command line option startup : -DserverType="wlx"...

What are the Tomcat Equivalent to these WebLogic settings

tomcat,weblogic

Assuming you are talking about HTTP requests and not JDBC connections, in general these are settings in a Tomcat connector, configurable in server.xml: https://tomcat.apache.org/tomcat-8.0-doc/config/http.html The specific values you are looking for are: connectionTimeout socket.soKeepAlive Results time limit is trickier. You will need a valve to do this. See: http://tomcat.apache.org/tomcat-8.0-doc/config/valve.html#Stuck_Thread_Detection_Valve Tomcat...

Timer on WLS 12.1.1

java,java-ee,timer,weblogic

We experiencded the same behaviour with non-persistent calendar based timers on wls 12.1.1. I think this is a bug from Oracle. The problem is already reported to oracle and is listed as BUG 19689036. As a workaround you can use interval timer. For us this solved our problems and still...

Handling wlst exception in python script

python,maven,weblogic,wlst

I'm more of a Look Before You Leap sort of programmer so below is some WLST I used when removing MDS partitions to check they exist first. Unfortunately you have to resort to accessing the MDSDomainRuntime mBean directly as someone forgot to expose the listPartitions methods in WLST. from org.python.modules...

weblogic 12.1.3 config.sh DISPLAY error

java,weblogic,weblogic12c

Console mode was removed somewhere after 12.1.1. The available Modes of Installation are now just graphical or silent.

How to hide Weblogic WLDF Console Extension Tab from Weblogic adinn console?

weblogic,weblogic12c

In general the WLDF extension is not installed by default so someone must have put it there and/or turned it on. To remove it there are 2 options: Navigate to <domain dir>/console-ext and remove the diagnostics-console-extension.jar file. Restart your admin server. Click the perferences link at the top of the...

unexpected error condition deploying war on new WebLogic server

weblogic,weblogic12c

The logs actually tell you what is wrong - the org/apache/commons/io/IOUtils class is missing. I'm not sure why it isn't included in WebLogic but you can get the package which contains this class from the Apache Commons project (http://commons.apache.org/proper/commons-io/download_io.cgi). I was having the same problem but fixed it by copying...

Weblogic Config Files - weblogic-application.xml, weblogic.xml, application.xml, web.xml

java,xml,weblogic,weblogic-10.x,weblogic12c

The web.xml is the standard JEE descriptor for a WAR file. The application.xml is for the EAR file. The weblogic.xml and weblogic-appliation are WebLogic specific files for the WAR and EAR respectively. See sections A and B here: http://docs.oracle.com/middleware/1213/wls/WBAPP/toc.htm ...

404 on weblogic hello world application

weblogic,http-status-code-404

Check your URL again, make sure you are actually referencing the right URL for the server your application is deployed on.

Share same JPA persistence.xml accross multiple EJB JARs inside EAR

java,jpa,weblogic

Deploying the persistence.xml under the EARs META-INF folder will not trigger the server to load the persistence unit (at least not in WebLogic 10g, even with JPA 2.0 enabled). The persistence unit needs to be deployed under /lib using a JAR file. Working structure: EAR + |- lib + |...

Hibernate 4.3.5 to 4.0.1 Exception org.hibernate.loader.MultipleBagFetchException

hibernate,spring-mvc,tomcat,weblogic,java-7

I fixed this. It is basically due to multiple fetchtype.Eager in the entity class which is creating the problem. You can find full information about the fix in "http://blog.eyallupu.com/2010/06/hibernate-exception-simultaneously.html"

JAXB Webservice migrating from Weblogic 10 to 12

java-ee,jaxb,weblogic

The JAXB implementation changed for WLS 12. In Oracle Weblogic WLS10 Glassfish JAXB RI Implementation is provided In Oracle Weblogic WLS12 the EclipseLink Implementaiotn MOXy is provided You can force WLS12 using JAXB RI as described oracle docs You need to override the following two properties in order to tell...

ClassNotFoundException on weblogic cluster node

weblogic,weblogic-10.x

You can try to check if your Classpath is correct using Weblogic CAT tool. https://docs.oracle.com/cd/E24329_01/web.1211/e24368/classloading.htm#WLPRG495 CAT is a Web-based class analysis tool which simplifies filtering classloader configuration and aids you in analyzing classloading issues, such as detecting conflicts, debugging application classpaths and class conflicts, and proposes solutions to help you...