SOLR installation on Websphere Portal - solr

I try to install SOLR 3.6.0 on a Websphere Portal 7.0. It gives me the following messages in the log:
java.lang.NoSuchMethodError: org/apache/lucene/store/FSDirectory.open(Ljava/io/File;)Lorg/apache/lucene/store/FSDirectory;
at org.apache.solr.core.StandardDirectoryFactory.open(StandardDirectoryFactory.java:33&#41
After some research I found some lucene which comes with the Portal server.
This is the place, where it's found:
/opt/IBM/WebSphere/PortalServer/prereq/prereq.lucene/shared/app/lucene.jar.
I suspect that this messed up the classloader. I have changed the classloader policy of the application :(
Have anyone experienced the same and did you find a work around?
Thats in advance for your answers
Cheers,
-Fred

Related

Payara 4.1.2.181 compatibility with Java 7

I can't run payara 4.1.2.181 with java 7 (Orracle jdk 1.7.0_80).
I have no problem with java 8 and the previous build of Payara (4.1.2.172) runs fine with Java 7. I couldn't find any mention about stopping support for Java 7 in this version.
The error I got is this one (server.log):
Caused by: org.osgi.framework.BundleException: Unresolved constraint in bundle fish.payara.microprofile.fault-tolerance.microprofile-fault-tolerance [149]: Unable to resolve 149.0: missing requirement [149.0] osgi.wiring.package; (&(osgi.wiring.package=org.eclipse.microprofile.config)(version>=1.0.0)(!(version>=2.0.0))) [caused by: Unable to resolve 223.0: missing requirement [223.0] osgi.ee; (&(osgi.ee=JavaSE)(version=1.8))]
Co you have any idea how to solve it?
Regards
Piotr
Payara stopped supporting JDK7 for public releases in 4.1.2.173, as explained in this blog post. It is still available for paying customers until 2023. So either upgrade to JDK8 or get Payara support.

WLP :: Worklight :: Can't install runtime

I'm using Worklight 6.2 server edition and I can't deploy a working runtime (of other environments) on my server.
I'm using webpshere liberty profile v8.5.5 and when I deploy the runtime via GUI it says success and on server.xml I can see the new configuration for the app.
However when I go to the worklightconsole I don't see my runtime to upload the app.
On messages.log there is a error regarding JMX connection.
The quoted error is
Failed to obtain JMX connection to access an MBean. There might be a JMX configuration error: No JMX connector is configured
I'm refering this because I've seen some post on SO saying that these issues might be connected. However I have the restConnector-1.0 on my WLP features.
Reference: No runtime on my Worklight 6.2 Console after installing analytics
On messages.log there is some other things that I found interesting, like the correct start of the runtime I've deployed
[11/12/14 5:50:45:177 CST] 00000012 com.worklight.server.bundle.project.JeeProjectActivator I FWLST0002I: ========= Project /HelloWorld started. The project WAR file version is 6.2.0.00.20140922-2259,running on server version 6.2.0.00.20140613-0730. [project HelloWorld]
and two erros while starting my server
[11/12/14 5:50:49:911 CST] 00000012 SystemErr R 24 WorklightPU WARN [Scheduled Executor-thread-1] openjpa.Runtime - An error occurred while registering a ClassTransformer with PersistenceUnitInfo: name 'WorklightPU', root URL [file:/opt/IBM/WebSphere/Liberty/usr/shared/resources/worklight/lib/worklight-jee-library.jar]. The error has been consumed. To see it, set your openjpa.Runtime log level to TRACE. Load-time class transformation will not be available.
Second error:
java.lang.RuntimeException: Timeout while waiting for the management service to start up
I don't know what these are but I think it might be related to my problem and this errors eventually appear when I start my server.
Does anyone have any tips for troubleshooting this issue?
Thanks in advance.
This is a known issue from Websphere.
There is a APAR to fix that, a workaround is to restart the server with the --clean option to force a refresh onto the shared libraries.
http://www-01.ibm.com/support/docview.wss?uid=swg1PI17830

Solr 4.2.1 SSLinitializationException

After upgrading to Solr 4.2.1, deploying the Solr war file to GlassFish version 3.1.1 results in the following error:
2013-04-09 10:45:06,144 [main] ERROR org.apache.solr.servlet.SolrDispatchFilter - Could not start Solr. Check solr/home property and the logs
2013-04-09 10:45:06,224 [main] ERROR org.apache.solr.core.SolrCore - null:org.apache.http.conn.ssl.SSLInitializationException: Failure initializing default system SSL context
at org.apache.http.conn.ssl.SSLSocketFactory.createSystemSSLContext(SSLSocketFactory.java:368)
at org.apache.http.conn.ssl.SSLSocketFactory.getSystemSocketFactory(SSLSocketFactory.java:204)
at org.apache.http.impl.conn.SchemeRegistryFactory.createSystemDefault(SchemeRegistryFactory.java:82)
at org.apache.http.impl.client.SystemDefaultHttpClient.createClientConnectionManager(SystemDefaultHttpClient.java:118)
at org.apache.http.impl.client.AbstractHttpClient.getConnectionManager(AbstractHttpClient.java:466)
at org.apache.solr.client.solrj.impl.HttpClientUtil.setMaxConnections(HttpClientUtil.java:179)
Caused by: java.io.IOException: Keystore was tampered with, or password was incorrect
at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:772)
at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:55)
at java.security.KeyStore.load(KeyStore.java:1214)
at org.apache.http.conn.ssl.SSLSocketFactory.createSystemSSLContext(SSLSocketFactory.java:281)
at org.apache.http.conn.ssl.SSLSocketFactory.createSystemSSLContext(SSLSocketFactory.java:366)
... 50 more
Caused by: java.security.UnrecoverableKeyException: Password verification failed
at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:770)
... 54 more
It seems like people have had this problem when using Solr version 4.2 and the bug fix release 4.2.1 was supposed to fix it (?). Any pointers will be greatly appreciated.
Had the same problems a few days ago. Solved it by downgrading to solr 4.1.0. But there is a solution (found it by googling my personally well known search terms once again ;) Just add two JVM options. Start glassfish with:
asadmin start-domain
and enter:
asadmin create-jvm-options -- -Djavax.net.ssl.keyStorePassword=changeit
asadmin create-jvm-options -- -Djavax.net.ssl.trustStorePassword=changeit
Don't forget to restart glassfish:
asadmin restart-domain
Tried it for myself and works like a charm. Obviously this is working only if you never changed those passwords before.

