facebook

Scaffolding with JBoss

  1. MyEclipse IDE
  2.  > 
  3. Spring Development
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #336961 Reply

    amir55
    Participant

    Hi dear team and developers

    please reply to each error with my respect

    1 – I tried to run te built in tomcat in myeclipse for spring 10.6 but error .

    NFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\MyEclipse_Group\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\bin;D:\MyEclipse_Group\Common\plugins\com.genuitec.eclipse.easie.tomcat.myeclipse_9.0.0.me201109141806\tomcat\bin

    2 – Is there anyway to do scaffolding using spring and hibernate jointly configurated I,e using applicationContext.xml and hibernatae.cfg.xml

    3 – how can I chose Jboss as a container instead of tomcat for scaffolding

    When I did the scaffolding in the tutorial and deploy to JBoss 4.2.2 I get this error

    10:09:39,796 INFO [STDOUT] 2013-03-24 10:09:39,781 ERROR [ScannerThread] ContextLoader – Context initialization failed
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘CustomerService’: Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.customerapp.dao.CustomerDAO org.customerapp.service.CustomerServiceImpl.customerDAO; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘CustomerDAO’: Injection of persistence dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘MyEclipse_Derby’ defined in class path resource [CustomersJsfApp-dao-context.xml]: Invocation of init method failed; nested exception is org.hibernate.AnnotationException: java.lang.NoSuchMethodException: org.hibernate.validator.ClassValidator.<init>(java.lang.Class, java.util.ResourceBundle, org.hibernate.validator.MessageInterpolator, java.util.Map, org.hibernate.annotations.common.reflection.ReflectionManager)

    thanks for all your supports with best regards

    Amir

    #337006 Reply

    Amir,

    1) It looks like Tomcat default port 8080 is already in use. Have you setup any other software to use port 8080? (JBoss also uses 8080 port, Please make sure that JBoss is not running when starting tomcat). The Netstat command can list currently used ports, which might be helpful if you suspect an application is clashing with another one on an active port. Use the -an switch to show all connections and listening ports in numeric form. This would give you PID. Next use the windows task manager to check which program is using this port.

    Alternatively, you can configure your tomcat to run on a different port. If you are using sandbox tomcat, you can change the port number of tomcat here – open MyEclipse IDE, from menu options click on Window > Preferences > MyEclipse > Servers > Integrated Sandbox > MyEclipse Tomcat and change the port number on the right hand pane. In case you have configured Tomcat 5 / 6 to change the port number please refer http://www.mkyong.com/tomcat/how-to-change-tomcat-default-port/

    2) Sorry, there is no way to do scaffolding using spring and hibernate configuration files.

    3) I will try to do scaffolding with JBoss at my end and will get back to you.

    If you are still facing issues with Tomcat, can you please clear the contents of the .log file which is located at <workspace>/.metadata/.log file, replicate the issue and attach the .log file here to help us investigate further.

    #337042 Reply

    Amir,

    Regarding the scaffolding with JBoss server, can you please answer some more questions to help us investigate further :
    1. Can you please mention which tutorial you followed for scaffolding ? As there are several scaffolding tutorials.
    2. Can you please try a more recent version of JBoss (preferably 7.1.1) and run through the tutorial using the inbuilt Derby database and check whether you can run without any issues ?
    3. If you are seeing any issues, can you please clear the contents of the .log file which is located at <workspace>/.metadata/.log file, replicate the issue and attach the .log file here to help us investigate further.

    #337201 Reply

    amir55
    Participant

    Hi dear

    1 – when I run jboss and access the url of http://localhost:8080/ then the server is on so fine but in case I stop jboss and start myecilpse tomcat and access the above url the error is as next

    This error (HTTP 400 Bad Request) means that this program was able to connect to the web server, but the webpage could not be found because of a problem with the address.
    So strange

    2 – when clear .log so it stays blank all the time i.e no error is shown !!

    3 – when I use your command, I get next so which programs are these ?

    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.

    C:\Documents and Settings\amir> Netstat -an

    Active Connections

    Proto Local Address Foreign Address State
    TCP 0.0.0.0:80 0.0.0.0:0 LISTENING
    TCP 0.0.0.0:135 0.0.0.0:0 LISTENING
    TCP 0.0.0.0:443 0.0.0.0:0 LISTENING
    TCP 0.0.0.0:445 0.0.0.0:0 LISTENING
    TCP 0.0.0.0:3306 0.0.0.0:0 LISTENING
    TCP 0.0.0.0:21501 0.0.0.0:0 LISTENING
    TCP 127.0.0.1:1027 0.0.0.0:0 LISTENING
    TCP 127.0.0.1:1030 0.0.0.0:0 LISTENING
    TCP 127.0.0.1:1752 127.0.0.1:1751 TIME_WAIT
    TCP 127.0.0.1:1760 127.0.0.1:8005 TIME_WAIT
    TCP 127.0.0.1:1761 127.0.0.1:8080 TIME_WAIT
    TCP 127.0.0.1:10636 0.0.0.0:0 LISTENING
    TCP 192.168.1.11:139 0.0.0.0:0 LISTENING
    TCP 192.168.1.11:1032 111.221.77.147:40004 ESTABLISHED
    TCP 192.168.1.11:1036 213.146.189.201:12350 ESTABLISHED
    UDP 0.0.0.0:443 *:*
    UDP 0.0.0.0:445 *:*
    UDP 0.0.0.0:500 *:*
    UDP 0.0.0.0:4500 *:*
    UDP 0.0.0.0:21501 *:*
    UDP 0.0.0.0:55979 *:*
    UDP 127.0.0.1:123 *:*
    UDP 127.0.0.1:1028 *:*
    UDP 127.0.0.1:1041 *:*
    UDP 127.0.0.1:1651 *:*
    UDP 127.0.0.1:1666 *:*
    UDP 127.0.0.1:1721 *:*
    UDP 127.0.0.1:1900 *:*
    UDP 192.168.1.11:123 *:*
    UDP 192.168.1.11:137 *:*
    UDP 192.168.1.11:138 *:*
    UDP 192.168.1.11:1900 *:*

    many thanks Amir

    #337223 Reply

    support-tony
    Keymaster

    Amir,

    We are not clear about your problems.

    The first problem you mention with the built-in Tomcat doesn’t appear to be an error. Does your application work or not? If not, please download and install Tomcat. Does your application work with that?

    You have not let us know which scaffolding tutorial you have been following. Please provide a link to the tutorial which you are following and also let us know which steps you have done differently.

    Thank you for providing the netstat output. It appears that port 8080 is not being used by another program, so that is not an issue.

    We don’t yet have enough information about your problem to provide more assistance. It sounds like it may be a development issue, rather than a MyEclipse issue but, hopefully, we will know more when we have your answers to the above questions.

    #338043 Reply

    amir55
    Participant

    hi dear Pradeep

    I am still waiting for you exmaple of scafolding on JBoss as you stated earlier. i still face

    some bugs here and there with it.

    I think your version can open a new era for me using scafolding.

    The more tutorials online for JBoss and myeclipse sacfolding the better

    I have JBoss 7 set fine and configured with MySQL 5.1

    take care
    with best regards
    Amir

    #338074 Reply

    support-tony
    Keymaster

    Amir,

    We have updated our documentation. The new documentation set is available at this page:

    http://www.myeclipseide.com/module-htmlpages-display-pid-7.html

    The tutorials for Spring scaffolding (there are five scaffolding tutorials) use the in-built Tomcat server and the in-built Derby database. Obviously, we can’t provide tutorials for all server/databases combinations that our users might have. The aim of the tutorial is for you to learn the use of the Spring scaffolding tools; they are not there to provide Spring development education, or education in the use of particular servers or databases.

    Please follow the appropriate tutorial for your development tasks, to get comfortable with the development tools available. If you have trouble with the tutorial, please post which tutorial you are following and full details of the problem.

    Once you have been through the tutorial, as provided, you will then need to make your own adjustments for developing for the server and database of your choice. If there are problems with the MyEclipse tools, when developing your application, please post as much information as you can about the problem. If the problems are development related (that is, not caused by the IDE you are using), we can’t usually provide much assistance with that and you will usually need to post on more appropriate development forums (for example, stackoverflow.com).

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: Scaffolding with JBoss

You must be logged in to post in the forum log in