Tuna Töre

Learn the latest Spring Framework and pass Spring Core Certification 4.x with online udemy training


Hi,

I am Tuna Tore and the owner of this technical blog;

I created an online course for learning the details and usages of Spring Framework in commercial environments.

If you would like to learn the latest version of Spring Framework with step by step examples/codes and pass Core Spring Framework Certification 4.x then you can attend this udemy course through the following link;

Spring Framework 4.x Course and Core Spring Certification

Spring Framework and Core Spring Certification Udemy course with discount

Spring Framework and Core Spring Certification Udemy course with a discount coupon

If you attend this course through this link, I will provide you a %20 discount coupon.
Actual course price is 49 euros and with this link you will be able to learn and code Spring Framework Applications by only paying
39 euros (instead of 49 euros)

Here you can find the contents of udemy Spring Framework Course;

  • Spring Container, Dependency, and IOC (Inversion of Control)
  • Spring Aspect Oriented Programming
  • Spring JDBC, Transactions, and ORM (Hibernate)
  • Spring MVC
  • Spring Security
  • Spring Messaging (JMS)
  • REST
  • Unit Testing with JUnit for Spring Applications
  • Library Management with Maven using STS (Spring Tool Suite)

After attending the course, if you have any questions, I will be ready to support you.

Regards,

07/07/2015 Posted by | Exceptions, Hibernate, J2EE, Java, Spring Framework, udemy | , , , , , , | Leave a comment

maven Not authorized , ReasonPhrase:Unauthorized


