Fileupload

0 respostas
D

PESSOAL tenho o mesmo projeto rodando em 2 servidores no jboss4.0.1 dá um erro abaixo, a dois dias não acho o motivo. e roda com o jdk6,

o servidor que funciona tem jdk6 e jboss4.0.2, e está igual a configuração pelo menos a do eclipse, a não ser que me passei em algum jar nos servidores.

para alguém já ocorreu este erro? tenho o commons fileupload.jar no classpath do meu projeto não entendo daonde vem este problema.

agradeço ajuda.

closing entity managersession **************

2008-03-20 08:45:52,859 INFO  [STDOUT] testte chegou upload

2008-03-20 08:45:52,859 INFO  [STDOUT] testte chegou upload

2008-03-20 08:45:52,859 INFO  [STDOUT] testte chegou upload

2008-03-20 08:45:52,859 INFO  [STDOUT] testte chegou uploadeee

2008-03-20 08:45:52,859 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/motos].[InsertFoto]] Servlet.service() for servlet InsertFoto threw exception

java.lang.NoClassDefFoundError: javax/servlet/ServletInputStream

at org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:126)

at com.Servlets.InsertFoto.processRequest(Unknown Source)

at com.Servlets.InsertFoto.doPost(Unknown Source)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)

at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)

at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)

at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)

at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)

at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)

at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)

at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

at java.lang.Thread.run(Thread.java:619)

2008-03-20 08:45:52,859 DEBUG [org.hibernate.impl.SessionImpl] opened session at timestamp: 4939831512510464

2008-03-20 08:45:52,859 DEBUG [org.hibernate.ejb.AbstractEntityManagerImpl] Looking for a JTA transaction to join

2008-03-20 08:45:52,859 DEBUG [org.hibernate.jdbc.JDBCContext] successfully registered Synchronization

2008-03-20 08:45:52,859 DEBUG [org.hibernate.ejb.AbstractEntityManagerImpl] Looking for a JTA transaction to join

2008-03-20 08:45:52,859 DEBUG [org.hibernate.ejb.AbstractEntityManagerImpl] Transaction already joined

2008-03-20 08:45:52,859 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to open PreparedStatement (open PreparedStatements: 0, globally: 0)

2008-03-20 08:45:52,859 DEBUG [org.hibernate.jdbc.ConnectionManager] opening JDBC connection

2008-03-20 08:45:52,859 DEBUG [org.hibernate.SQL]

select

marca0_.ID_MARCA as ID1_317_,

marca0_.NOME as NOME317_

from

MARCA marca0_

2008-03-20 08:45:52,859 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to open ResultSet (open ResultSets: 0, globally: 0)

2008-03-20 08:45:52,859 DEBUG [org.hibernate.loader.Loader] result row: EntityKey[com.ejb.entity.Marca#1]

2008-03-20 08:45:52,859 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to close ResultSet (open ResultSets: 1, globally: 1)

2008-03-20 08:45:52,859 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to close PreparedStatement (open PreparedStatements: 1, globally: 1)

2008-03-20 08:45:52,859 DEBUG [org.hibernate.jdbc.ConnectionManager] aggressively releasing JDBC connection

2008-03-20 08:45:52,859 DEBUG [org.hibernate.jdbc.ConnectionManager] releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]

