# With Spring Boot and Security [closed]

MartVq
37 2

I seem to be having some issue with spring boot and security use with ZK. Everything works just fine until the moment i add a taglib <?taglib uri="zkoss org/zkspring/security" prefix="sec"?> and try to load the page. Then i get an error org.zkoss.xel.XelException: Resource not found: www.zkoss org/zkspring/security.

Been browsing all over the place but seems like most answers are for people using ZK dependencies - unfortunately the company i work for have restricted repository so we have a different approach, thus i guess missing out on some taglib related files.

I did try to go to another project i found online to take the files but been having lots of issues there too (it would seem that everyone have to write their own taglib and related utility class, i thought it would be predefined - PS never done anything with taglibs manually and am new at ZK) as well as issues with tld files - giving me a ton of warnings with pretty much whole thing being red. Maybe i am understanding something wrong?

For reference pom.xml used:

...
<properties>
<java.version>1.8</java.version>
<zk.version>8.6.0.1</zk.version>
</properties>

...
<!-- ZK -->
<dependency>
<groupId>org.zkoss.zk</groupId>
<artifactId>zul</artifactId>
<version>${zk.version}</version> </dependency> <dependency> <groupId>org.zkoss.zk</groupId> <artifactId>zhtml</artifactId> <version>${zk.version}</version>
</dependency>
<dependency>
<groupId>org.zkoss.zk</groupId>
<artifactId>zkbind</artifactId>
<version>${zk.version}</version> </dependency> <dependency> <groupId>org.zkoss.zk</groupId> <artifactId>zkplus</artifactId> <version>${zk.version}</version>
</dependency>
<dependency>
<groupId>org.zkoss.zk</groupId>
<artifactId>zuti</artifactId>
<version>${zk.version}</version> </dependency> <dependency> <groupId>org.zkoss.zk</groupId> <artifactId>zkex</artifactId> <version>${zk.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
</dependencies>


How can i get this all set up? Are there any defined files i need to get from somewhere?

urls amended as the forums does not let me publish these

delete retag edit

### The question has been closed for the following reason "the question is answered, right answer was accepted"by MartVq close date 2021-07-08 00:32:00

Sort by » oldest newest most voted

hawk
3048 1 5
http://hawkphoenix.blogsp...

To use zkspring security tab lib, you should include zkspring security first:

<dependency>
<groupId>org.zkoss.zk</groupId>
<artifactId>zkspring-security</artifactId>
<version>4.0.1</version>
</dependency>


I see, thank you for confirming. Had to go with implementing it manually, but it is good to know for future reference!

( 2021-07-01 04:42:52 +0800 )edit

I assume you accept this answer :)

( 2021-07-06 10:32:42 +0800 )edit