Not able to Connect to DI repository server from Spoon - pentaho

I am trying to connect to DI server from Spoon..(Spoon with DI server) - DI server is running fine.
Few days back when I tried it was working fine. suddenly I dont know where does the issue come from.
I followed the steps from the documentation : http://infocenter.pentaho.com/help/index.jsp?topic=%2Fpdi_user_guide%2Ftask_pdi_usr_connecting_2_repo.html
How do I add DI repository to this? Can anyone help?

There is 3 types of DI repository for Spoon:
file-based repository (free)
db-based repository (free)
jackrabbit (JCR) based repository also known as EE repository (only
for EE)
Typically when you download Spoon or how do they call it now 'Pentaho Data Integration' you download it in form of zip with CE version of Spoon or some kind of 'installer' bundle for EE. For ubuntu that should be binary installer.
Installer contains CE Spoon version inside packaged with EE plugins, EE DI server and some other functionalities.
When you install Spoon using EE installer it is install all EE infrastructure as far as temporary EE licenses.
So since temporary license will expire - EE functionality as far as EE plugins just stops to work (for some cases stop to start).
Usually a warning should be shown when attempt to connect to EE repository. Or if no warning - will be just exception stack-trace. Of if no stacktrace - some menu items will just silently disappears. To draw dialog box 'select repository' Spoon inspects it's run-time for available repository providers and list them accordingly.
As mentioned above to be able to connect to EE DI repostiory required to have:
Spoon installed and able to launch
pur-repository-plugin installed
DI server up and running (on separate tomcat instance)
EE license still active to have 'pur-repository-plugin' able to
connect to EE repository and 'DI server' able to start
If you have any stack-traces - that would be extremely helpful to determine what is really going wrong.
Hope it will help.

Related

log4j2 for MULE 3 CE patch update

