[JBoss Tools (users)] - Re: Seam EAR deployment problem
by speleomaniaque
I installed brand new Ganymede, now I can create a Seam project and run it without problem in JBoss from Eclipse....
I would now install m2eclipse to see it interferes with JBoss Tools...
But to my original problem, can anybody write something somewhere how an a Seam enabled project structure has to be run in Eclipse so I can configure the maven project as similar as possible..There are some interesting structures that I don't understand at all. When I assign the project to the JBoss Server it is also assigning the EAR/resources directory to the Server also. I have no idea how can this be manually configured.
Or would it be to utopic when I ask somebody from you write a maven-archetype(may be Wesley Hayes archetype can be the basis) and configure JBoss Tools to be compatible with this archetype..
If somebody can explain me how the project has to be structured to be run in Eclipse with JBoss Tools I would be volunteered for the creatition of the maven archetype...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4198414#4198414
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4198414
15 years, 9 months
[JBossWS] - can NOT run ant deploy-jboss500
by davidyu8888
Hello,
I am new to jbossws, so I am following the installation guide.
I am using jboss-5.0.0.GA, jbossws-native-3.0.5.GA, j2sdk6.
Here are the steps I have taken so far,
1) Copy ant.properties.examples to ant.properties
2) Modify ant.properties file accordingly. set jbossXYZ.home and jbossws.integration.target.
3) Copy the following jars to ${JBOSS_HOME}/lib/endorsed from <JBossWS-Dist>/lib for JBossWS since 3.0.2 version:
jaxb-api.jar
jbossws-native-jaxrpc.jar
jbossws-native-jaxws.jar
jbossws-native-jaxws-ext.jar
jbossws-native-saaj.jar
4) Run the following: set ANT_OPTS="-Djava.endorsed.dirs=<JBOSS_HOME>\lib\endorsed"
5) Run "ant deploy-jboss500",
Then I got following message:
C:\Java\jbossws-native-bin-dist>ant deploy-jboss500
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)
where options include:
-client to select the "client" VM
-server to select the "server" VM
-hotspot is a synonym for the "client" VM [deprecated]
The default VM is client.
-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
A ; separated list of directories, JAR archives,
and ZIP archives to search for class files.
-D=
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-version:
require the specified version to run
-showversion print product version and continue
-jre-restrict-search | -jre-no-restrict-search
include/exclude user private JREs in the version search
-? -help print this help message
-X print help on non-standard options
-ea[:...|:]
-enableassertions[:...|:]
enable assertions
-da[:...|:]
-disableassertions[:...|:]
disable assertions
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
-agentlib:[=]
load native agent library , e.g. -agentlib:hprof
see also, -agentlib:jdwp=help and -agentlib:hprof=help
-agentpath:[=]
load native agent library by full pathname
-javaagent:[=]
load Java programming language agent, see java.lang.instrument
-splash:
show splash screen with specified image
Am I missing steps or putting steps in wrong sequence? Any help is really appreciated.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4198409#4198409
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4198409
15 years, 9 months
[Persistence, JBoss/CMP, Hibernate, Database] - Re: Could not find datasource message in client JPA although
by jaikiran
anonymous wrote : javax.persistence.PersistenceException: [PersistenceUnit: BiddingTest] Unable to build EntityManager
| Factory
| at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:677)
| at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:126)
|
| at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52)
| at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:34)
| at Main.main(Main.java:43)
| Caused by: org.hibernate.HibernateException: Could not find datasource
| at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.jav
| a:79)
| at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFacto
| ry.java:137)
| at org.hibernate.ejb.InjectionSettingsFactory.createConnectionProvider(InjectionSettingsFactory.jav
| a:29)
| at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:89)
| at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2101)
| at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1325)
| at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
| at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)
| ... 4 more
| Caused by: javax.naming.NoInitialContextException: Need to specify class name in environment or syst
| em property, or as an applet parameter, or in an application resource file: java.naming.factory.ini
| tial
| at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:645)
| at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
| at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:284)
| at javax.naming.InitialContext.lookup(InitialContext.java:351)
| at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.jav
| a:75)
|
You need to place a jndi.properties in the client's classpath. See this for more details http://www.jboss.org/community/docs/DOC-9816
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4198407#4198407
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4198407
15 years, 9 months