cancel
Showing results for 
Search instead for 
Did you mean: 

Activiti Explorer 5.16.4 deployment to Weblogic Java 6

ivan_activiti
Champ in-the-making
Champ in-the-making
I am trying to deploy activiti-webapp-explorer2 5.16.4 module to Weblogic running on Java 6 and I am getting the following exception:

java.lang.ClassNotFoundException: javax.servlet.ServletRegistration$Dynamic

The same exception appears with activiti-explorer.war from activiti-5.16.4\wars folder. I had Explorer 5.16.3 running with no issues. What am I missing?

Thanks,
–Ivan
10 REPLIES 10

magini
Champ in-the-making
Champ in-the-making
Hi,
i made a patch for the version 5.16.4 on WebSphere 7, that has the same problem with Servlet Api 3.0.

Activiti Rest:

Get the file "rest-web.txt" from the attachment and copy the content in web.xml file inside the war

REPLACE -> classes\org\activiti\rest\conf\ApplicationConfiguration.class
<java>
package org.activiti.rest.conf;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan(basePackages = {
        "org.activiti.rest"})
public class ApplicationConfiguration {
 
}

</java>

I add a simple Spring security filter that you can rewrite, below the class to add in war file:
ADD -> classes\org\activiti\rest\conf\SecurityConfig.class
<java>
package org.activiti.rest.conf;

import java.io.IOException;

import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Component;

@Component(value = "basicFilter")
public class SecurityConfig implements Filter {


    @Override
    public void doFilter(ServletRequest servletRequest,
            ServletResponse servletResponse, FilterChain filterChain)
            throws IOException, ServletException {
    
     HttpServletRequest req = (HttpServletRequest)servletRequest;
     HttpServletResponse res = (HttpServletResponse)servletResponse;
       
        /* WRITE HERE YOUR CODE FOR A CUSTOM FILTER */
      
        filterChain.doFilter(servletRequest, servletResponse);

    }

    @Override
    public void init(FilterConfig paramFilterConfig) throws ServletException {
        // do nothing
    }

    @Override
    public void destroy() {
        // do nothing
    }

}

</java>

Activiti Explorer:

Get the file "explorer-web.txt" from the attachment and copy the content in web.xml file inside the war

REPLACE -> classes\org\activiti\explorer\conf\ApplicationConfiguration.class
<java>
package org.activiti.explorer.conf;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ImportResource;
import org.springframework.context.annotation.PropertySource;
import org.springframework.context.annotation.PropertySources;

@Configuration
@PropertySources({
  @PropertySource(value = "classpath:db.properties", ignoreResourceNotFound = true),
  @PropertySource(value = "classpath:engine.properties", ignoreResourceNotFound = true)
})
@ComponentScan(basePackages = {
        "org.activiti.explorer.conf","org.activiti.rest"})
@ImportResource({"classpath:activiti-ui-context.xml", "classpath:activiti-login-context.xml"})
public class ApplicationConfiguration {
 
}

</java>

I hope that's can solve your problem. Smiley Happy

Ps. Sorry for my english Smiley Very Happy

Ps. Sorry