Skip to main content
1-Visitor
April 2, 2019
Question

Not able to import custom Authenticator in Composer

  • April 2, 2019
  • 1 reply
  • 2010 views

I have created custom Java Authenticator and trying to import Zip file but it is giving me below error.

 

2019-04-02 16:22:02.950+0530 [L: ERROR] [O: E.c.t.w.Importer] [I: ] [U: Administrator] [S: ] [T: http-nio-8080-exec-2] [message: Entity Import Not Supported for File Type: .zip] com.thingworx.common.exceptions.InvalidRequestException: Entity Import Not Supported for File Type: .zip
    at com.thingworx.webservices.Importer.importFromAttachment(Importer.java:228)
    at com.thingworx.webservices.Importer.service(Importer.java:175)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
 
MetaData.XML
 
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<Entities>
<ExtensionPackages>
<ExtensionPackage dependsOn="" description="" minimumThingWorxVersion="8.3.0" name="CustomLogin" packageVersion="1.0.0" vendor="">
<JarResources>
<FileResource description="" file="customlogin.jar" type="JAR"/>
</JarResources>
</ExtensionPackage>
</ExtensionPackages>
<Authenticators>
<Authenticator aspect.isEditableExtensionObject="true" className="com.thingworx.extension.CustomAuth" description="" enabled="false" name="CustomAuth" priority="1" requiresChallenge="false" supportsSession="false"/>
</Authenticators>
</Entities>
 
 
 
 
 

1 reply

5-Regular Member
April 3, 2019

I believe you are trying to import it as an extension instead of doing an import as a file ?

 

 

Thanks ,

Mukul Narang 

1-Visitor
April 3, 2019

Yes we were trying using Extension not file import. We have resolved our issue by compiling it using Ant. Gradle Compilation is not working . Mean if create Zip using Ant it is working but with Gradle it is not.

5-Regular Member
April 3, 2019

That's great if you were able to resolve it .But it must work with Gradle as well .I build every extension which Gradle only .

 

 

Thanks,

Mukul Narang