cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Not able to import custom Authenticator in Composer

RaajeevHDave
8-Gravel

Not able to import custom Authenticator in Composer

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>
 
 
 
 
 
5 REPLIES 5

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

 

 

Thanks ,

Mukul Narang 

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.

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

Simple extension is working but not Authenticator.

Still this is an issue for you ? if this is resolved please mark the right answer as solution .If not ,explain this more or open a new Thread .

 

 

Thanks ,

Mukul Narang

Announcements


Top Tags