[ERROR] Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5: Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.5 from/to nexus (http://repository/nexus/content/groups/public/): Not authorized , ReasonPhrase:Unauthorized. -> [Help 1]
[ERROR]

in settings.xml file under C:\Users\username\.m2 you should set the correct password

<servers>
<server>
<id>nexus</id>
<username>test@testsystem</username>
<password><strong>testpass</strong></password>
</server>
</servers>

06/07/2015 Posted by | Maven | | Leave a comment

selectOneMenu prime faces


<p:selectOneMenu style="width:146px" id="server" value="#{loginBean.user.server}" >
<f:selectItem itemLabel="SERVER1" itemValue="SERVER1" />
<f:selectItem itemLabel="SERVER2" itemValue="SERVER2" />
</p:selectOneMenu>

29/06/2015 Posted by | JSF, JSF 2.0 | Leave a comment

p:commandButton


<p:commandButton ajax="true" action="#{loginBean.login}" value="Login"
 update="panel"
 style="margin-left:0px" />

29/06/2015 Posted by | JSF, JSF 2.0 | Leave a comment

h:graphicImage usage in JSF


<h:graphicImage style="width:140px" value="images/banner_start.gif" />

29/06/2015 Posted by | Uncategorized | , | Leave a comment

Spring Framework 4.x and Certification udemy course


This udemy course will teach you the following lectures with hands on code samples and sample applications;

      Click here to attend Spring Framework 4.x and certification course with a discount

Spring Framework and Core Spring Certification udemy course with discount

Spring Framework 4.x and Core Spring Certification Udemy course

  • Installing Spring Tool Suite and Java JDK 8.0
  • Learn how to use Maven by editing pom.xml for library management
  • Provides information about Core Spring Framework 4.x certification and passing scores
  • You will learn how to debug, test and run Spring Framework applications
  • Understand how to use Spring Framework’s Container
  • Understand how to use constructor and setter injection works
  • Learn the bean life cycle in Spring Framework
  • Understand the usage of BeanFactoryPostProcessors and BeanPostProcessors
  • How to use @ComponentScan annotation
  • Understand the usage of <context:component-scan/> tag in application-context.xml file
  • How to define scopes for bean in XML configuration and annotation configuration
  • How to use @Bean annotation with @Scope annotation
  • How to configure PropertyPlaceholderConfigurer in XML configuration or Java based Configuration
  • How to use @Autowired and @Qualifier annotations
  • How to use @PostConstruct and @Predestroy JSR-250 annotations
  • How to configure init-method and destroy-method in Spring XML Configuration
  • Understand how to use <bean/> tag in XML configuration
  • How to use  <context-annotation-config>  tag in XML configuration
  • How to use ClassPathXmlApplicationContext, FileSystemXmlApplicationContext, XmlWebApplicationContext and AnnotationConfigApplicationContext
  • How to configure JUnit with Spring Framework applications
  • How to use @RunWith(SpringJUnit4ClassRunner.class) 
  • How to use @ContextConfiguration
  • Understand the usage of @Value annotation
  • Learn how to configure profiles with @Profile annotation
  • Learn how to use Bean Inheritance in Spring Framework
  • How use abstract beans in Spring Framework
  • How to use <context:property-placeholder/> 
  • How to configure PropertySourcesPlaceholderConfigurer in JavaConfig
  • How to implement FactoryBean interface in Spring Framework
  • How to use @Configuration annotation in Spring Framework
  • How to define AnnotationConfigApplicationContext
  • How to use AbstractJUnit4SpringContextTests
  • How to implement ApplicationContextAware interface
  • See how to use <util:properties/> in XML configuration files
  • Understand how to use basic SpEL (Spring Expression Language) in properties
  • How to define inner beans in XML configuration
  • How to get beans from application-context.xml with getBean() method
  • How to close Application Context with ConfigurableApplicationContext
  • How to use @PropertySource annotation
  • Understand the usage of Aspect Oriented Programming (AOP)
  • Learn cross cutting concerns in programming
  • Learn the following concepts; pointcut, jointpoint, advice and aspect
  • How to use @Aspect annotation
  • Learn how to use <aop:config>, <aop:pointcut>, <aop:after>, <aop:before>, <aop:after-throwing>, <aop:after-returning>,  <aop:around> and <aop:aspect> tags in XML configuration
  • Understand the usage of @EnableAspectJAutoProxy annotation
  • Understand the usage of <aop:aspectj-autoproxy />
  • How to define named pointcuts
  • Learn how to use @Pointcut, @Before, @After, @AfterThrowing, @AfterReturning  and @Around annotations
  • Learn the difference between checked and unchecked exceptions in Java Programming
  • Learn DataAccessException in Spring Framework
  • Learn how to define DriverManagerDataSource or BasicDataSource in XML configuration
  • Understand how to use JDBCTemplate when accessing databases
  • Learn how to define <jdbc:embedded-database/> and <jdbc:script/>
  • Learn the usages of RowMapper, RowCallbackHandler and ResultSetExtractor
  • Learn how to define DataSourceTransactionManager
  • How to use @Transactional annotation
  • Understand how to use TransactionTemplate
  • Learn the usage of Propagation object
  • Learn the usage of @Transactional(rollbackFor=YourException.class)
  • Learn the usage of @Transactional(noRollbackFOr=YourException.class)
  • Learn the usage of @Rollback(value=false) annotation
  • Learn how to configure entityManagerFactory with Hibernate in Spring Framework
  • How to use @Entity and @PersistentContext annotations
  • Understand what is MVC (Model View Controller)
  • How to use DispatcherServlet
  • Understand how to edit web.xml file for configurations
  • Understand the usage of @Controller and @RequestMapping annotations
  • How to configure SimpleUrlHandlerMapping using XML configuration
  • How to configure ContextLoaderListener in web.xml
  • How to define <contextConfigLocation/> tag in web.xml
  • How to use @RequestParam and @PathVariable annotations
  • Understand the usage of ModelAndView
  • How to define InternalResourceViewResolver in configuration files
  • How to define DelegatingFilterProxy in web.xml
  • How to use <intercept-url/> in Spring Security
  • How to use @Secured and @RolesAllowed annotations
  • Understand the usage of <authentication-manager/> tag in Spring Security
  • Understand the usage of <password-encoder/>
  • How to configure <salt-source/> in Spring Security
  • Understand how to define <jdbc-user-service/>
  • How to configure <access-denied-handler/>
  • Understand how to configure <form-login/> in Spring Secuirty
  • Understand how to use JMS (Java Message Service) in Spring Framework
  • How to use JMSTemplate 
  • How to implement MessageListener interface
  • Learn how to configure ApacheMQ for messaging in Spring Framework
  • Learn how to configure <jms:listener-container/>
  • Learn how to use topics and queues
  • How to configure MDP (Message Drivern POJOs)
  • How to develop REST web services with Spring Framework
  • How to use <mvc:annotation-driven /> and @EnableWebMvc
  • How to use RestTemplate in Spring Framework
  • How to use RequestMethod types in Spring Framework
  • How to use @ReponseBody, @RestController, @ExceptionHandler and @ResponseStatus annotations
  • How to use RestTemplate in Spring Framework

You will learn the following topics
Container Basics
Dependecy Injection and IOC (Inversion of Control) Principles
AOP (Aspect Oriented Programming)
JDBC (JDBC Template), Transactions and ORM (Object-relational Mapping)
Spring MVC (Model-View-Controller)
Spring Security
Messaging (JMS) Java Message Service
REST (Representational State Transfer)

    Click here to attend Spring Framework 4.x and certification course with a discount

23/06/2015 Posted by | Spring Framework | , , , , , , , , , , , , , , , , | Leave a comment

ui:repeat is not working solution JSF 2.x version, How to enable ui:repeat tag


If ui:repeat tag is not working/rendered in your facelet based JSF application,
you should add the correct dependencies using Maven;

There are two approaches like as below;
one jar solution

 <dependency>
 <groupId>javax.faces</groupId>
 <artifactId>javax.faces-api</artifactId>
 <version>2.2</version>
 <scope>provided</scope>
</dependency>

or only the following two jars

 <groupId>com.sun.faces</groupId>
 <artifactId>jsf-impl</artifactId>
 <version>2.2.9</version>
</dependency>

<dependency>
 <groupId>com.sun.faces</groupId>
 <artifactId>jsf-api</artifactId>
 <version>2.2.9</version>
</dependency>

17/06/2015 Posted by | Facelets, JSF 2.0 | | Leave a comment

HSQLDB init servlet configuration web.xml and util class


In order to configure HSQLDB in web application before accesing it, you can extends HttpServlet
and initialize it within web.xml file so HSQLDB will be available inside the application

hypersql


package hsqldb;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;

import org.hsqldb.Server;
import org.hsqldb.persist.HsqlProperties;

public class InitHSQLDB extends HttpServlet {

	private static final long serialVersionUID = 1L;

	private Server server = null;
	@Override
	public void init() throws ServletException {
		super.init();
		server = new Server();
		try {
			System.out.println("Start Database");
	        HsqlProperties properties = new HsqlProperties();
	        properties.setProperty("server.database.0", "jdbc:hsqldb:mem://localhost");	        
	        properties.setProperty("server.port", "9001");
	        Server server = new Server();
	        server.setProperties(properties);
	        server.start();
	        System.out.println("Database is started");
		} catch (Exception e) {
			throw new ServletException(e);
		}		
	}
	
	@Override
	public void destroy() {		
		   super.destroy();
		   server.stop();
		   server.shutdown();
	}
}

web.xml configuration

 <servlet>
    <servlet-name>InitDatabase</servlet-name>
    <servlet-class>hsqldb.InitHSQLDB</servlet-class>
    <load-on-startup>1</load-on-startup>
  </servlet>

maven dependency

  <dependency>
     <groupId>org.hsqldb</groupId>
     <artifactId>hsqldb</artifactId>
     <version>2.2.9</version>
  </dependency>

log

INFO: Initializing Mojarra 2.1.13 ( 20120907-1514) for context ‘/jsf’
Jun 16, 2015 4:12:46 PM com.sun.faces.spi.InjectionProviderFactory createInstance
INFO: JSF1048: PostConstruct/PreDestroy annotations present. ManagedBeans methods marked with these annotations will have said annotations processed.
Jun 16, 2015 4:12:47 PM org.primefaces.webapp.PostConstructApplicationEventListener processEvent
INFO: Running on PrimeFaces 5.2
Start Database
[Server@185a8812]: [Thread[localhost-startStop-1,5,main]]: checkRunning(false) entered
[Server@185a8812]: [Thread[localhost-startStop-1,5,main]]: checkRunning(false) exited
[Server@185a8812]: Initiating startup sequence…
[Server@185a8812]: Server socket opened successfully in 3 ms.
[Server@185a8812]: Initiating shutdown sequence…
[Server@185a8812]: [Thread[HSQLDB Server @185a8812,5,main]]: Shutting down because there are no open databases
[Server@185a8812]: Shutdown sequence completed in 4 ms.
[Server@185a8812]: 2015-06-16 16:12:47.939 SHUTDOWN : System.exit() was not called
Database is started!

Jun 16, 2015 4:12:48 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler [“http-nio-8080″]
Jun 16, 2015 4:12:48 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler [“ajp-nio-8009″]
Jun 16, 2015 4:12:48 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 5455 ms

16/06/2015 Posted by | HSQLDB | | Leave a comment

java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/faces/webapp/FacesServlet


java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/faces/webapp/FacesServlet

Add the following libraries inside pom.xml (Maven)

  <dependency>
     <groupId>com.sun.faces</groupId>
     <artifactId>jsf-api</artifactId>
     <version>2.1.13</version>
 </dependency>
 
 <dependency>
    <groupId>com.sun.faces</groupId>
    <artifactId>jsf-impl</artifactId>
    <version>2.1.13</version>
 </dependency>
 
 <dependency>
   <groupId>javax.servlet</groupId>
   <artifactId>javax.servlet-api</artifactId>
   <version>3.1.0</version>
 </dependency>

16/06/2015 Posted by | Apache Tomcat, JSF, JSF 2.0 | | Leave a comment

Unknown version of Tomcat was specified. Eclipse tomcat definition error solution


The solution is to select the root folder of tomcat installation like marked as below instead of selecting the 

apache-tomcat-8.0.23-windows-x64 so path should be apache-tomcat-8.0.23

Capture

16/06/2015 Posted by | Apache Tomcat | | Leave a comment

Follow

Get every new post delivered to your Inbox.

Join 25 other followers