you can disable accessing through absolute url and allow access only with relative url with this htaccess code
RewriteEngine on RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?yourdomain.com [NC] RewriteRule \.(jpg|jpeg|png|gif)$ - [NC,F,L]
you can disable accessing through absolute url and allow access only with relative url with this htaccess code
RewriteEngine on RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?yourdomain.com [NC] RewriteRule \.(jpg|jpeg|png|gif)$ - [NC,F,L]
Exception in thread "main" javax.persistence.PersistenceException: No Persistence provider for EntityManager named
.
├── pom.xml
└── src
├── main
│ ├── java
│ │ └── se
│ │ └── mycomp
│ │ ├── UserTest.java
│ │ └── domain
│ │ └── User.java
│ └── resources
│ ├── META-INF
│ │ └── persistence.xml
│ └── log4j.properties
└── test
└── java
<persistence-unit name="manager1" transaction-type="RESOURCE_LOCAL">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
Check your pom.xml if you have hibernate entity manager as a dependency.
If needed add the hibernate annotations too . No HARM
<dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-entitymanager</artifactId> <version>${hibernate-core-version}</version> </dependency>
Thats it, the errors are gone.