MobileFirst is not related at all here. It's just a web app deployed to the application server. Unlike WebSphere Full profile, WebShere Liberty profile does not come with a UI console....
websphere,chef,ibm,websphere-liberty
As long as the source site does not allow direct download anymore you have to download it yourself and host it somewhere on an http server. Then use this as the source url by overriding the default[:wlp][:archive][:base][:url]in your role where you already have the url toward it: {"name":"websphere", "default_attributes" :...
java,classnotfoundexception,bluemix,websphere-liberty
The jars in the dep-jar folder do NOT get packaged with the final application binary(war). It is meant to be used during compilation only. If you want the jar to be included in the war (use during runtime), you need to include it in WebContent/WEB-INF/lib folder. If you create and...
ssl,https,websphere,websphere-liberty
I'll try to answer your question in parts, as it is quite broad. Enabling SSL To enable ssl in the Liberty profile the easiest is to use WDT (WebSphere Developer Tools) in Eclipse. in the Servers view right click the server and select Utilities > Create SSL Certificate. It will:...
Found the reason. There's a bug in Spring Web 3.1.x where it attempts to close the stream twice. The bug was fixed in Spring Web 3.2.x. Most application servers will not log an error in this situation (as it's actually completely harmless), but WebSphere Liberty freaks out.
Just to clarify a few things. WebSphere Liberty is free for development purposes. For production you may use version downloaded from wasdev.net for free (without support), if the heap size doesn't excess 2GB in the whole organization you are working. See details about that here What the Liberty runtime license...
java,eclipse,websphere-liberty
How do you have your server.xml configured? Given the error you mention, I think it's missing the configuration for writing into the remote directories, which looks something like this: <remoteFileAccess> <writeDir>${writePath}</writeDir> </remoteFileAccess> You can define several write directories and each one can refer to variables or absolute paths, for example:...
The wasJmsClient-2.0 feature isn't available for 8.5.5.2, it is only currently available as a beta. It will be available on June 26th 2015, but that'll only install on top of 8.5.5.6 so you will need to upgrade. There is a wasJmsClient-1.1 feature which is available for 8.5.5.2. If you need...
java,osgi,osgi-bundle,websphere-liberty
Importing the packages in the bundle manifests is the right thing to do. The fact that the bundles don't start is the system's way of telling you early that there's a problem. You may need to explicitly include the Apache xpath libraries in your product extension, since Apache classes are...
html,apache,websphere-liberty,static-content
The minimum folder structure needed is the following + SampleHTMLSite.war - index.html To create the .war file just zip your index.html file and then change the extention of the zipped folder from .zip to .war If you are running Liberty sever in foreground through server run command, as soon as...
java,db2,log4j2,websphere-liberty,log4jdbc
For a WebSphere Liberty server, all of the global server config is done in the server.xml file (located by defualt at WLP_INSTALL/usr/servers//server.xml). You will probably want something along these lines in your server.xml: <dataSource id="myDataSource" jndiname="jdbc/myDataSource" type="javax.sql.DataSource"> <jdbcDriver javax.sql.DataSource="net.sf.log4jdbc.sql.jdbcapi.DataSourceSpy"> <library> <fileset dir="C:/path/to/libs" includes="thedb2jar.jar log4j.jar" /> </library> </jdbcDriver> <properties...
Add <basicRegistry></basicRegistry> to your server.xml. It will not be used by your application since your security-constraint doesn't define any auth-constraint. Regarding your other comment: This might be a result of server trying to interpret your basic auth header and not finding user in the registry. However, if you are using...
worklight,mobilefirst,java.util.logging,websphere-liberty,mobilefirst-server
This is not related to MobileFirst but to the underlying application server that handles the logs creation. AFAIK not WebSphere full profile nor WebSphere Liberty profile provide the ability to separate logs based on their contents. What you could do is create your own tool/script that will go over the...
The Java EE 5 compatibility list shows only servers implementing full profile. WebSphere Liberty currently implements web profile, so cant be listed there. Can I assume that if an implementation supports EE 6 then it also supports all previous EE versions? No, for example Liberty doesn't support EJB 2.x, which...
Liberty profile does not currently extract the .war anywhere. It does extract nested JARs for the purposes of class loading to an internal directory (servers/yourServer/workarea/.../somewhere/); the specific directory will vary and the presence/contents shouldn't be relied upon. I thought of this directory for your other question, but I didn't mention...
You have to add following jars to your WEB-INF/lib folder: cors-filter-1.8.jar java-property-utils-1.9.jar In your web.xml you have to add following rules: <filter> <filter-name>CORS</filter-name> <filter-class>com.thetransactioncompany.cors.CORSFilter</filter-class> </filter> <filter-mapping> <filter-name>CORS</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> ...
jdbc,jta,websphere-liberty,jpa-2.1,jdk6
The problem is that you have a @NamedQuery that references the entity OTHER_TABLE, and that does not exist or not marked as being an Entity (try in both Java class and persistence.xml). If the OtherTable Java class is not an entity and if it MUST remain so, then you could...
web-services,distributed-transactions,websphere-liberty
Liberty profile does yet support WS-AtomicTransaction. Please vote for the request for enhancement at the following URL to show your requirement for this feature. https://www.ibm.com/developerworks/rfe/execute?use_case=viewRfe&CR_ID=61348
You can configure the Liberty Maven Plug-in with a custom server.xml. That server.xml can have a webApplication element that points to the directory of the exploded war file. For example, create your custom server.xml under src/main/wlp directory with: ... <webApplication location="./target/myApp/" name="myApp"/> ... Of course, the location attribute needs to...
WebSphere Liberty supports JAX-RS 1.1, so you dont need to provide servlet class, just use the following fragment in web.xml: <servlet> <servlet-name>javax.ws.rs.core.Application</servlet-name> </servlet> <servlet-mapping> <servlet-name>javax.ws.rs.core.Application</servlet-name> <url-pattern>/rest/*</url-pattern> </servlet-mapping> See also: Configuring JAX-RS applications using JAX-RS 1.1 methods UPDATE The HandlersFactory is from third party libraries, try to add the following...
eclipse,jacoco,websphere-liberty
Are you using JaCoCo 0.7.3 or later? If yes, I suspect the problem is caused by changes in issue #272 because last I checked, WebSphere Liberty profile did not define classes with a CodeSource location, so this heuristic in JaCoCo causes all classes in applications running on WebSphere Liberty profile...
java,websphere,websphere-mq,mq,websphere-liberty
Check these links for connecting Liberty to WMQ. Especially check the second link, how to get WMQ Resource adapter for Liberty. I assume that you installed both the WebSphere Application Server Liberty profile and the extended content for the Liberty profile Connecting WebSphere Application Server Liberty profile to WebSphere MQ...
The Liberty buildpack you find on GitHub should be pretty similar to the one Bluemix uses especially in terms of features. Beta features are included and auto-configuration should work so in theory if you do cf push appName -b https://github.com/cloudfoundry/ibm-websphere-liberty-buildpack.git -p myapp.war it should work the same way if you...
websphere-liberty,bluemix,buildpack
I suppose your application is using Spring Framework, and this triggers the Spring Auto-Reconfiguration. If you don't need this auto-reconfiguration support, you can disable it by setting the below environment variable for your application and do a restage: cf set-env <app-name> JBP_CONFIG_SPRINGAUTORECONFIGURATION "enabled: false" cf restage <app-name> ...
java,servlets,glibc,bluemix,websphere-liberty
Cloud Foundry supports "stacks" which define the operating system runtime your application will be deployed onto. [10:04:11 ~]$ cf stacks Getting stacks in org [email protected] / space dev as [email protected] OK name description lucid64 Ubuntu 10.04 seDEA private cflinuxfs2 Ubuntu 14.04.2 trusty Currently, IBM Bluemix is deploying applications onto the...
The list of ciphers supported by the IBM JDK can be found https://www-01.ibm.com/support/knowledgecenter/SSYKE2_7.0.0/com.ibm.java.security.component.71.doc/security-component/jsse2Docs/ciphersuites.html and for the Oracle JDK http://docs.oracle.com/javase/7/docs/technotes/guides/security/SunProviders.html. So you should use the format the JRE your are using supports. You did not provide your complete SSL configuration. At least I don't think you did. The enabledCiphers attribute belongs...
"WEB-INF/classes" is part of your classpath. You can continue to read files as you do, by adding another folder to the classpath of the server. In that folder you would have the configuration files. But you can also access the file directly like this: InputStream systemParamInputStream=new FileInputStream(filePath); The trick would...
java,websphere-liberty,bluemix
The problem was simply because I was compiling my web application using a 1.8 JDK when I should have been using a 1.7 JDK. As soon as I swapped the JDK, the problem was fixed. The error message threw me because it was very specific, but didn't mention anything about...
It is not possible to modify the JVM application classpath (normally specified via the -classpath JVM argument or the CLASSPATH environment variable). I would recommend using a <library> to give your applications visibility to the resources. If you need a directory, you should use <library><folder dir="..."/></library>. (As an aside, modifying...
Liberty will perform path normalization on all variables unless the attribute is defined as a password type. The only way to get around this currently would be to include the backslash character in server.xml rather than bootstrap.properties. For example, in server.xml: <jndiEntry value="${var1}\${var2}" jndiName="jndi/var1" id="var1"> bootstrap.properties: var1=AB var2=BC ...
java,jconsole,websphere-liberty
Ensure you don't have localConnector-1.0 feature. If you have that, please remove it. You can find more details here Remote monitoring of Liberty with Health Center. Although it discusses Health Center connection, I was testing using JConsole also. UPDATE You might be invoking console with incorrect params - it should...
java,android,ibm,websphere-liberty,bluemix
Have you downloaded the boilerplate source and taken a look? The CRUD functions are implemented in src/example/jpa/TODOListResource.java WebContent/index.js shows how to call api/todolist...
java,servlets,websphere-8,websphere-liberty
By default, your app's context root will default to the name of the application. You can change it (including setting it to /) by looking at the server on the Servers tab and editing its configuration. You can make changes in the GUI or directly in the server.xml. If your...
eclipse,java-ee,websphere,websphere-liberty
You also need a <classloader> element in your application definition in the server.xml, which references the shared library. For example, <application id="myapp" name="My App" type="war" location="somewhere.war"> <classloader commonLibraryRef="ExternalLibs" /> </application> Alternatively, if your application is the only user of the library, you could package it in the WEB-INF/lib folder of...
java,caching,websphere-liberty
Looks like a typo, as in distributedMap configuration you provided jndiName="services/cache/baseCache" and in lookup you use: ctx.lookup("services/cache/TestCache") If you would not provide custom jndiName, then the default services/cache/distributedmap. See distributedMap-1.0...
Currently WebSphere Liberty only supports the following values for securityMechanism: value="3" name="CLEAR_TEXT_PASSWORD_SECURITY" value="4" name="USER_ONLY_SECURITY" value="7" name="ENCRYPTED_PASSWORD_SECURITY" value="9" name="ENCRYPTED_USER_AND_PASSWORD_SECURITY" value="11" name="KERBEROS_SECURITY" value="12" name="ENCRYPTED_USER_AND_DATA_SECURITY" value="13" name="ENCRYPTED_USER_PASSWORD_AND_DATA_SECURITY" value="15" name="PLUGIN_SECURITY" value="16" name="ENCRYPTED_USER_ONLY_SECURITY" If you would like to have...
I found the following works for me: In the Libery server, add the following Web Container Custom Properties “httpsIndicatorHeader” in server.xml <webContainer httpsIndicatorHeader="Front-End-Https"/> In the Apache Server, add the following custom header to the virtual host configuration: <VirtualHost 1.2.3.4:443> : : RequestHeader add Front-End-Https "httpsIndicatorHeader" : : </VirtualHost> The following...
eclipse,debugging,intellij-idea,remote-debugging,websphere-liberty
The error message shows that IntelliJ IDEA can't establish a network connection to the debuggee process. One common reason for this problem is a local firewall rule that blocks network connections from IntelliJ IDEA.
Found the issue in the ResourceScanner class. Websphere application servers use a jar naming convention of wsjar. I created a fix here https://github.com/ohiocowboy/dandelion/tree/feat/liberty
spring,websphere,jndi,websphere-liberty
This is not correct way to do it. Do as follows: In Eclipse, go to Help > Eclipse Marketplace Search for ibm liberty, you will find - WebSphere Application Server Liberty Profile Developer tools for Luna (or other Eclipse version you are using). Install the tools. After installation, you will...
java,jvm,classloader,websphere-liberty
While writing the third bullet for my question, I realized that console.log was actually a new file that didn't previously exist, and I hadn't actually checked what was in it. I just opened it up and lo and behold, it's exactly the class loading logs that I was looking for....
It is possible, but only via an SPI (meaning only in a user or product extension, not in an application). https://www-01.ibm.com/support/knowledgecenter/api/content/SSD28V_8.5.5/com.ibm.websphere.javadoc.liberty.doc/com.ibm.websphere.appserver.spi.kernel.service_1.1.0-javadoc/com/ibm/wsspi/kernel/service/location/VariableRegistry.html The VariableRegistry will be a discoverable OSGi Service (choose your favorite discovery mechanism, I recommend DS)....
java,command-line,websphere,server,websphere-liberty
This error is related to the LOG_FILE environment variable that you have defined in your environment by some other program. To solve that, you have the following opions: Remove LOG_FILE env variable, if it is no longer needed by your system If you cant do that, override it via server.env...
java,debugging,intellij-idea,websphere-liberty
This usually happens when the version of the source code you're breakpointing in is not the same as the version running on the remote JVM. Look for the version of the jar in the title bar of IntelliJ and verify that it's the same as the jar on Websphere.
jms,websphere-liberty,message-driven-bean
There isn't a direct equivalent, but you can change the server xml so the activation specification binding no longer matches. When the server picks up the new configuration, which is dynamic by default, the binding won't match and the mdb will stop.
authentication,encryption,encoding,datasource,websphere-liberty
WebSphere Liberty uses an adapter to manage it's database connections. By specifying an authentication alias the password used by the adapter will be encrypted. If you do not use an auth alias, the userID and password will get stored without encryption on adapter properties. Additionally, aliases provide another layer of...
worklight,worklight-adapters,websphere-liberty,worklight-runtime
Here's my attempt to answer this after some consultation: My question is, what will happen on a cluster environment. Will repeated work ensue? By other words, would my two WL Servers will be pooling for events? While the Worklight Servers share the same runtime, they are still considered as 2...
ant,websphere-8,websphere-liberty
I've tested the following build file on ant 1.7.1 and it works fine. I'm getting your error, if I remove wlp-anttasks.jar from ant\lib folder. So double check, if the file is there and is readable - correct permissions? Maybe you are running build from different user? Or maybe you don't...
rest,annotations,websphere-liberty,apache-wink
I am afraid you can only define this via web.xml file. This is also the way WINk supported. In your case, even if you have @ApplicationPath("rest") defined,you can also have a web.xml.
java,log4j2,jvm-arguments,websphere-liberty
Shell and variable expansion are not supported in jvm.options - check this page Customizing the Liberty profile environment - however server.config.dir is default working directory so setting: -Dlog4j.configurationFile=./log4j2.xml should work.
Setting up the tools to understand a server with a different usr directory is possible (being able to keep the Liberty configuration source-controlled is really useful). Assuming you already have a runtime environment set up for the Liberty server, open your preferences and navigate to Servers->Runtime Environments. Edit the server...
So apparently I needed to add a line to the jvm.options file -DLog4jContextSelector=org.apache.logging.log4j.core.async.AsyncLoggerContextSelector The jvm.options file is located here: ${server.config.dir}/jvm.options And that directory can be found by using the link: http://www-01.ibm.com/support/knowledgecenter/SSEQTP_8.5.5/com.ibm.websphere.wlp.doc/ae/rwlp_dirs.html?cp=SSEQTP_8.5.5%2F1-3-11-0-2-0 In my case it is at: C:\eclipse\runtime\usr\servers\serverName...
multithreading,web-services,jax-rs,websphere-liberty
I'm not sure what kind of concurrency issues you might be thinking of. The object itself can be either a singleton or request scoped (if using CDI) or a stateless session bean (if using EJB). If you're using a singleton, then you may need to be thread aware and not...
Your problem appears to be that you want to move your @Inject into a class that is not a component the container performs injection on. This is masked by the way you're assigning a new'ed up object to your injection point. In components that actually do support injection, the injection...
single-sign-on,bluemix,websphere-liberty
Security constraints are not specific to Liberty or Bluemix. It's a way to define access to url mappings using web.xml. If you google "Java ee security constraints", you should find a lot of useful information. See this blog post for a basic definition in relation to bluemix.
windows-services,mobilefirst,websphere-liberty
Here's our complete solution: 1. Start CMD as administrator and run this: sc create WASLibertyV85 binPath= "C:\Program Files\IBM\WebSphere\Liberty\bin\server.bat start worklight" DisplayName="IBM WebSphere Liberty V8.5 Worklight" start=delayed-auto 2. under Services.msc open the properties of the „IBM WebSphere Liberty V8.5 Worklight“ service and set this (if not already): Tab GENERAL -> Startup...
db2,websphere,log4j2,websphere-liberty
Someone resolved this issue by checking "Non-transactional data source" in WAS: http://websphereissues.wordpress.com/2013/08/30/dsra9350e-operation-connection-commit-is-not-allowed-during-a-global-transaction/ Can you give that a try?...
If you pick up the latest Liberty profile beta you can configure the osgiAppConsole-1.0 feature which will make a web based console available for seeing the content of the OSGi application. There is a blog post on how to use this on wasdev.net...
worklight,worklight-server,websphere-liberty
My initial "smell" of the problem is that sometimes your VPN connection with LDAP is very slow or your LDAP server is taking too long to respond. My suggestion is that you try using WAIT(wait.ibm.com), it's a non invasive easy to use diagnostic tool, to further investigate. If you find...
In the 8.5 release the WebSphere Application Server product suddenly gained two different server runtimes, these are referred to as server profiles. The classic server that existed prior to 8.5 is called the full profile, and the lightweight dynamic server is the Liberty profile. What is normally referred to as...
java,websphere,dropwizard,websphere-liberty
The Liberty profile doesn't currently set the CodeSource for application classes. As you note this is addressed in the current beta and will be addressed when 8.5.5.6 is released on June 26th.