Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Amit Doshi
Gettting error on building Remote Service of liferay 6.1.2 with Maven
October 29, 2012 2:10 AM
Answer

Amit Doshi

Rank: Liferay Master

Posts: 543

Join Date: December 29, 2010

Recent Posts

Hi All,

While trying to build remote service in liferay portlet with Maven and trying to generate the WSDD file. I am getting the following error while trying to run the below command.

mvn liferay:build-wsdd


14:10:39,306 WARN [JavaUtils:1308] Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.
Java2WSDL com.asd.service.http.CustomRolePermissionServiceSoap
WSDL2Java F:\Projects\ASD Sprint4\liferay\Plugins\customRolePermission\customRolePermission-portlet\20121029141038556\service.wsdl
Running Wsdl2javaAntTask with parameters:
verbose:false
debug:false
quiet:false
server-side:true
skeletonDeploy:false
helperGen:false
factory:null
nsIncludes:[]
nsExcludes:[]
factoryProps:[]
testCase:false
noImports:false
NStoPkg:{}
output:F:\Projects\ASD Sprint 4\liferay\Plugins\customRolePermission\customRolePermission-portlet\20121029141038556
protocolHandlerPkgs:
deployScope:
URL:F:\Projects\ASD Sprint 4\liferay\Plugins\customRolePermission\customRolePermission-portlet\20121029141038556\service.wsdl
all:false
typeMappingVersion:1.2
timeout:45000
failOnNetworkErrors:false
printStackTraceOnFailure:true
namespaceMappingFile:null
username:null
:passwordnull
:noWrappedfalse
:allowInvalidURLfalse
:implementationClassNamenull
:classpathnull
http.proxyHost=null
http.proxyPort=null
http.proxyUser=null
http.proxyPassword=null
socks.proxyHost=null
socks.proxyPort=null
java.net.MalformedURLException: unknown protocol: f
at java.net.URL.<init>(URL.java:574)
at java.net.URL.<init>(URL.java:464)
at java.net.URL.<init>(URL.java:413)
at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.startDocumentEntity(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl.setInputSource(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:369)
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:420)
at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:482)
at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
at java.lang.Thread.run(Thread.java:619)
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 9.265s
Finished at: Mon Oct 29 14:10:39 IST 2012
Final Memory: 9M/34M
------------------------------------------------------------------------
Failed to execute goal com.liferay.maven.plugins:liferay-maven-plugin:6.1.20:build-wsdd (default-cli) on project customRolePermission-portlet: WSDL processing error for F:\Projects\ASD Sprint 4\liferay\Plugins\customRolePermission\customRolePermission-portlet\20121029141038556\service.wsdl :
unknown protocol: f
-> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.




My Service.xml

 1
 2<?xml version="1.0" encoding="UTF-8"?>
 3<!DOCTYPE service-builder PUBLIC "-//Liferay//DTD Service Builder 6.0.0//EN" "http://www.liferay.com/dtd/liferay-service-builder_6_0_0.dtd">
 4<service-builder package-path="com.asd">
 5    <author>amit.doshi</author>
 6    <namespace>CustomRoleService</namespace>
 7
 8    <entity name="CustomRolePermission" local-service="true" remote-service="true">
 9        <column name="id" type="long" primary="true" />
10        <column name="name" type="String" />   
11    </entity>
12</service-builder>


Please help me out, I really got stuck in maven.

Thanks in advance.
Amit Doshi
Amit Doshi
RE: Gettting error on building Remote Service of liferay 6.1.2 with Maven
October 29, 2012 9:11 AM
Answer

Amit Doshi

Rank: Liferay Master

Posts: 543

Join Date: December 29, 2010

Recent Posts

Please help..
Bart Simpson
RE: Gettting error on building Remote Service of liferay 6.1.2 with Maven
October 30, 2012 12:29 AM
Answer

Bart Simpson

Rank: Liferay Master

Posts: 523

Join Date: August 29, 2011

Recent Posts

Just noticed :
java.net.MalformedURLException: unknown protocol: f

URL:F:\Projects\ASD Sprint 4\liferay\Plugins\customRolePermission\customRolePermission-portlet\20121029141038556\service.wsdl

Unable to find required classes


May be that explains it.
Amit Doshi
RE: Gettting error on building Remote Service of liferay 6.1.2 with Maven
October 30, 2012 12:28 AM
Answer

Amit Doshi

Rank: Liferay Master

Posts: 543

Join Date: December 29, 2010

Recent Posts

But how to change that in maven or in pom.xml?
Bart Simpson
RE: Gettting error on building Remote Service of liferay 6.1.2 with Maven
October 30, 2012 12:31 AM
Answer

Bart Simpson

Rank: Liferay Master

Posts: 523

Join Date: August 29, 2011

Recent Posts

You have to ensure the dependencies are correct, so at-least it should be able to find the required classes. I'll check it as soon as I get some time and update.
Gaurav Jain
RE: Gettting error on building Remote Service of liferay 6.1.2 with Maven
October 30, 2012 12:36 AM
Answer

Gaurav Jain

Rank: Regular Member

Posts: 141

Join Date: January 31, 2011

Recent Posts

Maybe situation is:
- You created service in your plugin
- Then you tried creating client with wsdl, but you selected the local dir path
- Instead you may try selecting it from url

http://localhost:8080/your-plugin-portlet/api/axis/Plugin_your--service?wsdl
Amit Doshi
RE: Gettting error on building Remote Service of liferay 6.1.2 with Maven
October 30, 2012 12:38 AM
Answer

Amit Doshi

Rank: Liferay Master

Posts: 543

Join Date: December 29, 2010

Recent Posts

Yes Gaurav you are right, I want to create the server-config.WSDD file so when i try to run the command mvn liferay:build-wsdd. it gives me above errors.
Ludovic Dussart
RE: Gettting error on building Remote Service of liferay 6.1.2 with Maven
May 28, 2013 6:35 AM
Answer

Ludovic Dussart

Rank: New Member

Posts: 7

Join Date: February 25, 2013

Recent Posts

This is a bug :

http://issues.liferay.com/browse/MAVEN-75

Move your project in a nospace emplacement and re-run liferay:build-wsdd emoticon
Amit Doshi
RE: Gettting error on building Remote Service of liferay 6.1.2 with Maven
May 28, 2013 7:04 AM
Answer

Amit Doshi

Rank: Liferay Master

Posts: 543

Join Date: December 29, 2010

Recent Posts

Thanks Ludovic for idenfiying the Ticket. I will keep a track on it.

Currently I am in between other projects so can't work instantly on it , but surely i will give a try for it as you mentioned.