I need some information of log4j2 for updating our central versions of Mule CE 3.9.0 and Mule CE 3.9.5 (CE=Community Edition).
What is the best way to protect them and does downloading only jar files from Apache site https://dlcdn.apache.org/logging/log4j/2.12.3/ be useful to patch Mule CE 3.9?
Regards
As a summary you only need to find the vulnerable jars in the mule-server and in the mule flows deployed in the apps folder.
A Java project is a set of java class and libraries with complex dependencies relationship, but easy to replace one of them (manually or automated with maven), so no matter how or where log4j is being used, we just need replace the jar file.
mule community server 3.9.0
In this version, with this command find . -type f -iname "*log4j*" we will get the log4j jars:
As we can see, the version prior to the 2.14.x
log4j-jul-2.8.2.jar
log4j-jcl-2.8.2.jar
log4j-slf4j-impl-2.8.2.jar
log4j-core-2.8.2.jar
log4j-api-2.8.2.jar
log4j-1.2-api-2.8.2.jar
But according to the official maven repository, this version is affected too :(
Just the 2.17.0 is safe to use
Source: https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-core
If this change breaks your mule, just delete the specific vulnerable class:
zip -q -d
log4j-core-*.jar org/apache/logging/log4j/core/lookup/JndiLookup.class
Source: https://www.docker.com/blog/apache-log4j-2-cve-2021-44228/
mule flow or mule app
This is not the server, is the app developed by programmers, packaged as .zip and deployed to the mule apps folder in the server.
In this layer, the app can ignore completely the server configurations and has its own jar versions.
If you don't use maven (rare), you need to search and replace the jar, app by app, similar to the server with find command but in the specific app folder:
/opt/mule_server/apps/my-mule-app
If you use maven, you could find if the jar is used with the pom.xml previewer of Eclipse Ide or with command mvn dependency:tree. Check this:
https://stackoverflow.com/a/68916675/3957754
Remember: If you not use directly this jar, you need to check if mule esb server uses it.
Here some tips from manual to automated pipelines:
mule esb monolithic with manual deployment
In this case you need to fix the server and your apps.
for the server, backup, stop, search the jar on lib folder and replace it with the 2.17 (after vulnerability fix) and start. Test if everything is working
for the mule apps, the process is the same: stop the mule server, go to your mule apps and one by one, search the jar and replace it. Start the mule server and test if everything is working
git repository , maven and one mule app by server
In this case, you don't have a big server with a big mule containing a lot of mule apps/flows. You have one light server for just one mule app.
Just search the dependency in your pom with maven and replace it.
Push your changes and in the next deploy( manual or automated) your mule app will be fixed.
Also note that this approach fix the app, not the server.
git, docker
If you are using docker, the things are easy. Just search the Dockerfile (usually in a git repository). In this file there are a lot of sentences, since the java installation until the star of mule server.
Choose the exact line between the download of mule and the start of server and put a sentence which replace the jar file
Next deploy will pick you new image version and that's all.
automated flow(devops)
Here you are using maven, gi, docker and some ci server. You just need:
update the git repository of your mule app (maven)
update the git repository of your docker image
deploy your fix using the ci server.
With this, you will not need human access to the production servers to fix your java application ( mule)

IBM Worklight - Deploy all adapters at once

I have total 35 (and increasing) Worklight Adapters in my Worklight Hybrid App.
Now every time I power on my Mac, I need to deploy all those work light adapters ONE-BY-ONE
Is there any method by which I can deploy awl the adapters in single shot. As of now, I am unable to find out the way.
Anyone else faced the similar problem?
I am using:
Eclipse Java EE IDE for Web Developers.
Version: Juno Service Release 2
Build id: 20130225-0426
If that matters.
A Deploy All Adapters action is not available in Worklight Studio, but sounds like a rather useful feature for cases like yours. Feel free to submit a feature request.
After you power on the computer, open Eclipse and start the Worklight Development Server, and then visit Worklight Console, the apps and adapters are not available? I find it highly unlikely that you will need to re-deploy all of your adapters...
A possible workaround for it will be to enhance the Ant script that deploys apps and adapters, to deploy them all using a loop. Also see:
Ant tasks for building and deploying applications and adapters

When I run the Application, only "web" engine is running in GlassFish. "webservices" is not started

i tried a simple web service program for the first time.
When I run the Application, only "web" engine is running in GlassFish. "webservices" engine is not started.
i have installed java ee sdk 1.6
I assume you have have created a dynamic web project with Webservices annotations on your classes. On deployment, and logging into Glassfish Admin console and then navigating to Applications and looking under Engines column against your deployed application, Glassfish showing only web and not showing webservices.
To enable the webservices, it appears your classes are not compiling under default build/classes directory.
Do either of the following:
Right click on your project > Build Project.
or Go to eclipse menu > Project > Build Automatically
Now redeploy your application again. webservices Engine should be visible along with web engine.
Make sure you're using Full Profile not Web version of Glassfish
in your glassfish bin folder check if the following command has webservices in it
glassfish4\bin>asadmin list-containers
if not you have the web version
goto https://glassfish.java.net/download.html and download, unzip and replace your files
I had similar problem. Actually project was working with NetBeans and local GlassFish, but when I deployed on GlassFish 4.1.1 (on amazon linux) "webservices" engine did not start. I followed previous answer (form mposadar) and just added in class initializer block:
#WebService(endpointInterface = "service.ITranslate")
public class Translate implements ITranslate
{
{
try {
URL url = new URL("http://MY_INSTANCE.us-west-2.compute.amazonaws.com:8080//Translate/TranslateService?wsdl");
} catch (MalformedURLException ex) {
Logger.getLogger(Translate.class.getName()).log(Level.SEVERE, null, ex);
}
}
...
After build and deploy, "webservices" option works also on remote server, as well link to "View Endpoint" and wisdl is available.
According to oracle page there are differences between webprofile and full profile glassfish
the option
Implementing Java Web Services 1.3
is only ticked for full profile, so wouldnt work if you have the web profile
You can look at the license file name to determine which Full profile or Web profile
<glassfish install dir>/glassfish/legal/3RD-PARTY-LICENSE.txt
<glassfish install dir>/glassfish/legal/3RD-PARTY-LICENSE-WEB-PROFILE
Glassfish documentation also states:
If you are using the web profile, you can also use Update Tool to obtain technologies that are included by default in the full platform, such as:
Enterprise Java Beans
Metro
Jersey
I do have the full profile of GlassFish server, so What i did was to manually execute the wsdl url of my java class. For example:
My Java class is "Test": url = http://localhost:8080/ProjectName/TestService?wsdl
then I reload the aplication tab of the glassfish admin.
done problem resolve.
hope this helps anyone
Delete your glassfish4 server from current eclipse ide(eclipse must support jee).
Go to Windows in eclipse menu bar select show console and choose server.
click install new server link in the console.
Select JDK1.8 not default jre. after that choose glassfish 4.0 to install.
Browse directory where you want your glassfish to be install (better choose in C:/Program Files/glassfish).
Click on install server button. Accept the licence and wait till your glassfish 4.0 get installed by eclipse ide.
Finally deploy your application it'll show webservice and view EndPoint.
There have two type version of Java EE on Oracle website.
i) Java EE 7 Platform SDK
ii) Java EE 7 Web Profile SDK
if you want to see "webservices" engine is start on GlassFish Applications then you have to work with "Java EE 7 Platform SDK" version...