2008-03-20 08:45:52,859 DEBUG [org.hibernate.engine.TwoPhaseLoad] resolving associations for [com.ejb.entity.Marca#1]

2008-03-20 08:45:52,859 DEBUG [org.hibernate.engine.TwoPhaseLoad] done materializing entity [com.ejb.entity.Marca#1]

2008-03-20 08:45:52,859 DEBUG [org.hibernate.engine.StatefulPersistenceContext] initializing non-lazy collections

2008-03-20 08:45:52,859 DEBUG [org.hibernate.event.def.AbstractFlushingEventListener] processing flush-time cascades

2008-03-20 08:45:52,859 DEBUG [org.hibernate.event.def.AbstractFlushingEventListener] dirty checking collections

2008-03-20 08:45:52,859 DEBUG [org.hibernate.event.def.AbstractFlushingEventListener] Flushed: 0 insertions, 0 updates, 0 deletions to 1 objects

2008-03-20 08:45:52,859 DEBUG [org.hibernate.event.def.AbstractFlushingEventListener] Flushed: 0 (re)creations, 0 updates, 0 removals to 0 collections

2008-03-20 08:45:52,859 DEBUG [org.hibernate.pretty.Printer] listing entities:

2008-03-20 08:45:52,859 DEBUG [org.hibernate.pretty.Printer] com.ejb.entity.Marca{id=1, nome=Honda}

2008-03-20 08:45:52,859 DEBUG [org.hibernate.jdbc.ConnectionManager] aggressively releasing JDBC connection

2008-03-20 08:45:52,859 DEBUG [org.jboss.ejb3.entity.ManagedEntityManagerFactory] ************** closing entity managersession **************

2008-03-20 08:45:52,859 DEBUG [org.hibernate.impl.SessionImpl] opened session at timestamp: 4939831512510465

2008-03-20 08:45:52,859 DEBUG [org.hibernate.ejb.AbstractEntityManagerImpl] Looking for a JTA transaction to join

2008-03-20 08:45:52,859 DEBUG [org.hibernate.jdbc.JDBCContext] successfully registered Synchronization

2008-03-20 08:45:52,859 DEBUG [org.hibernate.ejb.AbstractEntityManagerImpl] Looking for a JTA transaction to join

2008-03-20 08:45:52,859 DEBUG [org.hibernate.ejb.AbstractEntityManagerImpl] Transaction already joined

2008-03-20 08:45:52,875 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to open PreparedStatement (open PreparedStatements: 0, globally: 0)

2008-03-20 08:45:52,875 DEBUG [org.hibernate.jdbc.ConnectionManager] opening JDBC connection

2008-03-20 08:45:52,875 DEBUG [org.hibernate.SQL]

select

combustive0_.ID_COMBUSTIVEL as ID1_305_,

combustive0_.NOME as NOME305_

from

COMBUSTIVEL combustive0_

2008-03-20 08:45:52,875 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to open ResultSet (open ResultSets: 0, globally: 0)

2008-03-20 08:45:52,875 DEBUG [org.hibernate.loader.Loader] result row: EntityKey[com.ejb.entity.Combustivel#1]

2008-03-20 08:45:52,875 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to close ResultSet (open ResultSets: 1, globally: 1)

2008-03-20 08:45:52,875 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to close PreparedStatement (open PreparedStatements: 1, globally: 1)

2008-03-20 08:45:52,875 DEBUG [org.hibernate.jdbc.ConnectionManager] aggressively releasing JDBC connection

2008-03-20 08:45:52,875 DEBUG [org.hibernate.jdbc.ConnectionManager] releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]

2008-03-20 08:45:52,875 DEBUG [org.hibernate.engine.TwoPhaseLoad] resolving associations for [com.ejb.entity.Combustivel#1]

2008-03-20 08:45:52,875 DEBUG [org.hibernate.engine.TwoPhaseLoad] done materializing entity [com.ejb.entity.Combustivel#1]

2008-03-20 08:45:52,875 DEBUG [org.hibernate.engine.StatefulPersistenceContext] initializing non-lazy collections

2008-03-20 08:45:52,875 DEBUG [org.hibernate.event.def.AbstractFlushingEventListener] processing flush-time cascades

2008-03-20 08:45:52,875 DEBUG [org.hibernate.event.def.AbstractFlushingEventListener] dirty checking collections

2008-03-20 08:45:52,875 DEBUG [org.hibernate.event.def.AbstractFlushingEventListener] Flushed: 0 insertions, 0 updates, 0 deletions to 1 objects

2008-03-20 08:45:52,875 DEBUG [org.hibernate.event.def.AbstractFlushingEventListener] Flushed: 0 (re)creations, 0 updates, 0 removals to 0 collections

2008-03-20 08:45:52,875 DEBUG [org.hibernate.pretty.Printer] listing entities:

2008-03-20 08:45:52,875 DEBUG [org.hibernate.pretty.Printer] com.ejb.entity.Combustivel{id=1, nome=Gasolina}

2008-03-20 08:45:52,875 DEBUG [org.hibernate.jdbc.ConnectionManager] aggressively releasing JDBC connection

2008-03-20 08:45:52,875 DEBUG [org.jboss.ejb3.entity.ManagedEntityManagerFactory] ************** closing entity managersession **************
Criado 19 de março de 2008
Respostas 0
Participantes 1