SOLR error exception issue

We are getting the error below for our SOLR configuration. Any idea about this.
System.TypeInitializationException: The type initializer for org.apache.solr.SolrSharp.Configuration.SolrSearchers threw an exception. ---> System.Configuration.ConfigurationErrorsException: Solr configuration error
at org.apache.solr.SolrSharp.Configuration.SolrSearchers..cctor()
Thanks for your time and help.
I suppose you didn't start (or didn't install) your Solr server.
Download latest version of Apache Solr
Start the server by following the instructions in Solr Tutorial
The default port is 8983 so you should be able to reach your Solr server at localhost:8983/solr
In App.config file in SolrSharp, replace the port in the server's url
This should solve the problem.

Problem using App Engine on Mac Java JRE

I really appreciate the help i've been getting on Stack Overflow, it's helping me become a better programmer.
Im currently learning how to use the Google App Engine, and ive just developed my first app, but im finding it difficult to run. When i run it, it throws the following exceptions:
WARNING: Use on a JRE prior to version 1.6 is deprecated
2011-06-04 12:19:21.190 java[1921:80f] [Java CocoaComponent compatibility mode]: Enabled
2011-06-04 12:19:21.191 java[1921:80f] [Java CocoaComponent compatibility mode]: Setting timeout for SWT to 0.100000
Initializing AppEngine server
[WARN] ********************************************************
Warning: Future versions of the Dev App Server will require Java 1.6 or later. Please upgrade your JRE.
********************************************************
Logging to JettyLogger(null) via com.google.apphosting.utils.jetty.JettyLogger
Successfully processed /Users/josiahuma/Projects/Eclipse/JWorkspace/HelloWorld/war/WEB-INF/appengine-web.xml
Successfully processed /Users/josiahuma/Projects/Eclipse/JWorkspace/HelloWorld/war/WEB-INF/web.xml
Ive tried looking for ways to download and install JRE 1.6 or maybe upgrade it like the error say, but haven't found any on MAC...
Please can anyone help put me through on what exactly i need to do so i can get my first app running. Would really appreciate it.
Upgrade to 10.6. The default JVM is Java 6 there.

Resources