Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi, i m new to developing Talend components using the new component kit, in the documentation, this command,
mvn package talend-component:deploy-in-studio -Dtalend.component.studioHome=/path/to/studio
Hi Samba,
It looks like you put a path to the studio which contains a space and you didn't quote the path.
Concretely you should probably try
mvn package talend-component:deploy-in-studio -Dtalend.component.studioHome="C:/Program Files/Studio"
Hi Samba,
It looks like you put a path to the studio which contains a space and you didn't quote the path.
Concretely you should probably try
mvn package talend-component:deploy-in-studio -Dtalend.component.studioHome="C:/Program Files/Studio"
Hi @rmannibucau, thanks for your quick response, i added quotes and it worked, but after restarting talend, i couldnt see the component, any ideas? once more thanks for your solution
You can check the logs in workspace/.metadata/.log (if there is any error).
You can also connect on your studio through JMX (jvisualvm/jconsole/jmc would do the trick) and check it is registered in talend MBeans.
Hi rmannibucau,
thanks once more for your quick reply, i checked and found out the following error in the log file
MESSAGE 2018-08-07 17:01:18,842 ERROR org.talend.commons.exception.CommonExceptionHandler - javax.websocket.DeploymentException: The HTTP request to initiate the WebSocket connection failed
i m just doing a basic hello world component and nothing more, am i missing any dependencies?
thanks in advance
Hi, @rmannibucau, yes i tweak my config.ini file with
maven.repository=global and the dependencies in my pom.xml file looks like this
<dependency> <groupId>org.talend.sdk.component</groupId> <artifactId>component-server</artifactId> <version>1.0.4</version> <scope> provided </scope> </dependency> <dependency> <groupId>org.talend.sdk.component</groupId> <artifactId>component-api</artifactId> <version>1.0.2</version> <scope>provided</scope> </dependency>
But still i get this error java.lang.IllegalStateException: javax.websocket.DeploymentException: The HTTP request to initiate the WebSocket connection failed
should in case i m behind a proxy, is there any configuration that can fix it?
thanks in advance
Hi Samba,
You should not have component-server in your pom (if it is due to anything unclear in the doc, feel free to mention it, we'll try to clarify it). The starter normally does all the setup for you.
However, it guarantees you have the server 1.0.4 in your local repository but the studio integrated version is likely not this one (which was released only yesterday) so it likely doesn't achieve your original goal.
In terms of proxy, there is no need of any remote communication (it is all local) so you should ensure the proxy does not proxy localhost.
To test the server you can set in your configuration/config.init the property:
component.java.port = 8080 component.environment = dev component.server.jul.forceConsole = true java.util.logging.SimpleFormatter.format = [%4$s] %5$s%6$s%n
It will force the component server to start on localhost:8080 (you can use any port you want) and to log the server output in the console (launch the studio from a terminal). This will allow us to see if there is any issue during the startup. If not you can also check the server is started calling http://localhost:8080/api/v1/environment which should return you a JSON payload with some information about the server.
Hi @rmannibucau,
Thank you, problem solved, just one more question please, in which folder are the newly generated components installed, with the Talend 6 it used to be \plugins\org.talend.designer.components.localprovider_x.x.x.rxxxxxx\components, it seems not to be the case in 7?
best regards
I have a seemingly very similar issue. Can you explain, what exactly solved it for you?
In my case it looks like the Component-Server does not start with the studio (http://localhost:8080/api/v1/environment gives no response).
However when I start the server via mvn talend-component:web, it is available immediately.