[jboss-user] [EJB 3.0] - is mappedName needed to reference an EJB in JSF or not?
JBoss 5.0.0.GA Hi, I'm exhausted searching for some enlightenment on whether the attribute mappedName in @EJB is needed or not in a JSF Managed Beans. Could please anyone enlighten me on this subject? I'm getting error message like Resolution should not happen via injection container if I don't specify mappedName. I want to avoid mappedName as much as possible. Or is it unavoidable? Also, what's the difference between applying @EJB to field from applying to a class? Consider the following example: @Stateless | @EJB(name=audit, beanInterface=AuditLocal.class) | public class MyBean implements MyBeanRemote, MyBeanLocal { | | SessionContext context; | AuditLocal audit; | | public void setSessionContext(SessionContext context) { | this.context = context; | } | | @PostConstruct | public void init() { | audit = (AuditLocal) context.lookup(audit); | } | // ... | } My guess is, if @EJB is declared at the class level, the container tries to inject the session bean into java:/comp/env/audit JNDI name instead of injecting it to the field directly as opposed to @EJB that is declared at the field level. Did I get it right? And it knows what EJB to inject in java:/comp/env/audit by relying on the value of beanInterface attribute, is that right? Thanks View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4216203#4216203 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4216203 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: is mappedName needed to reference an EJB in JSF or not?
Hi jaikiran, Before I open a new thread, I need to know if @EJB should work even if the WAR is deployed separately outside the EAR which contains the EJBs referenced by the JSF Manage Beans. @EJB seems to work now inside JSF Manage Beans as long as WAR is deployed together with the EJB in a single EAR deployment. Otherwise, I'm getting nasty exceptions. Thanks View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4216268#4216268 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4216268 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: EntityManager TX and EJB3 = classLoader is not connected
will do, there's some updates there View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4214931#4214931 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4214931 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: MySQL 5.0 deployed as DS doesn't seem to work properly w
It looks like I couldn't obtain a manage transaction because it couldn't open a connection, but when I try looking up the datasource myself through JNDI I am successful obtaining a connection. Thanks PeterJ View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4214434#4214434 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4214434 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: MySQL 5.0 deployed as DS doesn't seem to work properly w
I updated my connector j to 5.0.8 from 5.0.5 and now its working. But I would be grateful to know what went wrong. If 5.0.5 was at fault, then it might mean during those times JTA users couldn't use MySQL. I wonder how did the developers worked with JTA in jboss using connector 5.0.5. I've got to let this out, $...@#! @#$%! @#...@#!#@@ I've spent 3 days just to find out that my connector j is stvp1d @#$%! that was great View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4214588#4214588 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4214588 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - EntityManager TX and EJB3 = classLoader is not connected to
JBoss 5.0.0.GA Hibernate 3.3.1.GA Annotations,EM 3.4.0.GA MySQL 5 I made an EAR with ejb-jar, war and datasource with it. I'm getting exceptions whenever my session bean is trying to invoke methods from my injected entity manager or even from entity manager from injected entity manager factory. I don't know why this thing should be very difficult, i'm totally frustrated, I've been spending kicking the wall. I over simplified the codes and yet I can't really see what I've done wrong. Here's my code: My session bean @Stateless | public class UserAccountsBean implements UserAccountsLocal, UserAccountsRemote { | | @PersistenceContext(unitName=demoproj-unit) | private EntityManager em; | | // other methods | | @TransactionAttribute(TransactionAttributeType.REQUIRED) | public UserAccount getUserAccountByUsername(String username) | throws UserDoesNotExistException | { | // I'm making things simple for debugging | UserAccount uat = em.find(UserAccount.class, 3L); | return uat; | } | } My JSF managed bean public class Login { | | @EJB( | beanInterface=UserAccountsLocal.class, | mappedName=demoproj-ear/UserAccountsBean/local) | UserAccountsLocal uab; | | // other props and meths | | public String login() { | // Authenticate user | try | { | this.setLogin( | uab.getUserAccountByUsername( this.getUsername() ) | ); | } | catch (UserDoesNotExistException e) | { | FacesContext.getCurrentInstance().addMessage(null, | new FacesMessage(Invalid username or password)); | return ConstantsHelper.OUTCOME_FAILURE; | } | | this.setAuthenticated(true); | return ConstantsHelper.OUTCOME_SUCCESS; | } My hib config ?xml version=1.0 encoding=UTF-8? | !DOCTYPE hibernate-configuration PUBLIC | -//Hibernate/Hibernate Configuration DTD 3.0//EN | http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd; | hibernate-configuration | session-factory name=MySessionFactory | | !-- JTA Datasource config -- | property name=hibernate.transaction.manager_lookup_class | org.hibernate.transaction.JBossTransactionManagerLookup | /property | property name=hibernate.transaction.factory_class | org.hibernate.transaction.JTATransactionFactory | /property | !-- JNDI location of Datasource -- | property name=hibernate.connection.datasourcejava:/demoproj/property | | !-- Other props -- | property name=hibernate.dialectorg.hibernate.dialect.MySQL5Dialect/property | property name=hibernate.connection.autocommitfalse/property | mapping class=tonsky.demoproj.entities.PersonalInfo/ | mapping class=tonsky.demoproj.entities.Role/ | mapping class=tonsky.demoproj.entities.UserAccount/ | | /session-factory | /hibernate-configuration My ear descriptor: ?xml version=1.0 encoding=UTF-8? | application xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=http://java.sun.com/xml/ns/javaee; xmlns:application=http://java.sun.com/xml/ns/javaee/application_5.xsd; xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd; id=Application_ID version=5 | display-namedemoproj-ear/display-name | module | ejbdemoproj-ejb.jar/ejb | /module | module | web | web-uridemoproj.war/web-uri | context-rootdemoproj/context-root | /web | /module | /application My Jboss datasource descriptor ?xml version=1.0 encoding=UTF-8? | !DOCTYPE datasources PUBLIC -//JBoss//DTD JBOSS JCA Config 5.0//EN http://www.jboss.org/j2ee/dtd/jboss-ds_5_0.dtd; | datasources | local-tx-datasource | jndi-namedemoproj/jndi-name | connection-url | jdbc:mysql://localhost:3306/mydemoproject | /connection-url | driver-classcom.mysql.jdbc.Driver/driver-class | | user-nameroot/user-name | passwordroot/password | | min-pool-size5/min-pool-size | max-pool-size20/max-pool-size | | metadata | type-mappingmySQL/type-mapping | /metadata | /local-tx-datasource | /datasources | My stacktrace: 14:55:21,778 WARN [TxConnectionManager] Connection error occured:
[jboss-user] [Installation, Configuration DEPLOYMENT] - MySQL 5.0 deployed as DS doesn't seem to work properly with
My specs: JBoss 5.0.0.GA MySQL 5.0.41 MySQL Connector J 5.0.5 My EAR's session beans works with transactions successfully when using datasource from DefaultDS (Hypersonic DB), but throws an exception when using MySQL as my datasource. Please refer to this link to - http://www.jboss.org/index.html?module=bbop=viewtopicp=4214075#4214075 The point of interest on those exception: 14:55:21,796 ERROR [lifecycle] JSF1054: (Phase ID: INVOKE_APPLICATION 5, View ID: /login.html) Excep | tion thrown during phase execution: javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.Life | cyclei...@c68e03] | 14:55:21,796 ERROR [[Faces Config]] Servlet.service() for servlet Faces Config threw exception | java.lang.IllegalStateException: baseclassloa...@1f30e51{vfszip:/C:/Software/Server/jboss-5.0.0.GA/s | erver/default/deploy/demoproj-ear.ear} classLoader is not connected to a domain (probably undeployed | ?) for class java.sql.SQLWarning | at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:730) | at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:378) | at java.lang.ClassLoader.loadClass(Unknown Source) | at java.lang.ClassLoader.loadClassInternal(Unknown Source) | at com.mysql.jdbc.Connection.getMutex(Connection.java:3714) | at com.mysql.jdbc.Connection.rollback(Connection.java:5186) | at org.jboss.resource.adapter.jdbc.local.LocalManagedConnection.rollback(LocalManagedConnection.jav | a:97) | at org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource.rollback(TxConnectionMa | nager.java:1105) | at com.arjuna.ats.internal.jta.resources.arjunacore.XAOnePhaseResource.rollback(XAOnePhaseResource. | java:138) | Could anyone confirm to me if there should not be any problems with mysql as my datasource. Any help is much appreciated. Thanks View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4214356#4214356 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4214356 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Hib+EJB3+JSF = classLoader is not connected to a domain
JBoss 5.0.0.GA Hibernate 3.3.1.GA Annotations,EM 3.4.0.GA MySQL 5 I've made an EAR with ejb-jar, war and datasource with it. I'm getting exceptions whenever my session bean is trying to invoke methods from my injected entity manager. My session bean @Stateless | public class UserAccountsBean implements UserAccountsLocal, UserAccountsRemote { | | @PersistenceContext(unitName=demoproj-unit) | private EntityManager em; | | // other methods | | @TransactionAttribute(TransactionAttributeType.REQUIRED) | public UserAccount getUserAccountByUsername(String username) | throws UserDoesNotExistException | { | // I'm making things simple for debugging | UserAccount uat = em.find(UserAccount.class, 3L); | return uat; | } | } My JSF managed bean public class Login { | | @EJB( | beanInterface=UserAccountsLocal.class, | mappedName=demoproj-ear/UserAccountsBean/local) | UserAccountsLocal uab; | | // other props and meths | | public String login() { | // Authenticate user | try | { | this.setLogin( | uab.getUserAccountByUsername( this.getUsername() ) | ); | } | catch (UserDoesNotExistException e) | { | FacesContext.getCurrentInstance().addMessage(null, | new FacesMessage(Invalid username or password)); | return ConstantsHelper.OUTCOME_FAILURE; | } | | this.setAuthenticated(true); | return ConstantsHelper.OUTCOME_SUCCESS; | } My hib config ?xml version=1.0 encoding=UTF-8? | !DOCTYPE hibernate-configuration PUBLIC | -//Hibernate/Hibernate Configuration DTD 3.0//EN | http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd; | hibernate-configuration | session-factory name=MySessionFactory | | !-- JTA Datasource config -- | property name=hibernate.transaction.manager_lookup_class | org.hibernate.transaction.JBossTransactionManagerLookup | /property | property name=hibernate.transaction.factory_class | org.hibernate.transaction.JTATransactionFactory | /property | !-- JNDI location of Datasource -- | property name=hibernate.connection.datasourcejava:/demoproj/property | | !-- Other props -- | property name=hibernate.dialectorg.hibernate.dialect.MySQL5Dialect/property | property name=hibernate.connection.autocommitfalse/property | mapping class=tonsky.demoproj.entities.PersonalInfo/ | mapping class=tonsky.demoproj.entities.Role/ | mapping class=tonsky.demoproj.entities.UserAccount/ | | /session-factory | /hibernate-configuration My ear descriptor: ?xml version=1.0 encoding=UTF-8? | application xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=http://java.sun.com/xml/ns/javaee; xmlns:application=http://java.sun.com/xml/ns/javaee/application_5.xsd; xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd; id=Application_ID version=5 | display-namedemoproj-ear/display-name | module | ejbdemoproj-ejb.jar/ejb | /module | module | web | web-uridemoproj.war/web-uri | context-rootdemoproj/context-root | /web | /module | /application My stacktrace: 14:55:21,778 WARN [TxConnectionManager] Connection error occured: org.jboss.resource.connectionmanager.txconnectionmanager$txconnectioneventliste...@600b1b[state=normal mc=org.jboss.resource.adapter.jdbc.local.localmanagedconnect...@da414e handles=1 lastUse=1235965772046 permit=true trackByTx=true mcp=org.jboss.resource.connectionmanager.jbossmanagedconnectionpool$onep...@5587a0 context=org.jboss.resource.connectionmanager.internalmanagedconnectionp...@13b3437 xaresource=org.jboss.resource.connectionmanager.txconnectionmanager$localxaresou...@eaee56 txSync=null] | java.lang.IllegalStateException: baseclassloa...@1f30e51{vfszip:/C:/Software/Server/jboss-5.0.0.GA/server/default/deploy/demoproj-ear.ear} classLoader is not connected to a domain (probably undeployed?) for class java.sql.Timestamp | at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:730) | at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:378) | at java.lang.ClassLoader.loadClass(Unknown Source) | at java.lang.ClassLoader.loadClassInternal(Unknown Source) | at
[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Jboss Versions
Hi, Is there a table where there's a line up of Jboss versions along with their support for different servlet, jsp, jsf and tomcat versions? It would be also nice to have them with some details like J2EE version compliance etc. It would be very handy to have them. Thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171673#4171673 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171673 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - A possible bug on tomcat, does it still exists in JBoss 4.2.
I'm using servlets 2.5 jstl 1.2 jboss 4.2.3.GA My web.xml declares i'm using servlets 2.5 I receive | type Exception report | | message | | description The server encountered an internal error () that prevented it from fulfilling this request. | | exception | | org.apache.jasper.JasperException: /index.jsp(33,3) According to TLD or attribute directive in tag file, attribute items does not accept any expressions | org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40) | org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407) | org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:148) | org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1172) | org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:819) | org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1507) | org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2338) | org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2388) | org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2394) | org.apache.jasper.compiler.Node$Root.accept(Node.java:489) | org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2338) | org.apache.jasper.compiler.Validator.validate(Validator.java:1737) | org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:178) | org.apache.jasper.compiler.Compiler.compile(Compiler.java:306) | org.apache.jasper.compiler.Compiler.compile(Compiler.java:286) | org.apache.jasper.compiler.Compiler.compile(Compiler.java:273) | org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566) | org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:316) | org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336) | org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) | javax.servlet.http.HttpServlet.service(HttpServlet.java:803) | org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | | note The full stack trace of the root cause is available in the JBossWeb/2.0.1.GA logs. This scenario is very similar to the posted bug at apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=40913 Is this bug resolved on embedded tomcat in Jboss 4.2.3.GA? or am I forgetting something? Thanks in advance. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4169167#4169167 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4169167 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: A possible bug on tomcat, does it still exists in JBoss
My bad my bad my bad, my taglib directive is using JSTL 1.0. Oh crap.. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4169168#4169168 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4169168 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Can't suspend a breakpoint while debugging
Hi, I did my homework but just too helpless.. so I'm doing the last resort. Specs: Eclipse 3.4.0 Ganymede JBossAS-Tools-1.1.2.GA jboss-4.2.3.GA My Problem: My breakpoint on my translated JSP files (e.g. index_jsp.java) were always ignored by eclipse whenever I try visiting the JSP concerned. What I have done: Before I established a debugging environment, I added a virtual folder to my Dynamic Web eclipse project that links to the folder where the JBoss dumps in the translated JSP files. (e.g. %JBOSS_HOME%\server\default\work\jboss.web\localhost\MyProject) I managed to establish a debugging environment by using two methods: 1. Using debug on server provided by jbossAs tools 2. Debugging as Remote Java Application using anonymous wrote : JAVA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y %JAVA_OPTS% provided on the run.bat Everything looks fine but my breakpoints on my translated JSP files were being ignored. I can set breakpoints on JSP itself (non scriptless) and have my VM suspend at that breakpoint. But I have scriptless JSP file so it would be impossible to set breakpoints on that, so I set the breakpoints on translated JSP file. Unfortunately VM do not suppend on breakpoints I have set on the translated JSP files. Any help will save this dude from insanity. Thanks! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4168863#4168863 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4168863 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Can't suspend a breakpoint while debugging
By the way, I used this - http://forums.sun.com/thread.jspa?threadID=508454tstart=30 on my second method of establishing a debugging environment. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4168864#4168864 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4168864 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Can't suspend a breakpoint while debugging
This is weird, I set a breakpoint on line 55 on index_jsp.java, and the VM suspends pointing at line 55 of index.jsp instead of index_jsp. Is there a way to instruct embedded tomcat on Jboss not to point at original JSP file but rather on the translated jsp (index_jsp.java)? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4168867#4168867 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4168867 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Can't suspend a breakpoint while debugging
This is laughable, beck when I was using Resin as my web app server, I struggled working on how to debug on original JSP source file. Now that I'm using Jboss I came to a situation that I need the other way around. Debugging on original JSP file is not a problem but working on how to debug on translated JSP is now bugging me :( View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4168868#4168868 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4168868 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Too many errors cant get JBoss Portal to work
For those in the same shoes, I came into conclusion. It's either a bug on the hibernate module or a bug on the JDBC driver provided by Microsoft. I changed my JDBC driver to JTDS from sourceforge and it worked just fine. Finally whew! I suggested this case to be noted in documentation. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3970273#3970273 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3970273 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Too many errors cant get JBoss Portal to work
Does anyone had any idea on how could I possibly solve my problem to my recent posts in this thread? Here is my configuration of my datasource: | ?xml version=1.0 encoding=UTF-8? | datasources | local-tx-datasource | jndi-namePortalDS/jndi-name | connection-urljdbc:microsoft:sqlserver://localhost:1433;DatabaseName=jbossportal;SelectMethod=cursor,portal,portalpassword/connection-url | driver-classcom.microsoft.jdbc.sqlserver.SQLServerDriver/driver-class | user-nameportal/user-name | passwordportalpassword/password | /local-tx-datasource | /datasources | Im using MS Sql Server 2000 Driver for JDBC SP3. I think there's a problem in transaction manager or something.. maybe a problem from my JDBC driver? It's been almost a month and cant find any answers to my problem. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3970077#3970077 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3970077 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Too many errors cant get JBoss Portal to work
Thanks, finally! I've got things working.. there still some problems though. I've got these errors, im guessing that it comes from the CMS module of JBoss Portal. I've truncated the errors for your convenience. Thanks. JBoss Portal Error | An error occured while rendering window 'default.default.DefaultCMSPortletWindow' | | java.lang.NullPointerException | Console Error | 03:20:04,803 INFO [SchemaExport] schema export complete | 03:20:04,803 INFO [JCRCMS] Starting JCR CMS | 03:20:05,069 INFO [RepositoryImpl] Starting repository... | 03:20:05,319 WARN [TxConnectionManager] Connection error occured: org.jboss.res | [EMAIL PROTECTED] | ate=NORMAL [EMAIL PROTECTED] | 8d handles=1 lastUse=1156188005256 permit=true trackByTx=true mcp=org.jboss.reso | [EMAIL PROTECTED] context=org.jb | [EMAIL PROTECTED] xaResource= | [EMAIL PROTECTED] | txSync=null] | java.lang.NullPointerException | at com.microsoft.jdbc.sqlserver.tds.TDSRPCParameter.initializeUserParam( | Unknown Source) | at com.microsoft.jdbc.sqlserver.SQLServerImplStatement.addUserParameters | ToRPC(Unknown Source) | at com.microsoft.jdbc.sqlserver.SQLServerImplStatement.execute(Unknown S | ource) | at com.microsoft.jdbc.base.BaseStatement.commonExecute(Unknown Source) | at com.microsoft.jdbc.base.BaseStatement.executeInternal(Unknown Source) | | at com.microsoft.jdbc.base.BasePreparedStatement.execute(Unknown Source) | | at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.execute(Wrap | pedPreparedStatement.java:209) | at org.hibernate.id.IdentityGenerator$InsertSelectDelegate.executeAndExt | ract(IdentityGenerator.java:108) | at org.hibernate.id.insert.AbstractReturningDelegate.performInsert(Abstr | actReturningDelegate.java:33) | at org.hibernate.persister.entity.AbstractEntityPersister.insert(Abstrac | tEntityPersister.java:2044) | at org.hibernate.persister.entity.AbstractEntityPersister.insert(Abstrac | tEntityPersister.java:2481) | at org.hibernate.action.EntityIdentityInsertAction.execute(EntityIdentit | yInsertAction.java:47) | at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:248) | at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplic | ate(AbstractSaveEventListener.java:290) | at org.hibernate.event.def.AbstractSaveEventListener.performSave(Abstrac | tSaveEventListener.java:180) | at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId | (AbstractSaveEventListener.java:108) | . . truncated . . | 03:20:05,475 WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: HY000 | 03:20:05,475 ERROR [JDBCExceptionReporter] [Microsoft][SQLServer 2000 Driver for | JDBC]Object has been closed. | 03:20:05,475 ERROR [HibernateStore] failed to create folder entry: / | org.hibernate.exception.GenericJDBCException: could not insert: [org.jboss.porta | l.cms.hibernate.RepositoryEntry] | at org.hibernate.exception.SQLStateConverter.handledNonSpecificException | (SQLStateConverter.java:103) | at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.j | ava:91) | at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelp | er.java:43) | at org.hibernate.id.insert.AbstractReturningDelegate.performInsert(Abstr | actReturningDelegate.java:40) | at org.hibernate.persister.entity.AbstractEntityPersister.insert(Abstrac | tEntityPersister.java:2044) | at org.hibernate.persister.entity.AbstractEntityPersister.insert(Abstrac | tEntityPersister.java:2481) | at org.hibernate.action.EntityIdentityInsertAction.execute(EntityIdentit | yInsertAction.java:47) | at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:248) | at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplic | . . truncated . . | 03:20:05,662 ERROR [RepositoryImpl] failed to create folder for repository meta | data | org.apache.jackrabbit.core.fs.FileSystemException: failed to create folder entry | : / | at org.jboss.portal.cms.hibernate.HibernateStore.createDeepFolder(Hibern | ateStore.java:1530) | at org.jboss.portal.cms.hibernate.HibernateStore.createDeepFolder(Hibern | ateStore.java:1496) | at org.jboss.portal.cms.hibernate.HibernateStore.createFolder(HibernateS | tore.java:196) | at org.apache.jackrabbit.core.RepositoryImpl.init(RepositoryImpl.java: | 204) | at org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java: | 483) | at org.jboss.portal.cms.impl.jcr.jackrabbit.JackrabbitJCRService.start(J | ackrabbitJCRService.java:102) | at org.jboss.portal.cms.impl.jcr.JCRCMS.startJCR(JCRCMS.java:200) |
[jboss-user] [JBoss Portal] - Re: Too many errors cant get JBoss Portal to work
It seems that it was not mentioned in the docuementation that there is an issue about the bundled JBossWS 1.0.0 in JBoss AS 4.0.4 GA. Fortunately, I found it here: http://wiki.jboss.org/wiki/Wiki.jsp?page=WSRPOfflineInstructions Im guessing that this might be the root problem. Ill be happy if anyone could correct me =) Ill return after installing JBoss 1.0.2 GA if the problem persist. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3966004#3966004 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3966004 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Too many errors cant get JBoss Portal to work
Thanks for some hints about the cause. Is it possible to run JBoss Portal in intranet mode or without connection to the internet? If so, is there a resource or documentation that I should look for to do this? Many Thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3965834#3965834 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3965834 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user