Subclipse - Repository Exploring Fetching Children Takes Forever

I recently got the latest version of Eclipse Indigo for Java Developers - then installed Subclipse using the update site: http://subclipse.tigris.org/update_1.6.x
Now when I go to SVN Repository Exporing perspective - my repository location having been added - when I expand the repository it says "Pending..." and tasks show it is "Fetching children of xxxx..."
Note that I tried using both JavaHL and SVNKit SVN interface. Sometimes it actually does finally show me the directory (after a few minutes), but other times it just sits there forever (one time I let it sit overnight).
But it never seems to show anything even if it let it sit for a really long time. I know this has worked in the past though.
I even created a different installation which had subversive plugin installed instead of subclipse. In this case it seems to be much faster. However, I find that synchronizing with subversive is painful because it tries to refresh the synchronization any time I do anything. Subclipse seemed to work a lot better with synchronizing, so I would really like to get this to work.
Here is a copy of my installation:
Apache Ivy 2.2.0.final_20100923230623
Apache IvyDE 2.1.0.201008101807-RELEASE
Eclipse IDE for Java Developers
Eclipse Java Web Developer Tools 3.3.0.v201103310009-7F7AFO-C25TohFunnht_0yz0s92kZCb4ufuz0TLG
Eclipse Web Developer Tools 3.3.0.v201102200555-7O7IFhJEMiB5vNMYta56_GonLeahqrwnYjv2mBz-
JavaScript Development Tools 1.3.0.v201103031824-7F78FXPFBBoPbXRIcIgs0z0
JNA Library 3.2.7
PHP Development Tools (PDT) SDK Feature 3.0.0.v20110516-1100-77--84_23JBVgSVXO7XGJz0VLa9O
Subclipse (Required) 1.6.18
Subversion Client Adapter (Required) 1.6.12
Subversion JavaHL Native Library Adapter (Required) 1.6.17
Subversion Revision Graph 1.0.9
SVNKit Client Adapter (Not required) 1.6.15
SVNKit Library 1.3.5.7406

IDE for websphere/jython

I would like to develop administrative jython-scripts for WebSphere 7. Is there any IDE (or may be plugins for eclipse) which provides code auto-completition functions, ability to start/stop server, debug jython scripts? I know that there is the Application Server Toolkit 6.1 but it is for WebSphere 6.1 and couldn't be applied to WebSphere 7.
In WAS 7, "IBM Rational Application Developer Assembly and Deploy V7.5" has replaced the AST. "IBM Rational Application Developer V7.5 for WebSphere" is a superset of "IBM Rational Application Developer Assembly and Deploy V7.5". Both ship with your copy of WAS, but the license for RAD is just a trial one, while the license for the assembly and deploy tool does not expire. See:
http://publib.boulder.ibm.com/infocenter/wasinfo/v7r0/index.jsp?topic=/com.ibm.websphere.nd.multiplatform.doc/info/ae/ae/catk_assemblytools.html
Either should allow you to create/debug Jython/wsadmin scripts.
As for Python/Jython there is PyDev Eclipse plugin.
I got frustrated with Jython Wsadmin myself. I built a tool that uses a Groovy-DSL for my configuration:
Datasource
JdbcProvider
SIB, JmsQueue, Top
ActivationSpec
etc.
You can add it as a project dependency in IntelliJ and you got completion and inspection. You will be able to step through the script with a Debugger as in a regular Java program. I didn't test the start/stop server functionality, though.
I went as far as to make it useful for my purpose, pull requests welcome:
https://github.com/revaultch/wsadmin-groovy